1 # This file was created automatically by SWIG 1.3.27.
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 GetBitmapHover(*args
, **kwargs
):
245 GetBitmapHover(self) -> Bitmap
247 Returns the bitmap used when the mouse is over the button, may be invalid.
249 return _controls_
.BitmapButton_GetBitmapHover(*args
, **kwargs
)
251 def SetBitmapDisabled(*args
, **kwargs
):
253 SetBitmapDisabled(self, Bitmap bitmap)
255 Sets the bitmap for the disabled button appearance.
257 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
259 def SetBitmapFocus(*args
, **kwargs
):
261 SetBitmapFocus(self, Bitmap bitmap)
263 Sets the bitmap for the button appearance when it has the keyboard focus.
265 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
267 def SetBitmapSelected(*args
, **kwargs
):
269 SetBitmapSelected(self, Bitmap bitmap)
271 Sets the bitmap for the selected (depressed) button appearance.
273 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
275 def SetBitmapLabel(*args
, **kwargs
):
277 SetBitmapLabel(self, Bitmap bitmap)
279 Sets the bitmap label for the button. This is the bitmap used for the
280 unselected state, and for all other states if no other bitmaps are provided.
282 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
284 def SetBitmapHover(*args
, **kwargs
):
286 SetBitmapHover(self, Bitmap hover)
288 Sets the bitmap to be shown when the mouse is over the button. This function
289 is new since wxWidgets version 2.7.0 and the hover bitmap is currently only
292 return _controls_
.BitmapButton_SetBitmapHover(*args
, **kwargs
)
294 def SetMargins(*args
, **kwargs
):
295 """SetMargins(self, int x, int y)"""
296 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
298 def GetMarginX(*args
, **kwargs
):
299 """GetMarginX(self) -> int"""
300 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
302 def GetMarginY(*args
, **kwargs
):
303 """GetMarginY(self) -> int"""
304 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
307 class BitmapButtonPtr(BitmapButton
):
308 def __init__(self
, this
):
310 if not hasattr(self
,"thisown"): self
.thisown
= 0
311 self
.__class
__ = BitmapButton
312 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
314 def PreBitmapButton(*args
, **kwargs
):
316 PreBitmapButton() -> BitmapButton
318 Precreate a BitmapButton for 2-phase creation.
320 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
324 #---------------------------------------------------------------------------
326 CHK_2STATE
= _controls_
.CHK_2STATE
327 CHK_3STATE
= _controls_
.CHK_3STATE
328 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
329 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
330 CHK_CHECKED
= _controls_
.CHK_CHECKED
331 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
332 class CheckBox(_core
.Control
):
334 A checkbox is a labelled box which by default is either on (the
335 checkmark is visible) or off (no checkmark). Optionally (When the
336 wx.CHK_3STATE style flag is set) it can have a third state, called the
337 mixed or undetermined state. Often this is used as a "Does Not
341 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
342 def __init__(self
, *args
, **kwargs
):
344 __init__(self, Window parent, int id=-1, String label=EmptyString,
345 Point pos=DefaultPosition, Size size=DefaultSize,
346 long style=0, Validator validator=DefaultValidator,
347 String name=CheckBoxNameStr) -> CheckBox
349 Creates and shows a CheckBox control
351 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
352 self
.this
= newobj
.this
355 self
._setOORInfo
(self
)
357 def Create(*args
, **kwargs
):
359 Create(self, Window parent, int id=-1, String label=EmptyString,
360 Point pos=DefaultPosition, Size size=DefaultSize,
361 long style=0, Validator validator=DefaultValidator,
362 String name=CheckBoxNameStr) -> bool
364 Actually create the GUI CheckBox for 2-phase creation.
366 return _controls_
.CheckBox_Create(*args
, **kwargs
)
368 def GetValue(*args
, **kwargs
):
370 GetValue(self) -> bool
372 Gets the state of a 2-state CheckBox. Returns True if it is checked,
375 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
377 def IsChecked(*args
, **kwargs
):
379 IsChecked(self) -> bool
381 Similar to GetValue, but raises an exception if it is not a 2-state
384 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
386 def SetValue(*args
, **kwargs
):
388 SetValue(self, bool state)
390 Set the state of a 2-state CheckBox. Pass True for checked, False for
393 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
395 def Get3StateValue(*args
, **kwargs
):
397 Get3StateValue(self) -> int
399 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
400 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
401 the undetermined state. Raises an exceptiion when the function is
402 used with a 2-state CheckBox.
404 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
406 def Set3StateValue(*args
, **kwargs
):
408 Set3StateValue(self, int state)
410 Sets the CheckBox to the given state. The state parameter can be one
411 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
412 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
413 exception when the CheckBox is a 2-state checkbox and setting the
414 state to wx.CHK_UNDETERMINED.
416 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
418 def Is3State(*args
, **kwargs
):
420 Is3State(self) -> bool
422 Returns whether or not the CheckBox is a 3-state CheckBox.
424 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
426 def Is3rdStateAllowedForUser(*args
, **kwargs
):
428 Is3rdStateAllowedForUser(self) -> bool
430 Returns whether or not the user can set the CheckBox to the third
433 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
435 def GetClassDefaultAttributes(*args
, **kwargs
):
437 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
439 Get the default attributes for this class. This is useful if you want
440 to use the same font or colour in your own control as in a standard
441 control -- which is a much better idea than hard coding specific
442 colours or fonts which might look completely out of place on the
443 user's system, especially if it uses themes.
445 The variant parameter is only relevant under Mac currently and is
446 ignore under other platforms. Under Mac, it will change the size of
447 the returned font. See `wx.Window.SetWindowVariant` for more about
450 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
452 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
454 class CheckBoxPtr(CheckBox
):
455 def __init__(self
, this
):
457 if not hasattr(self
,"thisown"): self
.thisown
= 0
458 self
.__class
__ = CheckBox
459 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
460 CheckBoxNameStr
= cvar
.CheckBoxNameStr
462 def PreCheckBox(*args
, **kwargs
):
464 PreCheckBox() -> CheckBox
466 Precreate a CheckBox for 2-phase creation.
468 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
472 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
474 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
476 Get the default attributes for this class. This is useful if you want
477 to use the same font or colour in your own control as in a standard
478 control -- which is a much better idea than hard coding specific
479 colours or fonts which might look completely out of place on the
480 user's system, especially if it uses themes.
482 The variant parameter is only relevant under Mac currently and is
483 ignore under other platforms. Under Mac, it will change the size of
484 the returned font. See `wx.Window.SetWindowVariant` for more about
487 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
489 #---------------------------------------------------------------------------
491 class Choice(_core
.ControlWithItems
):
493 A Choice control is used to select one of a list of strings.
494 Unlike a `wx.ListBox`, only the selection is visible until the
495 user pulls down the menu of choices.
498 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
499 def __init__(self
, *args
, **kwargs
):
501 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
502 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
503 String name=ChoiceNameStr) -> Choice
505 Create and show a Choice control
507 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
508 self
.this
= newobj
.this
511 self
._setOORInfo
(self
)
513 def Create(*args
, **kwargs
):
515 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
516 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
517 String name=ChoiceNameStr) -> bool
519 Actually create the GUI Choice control for 2-phase creation
521 return _controls_
.Choice_Create(*args
, **kwargs
)
523 def GetCurrentSelection(*args
, **kwargs
):
525 GetCurrentSelection(self) -> int
527 Unlike `GetSelection` which only returns the accepted selection value,
528 i.e. the selection in the control once the user closes the dropdown
529 list, this function returns the current selection. That is, while the
530 dropdown list is shown, it returns the currently selected item in
531 it. When it is not shown, its result is the same as for the other
534 return _controls_
.Choice_GetCurrentSelection(*args
, **kwargs
)
536 def GetClassDefaultAttributes(*args
, **kwargs
):
538 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
540 Get the default attributes for this class. This is useful if you want
541 to use the same font or colour in your own control as in a standard
542 control -- which is a much better idea than hard coding specific
543 colours or fonts which might look completely out of place on the
544 user's system, especially if it uses themes.
546 The variant parameter is only relevant under Mac currently and is
547 ignore under other platforms. Under Mac, it will change the size of
548 the returned font. See `wx.Window.SetWindowVariant` for more about
551 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
553 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
555 class ChoicePtr(Choice
):
556 def __init__(self
, this
):
558 if not hasattr(self
,"thisown"): self
.thisown
= 0
559 self
.__class
__ = Choice
560 _controls_
.Choice_swigregister(ChoicePtr
)
561 ChoiceNameStr
= cvar
.ChoiceNameStr
563 def PreChoice(*args
, **kwargs
):
565 PreChoice() -> Choice
567 Precreate a Choice control for 2-phase creation.
569 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
573 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
575 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
577 Get the default attributes for this class. This is useful if you want
578 to use the same font or colour in your own control as in a standard
579 control -- which is a much better idea than hard coding specific
580 colours or fonts which might look completely out of place on the
581 user's system, especially if it uses themes.
583 The variant parameter is only relevant under Mac currently and is
584 ignore under other platforms. Under Mac, it will change the size of
585 the returned font. See `wx.Window.SetWindowVariant` for more about
588 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
590 #---------------------------------------------------------------------------
592 class ComboBox(_core
.Control
,_core
.ItemContainer
):
594 A combobox is like a combination of an edit control and a
595 listbox. It can be displayed as static list with editable or
596 read-only text field; or a drop-down list with text field.
598 A combobox permits a single selection only. Combobox items are
602 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
603 def __init__(self
, *args
, **kwargs
):
605 __init__(Window parent, int id, String value=EmptyString,
606 Point pos=DefaultPosition, Size size=DefaultSize,
607 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
608 String name=ComboBoxNameStr) -> ComboBox
610 Constructor, creates and shows a ComboBox control.
612 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
613 self
.this
= newobj
.this
616 self
._setOORInfo
(self
)
618 def Create(*args
, **kwargs
):
620 Create(Window parent, int id, String value=EmptyString,
621 Point pos=DefaultPosition, Size size=DefaultSize,
622 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
623 String name=ChoiceNameStr) -> bool
625 Actually create the GUI wxComboBox control for 2-phase creation
627 return _controls_
.ComboBox_Create(*args
, **kwargs
)
629 def GetValue(*args
, **kwargs
):
631 GetValue(self) -> String
633 Returns the current value in the combobox text field.
635 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
637 def SetValue(*args
, **kwargs
):
638 """SetValue(self, String value)"""
639 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
641 def Copy(*args
, **kwargs
):
645 Copies the selected text to the clipboard.
647 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
649 def Cut(*args
, **kwargs
):
653 Copies the selected text to the clipboard and removes the selection.
655 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
657 def Paste(*args
, **kwargs
):
661 Pastes text from the clipboard to the text field.
663 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
665 def SetInsertionPoint(*args
, **kwargs
):
667 SetInsertionPoint(self, long pos)
669 Sets the insertion point in the combobox text field.
671 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
673 def GetInsertionPoint(*args
, **kwargs
):
675 GetInsertionPoint(self) -> long
677 Returns the insertion point for the combobox's text field.
679 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
681 def GetLastPosition(*args
, **kwargs
):
683 GetLastPosition(self) -> long
685 Returns the last position in the combobox text field.
687 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
689 def Replace(*args
, **kwargs
):
691 Replace(self, long from, long to, String value)
693 Replaces the text between two positions with the given text, in the
696 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
698 def SetSelection(*args
, **kwargs
):
700 SetSelection(self, int n)
702 Sets the item at index 'n' to be the selected item.
704 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
706 def SetMark(*args
, **kwargs
):
708 SetMark(self, long from, long to)
710 Selects the text between the two positions in the combobox text field.
712 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
714 def GetCurrentSelection(*args
, **kwargs
):
716 GetCurrentSelection(self) -> int
718 Unlike `GetSelection` which only returns the accepted selection value,
719 i.e. the selection in the control once the user closes the dropdown
720 list, this function returns the current selection. That is, while the
721 dropdown list is shown, it returns the currently selected item in
722 it. When it is not shown, its result is the same as for the other
725 return _controls_
.ComboBox_GetCurrentSelection(*args
, **kwargs
)
727 def SetStringSelection(*args
, **kwargs
):
729 SetStringSelection(self, String string) -> bool
731 Select the item with the specifed string
733 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
735 def SetString(*args
, **kwargs
):
737 SetString(self, int n, String string)
739 Set the label for the n'th item (zero based) in the list.
741 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
743 def SetEditable(*args
, **kwargs
):
744 """SetEditable(self, bool editable)"""
745 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
747 def SetInsertionPointEnd(*args
, **kwargs
):
749 SetInsertionPointEnd(self)
751 Sets the insertion point at the end of the combobox text field.
753 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
755 def Remove(*args
, **kwargs
):
757 Remove(self, long from, long to)
759 Removes the text between the two positions in the combobox text field.
761 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
763 def IsEditable(*args
, **kwargs
):
765 IsEditable(self) -> bool
767 Returns True if the combo is ediatable (not read-only.)
769 return _controls_
.ComboBox_IsEditable(*args
, **kwargs
)
771 def Undo(*args
, **kwargs
):
775 Redoes the last undo in the text field. Windows only.
777 return _controls_
.ComboBox_Undo(*args
, **kwargs
)
779 def Redo(*args
, **kwargs
):
783 Undoes the last edit in the text field. Windows only.
785 return _controls_
.ComboBox_Redo(*args
, **kwargs
)
787 def SelectAll(*args
, **kwargs
):
791 Select all the text in the combo's text field.
793 return _controls_
.ComboBox_SelectAll(*args
, **kwargs
)
795 def CanCopy(*args
, **kwargs
):
797 CanCopy(self) -> bool
799 Returns True if the combobox is editable and there is a text selection
800 to copy to the clipboard. Only available on Windows.
802 return _controls_
.ComboBox_CanCopy(*args
, **kwargs
)
804 def CanCut(*args
, **kwargs
):
808 Returns True if the combobox is editable and there is a text selection
809 to copy to the clipboard. Only available on Windows.
811 return _controls_
.ComboBox_CanCut(*args
, **kwargs
)
813 def CanPaste(*args
, **kwargs
):
815 CanPaste(self) -> bool
817 Returns True if the combobox is editable and there is text on the
818 clipboard that can be pasted into the text field. Only available on
821 return _controls_
.ComboBox_CanPaste(*args
, **kwargs
)
823 def CanUndo(*args
, **kwargs
):
825 CanUndo(self) -> bool
827 Returns True if the combobox is editable and the last edit can be
828 undone. Only available on Windows.
830 return _controls_
.ComboBox_CanUndo(*args
, **kwargs
)
832 def CanRedo(*args
, **kwargs
):
834 CanRedo(self) -> bool
836 Returns True if the combobox is editable and the last undo can be
837 redone. Only available on Windows.
839 return _controls_
.ComboBox_CanRedo(*args
, **kwargs
)
841 def GetClassDefaultAttributes(*args
, **kwargs
):
843 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
845 Get the default attributes for this class. This is useful if you want
846 to use the same font or colour in your own control as in a standard
847 control -- which is a much better idea than hard coding specific
848 colours or fonts which might look completely out of place on the
849 user's system, especially if it uses themes.
851 The variant parameter is only relevant under Mac currently and is
852 ignore under other platforms. Under Mac, it will change the size of
853 the returned font. See `wx.Window.SetWindowVariant` for more about
856 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
858 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
860 class ComboBoxPtr(ComboBox
):
861 def __init__(self
, this
):
863 if not hasattr(self
,"thisown"): self
.thisown
= 0
864 self
.__class
__ = ComboBox
865 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
866 ComboBoxNameStr
= cvar
.ComboBoxNameStr
868 def PreComboBox(*args
, **kwargs
):
870 PreComboBox() -> ComboBox
872 Precreate a ComboBox control for 2-phase creation.
874 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
878 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
880 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
882 Get the default attributes for this class. This is useful if you want
883 to use the same font or colour in your own control as in a standard
884 control -- which is a much better idea than hard coding specific
885 colours or fonts which might look completely out of place on the
886 user's system, especially if it uses themes.
888 The variant parameter is only relevant under Mac currently and is
889 ignore under other platforms. Under Mac, it will change the size of
890 the returned font. See `wx.Window.SetWindowVariant` for more about
893 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
895 #---------------------------------------------------------------------------
897 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
898 GA_VERTICAL
= _controls_
.GA_VERTICAL
899 GA_SMOOTH
= _controls_
.GA_SMOOTH
900 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
901 class Gauge(_core
.Control
):
902 """Proxy of C++ Gauge class"""
904 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
905 def __init__(self
, *args
, **kwargs
):
907 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
908 Size size=DefaultSize, long style=GA_HORIZONTAL,
909 Validator validator=DefaultValidator,
910 String name=GaugeNameStr) -> Gauge
912 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
913 self
.this
= newobj
.this
916 self
._setOORInfo
(self
)
918 def Create(*args
, **kwargs
):
920 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
921 Size size=DefaultSize, long style=GA_HORIZONTAL,
922 Validator validator=DefaultValidator,
923 String name=GaugeNameStr) -> bool
925 return _controls_
.Gauge_Create(*args
, **kwargs
)
927 def SetRange(*args
, **kwargs
):
928 """SetRange(self, int range)"""
929 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
931 def GetRange(*args
, **kwargs
):
932 """GetRange(self) -> int"""
933 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
935 def SetValue(*args
, **kwargs
):
936 """SetValue(self, int pos)"""
937 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
939 def GetValue(*args
, **kwargs
):
940 """GetValue(self) -> int"""
941 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
943 def IsVertical(*args
, **kwargs
):
944 """IsVertical(self) -> bool"""
945 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
947 def SetShadowWidth(*args
, **kwargs
):
948 """SetShadowWidth(self, int w)"""
949 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
951 def GetShadowWidth(*args
, **kwargs
):
952 """GetShadowWidth(self) -> int"""
953 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
955 def SetBezelFace(*args
, **kwargs
):
956 """SetBezelFace(self, int w)"""
957 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
959 def GetBezelFace(*args
, **kwargs
):
960 """GetBezelFace(self) -> int"""
961 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
963 def GetClassDefaultAttributes(*args
, **kwargs
):
965 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
967 Get the default attributes for this class. This is useful if you want
968 to use the same font or colour in your own control as in a standard
969 control -- which is a much better idea than hard coding specific
970 colours or fonts which might look completely out of place on the
971 user's system, especially if it uses themes.
973 The variant parameter is only relevant under Mac currently and is
974 ignore under other platforms. Under Mac, it will change the size of
975 the returned font. See `wx.Window.SetWindowVariant` for more about
978 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
980 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
982 class GaugePtr(Gauge
):
983 def __init__(self
, this
):
985 if not hasattr(self
,"thisown"): self
.thisown
= 0
986 self
.__class
__ = Gauge
987 _controls_
.Gauge_swigregister(GaugePtr
)
988 GaugeNameStr
= cvar
.GaugeNameStr
990 def PreGauge(*args
, **kwargs
):
991 """PreGauge() -> Gauge"""
992 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
996 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
998 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1000 Get the default attributes for this class. This is useful if you want
1001 to use the same font or colour in your own control as in a standard
1002 control -- which is a much better idea than hard coding specific
1003 colours or fonts which might look completely out of place on the
1004 user's system, especially if it uses themes.
1006 The variant parameter is only relevant under Mac currently and is
1007 ignore under other platforms. Under Mac, it will change the size of
1008 the returned font. See `wx.Window.SetWindowVariant` for more about
1011 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
1013 #---------------------------------------------------------------------------
1015 class StaticBox(_core
.Control
):
1016 """Proxy of C++ StaticBox class"""
1018 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1019 def __init__(self
, *args
, **kwargs
):
1021 __init__(self, Window parent, int id=-1, String label=EmptyString,
1022 Point pos=DefaultPosition, Size size=DefaultSize,
1023 long style=0, String name=StaticBoxNameStr) -> StaticBox
1025 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
1026 self
.this
= newobj
.this
1029 self
._setOORInfo
(self
)
1031 def Create(*args
, **kwargs
):
1033 Create(self, Window parent, int id=-1, String label=EmptyString,
1034 Point pos=DefaultPosition, Size size=DefaultSize,
1035 long style=0, String name=StaticBoxNameStr) -> bool
1037 return _controls_
.StaticBox_Create(*args
, **kwargs
)
1039 def GetClassDefaultAttributes(*args
, **kwargs
):
1041 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1043 Get the default attributes for this class. This is useful if you want
1044 to use the same font or colour in your own control as in a standard
1045 control -- which is a much better idea than hard coding specific
1046 colours or fonts which might look completely out of place on the
1047 user's system, especially if it uses themes.
1049 The variant parameter is only relevant under Mac currently and is
1050 ignore under other platforms. Under Mac, it will change the size of
1051 the returned font. See `wx.Window.SetWindowVariant` for more about
1054 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1056 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1058 class StaticBoxPtr(StaticBox
):
1059 def __init__(self
, this
):
1061 if not hasattr(self
,"thisown"): self
.thisown
= 0
1062 self
.__class
__ = StaticBox
1063 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
1064 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
1065 StaticBoxNameStr
= cvar
.StaticBoxNameStr
1066 StaticTextNameStr
= cvar
.StaticTextNameStr
1068 def PreStaticBox(*args
, **kwargs
):
1069 """PreStaticBox() -> StaticBox"""
1070 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
1074 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
1076 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1078 Get the default attributes for this class. This is useful if you want
1079 to use the same font or colour in your own control as in a standard
1080 control -- which is a much better idea than hard coding specific
1081 colours or fonts which might look completely out of place on the
1082 user's system, especially if it uses themes.
1084 The variant parameter is only relevant under Mac currently and is
1085 ignore under other platforms. Under Mac, it will change the size of
1086 the returned font. See `wx.Window.SetWindowVariant` for more about
1089 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1091 #---------------------------------------------------------------------------
1093 class StaticLine(_core
.Control
):
1094 """Proxy of C++ StaticLine class"""
1096 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1097 def __init__(self
, *args
, **kwargs
):
1099 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1100 Size size=DefaultSize, long style=LI_HORIZONTAL,
1101 String name=StaticTextNameStr) -> StaticLine
1103 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
1104 self
.this
= newobj
.this
1107 self
._setOORInfo
(self
)
1109 def Create(*args
, **kwargs
):
1111 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1112 Size size=DefaultSize, long style=LI_HORIZONTAL,
1113 String name=StaticTextNameStr) -> bool
1115 return _controls_
.StaticLine_Create(*args
, **kwargs
)
1117 def IsVertical(*args
, **kwargs
):
1118 """IsVertical(self) -> bool"""
1119 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
1121 def GetDefaultSize(*args
, **kwargs
):
1122 """GetDefaultSize() -> int"""
1123 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1125 GetDefaultSize
= staticmethod(GetDefaultSize
)
1126 def GetClassDefaultAttributes(*args
, **kwargs
):
1128 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1130 Get the default attributes for this class. This is useful if you want
1131 to use the same font or colour in your own control as in a standard
1132 control -- which is a much better idea than hard coding specific
1133 colours or fonts which might look completely out of place on the
1134 user's system, especially if it uses themes.
1136 The variant parameter is only relevant under Mac currently and is
1137 ignore under other platforms. Under Mac, it will change the size of
1138 the returned font. See `wx.Window.SetWindowVariant` for more about
1141 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1143 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1145 class StaticLinePtr(StaticLine
):
1146 def __init__(self
, this
):
1148 if not hasattr(self
,"thisown"): self
.thisown
= 0
1149 self
.__class
__ = StaticLine
1150 _controls_
.StaticLine_swigregister(StaticLinePtr
)
1152 def PreStaticLine(*args
, **kwargs
):
1153 """PreStaticLine() -> StaticLine"""
1154 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1158 def StaticLine_GetDefaultSize(*args
, **kwargs
):
1159 """StaticLine_GetDefaultSize() -> int"""
1160 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1162 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1164 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1166 Get the default attributes for this class. This is useful if you want
1167 to use the same font or colour in your own control as in a standard
1168 control -- which is a much better idea than hard coding specific
1169 colours or fonts which might look completely out of place on the
1170 user's system, especially if it uses themes.
1172 The variant parameter is only relevant under Mac currently and is
1173 ignore under other platforms. Under Mac, it will change the size of
1174 the returned font. See `wx.Window.SetWindowVariant` for more about
1177 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1179 #---------------------------------------------------------------------------
1181 class StaticText(_core
.Control
):
1182 """Proxy of C++ StaticText class"""
1184 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1185 def __init__(self
, *args
, **kwargs
):
1187 __init__(self, Window parent, int id=-1, String label=EmptyString,
1188 Point pos=DefaultPosition, Size size=DefaultSize,
1189 long style=0, String name=StaticTextNameStr) -> StaticText
1191 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
1192 self
.this
= newobj
.this
1195 self
._setOORInfo
(self
)
1197 def Create(*args
, **kwargs
):
1199 Create(self, Window parent, int id=-1, String label=EmptyString,
1200 Point pos=DefaultPosition, Size size=DefaultSize,
1201 long style=0, String name=StaticTextNameStr) -> bool
1203 return _controls_
.StaticText_Create(*args
, **kwargs
)
1205 def Wrap(*args
, **kwargs
):
1207 Wrap(self, int width)
1209 This functions wraps the control's label so that each of its lines
1210 becomes at most ``width`` pixels wide if possible (the lines are
1211 broken at words boundaries so it might not be the case if words are
1212 too long). If ``width`` is negative, no wrapping is done.
1214 return _controls_
.StaticText_Wrap(*args
, **kwargs
)
1216 def GetClassDefaultAttributes(*args
, **kwargs
):
1218 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1220 Get the default attributes for this class. This is useful if you want
1221 to use the same font or colour in your own control as in a standard
1222 control -- which is a much better idea than hard coding specific
1223 colours or fonts which might look completely out of place on the
1224 user's system, especially if it uses themes.
1226 The variant parameter is only relevant under Mac currently and is
1227 ignore under other platforms. Under Mac, it will change the size of
1228 the returned font. See `wx.Window.SetWindowVariant` for more about
1231 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1233 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1235 class StaticTextPtr(StaticText
):
1236 def __init__(self
, this
):
1238 if not hasattr(self
,"thisown"): self
.thisown
= 0
1239 self
.__class
__ = StaticText
1240 _controls_
.StaticText_swigregister(StaticTextPtr
)
1242 def PreStaticText(*args
, **kwargs
):
1243 """PreStaticText() -> StaticText"""
1244 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1248 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1250 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1252 Get the default attributes for this class. This is useful if you want
1253 to use the same font or colour in your own control as in a standard
1254 control -- which is a much better idea than hard coding specific
1255 colours or fonts which might look completely out of place on the
1256 user's system, especially if it uses themes.
1258 The variant parameter is only relevant under Mac currently and is
1259 ignore under other platforms. Under Mac, it will change the size of
1260 the returned font. See `wx.Window.SetWindowVariant` for more about
1263 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1265 #---------------------------------------------------------------------------
1267 class StaticBitmap(_core
.Control
):
1268 """Proxy of C++ StaticBitmap class"""
1270 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1271 def __init__(self
, *args
, **kwargs
):
1273 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1274 Point pos=DefaultPosition, Size size=DefaultSize,
1275 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1277 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
1278 self
.this
= newobj
.this
1281 self
._setOORInfo
(self
)
1283 def Create(*args
, **kwargs
):
1285 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1286 Point pos=DefaultPosition, Size size=DefaultSize,
1287 long style=0, String name=StaticBitmapNameStr) -> bool
1289 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1291 def GetBitmap(*args
, **kwargs
):
1292 """GetBitmap(self) -> Bitmap"""
1293 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1295 def SetBitmap(*args
, **kwargs
):
1296 """SetBitmap(self, Bitmap bitmap)"""
1297 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1299 def SetIcon(*args
, **kwargs
):
1300 """SetIcon(self, Icon icon)"""
1301 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1303 def GetClassDefaultAttributes(*args
, **kwargs
):
1305 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1307 Get the default attributes for this class. This is useful if you want
1308 to use the same font or colour in your own control as in a standard
1309 control -- which is a much better idea than hard coding specific
1310 colours or fonts which might look completely out of place on the
1311 user's system, especially if it uses themes.
1313 The variant parameter is only relevant under Mac currently and is
1314 ignore under other platforms. Under Mac, it will change the size of
1315 the returned font. See `wx.Window.SetWindowVariant` for more about
1318 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1320 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1322 class StaticBitmapPtr(StaticBitmap
):
1323 def __init__(self
, this
):
1325 if not hasattr(self
,"thisown"): self
.thisown
= 0
1326 self
.__class
__ = StaticBitmap
1327 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
1329 def PreStaticBitmap(*args
, **kwargs
):
1330 """PreStaticBitmap() -> StaticBitmap"""
1331 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1335 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1337 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1339 Get the default attributes for this class. This is useful if you want
1340 to use the same font or colour in your own control as in a standard
1341 control -- which is a much better idea than hard coding specific
1342 colours or fonts which might look completely out of place on the
1343 user's system, especially if it uses themes.
1345 The variant parameter is only relevant under Mac currently and is
1346 ignore under other platforms. Under Mac, it will change the size of
1347 the returned font. See `wx.Window.SetWindowVariant` for more about
1350 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1352 #---------------------------------------------------------------------------
1354 class ListBox(_core
.ControlWithItems
):
1355 """Proxy of C++ ListBox class"""
1357 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1358 def __init__(self
, *args
, **kwargs
):
1360 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1361 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1362 long style=0, Validator validator=DefaultValidator,
1363 String name=ListBoxNameStr) -> ListBox
1365 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
1366 self
.this
= newobj
.this
1369 self
._setOORInfo
(self
)
1371 def Create(*args
, **kwargs
):
1373 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1374 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1375 long style=0, Validator validator=DefaultValidator,
1376 String name=ListBoxNameStr) -> bool
1378 return _controls_
.ListBox_Create(*args
, **kwargs
)
1380 def Insert(*args
, **kwargs
):
1382 Insert(self, String item, int pos, PyObject clientData=None)
1384 Insert an item into the control before the item at the ``pos`` index,
1385 optionally associating some data object with the item.
1387 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1389 def InsertItems(*args
, **kwargs
):
1390 """InsertItems(self, wxArrayString items, int pos)"""
1391 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1393 def Set(*args
, **kwargs
):
1394 """Set(self, wxArrayString items)"""
1395 return _controls_
.ListBox_Set(*args
, **kwargs
)
1397 def IsSelected(*args
, **kwargs
):
1398 """IsSelected(self, int n) -> bool"""
1399 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1401 def SetSelection(*args
, **kwargs
):
1402 """SetSelection(self, int n, bool select=True)"""
1403 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1405 def Select(*args
, **kwargs
):
1409 This is the same as `SetSelection` and exists only because it is
1410 slightly more natural for controls which support multiple selection.
1412 return _controls_
.ListBox_Select(*args
, **kwargs
)
1414 def Deselect(*args
, **kwargs
):
1415 """Deselect(self, int n)"""
1416 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1418 def DeselectAll(*args
, **kwargs
):
1419 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1420 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1422 def SetStringSelection(*args
, **kwargs
):
1423 """SetStringSelection(self, String s, bool select=True) -> bool"""
1424 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1426 def GetSelections(*args
, **kwargs
):
1427 """GetSelections(self) -> PyObject"""
1428 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1430 def SetFirstItem(*args
, **kwargs
):
1431 """SetFirstItem(self, int n)"""
1432 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1434 def SetFirstItemStr(*args
, **kwargs
):
1435 """SetFirstItemStr(self, String s)"""
1436 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1438 def EnsureVisible(*args
, **kwargs
):
1439 """EnsureVisible(self, int n)"""
1440 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1442 def AppendAndEnsureVisible(*args
, **kwargs
):
1443 """AppendAndEnsureVisible(self, String s)"""
1444 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1446 def IsSorted(*args
, **kwargs
):
1447 """IsSorted(self) -> bool"""
1448 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1450 def SetItemForegroundColour(*args
, **kwargs
):
1451 """SetItemForegroundColour(self, int item, Colour c)"""
1452 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1454 def SetItemBackgroundColour(*args
, **kwargs
):
1455 """SetItemBackgroundColour(self, int item, Colour c)"""
1456 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1458 def SetItemFont(*args
, **kwargs
):
1459 """SetItemFont(self, int item, Font f)"""
1460 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1462 def GetClassDefaultAttributes(*args
, **kwargs
):
1464 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1466 Get the default attributes for this class. This is useful if you want
1467 to use the same font or colour in your own control as in a standard
1468 control -- which is a much better idea than hard coding specific
1469 colours or fonts which might look completely out of place on the
1470 user's system, especially if it uses themes.
1472 The variant parameter is only relevant under Mac currently and is
1473 ignore under other platforms. Under Mac, it will change the size of
1474 the returned font. See `wx.Window.SetWindowVariant` for more about
1477 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1479 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1481 class ListBoxPtr(ListBox
):
1482 def __init__(self
, this
):
1484 if not hasattr(self
,"thisown"): self
.thisown
= 0
1485 self
.__class
__ = ListBox
1486 _controls_
.ListBox_swigregister(ListBoxPtr
)
1487 ListBoxNameStr
= cvar
.ListBoxNameStr
1489 def PreListBox(*args
, **kwargs
):
1490 """PreListBox() -> ListBox"""
1491 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1495 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1497 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1499 Get the default attributes for this class. This is useful if you want
1500 to use the same font or colour in your own control as in a standard
1501 control -- which is a much better idea than hard coding specific
1502 colours or fonts which might look completely out of place on the
1503 user's system, especially if it uses themes.
1505 The variant parameter is only relevant under Mac currently and is
1506 ignore under other platforms. Under Mac, it will change the size of
1507 the returned font. See `wx.Window.SetWindowVariant` for more about
1510 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1512 #---------------------------------------------------------------------------
1514 class CheckListBox(ListBox
):
1515 """Proxy of C++ CheckListBox class"""
1517 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1518 def __init__(self
, *args
, **kwargs
):
1520 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1521 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1522 long style=0, Validator validator=DefaultValidator,
1523 String name=ListBoxNameStr) -> CheckListBox
1525 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1526 self
.this
= newobj
.this
1529 self
._setOORInfo
(self
)
1531 def Create(*args
, **kwargs
):
1533 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1534 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1535 long style=0, Validator validator=DefaultValidator,
1536 String name=ListBoxNameStr) -> bool
1538 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1540 def IsChecked(*args
, **kwargs
):
1541 """IsChecked(self, int index) -> bool"""
1542 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1544 def Check(*args
, **kwargs
):
1545 """Check(self, int index, int check=True)"""
1546 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1548 def HitTest(*args
, **kwargs
):
1550 HitTest(self, Point pt) -> int
1552 Test where the given (in client coords) point lies
1554 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1556 def HitTestXY(*args
, **kwargs
):
1558 HitTestXY(self, int x, int y) -> int
1560 Test where the given (in client coords) point lies
1562 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1565 class CheckListBoxPtr(CheckListBox
):
1566 def __init__(self
, this
):
1568 if not hasattr(self
,"thisown"): self
.thisown
= 0
1569 self
.__class
__ = CheckListBox
1570 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1572 def PreCheckListBox(*args
, **kwargs
):
1573 """PreCheckListBox() -> CheckListBox"""
1574 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1578 #---------------------------------------------------------------------------
1580 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1581 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1582 TE_READONLY
= _controls_
.TE_READONLY
1583 TE_MULTILINE
= _controls_
.TE_MULTILINE
1584 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1585 TE_LEFT
= _controls_
.TE_LEFT
1586 TE_CENTER
= _controls_
.TE_CENTER
1587 TE_RIGHT
= _controls_
.TE_RIGHT
1588 TE_CENTRE
= _controls_
.TE_CENTRE
1589 TE_RICH
= _controls_
.TE_RICH
1590 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1591 TE_PASSWORD
= _controls_
.TE_PASSWORD
1592 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1593 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1594 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1595 TE_CHARWRAP
= _controls_
.TE_CHARWRAP
1596 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1597 TE_BESTWRAP
= _controls_
.TE_BESTWRAP
1598 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1599 TE_RICH2
= _controls_
.TE_RICH2
1600 TE_CAPITALIZE
= _controls_
.TE_CAPITALIZE
1601 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1602 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1603 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1604 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1605 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1606 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1607 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1608 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1609 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1610 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1611 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1612 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1613 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1614 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1615 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1616 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1617 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1618 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1619 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1620 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1621 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1622 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1623 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1624 OutOfRangeTextCoord
= _controls_
.OutOfRangeTextCoord
1625 InvalidTextCoord
= _controls_
.InvalidTextCoord
1626 class TextAttr(object):
1627 """Proxy of C++ TextAttr class"""
1629 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1630 def __init__(self
, *args
, **kwargs
):
1632 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1633 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1635 newobj
= _controls_
.new_TextAttr(*args
, **kwargs
)
1636 self
.this
= newobj
.this
1639 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1642 if self
.thisown
: destroy(self
)
1645 def Init(*args
, **kwargs
):
1647 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1649 def SetTextColour(*args
, **kwargs
):
1650 """SetTextColour(self, Colour colText)"""
1651 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1653 def SetBackgroundColour(*args
, **kwargs
):
1654 """SetBackgroundColour(self, Colour colBack)"""
1655 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1657 def SetFont(*args
, **kwargs
):
1658 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1659 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1661 def SetAlignment(*args
, **kwargs
):
1662 """SetAlignment(self, int alignment)"""
1663 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1665 def SetTabs(*args
, **kwargs
):
1666 """SetTabs(self, wxArrayInt tabs)"""
1667 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1669 def SetLeftIndent(*args
, **kwargs
):
1670 """SetLeftIndent(self, int indent, int subIndent=0)"""
1671 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1673 def SetRightIndent(*args
, **kwargs
):
1674 """SetRightIndent(self, int indent)"""
1675 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1677 def SetFlags(*args
, **kwargs
):
1678 """SetFlags(self, long flags)"""
1679 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1681 def HasTextColour(*args
, **kwargs
):
1682 """HasTextColour(self) -> bool"""
1683 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1685 def HasBackgroundColour(*args
, **kwargs
):
1686 """HasBackgroundColour(self) -> bool"""
1687 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1689 def HasFont(*args
, **kwargs
):
1690 """HasFont(self) -> bool"""
1691 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1693 def HasAlignment(*args
, **kwargs
):
1694 """HasAlignment(self) -> bool"""
1695 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1697 def HasTabs(*args
, **kwargs
):
1698 """HasTabs(self) -> bool"""
1699 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1701 def HasLeftIndent(*args
, **kwargs
):
1702 """HasLeftIndent(self) -> bool"""
1703 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1705 def HasRightIndent(*args
, **kwargs
):
1706 """HasRightIndent(self) -> bool"""
1707 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1709 def HasFlag(*args
, **kwargs
):
1710 """HasFlag(self, long flag) -> bool"""
1711 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1713 def GetTextColour(*args
, **kwargs
):
1714 """GetTextColour(self) -> Colour"""
1715 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1717 def GetBackgroundColour(*args
, **kwargs
):
1718 """GetBackgroundColour(self) -> Colour"""
1719 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1721 def GetFont(*args
, **kwargs
):
1722 """GetFont(self) -> Font"""
1723 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1725 def GetAlignment(*args
, **kwargs
):
1726 """GetAlignment(self) -> int"""
1727 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1729 def GetTabs(*args
, **kwargs
):
1730 """GetTabs(self) -> wxArrayInt"""
1731 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1733 def GetLeftIndent(*args
, **kwargs
):
1734 """GetLeftIndent(self) -> long"""
1735 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1737 def GetLeftSubIndent(*args
, **kwargs
):
1738 """GetLeftSubIndent(self) -> long"""
1739 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1741 def GetRightIndent(*args
, **kwargs
):
1742 """GetRightIndent(self) -> long"""
1743 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1745 def GetFlags(*args
, **kwargs
):
1746 """GetFlags(self) -> long"""
1747 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1749 def IsDefault(*args
, **kwargs
):
1750 """IsDefault(self) -> bool"""
1751 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1753 def Combine(*args
, **kwargs
):
1754 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1755 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1757 Combine
= staticmethod(Combine
)
1759 class TextAttrPtr(TextAttr
):
1760 def __init__(self
, this
):
1762 if not hasattr(self
,"thisown"): self
.thisown
= 0
1763 self
.__class
__ = TextAttr
1764 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1765 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1767 def TextAttr_Combine(*args
, **kwargs
):
1768 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1769 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1771 class TextCtrl(_core
.Control
):
1772 """Proxy of C++ TextCtrl class"""
1774 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1775 def __init__(self
, *args
, **kwargs
):
1777 __init__(self, Window parent, int id=-1, String value=EmptyString,
1778 Point pos=DefaultPosition, Size size=DefaultSize,
1779 long style=0, Validator validator=DefaultValidator,
1780 String name=TextCtrlNameStr) -> TextCtrl
1782 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1783 self
.this
= newobj
.this
1786 self
._setOORInfo
(self
)
1788 def Create(*args
, **kwargs
):
1790 Create(self, Window parent, int id=-1, String value=EmptyString,
1791 Point pos=DefaultPosition, Size size=DefaultSize,
1792 long style=0, Validator validator=DefaultValidator,
1793 String name=TextCtrlNameStr) -> bool
1795 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1797 def GetValue(*args
, **kwargs
):
1798 """GetValue(self) -> String"""
1799 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1801 def SetValue(*args
, **kwargs
):
1802 """SetValue(self, String value)"""
1803 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1805 def GetRange(*args
, **kwargs
):
1806 """GetRange(self, long from, long to) -> String"""
1807 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1809 def GetLineLength(*args
, **kwargs
):
1810 """GetLineLength(self, long lineNo) -> int"""
1811 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1813 def GetLineText(*args
, **kwargs
):
1814 """GetLineText(self, long lineNo) -> String"""
1815 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1817 def GetNumberOfLines(*args
, **kwargs
):
1818 """GetNumberOfLines(self) -> int"""
1819 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1821 def IsModified(*args
, **kwargs
):
1822 """IsModified(self) -> bool"""
1823 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1825 def IsEditable(*args
, **kwargs
):
1826 """IsEditable(self) -> bool"""
1827 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1829 def IsSingleLine(*args
, **kwargs
):
1830 """IsSingleLine(self) -> bool"""
1831 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1833 def IsMultiLine(*args
, **kwargs
):
1834 """IsMultiLine(self) -> bool"""
1835 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1837 def GetSelection(*args
, **kwargs
):
1839 GetSelection() -> (from, to)
1841 If the return values from and to are the same, there is no selection.
1843 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1845 def GetStringSelection(*args
, **kwargs
):
1846 """GetStringSelection(self) -> String"""
1847 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1849 def Clear(*args
, **kwargs
):
1851 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1853 def Replace(*args
, **kwargs
):
1854 """Replace(self, long from, long to, String value)"""
1855 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1857 def Remove(*args
, **kwargs
):
1858 """Remove(self, long from, long to)"""
1859 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1861 def LoadFile(*args
, **kwargs
):
1862 """LoadFile(self, String file) -> bool"""
1863 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1865 def SaveFile(*args
, **kwargs
):
1866 """SaveFile(self, String file=EmptyString) -> bool"""
1867 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1869 def MarkDirty(*args
, **kwargs
):
1870 """MarkDirty(self)"""
1871 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1873 def DiscardEdits(*args
, **kwargs
):
1874 """DiscardEdits(self)"""
1875 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1877 def SetMaxLength(*args
, **kwargs
):
1878 """SetMaxLength(self, unsigned long len)"""
1879 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1881 def WriteText(*args
, **kwargs
):
1882 """WriteText(self, String text)"""
1883 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1885 def AppendText(*args
, **kwargs
):
1886 """AppendText(self, String text)"""
1887 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1889 def EmulateKeyPress(*args
, **kwargs
):
1890 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1891 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1893 def SetStyle(*args
, **kwargs
):
1894 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1895 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1897 def GetStyle(*args
, **kwargs
):
1898 """GetStyle(self, long position, TextAttr style) -> bool"""
1899 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1901 def SetDefaultStyle(*args
, **kwargs
):
1902 """SetDefaultStyle(self, TextAttr style) -> bool"""
1903 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1905 def GetDefaultStyle(*args
, **kwargs
):
1906 """GetDefaultStyle(self) -> TextAttr"""
1907 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1909 def XYToPosition(*args
, **kwargs
):
1910 """XYToPosition(self, long x, long y) -> long"""
1911 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1913 def PositionToXY(*args
, **kwargs
):
1914 """PositionToXY(long pos) -> (x, y)"""
1915 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1917 def ShowPosition(*args
, **kwargs
):
1918 """ShowPosition(self, long pos)"""
1919 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1921 def HitTest(*args
, **kwargs
):
1923 HitTest(Point pt) -> (result, col, row)
1925 Find the row, col coresponding to the character at the point given in
1926 pixels. NB: pt is in device coords but is not adjusted for the client
1927 area origin nor scrolling.
1929 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1931 def HitTestPos(*args
, **kwargs
):
1933 HitTestPos(Point pt) -> (result, position)
1935 Find the character position in the text coresponding to the point
1936 given in pixels. NB: pt is in device coords but is not adjusted for
1937 the client area origin nor scrolling.
1939 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1941 def Copy(*args
, **kwargs
):
1943 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1945 def Cut(*args
, **kwargs
):
1947 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1949 def Paste(*args
, **kwargs
):
1951 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1953 def CanCopy(*args
, **kwargs
):
1954 """CanCopy(self) -> bool"""
1955 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1957 def CanCut(*args
, **kwargs
):
1958 """CanCut(self) -> bool"""
1959 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1961 def CanPaste(*args
, **kwargs
):
1962 """CanPaste(self) -> bool"""
1963 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1965 def Undo(*args
, **kwargs
):
1967 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1969 def Redo(*args
, **kwargs
):
1971 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1973 def CanUndo(*args
, **kwargs
):
1974 """CanUndo(self) -> bool"""
1975 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1977 def CanRedo(*args
, **kwargs
):
1978 """CanRedo(self) -> bool"""
1979 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1981 def SetInsertionPoint(*args
, **kwargs
):
1982 """SetInsertionPoint(self, long pos)"""
1983 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1985 def SetInsertionPointEnd(*args
, **kwargs
):
1986 """SetInsertionPointEnd(self)"""
1987 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1989 def GetInsertionPoint(*args
, **kwargs
):
1990 """GetInsertionPoint(self) -> long"""
1991 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1993 def GetLastPosition(*args
, **kwargs
):
1994 """GetLastPosition(self) -> long"""
1995 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1997 def SetSelection(*args
, **kwargs
):
1998 """SetSelection(self, long from, long to)"""
1999 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
2001 def SelectAll(*args
, **kwargs
):
2002 """SelectAll(self)"""
2003 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
2005 def SetEditable(*args
, **kwargs
):
2006 """SetEditable(self, bool editable)"""
2007 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
2009 def write(*args
, **kwargs
):
2010 """write(self, String text)"""
2011 return _controls_
.TextCtrl_write(*args
, **kwargs
)
2013 def GetString(*args
, **kwargs
):
2014 """GetString(self, long from, long to) -> String"""
2015 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
2017 def GetClassDefaultAttributes(*args
, **kwargs
):
2019 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2021 Get the default attributes for this class. This is useful if you want
2022 to use the same font or colour in your own control as in a standard
2023 control -- which is a much better idea than hard coding specific
2024 colours or fonts which might look completely out of place on the
2025 user's system, especially if it uses themes.
2027 The variant parameter is only relevant under Mac currently and is
2028 ignore under other platforms. Under Mac, it will change the size of
2029 the returned font. See `wx.Window.SetWindowVariant` for more about
2032 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2034 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2036 class TextCtrlPtr(TextCtrl
):
2037 def __init__(self
, this
):
2039 if not hasattr(self
,"thisown"): self
.thisown
= 0
2040 self
.__class
__ = TextCtrl
2041 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
2043 def PreTextCtrl(*args
, **kwargs
):
2044 """PreTextCtrl() -> TextCtrl"""
2045 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
2049 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2051 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2053 Get the default attributes for this class. This is useful if you want
2054 to use the same font or colour in your own control as in a standard
2055 control -- which is a much better idea than hard coding specific
2056 colours or fonts which might look completely out of place on the
2057 user's system, especially if it uses themes.
2059 The variant parameter is only relevant under Mac currently and is
2060 ignore under other platforms. Under Mac, it will change the size of
2061 the returned font. See `wx.Window.SetWindowVariant` for more about
2064 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2066 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
2067 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
2068 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
2069 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
2070 class TextUrlEvent(_core
.CommandEvent
):
2071 """Proxy of C++ TextUrlEvent class"""
2073 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2074 def __init__(self
, *args
, **kwargs
):
2075 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
2076 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
2077 self
.this
= newobj
.this
2080 def GetMouseEvent(*args
, **kwargs
):
2081 """GetMouseEvent(self) -> MouseEvent"""
2082 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
2084 def GetURLStart(*args
, **kwargs
):
2085 """GetURLStart(self) -> long"""
2086 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
2088 def GetURLEnd(*args
, **kwargs
):
2089 """GetURLEnd(self) -> long"""
2090 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
2093 class TextUrlEventPtr(TextUrlEvent
):
2094 def __init__(self
, this
):
2096 if not hasattr(self
,"thisown"): self
.thisown
= 0
2097 self
.__class
__ = TextUrlEvent
2098 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
2100 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
2101 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
2102 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
2103 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
2105 #---------------------------------------------------------------------------
2107 class ScrollBar(_core
.Control
):
2108 """Proxy of C++ ScrollBar class"""
2110 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2111 def __init__(self
, *args
, **kwargs
):
2113 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2114 Size size=DefaultSize, long style=SB_HORIZONTAL,
2115 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
2117 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
2118 self
.this
= newobj
.this
2121 self
._setOORInfo
(self
)
2123 def Create(*args
, **kwargs
):
2125 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2126 Size size=DefaultSize, long style=SB_HORIZONTAL,
2127 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2129 Do the 2nd phase and create the GUI control.
2131 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2133 def GetThumbPosition(*args
, **kwargs
):
2134 """GetThumbPosition(self) -> int"""
2135 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2137 def GetThumbSize(*args
, **kwargs
):
2138 """GetThumbSize(self) -> int"""
2139 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2141 GetThumbLength
= GetThumbSize
2142 def GetPageSize(*args
, **kwargs
):
2143 """GetPageSize(self) -> int"""
2144 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2146 def GetRange(*args
, **kwargs
):
2147 """GetRange(self) -> int"""
2148 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2150 def IsVertical(*args
, **kwargs
):
2151 """IsVertical(self) -> bool"""
2152 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2154 def SetThumbPosition(*args
, **kwargs
):
2155 """SetThumbPosition(self, int viewStart)"""
2156 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2158 def SetScrollbar(*args
, **kwargs
):
2160 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
2163 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
2165 def GetClassDefaultAttributes(*args
, **kwargs
):
2167 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2169 Get the default attributes for this class. This is useful if you want
2170 to use the same font or colour in your own control as in a standard
2171 control -- which is a much better idea than hard coding specific
2172 colours or fonts which might look completely out of place on the
2173 user's system, especially if it uses themes.
2175 The variant parameter is only relevant under Mac currently and is
2176 ignore under other platforms. Under Mac, it will change the size of
2177 the returned font. See `wx.Window.SetWindowVariant` for more about
2180 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2182 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2184 class ScrollBarPtr(ScrollBar
):
2185 def __init__(self
, this
):
2187 if not hasattr(self
,"thisown"): self
.thisown
= 0
2188 self
.__class
__ = ScrollBar
2189 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
2190 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2192 def PreScrollBar(*args
, **kwargs
):
2193 """PreScrollBar() -> ScrollBar"""
2194 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2198 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2200 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2202 Get the default attributes for this class. This is useful if you want
2203 to use the same font or colour in your own control as in a standard
2204 control -- which is a much better idea than hard coding specific
2205 colours or fonts which might look completely out of place on the
2206 user's system, especially if it uses themes.
2208 The variant parameter is only relevant under Mac currently and is
2209 ignore under other platforms. Under Mac, it will change the size of
2210 the returned font. See `wx.Window.SetWindowVariant` for more about
2213 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2215 #---------------------------------------------------------------------------
2217 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2218 SP_VERTICAL
= _controls_
.SP_VERTICAL
2219 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2220 SP_WRAP
= _controls_
.SP_WRAP
2221 class SpinButton(_core
.Control
):
2222 """Proxy of C++ SpinButton class"""
2224 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2225 def __init__(self
, *args
, **kwargs
):
2227 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2228 Size size=DefaultSize, long style=SP_HORIZONTAL,
2229 String name=SPIN_BUTTON_NAME) -> SpinButton
2231 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
2232 self
.this
= newobj
.this
2235 self
._setOORInfo
(self
)
2237 def Create(*args
, **kwargs
):
2239 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2240 Size size=DefaultSize, long style=SP_HORIZONTAL,
2241 String name=SPIN_BUTTON_NAME) -> bool
2243 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2245 def GetValue(*args
, **kwargs
):
2246 """GetValue(self) -> int"""
2247 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2249 def GetMin(*args
, **kwargs
):
2250 """GetMin(self) -> int"""
2251 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2253 def GetMax(*args
, **kwargs
):
2254 """GetMax(self) -> int"""
2255 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2257 def SetValue(*args
, **kwargs
):
2258 """SetValue(self, int val)"""
2259 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2261 def SetMin(*args
, **kwargs
):
2262 """SetMin(self, int minVal)"""
2263 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2265 def SetMax(*args
, **kwargs
):
2266 """SetMax(self, int maxVal)"""
2267 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2269 def SetRange(*args
, **kwargs
):
2270 """SetRange(self, int minVal, int maxVal)"""
2271 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2273 def IsVertical(*args
, **kwargs
):
2274 """IsVertical(self) -> bool"""
2275 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2277 def GetClassDefaultAttributes(*args
, **kwargs
):
2279 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 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2296 class SpinButtonPtr(SpinButton
):
2297 def __init__(self
, this
):
2299 if not hasattr(self
,"thisown"): self
.thisown
= 0
2300 self
.__class
__ = SpinButton
2301 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
2302 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2303 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2305 def PreSpinButton(*args
, **kwargs
):
2306 """PreSpinButton() -> SpinButton"""
2307 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2311 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2313 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2315 Get the default attributes for this class. This is useful if you want
2316 to use the same font or colour in your own control as in a standard
2317 control -- which is a much better idea than hard coding specific
2318 colours or fonts which might look completely out of place on the
2319 user's system, especially if it uses themes.
2321 The variant parameter is only relevant under Mac currently and is
2322 ignore under other platforms. Under Mac, it will change the size of
2323 the returned font. See `wx.Window.SetWindowVariant` for more about
2326 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2328 class SpinCtrl(_core
.Control
):
2329 """Proxy of C++ SpinCtrl class"""
2331 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2332 def __init__(self
, *args
, **kwargs
):
2334 __init__(self, Window parent, int id=-1, String value=EmptyString,
2335 Point pos=DefaultPosition, Size size=DefaultSize,
2336 long style=SP_ARROW_KEYS, int min=0, int max=100,
2337 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2339 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
2340 self
.this
= newobj
.this
2343 self
._setOORInfo
(self
)
2345 def Create(*args
, **kwargs
):
2347 Create(self, Window parent, int id=-1, String value=EmptyString,
2348 Point pos=DefaultPosition, Size size=DefaultSize,
2349 long style=SP_ARROW_KEYS, int min=0, int max=100,
2350 int initial=0, String name=SpinCtrlNameStr) -> bool
2352 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2354 def GetValue(*args
, **kwargs
):
2355 """GetValue(self) -> int"""
2356 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2358 def SetValue(*args
, **kwargs
):
2359 """SetValue(self, int value)"""
2360 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2362 def SetValueString(*args
, **kwargs
):
2363 """SetValueString(self, String text)"""
2364 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2366 def SetRange(*args
, **kwargs
):
2367 """SetRange(self, int minVal, int maxVal)"""
2368 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2370 def GetMin(*args
, **kwargs
):
2371 """GetMin(self) -> int"""
2372 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2374 def GetMax(*args
, **kwargs
):
2375 """GetMax(self) -> int"""
2376 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2378 def SetSelection(*args
, **kwargs
):
2379 """SetSelection(self, long from, long to)"""
2380 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2382 def GetClassDefaultAttributes(*args
, **kwargs
):
2384 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2386 Get the default attributes for this class. This is useful if you want
2387 to use the same font or colour in your own control as in a standard
2388 control -- which is a much better idea than hard coding specific
2389 colours or fonts which might look completely out of place on the
2390 user's system, especially if it uses themes.
2392 The variant parameter is only relevant under Mac currently and is
2393 ignore under other platforms. Under Mac, it will change the size of
2394 the returned font. See `wx.Window.SetWindowVariant` for more about
2397 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2399 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2401 class SpinCtrlPtr(SpinCtrl
):
2402 def __init__(self
, this
):
2404 if not hasattr(self
,"thisown"): self
.thisown
= 0
2405 self
.__class
__ = SpinCtrl
2406 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
2408 def PreSpinCtrl(*args
, **kwargs
):
2409 """PreSpinCtrl() -> SpinCtrl"""
2410 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2414 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2416 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2418 Get the default attributes for this class. This is useful if you want
2419 to use the same font or colour in your own control as in a standard
2420 control -- which is a much better idea than hard coding specific
2421 colours or fonts which might look completely out of place on the
2422 user's system, especially if it uses themes.
2424 The variant parameter is only relevant under Mac currently and is
2425 ignore under other platforms. Under Mac, it will change the size of
2426 the returned font. See `wx.Window.SetWindowVariant` for more about
2429 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2431 class SpinEvent(_core
.NotifyEvent
):
2432 """Proxy of C++ SpinEvent class"""
2434 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2435 def __init__(self
, *args
, **kwargs
):
2436 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2437 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
2438 self
.this
= newobj
.this
2441 def GetPosition(*args
, **kwargs
):
2442 """GetPosition(self) -> int"""
2443 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2445 def SetPosition(*args
, **kwargs
):
2446 """SetPosition(self, int pos)"""
2447 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2450 class SpinEventPtr(SpinEvent
):
2451 def __init__(self
, this
):
2453 if not hasattr(self
,"thisown"): self
.thisown
= 0
2454 self
.__class
__ = SpinEvent
2455 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
2457 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2458 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2459 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2460 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2461 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2463 #---------------------------------------------------------------------------
2465 class RadioBox(_core
.Control
):
2466 """Proxy of C++ RadioBox class"""
2468 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2469 def __init__(self
, *args
, **kwargs
):
2471 __init__(self, Window parent, int id=-1, String label=EmptyString,
2472 Point pos=DefaultPosition, Size size=DefaultSize,
2473 wxArrayString choices=wxPyEmptyStringArray,
2474 int majorDimension=0, long style=RA_HORIZONTAL,
2475 Validator validator=DefaultValidator,
2476 String name=RadioBoxNameStr) -> RadioBox
2478 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2479 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
2480 self
.this
= newobj
.this
2483 self
._setOORInfo
(self
)
2485 def Create(*args
, **kwargs
):
2487 Create(self, Window parent, int id=-1, String label=EmptyString,
2488 Point pos=DefaultPosition, Size size=DefaultSize,
2489 wxArrayString choices=wxPyEmptyStringArray,
2490 int majorDimension=0, long style=RA_HORIZONTAL,
2491 Validator validator=DefaultValidator,
2492 String name=RadioBoxNameStr) -> bool
2494 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2496 def SetSelection(*args
, **kwargs
):
2497 """SetSelection(self, int n)"""
2498 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2500 def GetSelection(*args
, **kwargs
):
2501 """GetSelection(self) -> int"""
2502 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2504 def GetStringSelection(*args
, **kwargs
):
2505 """GetStringSelection(self) -> String"""
2506 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2508 def SetStringSelection(*args
, **kwargs
):
2509 """SetStringSelection(self, String s) -> bool"""
2510 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2512 def GetCount(*args
, **kwargs
):
2513 """GetCount(self) -> int"""
2514 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2516 def FindString(*args
, **kwargs
):
2517 """FindString(self, String s) -> int"""
2518 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2520 def GetString(*args
, **kwargs
):
2521 """GetString(self, int n) -> String"""
2522 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2524 def SetString(*args
, **kwargs
):
2525 """SetString(self, int n, String label)"""
2526 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2528 GetItemLabel
= GetString
2529 SetItemLabel
= SetString
2530 def EnableItem(*args
, **kwargs
):
2531 """EnableItem(self, int n, bool enable=True)"""
2532 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2534 def ShowItem(*args
, **kwargs
):
2535 """ShowItem(self, int n, bool show=True)"""
2536 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2538 def GetColumnCount(*args
, **kwargs
):
2539 """GetColumnCount(self) -> int"""
2540 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2542 def GetRowCount(*args
, **kwargs
):
2543 """GetRowCount(self) -> int"""
2544 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2546 def GetNextItem(*args
, **kwargs
):
2547 """GetNextItem(self, int item, int dir, long style) -> int"""
2548 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2550 def GetClassDefaultAttributes(*args
, **kwargs
):
2552 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 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2569 class RadioBoxPtr(RadioBox
):
2570 def __init__(self
, this
):
2572 if not hasattr(self
,"thisown"): self
.thisown
= 0
2573 self
.__class
__ = RadioBox
2574 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2575 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2576 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2578 def PreRadioBox(*args
, **kwargs
):
2579 """PreRadioBox() -> RadioBox"""
2580 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2584 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2586 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2588 Get the default attributes for this class. This is useful if you want
2589 to use the same font or colour in your own control as in a standard
2590 control -- which is a much better idea than hard coding specific
2591 colours or fonts which might look completely out of place on the
2592 user's system, especially if it uses themes.
2594 The variant parameter is only relevant under Mac currently and is
2595 ignore under other platforms. Under Mac, it will change the size of
2596 the returned font. See `wx.Window.SetWindowVariant` for more about
2599 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2601 #---------------------------------------------------------------------------
2603 class RadioButton(_core
.Control
):
2604 """Proxy of C++ RadioButton class"""
2606 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2607 def __init__(self
, *args
, **kwargs
):
2609 __init__(self, Window parent, int id=-1, String label=EmptyString,
2610 Point pos=DefaultPosition, Size size=DefaultSize,
2611 long style=0, Validator validator=DefaultValidator,
2612 String name=RadioButtonNameStr) -> RadioButton
2614 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2615 self
.this
= newobj
.this
2618 self
._setOORInfo
(self
)
2620 def Create(*args
, **kwargs
):
2622 Create(self, Window parent, int id=-1, String label=EmptyString,
2623 Point pos=DefaultPosition, Size size=DefaultSize,
2624 long style=0, Validator validator=DefaultValidator,
2625 String name=RadioButtonNameStr) -> bool
2627 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2629 def GetValue(*args
, **kwargs
):
2630 """GetValue(self) -> bool"""
2631 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2633 def SetValue(*args
, **kwargs
):
2634 """SetValue(self, bool value)"""
2635 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2637 def GetClassDefaultAttributes(*args
, **kwargs
):
2639 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2641 Get the default attributes for this class. This is useful if you want
2642 to use the same font or colour in your own control as in a standard
2643 control -- which is a much better idea than hard coding specific
2644 colours or fonts which might look completely out of place on the
2645 user's system, especially if it uses themes.
2647 The variant parameter is only relevant under Mac currently and is
2648 ignore under other platforms. Under Mac, it will change the size of
2649 the returned font. See `wx.Window.SetWindowVariant` for more about
2652 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2654 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2656 class RadioButtonPtr(RadioButton
):
2657 def __init__(self
, this
):
2659 if not hasattr(self
,"thisown"): self
.thisown
= 0
2660 self
.__class
__ = RadioButton
2661 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2663 def PreRadioButton(*args
, **kwargs
):
2664 """PreRadioButton() -> RadioButton"""
2665 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2669 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2671 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2673 Get the default attributes for this class. This is useful if you want
2674 to use the same font or colour in your own control as in a standard
2675 control -- which is a much better idea than hard coding specific
2676 colours or fonts which might look completely out of place on the
2677 user's system, especially if it uses themes.
2679 The variant parameter is only relevant under Mac currently and is
2680 ignore under other platforms. Under Mac, it will change the size of
2681 the returned font. See `wx.Window.SetWindowVariant` for more about
2684 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2686 #---------------------------------------------------------------------------
2688 SL_HORIZONTAL
= _controls_
.SL_HORIZONTAL
2689 SL_VERTICAL
= _controls_
.SL_VERTICAL
2690 SL_TICKS
= _controls_
.SL_TICKS
2691 SL_AUTOTICKS
= _controls_
.SL_AUTOTICKS
2692 SL_LABELS
= _controls_
.SL_LABELS
2693 SL_LEFT
= _controls_
.SL_LEFT
2694 SL_TOP
= _controls_
.SL_TOP
2695 SL_RIGHT
= _controls_
.SL_RIGHT
2696 SL_BOTTOM
= _controls_
.SL_BOTTOM
2697 SL_BOTH
= _controls_
.SL_BOTH
2698 SL_SELRANGE
= _controls_
.SL_SELRANGE
2699 SL_INVERSE
= _controls_
.SL_INVERSE
2700 class Slider(_core
.Control
):
2701 """Proxy of C++ Slider class"""
2703 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2704 def __init__(self
, *args
, **kwargs
):
2706 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2707 int maxValue=100, Point pos=DefaultPosition,
2708 Size size=DefaultSize, long style=SL_HORIZONTAL,
2709 Validator validator=DefaultValidator,
2710 String name=SliderNameStr) -> Slider
2712 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2713 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2714 self
.this
= newobj
.this
2717 self
._setOORInfo
(self
)
2719 def Create(*args
, **kwargs
):
2721 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2722 int maxValue=100, Point pos=DefaultPosition,
2723 Size size=DefaultSize, long style=SL_HORIZONTAL,
2724 Validator validator=DefaultValidator,
2725 String name=SliderNameStr) -> bool
2727 return _controls_
.Slider_Create(*args
, **kwargs
)
2729 def GetValue(*args
, **kwargs
):
2730 """GetValue(self) -> int"""
2731 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2733 def SetValue(*args
, **kwargs
):
2734 """SetValue(self, int value)"""
2735 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2737 def SetRange(*args
, **kwargs
):
2738 """SetRange(self, int minValue, int maxValue)"""
2739 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2741 def GetMin(*args
, **kwargs
):
2742 """GetMin(self) -> int"""
2743 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2745 def GetMax(*args
, **kwargs
):
2746 """GetMax(self) -> int"""
2747 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2749 def SetMin(*args
, **kwargs
):
2750 """SetMin(self, int minValue)"""
2751 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2753 def SetMax(*args
, **kwargs
):
2754 """SetMax(self, int maxValue)"""
2755 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2757 def SetLineSize(*args
, **kwargs
):
2758 """SetLineSize(self, int lineSize)"""
2759 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2761 def SetPageSize(*args
, **kwargs
):
2762 """SetPageSize(self, int pageSize)"""
2763 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2765 def GetLineSize(*args
, **kwargs
):
2766 """GetLineSize(self) -> int"""
2767 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2769 def GetPageSize(*args
, **kwargs
):
2770 """GetPageSize(self) -> int"""
2771 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2773 def SetThumbLength(*args
, **kwargs
):
2774 """SetThumbLength(self, int lenPixels)"""
2775 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2777 def GetThumbLength(*args
, **kwargs
):
2778 """GetThumbLength(self) -> int"""
2779 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2781 def SetTickFreq(*args
, **kwargs
):
2782 """SetTickFreq(self, int n, int pos=1)"""
2783 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2785 def GetTickFreq(*args
, **kwargs
):
2786 """GetTickFreq(self) -> int"""
2787 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2789 def ClearTicks(*args
, **kwargs
):
2790 """ClearTicks(self)"""
2791 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2793 def SetTick(*args
, **kwargs
):
2794 """SetTick(self, int tickPos)"""
2795 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2797 def ClearSel(*args
, **kwargs
):
2798 """ClearSel(self)"""
2799 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2801 def GetSelEnd(*args
, **kwargs
):
2802 """GetSelEnd(self) -> int"""
2803 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2805 def GetSelStart(*args
, **kwargs
):
2806 """GetSelStart(self) -> int"""
2807 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2809 def SetSelection(*args
, **kwargs
):
2810 """SetSelection(self, int min, int max)"""
2811 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2813 def GetClassDefaultAttributes(*args
, **kwargs
):
2815 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2817 Get the default attributes for this class. This is useful if you want
2818 to use the same font or colour in your own control as in a standard
2819 control -- which is a much better idea than hard coding specific
2820 colours or fonts which might look completely out of place on the
2821 user's system, especially if it uses themes.
2823 The variant parameter is only relevant under Mac currently and is
2824 ignore under other platforms. Under Mac, it will change the size of
2825 the returned font. See `wx.Window.SetWindowVariant` for more about
2828 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2830 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2832 class SliderPtr(Slider
):
2833 def __init__(self
, this
):
2835 if not hasattr(self
,"thisown"): self
.thisown
= 0
2836 self
.__class
__ = Slider
2837 _controls_
.Slider_swigregister(SliderPtr
)
2838 SliderNameStr
= cvar
.SliderNameStr
2840 def PreSlider(*args
, **kwargs
):
2841 """PreSlider() -> Slider"""
2842 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2846 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2848 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2850 Get the default attributes for this class. This is useful if you want
2851 to use the same font or colour in your own control as in a standard
2852 control -- which is a much better idea than hard coding specific
2853 colours or fonts which might look completely out of place on the
2854 user's system, especially if it uses themes.
2856 The variant parameter is only relevant under Mac currently and is
2857 ignore under other platforms. Under Mac, it will change the size of
2858 the returned font. See `wx.Window.SetWindowVariant` for more about
2861 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2863 #---------------------------------------------------------------------------
2865 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2866 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2868 class ToggleButton(_core
.Control
):
2869 """Proxy of C++ ToggleButton class"""
2871 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2872 def __init__(self
, *args
, **kwargs
):
2874 __init__(self, Window parent, int id=-1, String label=EmptyString,
2875 Point pos=DefaultPosition, Size size=DefaultSize,
2876 long style=0, Validator validator=DefaultValidator,
2877 String name=ToggleButtonNameStr) -> ToggleButton
2879 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2880 self
.this
= newobj
.this
2883 self
._setOORInfo
(self
)
2885 def Create(*args
, **kwargs
):
2887 Create(self, Window parent, int id=-1, String label=EmptyString,
2888 Point pos=DefaultPosition, Size size=DefaultSize,
2889 long style=0, Validator validator=DefaultValidator,
2890 String name=ToggleButtonNameStr) -> bool
2892 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2894 def SetValue(*args
, **kwargs
):
2895 """SetValue(self, bool value)"""
2896 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2898 def GetValue(*args
, **kwargs
):
2899 """GetValue(self) -> bool"""
2900 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2902 def SetLabel(*args
, **kwargs
):
2904 SetLabel(self, String label)
2906 Sets the item's text.
2908 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2910 def GetClassDefaultAttributes(*args
, **kwargs
):
2912 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2914 Get the default attributes for this class. This is useful if you want
2915 to use the same font or colour in your own control as in a standard
2916 control -- which is a much better idea than hard coding specific
2917 colours or fonts which might look completely out of place on the
2918 user's system, especially if it uses themes.
2920 The variant parameter is only relevant under Mac currently and is
2921 ignore under other platforms. Under Mac, it will change the size of
2922 the returned font. See `wx.Window.SetWindowVariant` for more about
2925 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2927 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2929 class ToggleButtonPtr(ToggleButton
):
2930 def __init__(self
, this
):
2932 if not hasattr(self
,"thisown"): self
.thisown
= 0
2933 self
.__class
__ = ToggleButton
2934 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2935 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2937 def PreToggleButton(*args
, **kwargs
):
2938 """PreToggleButton() -> ToggleButton"""
2939 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2943 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2945 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2947 Get the default attributes for this class. This is useful if you want
2948 to use the same font or colour in your own control as in a standard
2949 control -- which is a much better idea than hard coding specific
2950 colours or fonts which might look completely out of place on the
2951 user's system, especially if it uses themes.
2953 The variant parameter is only relevant under Mac currently and is
2954 ignore under other platforms. Under Mac, it will change the size of
2955 the returned font. See `wx.Window.SetWindowVariant` for more about
2958 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2960 #---------------------------------------------------------------------------
2962 BK_DEFAULT
= _controls_
.BK_DEFAULT
2963 BK_TOP
= _controls_
.BK_TOP
2964 BK_BOTTOM
= _controls_
.BK_BOTTOM
2965 BK_LEFT
= _controls_
.BK_LEFT
2966 BK_RIGHT
= _controls_
.BK_RIGHT
2967 BK_ALIGN_MASK
= _controls_
.BK_ALIGN_MASK
2968 class BookCtrlBase(_core
.Control
):
2969 """Proxy of C++ BookCtrlBase class"""
2970 def __init__(self
): raise RuntimeError, "No constructor defined"
2972 return "<%s.%s; proxy of C++ wxBookCtrlBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2973 def GetPageCount(*args
, **kwargs
):
2974 """GetPageCount(self) -> size_t"""
2975 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2977 def GetPage(*args
, **kwargs
):
2978 """GetPage(self, size_t n) -> Window"""
2979 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2981 def GetCurrentPage(*args
, **kwargs
):
2982 """GetCurrentPage(self) -> Window"""
2983 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2985 def GetSelection(*args
, **kwargs
):
2986 """GetSelection(self) -> int"""
2987 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2989 def SetPageText(*args
, **kwargs
):
2990 """SetPageText(self, size_t n, String strText) -> bool"""
2991 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2993 def GetPageText(*args
, **kwargs
):
2994 """GetPageText(self, size_t n) -> String"""
2995 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2997 def SetImageList(*args
, **kwargs
):
2998 """SetImageList(self, ImageList imageList)"""
2999 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
3001 def AssignImageList(*args
, **kwargs
):
3002 """AssignImageList(self, ImageList imageList)"""
3003 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
3005 def GetImageList(*args
, **kwargs
):
3006 """GetImageList(self) -> ImageList"""
3007 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
3009 def GetPageImage(*args
, **kwargs
):
3010 """GetPageImage(self, size_t n) -> int"""
3011 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
3013 def SetPageImage(*args
, **kwargs
):
3014 """SetPageImage(self, size_t n, int imageId) -> bool"""
3015 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
3017 def SetPageSize(*args
, **kwargs
):
3018 """SetPageSize(self, Size size)"""
3019 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
3021 def CalcSizeFromPage(*args
, **kwargs
):
3022 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3023 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
3025 def GetInternalBorder(*args
, **kwargs
):
3026 """GetInternalBorder(self) -> unsigned int"""
3027 return _controls_
.BookCtrlBase_GetInternalBorder(*args
, **kwargs
)
3029 def SetInternalBorder(*args
, **kwargs
):
3030 """SetInternalBorder(self, unsigned int internalBorder)"""
3031 return _controls_
.BookCtrlBase_SetInternalBorder(*args
, **kwargs
)
3033 def IsVertical(*args
, **kwargs
):
3034 """IsVertical(self) -> bool"""
3035 return _controls_
.BookCtrlBase_IsVertical(*args
, **kwargs
)
3037 def SetFitToCurrentPage(*args
, **kwargs
):
3038 """SetFitToCurrentPage(self, bool fit)"""
3039 return _controls_
.BookCtrlBase_SetFitToCurrentPage(*args
, **kwargs
)
3041 def GetFitToCurrentPage(*args
, **kwargs
):
3042 """GetFitToCurrentPage(self) -> bool"""
3043 return _controls_
.BookCtrlBase_GetFitToCurrentPage(*args
, **kwargs
)
3045 def DeletePage(*args
, **kwargs
):
3046 """DeletePage(self, size_t n) -> bool"""
3047 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
3049 def RemovePage(*args
, **kwargs
):
3050 """RemovePage(self, size_t n) -> bool"""
3051 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
3053 def DeleteAllPages(*args
, **kwargs
):
3054 """DeleteAllPages(self) -> bool"""
3055 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
3057 def AddPage(*args
, **kwargs
):
3058 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
3059 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
3061 def InsertPage(*args
, **kwargs
):
3063 InsertPage(self, size_t n, Window page, String text, bool select=False,
3064 int imageId=-1) -> bool
3066 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
3068 def SetSelection(*args
, **kwargs
):
3069 """SetSelection(self, size_t n) -> int"""
3070 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
3072 def AdvanceSelection(*args
, **kwargs
):
3073 """AdvanceSelection(self, bool forward=True)"""
3074 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
3076 def GetClassDefaultAttributes(*args
, **kwargs
):
3078 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3080 Get the default attributes for this class. This is useful if you want
3081 to use the same font or colour in your own control as in a standard
3082 control -- which is a much better idea than hard coding specific
3083 colours or fonts which might look completely out of place on the
3084 user's system, especially if it uses themes.
3086 The variant parameter is only relevant under Mac currently and is
3087 ignore under other platforms. Under Mac, it will change the size of
3088 the returned font. See `wx.Window.SetWindowVariant` for more about
3091 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3093 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3095 class BookCtrlBasePtr(BookCtrlBase
):
3096 def __init__(self
, this
):
3098 if not hasattr(self
,"thisown"): self
.thisown
= 0
3099 self
.__class
__ = BookCtrlBase
3100 _controls_
.BookCtrlBase_swigregister(BookCtrlBasePtr
)
3101 NotebookNameStr
= cvar
.NotebookNameStr
3103 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
3105 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3107 Get the default attributes for this class. This is useful if you want
3108 to use the same font or colour in your own control as in a standard
3109 control -- which is a much better idea than hard coding specific
3110 colours or fonts which might look completely out of place on the
3111 user's system, especially if it uses themes.
3113 The variant parameter is only relevant under Mac currently and is
3114 ignore under other platforms. Under Mac, it will change the size of
3115 the returned font. See `wx.Window.SetWindowVariant` for more about
3118 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3120 class BookCtrlBaseEvent(_core
.NotifyEvent
):
3121 """Proxy of C++ BookCtrlBaseEvent class"""
3123 return "<%s.%s; proxy of C++ wxBookCtrlBaseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3124 def __init__(self
, *args
, **kwargs
):
3126 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3127 int nOldSel=-1) -> BookCtrlBaseEvent
3129 newobj
= _controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
)
3130 self
.this
= newobj
.this
3133 def GetSelection(*args
, **kwargs
):
3135 GetSelection(self) -> int
3137 Returns item index for a listbox or choice selection event (not valid
3140 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
3142 def SetSelection(*args
, **kwargs
):
3143 """SetSelection(self, int nSel)"""
3144 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
3146 def GetOldSelection(*args
, **kwargs
):
3147 """GetOldSelection(self) -> int"""
3148 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
3150 def SetOldSelection(*args
, **kwargs
):
3151 """SetOldSelection(self, int nOldSel)"""
3152 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
3155 class BookCtrlBaseEventPtr(BookCtrlBaseEvent
):
3156 def __init__(self
, this
):
3158 if not hasattr(self
,"thisown"): self
.thisown
= 0
3159 self
.__class
__ = BookCtrlBaseEvent
3160 _controls_
.BookCtrlBaseEvent_swigregister(BookCtrlBaseEventPtr
)
3162 #---------------------------------------------------------------------------
3164 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
3165 NB_TOP
= _controls_
.NB_TOP
3166 NB_LEFT
= _controls_
.NB_LEFT
3167 NB_RIGHT
= _controls_
.NB_RIGHT
3168 NB_BOTTOM
= _controls_
.NB_BOTTOM
3169 NB_MULTILINE
= _controls_
.NB_MULTILINE
3170 NB_NOPAGETHEME
= _controls_
.NB_NOPAGETHEME
3171 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
3172 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
3173 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
3174 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
3175 class Notebook(BookCtrlBase
):
3176 """Proxy of C++ Notebook class"""
3178 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3179 def __init__(self
, *args
, **kwargs
):
3181 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3182 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
3184 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
3185 self
.this
= newobj
.this
3188 self
._setOORInfo
(self
)
3190 def Create(*args
, **kwargs
):
3192 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3193 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
3195 return _controls_
.Notebook_Create(*args
, **kwargs
)
3197 def GetRowCount(*args
, **kwargs
):
3198 """GetRowCount(self) -> int"""
3199 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3201 def SetPadding(*args
, **kwargs
):
3202 """SetPadding(self, Size padding)"""
3203 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3205 def SetTabSize(*args
, **kwargs
):
3206 """SetTabSize(self, Size sz)"""
3207 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3209 def HitTest(*args
, **kwargs
):
3211 HitTest(Point pt) -> (tab, where)
3213 Returns the tab which is hit, and flags indicating where using
3214 wx.NB_HITTEST flags.
3216 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3218 def CalcSizeFromPage(*args
, **kwargs
):
3219 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3220 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
3222 def GetThemeBackgroundColour(*args
, **kwargs
):
3223 """GetThemeBackgroundColour(self) -> Colour"""
3224 return _controls_
.Notebook_GetThemeBackgroundColour(*args
, **kwargs
)
3226 def GetClassDefaultAttributes(*args
, **kwargs
):
3228 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3230 Get the default attributes for this class. This is useful if you want
3231 to use the same font or colour in your own control as in a standard
3232 control -- which is a much better idea than hard coding specific
3233 colours or fonts which might look completely out of place on the
3234 user's system, especially if it uses themes.
3236 The variant parameter is only relevant under Mac currently and is
3237 ignore under other platforms. Under Mac, it will change the size of
3238 the returned font. See `wx.Window.SetWindowVariant` for more about
3241 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3243 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3245 class NotebookPtr(Notebook
):
3246 def __init__(self
, this
):
3248 if not hasattr(self
,"thisown"): self
.thisown
= 0
3249 self
.__class
__ = Notebook
3250 _controls_
.Notebook_swigregister(NotebookPtr
)
3252 def PreNotebook(*args
, **kwargs
):
3253 """PreNotebook() -> Notebook"""
3254 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3258 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3260 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3262 Get the default attributes for this class. This is useful if you want
3263 to use the same font or colour in your own control as in a standard
3264 control -- which is a much better idea than hard coding specific
3265 colours or fonts which might look completely out of place on the
3266 user's system, especially if it uses themes.
3268 The variant parameter is only relevant under Mac currently and is
3269 ignore under other platforms. Under Mac, it will change the size of
3270 the returned font. See `wx.Window.SetWindowVariant` for more about
3273 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3275 class NotebookEvent(BookCtrlBaseEvent
):
3276 """Proxy of C++ NotebookEvent class"""
3278 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3279 def __init__(self
, *args
, **kwargs
):
3281 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3282 int nOldSel=-1) -> NotebookEvent
3284 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3285 self
.this
= newobj
.this
3289 class NotebookEventPtr(NotebookEvent
):
3290 def __init__(self
, this
):
3292 if not hasattr(self
,"thisown"): self
.thisown
= 0
3293 self
.__class
__ = NotebookEvent
3294 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3296 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3297 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3299 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3300 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3302 #----------------------------------------------------------------------------
3304 class NotebookPage(wx
.Panel
):
3306 There is an old (and apparently unsolvable) bug when placing a
3307 window with a nonstandard background colour in a wx.Notebook on
3308 wxGTK1, as the notbooks's background colour would always be used
3309 when the window is refreshed. The solution is to place a panel in
3310 the notbook and the coloured window on the panel, sized to cover
3311 the panel. This simple class does that for you, just put an
3312 instance of this in the notebook and make your regular window a
3313 child of this one and it will handle the resize for you.
3315 def __init__(self
, parent
, id=-1,
3316 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3317 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3318 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3320 self
.Bind(wx
.EVT_SIZE
, self
.OnSize
)
3322 def OnSize(self
, evt
):
3323 if self
.child
is None:
3324 children
= self
.GetChildren()
3326 self
.child
= children
[0]
3328 self
.child
.SetPosition((0,0))
3329 self
.child
.SetSize(self
.GetSize())
3332 #---------------------------------------------------------------------------
3334 LB_DEFAULT
= _controls_
.LB_DEFAULT
3335 LB_TOP
= _controls_
.LB_TOP
3336 LB_BOTTOM
= _controls_
.LB_BOTTOM
3337 LB_LEFT
= _controls_
.LB_LEFT
3338 LB_RIGHT
= _controls_
.LB_RIGHT
3339 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3340 class Listbook(BookCtrlBase
):
3341 """Proxy of C++ Listbook class"""
3343 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3344 def __init__(self
, *args
, **kwargs
):
3346 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3347 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3349 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3350 self
.this
= newobj
.this
3353 self
._setOORInfo
(self
)
3355 def Create(*args
, **kwargs
):
3357 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3358 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3360 return _controls_
.Listbook_Create(*args
, **kwargs
)
3362 def GetListView(*args
, **kwargs
):
3363 """GetListView(self) -> ListView"""
3364 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3367 class ListbookPtr(Listbook
):
3368 def __init__(self
, this
):
3370 if not hasattr(self
,"thisown"): self
.thisown
= 0
3371 self
.__class
__ = Listbook
3372 _controls_
.Listbook_swigregister(ListbookPtr
)
3374 def PreListbook(*args
, **kwargs
):
3375 """PreListbook() -> Listbook"""
3376 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3380 class ListbookEvent(BookCtrlBaseEvent
):
3381 """Proxy of C++ ListbookEvent class"""
3383 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3384 def __init__(self
, *args
, **kwargs
):
3386 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3387 int nOldSel=-1) -> ListbookEvent
3389 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3390 self
.this
= newobj
.this
3394 class ListbookEventPtr(ListbookEvent
):
3395 def __init__(self
, this
):
3397 if not hasattr(self
,"thisown"): self
.thisown
= 0
3398 self
.__class
__ = ListbookEvent
3399 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3401 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3402 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3403 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3404 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3406 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3407 CHB_TOP
= _controls_
.CHB_TOP
3408 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3409 CHB_LEFT
= _controls_
.CHB_LEFT
3410 CHB_RIGHT
= _controls_
.CHB_RIGHT
3411 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3412 class Choicebook(BookCtrlBase
):
3413 """Proxy of C++ Choicebook class"""
3415 return "<%s.%s; proxy of C++ wxChoicebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3416 def __init__(self
, *args
, **kwargs
):
3418 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3419 long style=0, String name=EmptyString) -> Choicebook
3421 newobj
= _controls_
.new_Choicebook(*args
, **kwargs
)
3422 self
.this
= newobj
.this
3425 self
._setOORInfo
(self
)
3427 def Create(*args
, **kwargs
):
3429 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3430 long style=0, String name=EmptyString) -> bool
3432 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3434 def GetChoiceCtrl(*args
, **kwargs
):
3435 """GetChoiceCtrl(self) -> Choice"""
3436 return _controls_
.Choicebook_GetChoiceCtrl(*args
, **kwargs
)
3438 def DeleteAllPages(*args
, **kwargs
):
3439 """DeleteAllPages(self) -> bool"""
3440 return _controls_
.Choicebook_DeleteAllPages(*args
, **kwargs
)
3443 class ChoicebookPtr(Choicebook
):
3444 def __init__(self
, this
):
3446 if not hasattr(self
,"thisown"): self
.thisown
= 0
3447 self
.__class
__ = Choicebook
3448 _controls_
.Choicebook_swigregister(ChoicebookPtr
)
3450 def PreChoicebook(*args
, **kwargs
):
3451 """PreChoicebook() -> Choicebook"""
3452 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3456 class ChoicebookEvent(BookCtrlBaseEvent
):
3457 """Proxy of C++ ChoicebookEvent class"""
3459 return "<%s.%s; proxy of C++ wxChoicebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3460 def __init__(self
, *args
, **kwargs
):
3462 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3463 int nOldSel=-1) -> ChoicebookEvent
3465 newobj
= _controls_
.new_ChoicebookEvent(*args
, **kwargs
)
3466 self
.this
= newobj
.this
3470 class ChoicebookEventPtr(ChoicebookEvent
):
3471 def __init__(self
, this
):
3473 if not hasattr(self
,"thisown"): self
.thisown
= 0
3474 self
.__class
__ = ChoicebookEvent
3475 _controls_
.ChoicebookEvent_swigregister(ChoicebookEventPtr
)
3477 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3478 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3479 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3480 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3482 #---------------------------------------------------------------------------
3484 class Treebook(BookCtrlBase
):
3485 """Proxy of C++ Treebook class"""
3487 return "<%s.%s; proxy of C++ wxTreebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3488 def __init__(self
, *args
, **kwargs
):
3490 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3491 long style=BK_DEFAULT,
3492 String name=EmptyString) -> Treebook
3494 newobj
= _controls_
.new_Treebook(*args
, **kwargs
)
3495 self
.this
= newobj
.this
3498 self
._setOORInfo
(self
)
3500 def Create(*args
, **kwargs
):
3502 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3503 long style=BK_DEFAULT,
3504 String name=EmptyString) -> bool
3506 return _controls_
.Treebook_Create(*args
, **kwargs
)
3508 def InsertPage(*args
, **kwargs
):
3510 InsertPage(self, size_t pos, Window page, String text, bool select=False,
3511 int imageId=NOT_FOUND) -> bool
3513 return _controls_
.Treebook_InsertPage(*args
, **kwargs
)
3515 def InsertSubPage(*args
, **kwargs
):
3517 InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
3518 int imageId=NOT_FOUND) -> bool
3520 return _controls_
.Treebook_InsertSubPage(*args
, **kwargs
)
3522 def AddPage(*args
, **kwargs
):
3523 """AddPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3524 return _controls_
.Treebook_AddPage(*args
, **kwargs
)
3526 def AddSubPage(*args
, **kwargs
):
3527 """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3528 return _controls_
.Treebook_AddSubPage(*args
, **kwargs
)
3530 def DeletePage(*args
, **kwargs
):
3531 """DeletePage(self, size_t pos) -> bool"""
3532 return _controls_
.Treebook_DeletePage(*args
, **kwargs
)
3534 def IsNodeExpanded(*args
, **kwargs
):
3535 """IsNodeExpanded(self, size_t pos) -> bool"""
3536 return _controls_
.Treebook_IsNodeExpanded(*args
, **kwargs
)
3538 def ExpandNode(*args
, **kwargs
):
3539 """ExpandNode(self, size_t pos, bool expand=True) -> bool"""
3540 return _controls_
.Treebook_ExpandNode(*args
, **kwargs
)
3542 def CollapseNode(*args
, **kwargs
):
3543 """CollapseNode(self, size_t pos) -> bool"""
3544 return _controls_
.Treebook_CollapseNode(*args
, **kwargs
)
3546 def GetPageParent(*args
, **kwargs
):
3547 """GetPageParent(self, size_t pos) -> int"""
3548 return _controls_
.Treebook_GetPageParent(*args
, **kwargs
)
3550 def GetTreeCtrl(*args
, **kwargs
):
3551 """GetTreeCtrl(self) -> wxTreeCtrl"""
3552 return _controls_
.Treebook_GetTreeCtrl(*args
, **kwargs
)
3555 class TreebookPtr(Treebook
):
3556 def __init__(self
, this
):
3558 if not hasattr(self
,"thisown"): self
.thisown
= 0
3559 self
.__class
__ = Treebook
3560 _controls_
.Treebook_swigregister(TreebookPtr
)
3562 def PreTreebook(*args
, **kwargs
):
3563 """PreTreebook() -> Treebook"""
3564 val
= _controls_
.new_PreTreebook(*args
, **kwargs
)
3568 class TreebookEvent(BookCtrlBaseEvent
):
3569 """Proxy of C++ TreebookEvent class"""
3571 return "<%s.%s; proxy of C++ wxTreebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3572 def __init__(self
, *args
, **kwargs
):
3574 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3575 int nOldSel=NOT_FOUND) -> TreebookEvent
3577 newobj
= _controls_
.new_TreebookEvent(*args
, **kwargs
)
3578 self
.this
= newobj
.this
3582 class TreebookEventPtr(TreebookEvent
):
3583 def __init__(self
, this
):
3585 if not hasattr(self
,"thisown"): self
.thisown
= 0
3586 self
.__class
__ = TreebookEvent
3587 _controls_
.TreebookEvent_swigregister(TreebookEventPtr
)
3589 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
3590 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
3591 wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
3592 wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
3593 EVT_TREEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
, 1 )
3594 EVT_TREEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
, 1)
3595 EVT_TREEBOOK_NODE_COLLAPSED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
, 1 )
3596 EVT_TREEBOOK_NODE_EXPANDED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
, 1 )
3598 #---------------------------------------------------------------------------
3600 class Toolbook(BookCtrlBase
):
3601 """Proxy of C++ Toolbook class"""
3603 return "<%s.%s; proxy of C++ wxToolbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3604 def __init__(self
, *args
, **kwargs
):
3606 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3607 long style=BK_DEFAULT,
3608 String name=EmptyString) -> Toolbook
3610 newobj
= _controls_
.new_Toolbook(*args
, **kwargs
)
3611 self
.this
= newobj
.this
3614 self
._setOORInfo
(self
)
3616 def Create(*args
, **kwargs
):
3618 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3619 long style=0, String name=wxEmptyString) -> bool
3621 return _controls_
.Toolbook_Create(*args
, **kwargs
)
3623 def GetToolBar(*args
, **kwargs
):
3624 """GetToolBar(self) -> ToolBarBase"""
3625 return _controls_
.Toolbook_GetToolBar(*args
, **kwargs
)
3627 def Realize(*args
, **kwargs
):
3629 return _controls_
.Toolbook_Realize(*args
, **kwargs
)
3632 class ToolbookPtr(Toolbook
):
3633 def __init__(self
, this
):
3635 if not hasattr(self
,"thisown"): self
.thisown
= 0
3636 self
.__class
__ = Toolbook
3637 _controls_
.Toolbook_swigregister(ToolbookPtr
)
3639 def PreToolbook(*args
, **kwargs
):
3640 """PreToolbook() -> Toolbook"""
3641 val
= _controls_
.new_PreToolbook(*args
, **kwargs
)
3645 class ToolbookEvent(BookCtrlBaseEvent
):
3646 """Proxy of C++ ToolbookEvent class"""
3648 return "<%s.%s; proxy of C++ wxToolbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3649 def __init__(self
, *args
, **kwargs
):
3651 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3652 int nOldSel=NOT_FOUND) -> ToolbookEvent
3654 newobj
= _controls_
.new_ToolbookEvent(*args
, **kwargs
)
3655 self
.this
= newobj
.this
3659 class ToolbookEventPtr(ToolbookEvent
):
3660 def __init__(self
, this
):
3662 if not hasattr(self
,"thisown"): self
.thisown
= 0
3663 self
.__class
__ = ToolbookEvent
3664 _controls_
.ToolbookEvent_swigregister(ToolbookEventPtr
)
3666 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
3667 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
3668 EVT_TOOLBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
, 1)
3669 EVT_TOOLBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
, 1)
3671 #---------------------------------------------------------------------------
3673 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3674 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3675 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3676 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3677 TB_VERTICAL
= _controls_
.TB_VERTICAL
3678 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3679 TB_FLAT
= _controls_
.TB_FLAT
3680 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3681 TB_NOICONS
= _controls_
.TB_NOICONS
3682 TB_TEXT
= _controls_
.TB_TEXT
3683 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3684 TB_NOALIGN
= _controls_
.TB_NOALIGN
3685 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3686 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3687 class ToolBarToolBase(_core
.Object
):
3688 """Proxy of C++ ToolBarToolBase class"""
3689 def __init__(self
): raise RuntimeError, "No constructor defined"
3691 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3692 def GetId(*args
, **kwargs
):
3693 """GetId(self) -> int"""
3694 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3696 def GetControl(*args
, **kwargs
):
3697 """GetControl(self) -> Control"""
3698 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3700 def GetToolBar(*args
, **kwargs
):
3701 """GetToolBar(self) -> ToolBarBase"""
3702 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3704 def IsButton(*args
, **kwargs
):
3705 """IsButton(self) -> int"""
3706 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3708 def IsControl(*args
, **kwargs
):
3709 """IsControl(self) -> int"""
3710 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3712 def IsSeparator(*args
, **kwargs
):
3713 """IsSeparator(self) -> int"""
3714 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3716 def GetStyle(*args
, **kwargs
):
3717 """GetStyle(self) -> int"""
3718 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3720 def GetKind(*args
, **kwargs
):
3721 """GetKind(self) -> int"""
3722 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3724 def IsEnabled(*args
, **kwargs
):
3725 """IsEnabled(self) -> bool"""
3726 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3728 def IsToggled(*args
, **kwargs
):
3729 """IsToggled(self) -> bool"""
3730 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3732 def CanBeToggled(*args
, **kwargs
):
3733 """CanBeToggled(self) -> bool"""
3734 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3736 def GetNormalBitmap(*args
, **kwargs
):
3737 """GetNormalBitmap(self) -> Bitmap"""
3738 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3740 def GetDisabledBitmap(*args
, **kwargs
):
3741 """GetDisabledBitmap(self) -> Bitmap"""
3742 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3744 def GetBitmap(*args
, **kwargs
):
3745 """GetBitmap(self) -> Bitmap"""
3746 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3748 def GetLabel(*args
, **kwargs
):
3749 """GetLabel(self) -> String"""
3750 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3752 def GetShortHelp(*args
, **kwargs
):
3753 """GetShortHelp(self) -> String"""
3754 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3756 def GetLongHelp(*args
, **kwargs
):
3757 """GetLongHelp(self) -> String"""
3758 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3760 def Enable(*args
, **kwargs
):
3761 """Enable(self, bool enable) -> bool"""
3762 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3764 def Toggle(*args
, **kwargs
):
3766 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3768 def SetToggle(*args
, **kwargs
):
3769 """SetToggle(self, bool toggle) -> bool"""
3770 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3772 def SetShortHelp(*args
, **kwargs
):
3773 """SetShortHelp(self, String help) -> bool"""
3774 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3776 def SetLongHelp(*args
, **kwargs
):
3777 """SetLongHelp(self, String help) -> bool"""
3778 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3780 def SetNormalBitmap(*args
, **kwargs
):
3781 """SetNormalBitmap(self, Bitmap bmp)"""
3782 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3784 def SetDisabledBitmap(*args
, **kwargs
):
3785 """SetDisabledBitmap(self, Bitmap bmp)"""
3786 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3788 def SetLabel(*args
, **kwargs
):
3789 """SetLabel(self, String label)"""
3790 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3792 def Detach(*args
, **kwargs
):
3794 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3796 def Attach(*args
, **kwargs
):
3797 """Attach(self, ToolBarBase tbar)"""
3798 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3800 def GetClientData(*args
, **kwargs
):
3801 """GetClientData(self) -> PyObject"""
3802 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3804 def SetClientData(*args
, **kwargs
):
3805 """SetClientData(self, PyObject clientData)"""
3806 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3808 GetBitmap1
= GetNormalBitmap
3809 GetBitmap2
= GetDisabledBitmap
3810 SetBitmap1
= SetNormalBitmap
3811 SetBitmap2
= SetDisabledBitmap
3814 class ToolBarToolBasePtr(ToolBarToolBase
):
3815 def __init__(self
, this
):
3817 if not hasattr(self
,"thisown"): self
.thisown
= 0
3818 self
.__class
__ = ToolBarToolBase
3819 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3821 class ToolBarBase(_core
.Control
):
3822 """Proxy of C++ ToolBarBase class"""
3823 def __init__(self
): raise RuntimeError, "No constructor defined"
3825 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3826 def DoAddTool(*args
, **kwargs
):
3828 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3829 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3830 String longHelp=EmptyString,
3831 PyObject clientData=None) -> ToolBarToolBase
3833 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3835 def DoInsertTool(*args
, **kwargs
):
3837 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3838 int kind=ITEM_NORMAL,
3839 String shortHelp=EmptyString, String longHelp=EmptyString,
3840 PyObject clientData=None) -> ToolBarToolBase
3842 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3844 # These match the original Add methods for this class, kept for
3845 # backwards compatibility with versions < 2.3.3.
3848 def AddTool(self
, id, bitmap
,
3849 pushedBitmap
= wx
.NullBitmap
,
3852 shortHelpString
= '',
3853 longHelpString
= '') :
3854 '''Old style method to add a tool to the toolbar.'''
3855 kind
= wx
.ITEM_NORMAL
3856 if isToggle
: kind
= wx
.ITEM_CHECK
3857 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3858 shortHelpString
, longHelpString
, clientData
)
3860 def AddSimpleTool(self
, id, bitmap
,
3861 shortHelpString
= '',
3862 longHelpString
= '',
3864 '''Old style method to add a tool to the toolbar.'''
3865 kind
= wx
.ITEM_NORMAL
3866 if isToggle
: kind
= wx
.ITEM_CHECK
3867 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3868 shortHelpString
, longHelpString
, None)
3870 def InsertTool(self
, pos
, id, bitmap
,
3871 pushedBitmap
= wx
.NullBitmap
,
3874 shortHelpString
= '',
3875 longHelpString
= ''):
3876 '''Old style method to insert a tool in the toolbar.'''
3877 kind
= wx
.ITEM_NORMAL
3878 if isToggle
: kind
= wx
.ITEM_CHECK
3879 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3880 shortHelpString
, longHelpString
, clientData
)
3882 def InsertSimpleTool(self
, pos
, id, bitmap
,
3883 shortHelpString
= '',
3884 longHelpString
= '',
3886 '''Old style method to insert a tool in the toolbar.'''
3887 kind
= wx
.ITEM_NORMAL
3888 if isToggle
: kind
= wx
.ITEM_CHECK
3889 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3890 shortHelpString
, longHelpString
, None)
3893 # The following are the new toolbar Add methods starting with
3894 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3895 # able to keep backwards compatibility with using the above
3896 # methods. Eventually these should migrate to be the methods used
3897 # primarily and lose the 'Label' in the name...
3899 def AddLabelTool(self
, id, label
, bitmap
,
3900 bmpDisabled
= wx
.NullBitmap
,
3901 kind
= wx
.ITEM_NORMAL
,
3902 shortHelp
= '', longHelp
= '',
3905 The full AddTool() function.
3907 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3908 is created and used as the disabled image.
3910 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3911 shortHelp
, longHelp
, clientData
)
3914 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3915 bmpDisabled
= wx
.NullBitmap
,
3916 kind
= wx
.ITEM_NORMAL
,
3917 shortHelp
= '', longHelp
= '',
3920 Insert the new tool at the given position, if pos == GetToolsCount(), it
3921 is equivalent to AddTool()
3923 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3924 shortHelp
, longHelp
, clientData
)
3926 def AddCheckLabelTool(self
, id, label
, bitmap
,
3927 bmpDisabled
= wx
.NullBitmap
,
3928 shortHelp
= '', longHelp
= '',
3930 '''Add a check tool, i.e. a tool which can be toggled'''
3931 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3932 shortHelp
, longHelp
, clientData
)
3934 def AddRadioLabelTool(self
, id, label
, bitmap
,
3935 bmpDisabled
= wx
.NullBitmap
,
3936 shortHelp
= '', longHelp
= '',
3939 Add a radio tool, i.e. a tool which can be toggled and releases any
3940 other toggled radio tools in the same group when it happens
3942 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3943 shortHelp
, longHelp
, clientData
)
3946 # For consistency with the backwards compatible methods above, here are
3947 # some non-'Label' versions of the Check and Radio methods
3949 def AddCheckTool(self
, id, bitmap
,
3950 bmpDisabled
= wx
.NullBitmap
,
3951 shortHelp
= '', longHelp
= '',
3953 '''Add a check tool, i.e. a tool which can be toggled'''
3954 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3955 shortHelp
, longHelp
, clientData
)
3957 def AddRadioTool(self
, id, bitmap
,
3958 bmpDisabled
= wx
.NullBitmap
,
3959 shortHelp
= '', longHelp
= '',
3962 Add a radio tool, i.e. a tool which can be toggled and releases any
3963 other toggled radio tools in the same group when it happens
3965 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3966 shortHelp
, longHelp
, clientData
)
3968 def AddToolItem(*args
, **kwargs
):
3969 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3970 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3972 def InsertToolItem(*args
, **kwargs
):
3973 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3974 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3976 def AddControl(*args
, **kwargs
):
3977 """AddControl(self, Control control) -> ToolBarToolBase"""
3978 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3980 def InsertControl(*args
, **kwargs
):
3981 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3982 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3984 def FindControl(*args
, **kwargs
):
3985 """FindControl(self, int id) -> Control"""
3986 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3988 def AddSeparator(*args
, **kwargs
):
3989 """AddSeparator(self) -> ToolBarToolBase"""
3990 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3992 def InsertSeparator(*args
, **kwargs
):
3993 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3994 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3996 def RemoveTool(*args
, **kwargs
):
3997 """RemoveTool(self, int id) -> ToolBarToolBase"""
3998 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
4000 def DeleteToolByPos(*args
, **kwargs
):
4001 """DeleteToolByPos(self, size_t pos) -> bool"""
4002 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
4004 def DeleteTool(*args
, **kwargs
):
4005 """DeleteTool(self, int id) -> bool"""
4006 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
4008 def ClearTools(*args
, **kwargs
):
4009 """ClearTools(self)"""
4010 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
4012 def Realize(*args
, **kwargs
):
4013 """Realize(self) -> bool"""
4014 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
4016 def EnableTool(*args
, **kwargs
):
4017 """EnableTool(self, int id, bool enable)"""
4018 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
4020 def ToggleTool(*args
, **kwargs
):
4021 """ToggleTool(self, int id, bool toggle)"""
4022 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
4024 def SetToggle(*args
, **kwargs
):
4025 """SetToggle(self, int id, bool toggle)"""
4026 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
4028 def GetToolClientData(*args
, **kwargs
):
4029 """GetToolClientData(self, int id) -> PyObject"""
4030 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
4032 def SetToolClientData(*args
, **kwargs
):
4033 """SetToolClientData(self, int id, PyObject clientData)"""
4034 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
4036 def GetToolPos(*args
, **kwargs
):
4037 """GetToolPos(self, int id) -> int"""
4038 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
4040 def GetToolState(*args
, **kwargs
):
4041 """GetToolState(self, int id) -> bool"""
4042 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
4044 def GetToolEnabled(*args
, **kwargs
):
4045 """GetToolEnabled(self, int id) -> bool"""
4046 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
4048 def SetToolShortHelp(*args
, **kwargs
):
4049 """SetToolShortHelp(self, int id, String helpString)"""
4050 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
4052 def GetToolShortHelp(*args
, **kwargs
):
4053 """GetToolShortHelp(self, int id) -> String"""
4054 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
4056 def SetToolLongHelp(*args
, **kwargs
):
4057 """SetToolLongHelp(self, int id, String helpString)"""
4058 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
4060 def GetToolLongHelp(*args
, **kwargs
):
4061 """GetToolLongHelp(self, int id) -> String"""
4062 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
4064 def SetMarginsXY(*args
, **kwargs
):
4065 """SetMarginsXY(self, int x, int y)"""
4066 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
4068 def SetMargins(*args
, **kwargs
):
4069 """SetMargins(self, Size size)"""
4070 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
4072 def SetToolPacking(*args
, **kwargs
):
4073 """SetToolPacking(self, int packing)"""
4074 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
4076 def SetToolSeparation(*args
, **kwargs
):
4077 """SetToolSeparation(self, int separation)"""
4078 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
4080 def GetToolMargins(*args
, **kwargs
):
4081 """GetToolMargins(self) -> Size"""
4082 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
4084 def GetMargins(*args
, **kwargs
):
4085 """GetMargins(self) -> Size"""
4086 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
4088 def GetToolPacking(*args
, **kwargs
):
4089 """GetToolPacking(self) -> int"""
4090 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
4092 def GetToolSeparation(*args
, **kwargs
):
4093 """GetToolSeparation(self) -> int"""
4094 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
4096 def SetRows(*args
, **kwargs
):
4097 """SetRows(self, int nRows)"""
4098 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
4100 def SetMaxRowsCols(*args
, **kwargs
):
4101 """SetMaxRowsCols(self, int rows, int cols)"""
4102 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
4104 def GetMaxRows(*args
, **kwargs
):
4105 """GetMaxRows(self) -> int"""
4106 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
4108 def GetMaxCols(*args
, **kwargs
):
4109 """GetMaxCols(self) -> int"""
4110 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
4112 def SetToolBitmapSize(*args
, **kwargs
):
4113 """SetToolBitmapSize(self, Size size)"""
4114 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
4116 def GetToolBitmapSize(*args
, **kwargs
):
4117 """GetToolBitmapSize(self) -> Size"""
4118 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
4120 def GetToolSize(*args
, **kwargs
):
4121 """GetToolSize(self) -> Size"""
4122 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
4124 def FindToolForPosition(*args
, **kwargs
):
4125 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
4126 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
4128 def FindById(*args
, **kwargs
):
4129 """FindById(self, int toolid) -> ToolBarToolBase"""
4130 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
4132 def IsVertical(*args
, **kwargs
):
4133 """IsVertical(self) -> bool"""
4134 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
4137 class ToolBarBasePtr(ToolBarBase
):
4138 def __init__(self
, this
):
4140 if not hasattr(self
,"thisown"): self
.thisown
= 0
4141 self
.__class
__ = ToolBarBase
4142 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
4144 class ToolBar(ToolBarBase
):
4145 """Proxy of C++ ToolBar class"""
4147 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4148 def __init__(self
, *args
, **kwargs
):
4150 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4151 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
4152 String name=wxPyToolBarNameStr) -> ToolBar
4154 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
4155 self
.this
= newobj
.this
4158 self
._setOORInfo
(self
)
4160 def Create(*args
, **kwargs
):
4162 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4163 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
4164 String name=wxPyToolBarNameStr) -> bool
4166 return _controls_
.ToolBar_Create(*args
, **kwargs
)
4168 def FindToolForPosition(*args
, **kwargs
):
4169 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
4170 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
4172 def GetClassDefaultAttributes(*args
, **kwargs
):
4174 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4176 Get the default attributes for this class. This is useful if you want
4177 to use the same font or colour in your own control as in a standard
4178 control -- which is a much better idea than hard coding specific
4179 colours or fonts which might look completely out of place on the
4180 user's system, especially if it uses themes.
4182 The variant parameter is only relevant under Mac currently and is
4183 ignore under other platforms. Under Mac, it will change the size of
4184 the returned font. See `wx.Window.SetWindowVariant` for more about
4187 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4189 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4191 class ToolBarPtr(ToolBar
):
4192 def __init__(self
, this
):
4194 if not hasattr(self
,"thisown"): self
.thisown
= 0
4195 self
.__class
__ = ToolBar
4196 _controls_
.ToolBar_swigregister(ToolBarPtr
)
4198 def PreToolBar(*args
, **kwargs
):
4199 """PreToolBar() -> ToolBar"""
4200 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
4204 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
4206 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4208 Get the default attributes for this class. This is useful if you want
4209 to use the same font or colour in your own control as in a standard
4210 control -- which is a much better idea than hard coding specific
4211 colours or fonts which might look completely out of place on the
4212 user's system, especially if it uses themes.
4214 The variant parameter is only relevant under Mac currently and is
4215 ignore under other platforms. Under Mac, it will change the size of
4216 the returned font. See `wx.Window.SetWindowVariant` for more about
4219 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4221 #---------------------------------------------------------------------------
4223 LC_VRULES
= _controls_
.LC_VRULES
4224 LC_HRULES
= _controls_
.LC_HRULES
4225 LC_ICON
= _controls_
.LC_ICON
4226 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
4227 LC_LIST
= _controls_
.LC_LIST
4228 LC_REPORT
= _controls_
.LC_REPORT
4229 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
4230 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
4231 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
4232 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
4233 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
4234 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
4235 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
4236 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
4237 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
4238 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
4239 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
4240 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
4241 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
4242 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
4243 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
4244 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
4245 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
4246 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
4247 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
4248 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
4249 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
4250 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
4251 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
4252 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
4253 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
4254 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
4255 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
4256 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
4257 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
4258 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
4259 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
4260 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
4261 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
4262 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
4263 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
4264 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
4265 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
4266 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
4267 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
4268 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
4269 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
4270 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
4271 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
4272 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
4273 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
4274 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
4275 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
4276 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
4277 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
4278 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
4279 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
4280 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
4281 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
4282 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
4283 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
4284 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
4285 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
4286 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
4287 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
4288 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
4289 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
4290 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
4291 #---------------------------------------------------------------------------
4293 class ListItemAttr(object):
4294 """Proxy of C++ ListItemAttr class"""
4296 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4297 def __init__(self
, *args
, **kwargs
):
4299 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
4300 Font font=wxNullFont) -> ListItemAttr
4302 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
4303 self
.this
= newobj
.this
4306 def __del__(self
, destroy
=_controls_
.delete_ListItemAttr
):
4309 if self
.thisown
: destroy(self
)
4312 def SetTextColour(*args
, **kwargs
):
4313 """SetTextColour(self, Colour colText)"""
4314 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
4316 def SetBackgroundColour(*args
, **kwargs
):
4317 """SetBackgroundColour(self, Colour colBack)"""
4318 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
4320 def SetFont(*args
, **kwargs
):
4321 """SetFont(self, Font font)"""
4322 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
4324 def HasTextColour(*args
, **kwargs
):
4325 """HasTextColour(self) -> bool"""
4326 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
4328 def HasBackgroundColour(*args
, **kwargs
):
4329 """HasBackgroundColour(self) -> bool"""
4330 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
4332 def HasFont(*args
, **kwargs
):
4333 """HasFont(self) -> bool"""
4334 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4336 def GetTextColour(*args
, **kwargs
):
4337 """GetTextColour(self) -> Colour"""
4338 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4340 def GetBackgroundColour(*args
, **kwargs
):
4341 """GetBackgroundColour(self) -> Colour"""
4342 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4344 def GetFont(*args
, **kwargs
):
4345 """GetFont(self) -> Font"""
4346 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4348 def AssignFrom(*args
, **kwargs
):
4349 """AssignFrom(self, ListItemAttr source)"""
4350 return _controls_
.ListItemAttr_AssignFrom(*args
, **kwargs
)
4352 def Destroy(*args
, **kwargs
):
4354 val
= _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4359 class ListItemAttrPtr(ListItemAttr
):
4360 def __init__(self
, this
):
4362 if not hasattr(self
,"thisown"): self
.thisown
= 0
4363 self
.__class
__ = ListItemAttr
4364 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
4365 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4367 #---------------------------------------------------------------------------
4369 class ListItem(_core
.Object
):
4370 """Proxy of C++ ListItem class"""
4372 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4373 def __init__(self
, *args
, **kwargs
):
4374 """__init__(self) -> ListItem"""
4375 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
4376 self
.this
= newobj
.this
4379 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
4382 if self
.thisown
: destroy(self
)
4385 def Clear(*args
, **kwargs
):
4387 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4389 def ClearAttributes(*args
, **kwargs
):
4390 """ClearAttributes(self)"""
4391 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4393 def SetMask(*args
, **kwargs
):
4394 """SetMask(self, long mask)"""
4395 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4397 def SetId(*args
, **kwargs
):
4398 """SetId(self, long id)"""
4399 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4401 def SetColumn(*args
, **kwargs
):
4402 """SetColumn(self, int col)"""
4403 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4405 def SetState(*args
, **kwargs
):
4406 """SetState(self, long state)"""
4407 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4409 def SetStateMask(*args
, **kwargs
):
4410 """SetStateMask(self, long stateMask)"""
4411 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4413 def SetText(*args
, **kwargs
):
4414 """SetText(self, String text)"""
4415 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4417 def SetImage(*args
, **kwargs
):
4418 """SetImage(self, int image)"""
4419 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4421 def SetData(*args
, **kwargs
):
4422 """SetData(self, long data)"""
4423 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4425 def SetWidth(*args
, **kwargs
):
4426 """SetWidth(self, int width)"""
4427 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4429 def SetAlign(*args
, **kwargs
):
4430 """SetAlign(self, int align)"""
4431 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4433 def SetTextColour(*args
, **kwargs
):
4434 """SetTextColour(self, Colour colText)"""
4435 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4437 def SetBackgroundColour(*args
, **kwargs
):
4438 """SetBackgroundColour(self, Colour colBack)"""
4439 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4441 def SetFont(*args
, **kwargs
):
4442 """SetFont(self, Font font)"""
4443 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4445 def GetMask(*args
, **kwargs
):
4446 """GetMask(self) -> long"""
4447 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4449 def GetId(*args
, **kwargs
):
4450 """GetId(self) -> long"""
4451 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4453 def GetColumn(*args
, **kwargs
):
4454 """GetColumn(self) -> int"""
4455 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4457 def GetState(*args
, **kwargs
):
4458 """GetState(self) -> long"""
4459 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4461 def GetText(*args
, **kwargs
):
4462 """GetText(self) -> String"""
4463 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4465 def GetImage(*args
, **kwargs
):
4466 """GetImage(self) -> int"""
4467 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4469 def GetData(*args
, **kwargs
):
4470 """GetData(self) -> long"""
4471 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4473 def GetWidth(*args
, **kwargs
):
4474 """GetWidth(self) -> int"""
4475 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4477 def GetAlign(*args
, **kwargs
):
4478 """GetAlign(self) -> int"""
4479 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4481 def GetAttributes(*args
, **kwargs
):
4482 """GetAttributes(self) -> ListItemAttr"""
4483 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4485 def HasAttributes(*args
, **kwargs
):
4486 """HasAttributes(self) -> bool"""
4487 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4489 def GetTextColour(*args
, **kwargs
):
4490 """GetTextColour(self) -> Colour"""
4491 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4493 def GetBackgroundColour(*args
, **kwargs
):
4494 """GetBackgroundColour(self) -> Colour"""
4495 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4497 def GetFont(*args
, **kwargs
):
4498 """GetFont(self) -> Font"""
4499 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4501 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4502 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4503 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4504 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4505 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4506 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4507 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4508 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4509 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4510 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4512 class ListItemPtr(ListItem
):
4513 def __init__(self
, this
):
4515 if not hasattr(self
,"thisown"): self
.thisown
= 0
4516 self
.__class
__ = ListItem
4517 _controls_
.ListItem_swigregister(ListItemPtr
)
4519 #---------------------------------------------------------------------------
4521 class ListEvent(_core
.NotifyEvent
):
4522 """Proxy of C++ ListEvent class"""
4524 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4525 def __init__(self
, *args
, **kwargs
):
4526 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4527 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4528 self
.this
= newobj
.this
4531 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4532 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4533 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4534 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4535 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4536 m_item
= property(_controls_
.ListEvent_m_item_get
)
4537 def GetKeyCode(*args
, **kwargs
):
4538 """GetKeyCode(self) -> int"""
4539 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4541 GetCode
= GetKeyCode
4542 def GetIndex(*args
, **kwargs
):
4543 """GetIndex(self) -> long"""
4544 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4546 def GetColumn(*args
, **kwargs
):
4547 """GetColumn(self) -> int"""
4548 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4550 def GetPoint(*args
, **kwargs
):
4551 """GetPoint(self) -> Point"""
4552 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4554 GetPosition
= GetPoint
4555 def GetLabel(*args
, **kwargs
):
4556 """GetLabel(self) -> String"""
4557 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4559 def GetText(*args
, **kwargs
):
4560 """GetText(self) -> String"""
4561 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4563 def GetImage(*args
, **kwargs
):
4564 """GetImage(self) -> int"""
4565 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4567 def GetData(*args
, **kwargs
):
4568 """GetData(self) -> long"""
4569 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4571 def GetMask(*args
, **kwargs
):
4572 """GetMask(self) -> long"""
4573 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4575 def GetItem(*args
, **kwargs
):
4576 """GetItem(self) -> ListItem"""
4577 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4579 def GetCacheFrom(*args
, **kwargs
):
4580 """GetCacheFrom(self) -> long"""
4581 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4583 def GetCacheTo(*args
, **kwargs
):
4584 """GetCacheTo(self) -> long"""
4585 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4587 def IsEditCancelled(*args
, **kwargs
):
4588 """IsEditCancelled(self) -> bool"""
4589 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4591 def SetEditCanceled(*args
, **kwargs
):
4592 """SetEditCanceled(self, bool editCancelled)"""
4593 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4596 class ListEventPtr(ListEvent
):
4597 def __init__(self
, this
):
4599 if not hasattr(self
,"thisown"): self
.thisown
= 0
4600 self
.__class
__ = ListEvent
4601 _controls_
.ListEvent_swigregister(ListEventPtr
)
4603 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4604 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4605 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4606 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4607 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4608 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4609 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4610 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4611 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4612 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4613 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4614 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4615 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4616 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4617 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4618 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4619 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4620 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4621 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4622 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4623 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4624 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4625 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4626 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4627 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4628 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4633 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4634 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4635 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4636 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4637 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4638 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4639 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4640 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4641 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4642 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4643 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4644 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4645 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4646 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4652 #---------------------------------------------------------------------------
4654 class ListCtrl(_core
.Control
):
4655 """Proxy of C++ ListCtrl class"""
4657 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4658 def __init__(self
, *args
, **kwargs
):
4660 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4661 Size size=DefaultSize, long style=LC_ICON,
4662 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4664 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4665 self
.this
= newobj
.this
4668 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4670 def Create(*args
, **kwargs
):
4672 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4673 Size size=DefaultSize, long style=LC_ICON,
4674 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4676 Do the 2nd phase and create the GUI control.
4678 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4680 def _setCallbackInfo(*args
, **kwargs
):
4681 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4682 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4684 def SetForegroundColour(*args
, **kwargs
):
4686 SetForegroundColour(self, Colour col) -> bool
4688 Sets the foreground colour of the window. Returns True is the colour
4689 was changed. The interpretation of foreground colour is dependent on
4690 the window class; it may be the text colour or other colour, or it may
4693 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4695 def SetBackgroundColour(*args
, **kwargs
):
4697 SetBackgroundColour(self, Colour col) -> bool
4699 Sets the background colour of the window. Returns True if the colour
4700 was changed. The background colour is usually painted by the default
4701 EVT_ERASE_BACKGROUND event handler function under Windows and
4702 automatically under GTK. Using `wx.NullColour` will reset the window
4703 to the default background colour.
4705 Note that setting the background colour may not cause an immediate
4706 refresh, so you may wish to call `ClearBackground` or `Refresh` after
4707 calling this function.
4709 Using this function will disable attempts to use themes for this
4710 window, if the system supports them. Use with care since usually the
4711 themes represent the appearance chosen by the user to be used for all
4712 applications on the system.
4714 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4716 def GetColumn(*args
, **kwargs
):
4717 """GetColumn(self, int col) -> ListItem"""
4718 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4719 if val
is not None: val
.thisown
= 1
4722 def SetColumn(*args
, **kwargs
):
4723 """SetColumn(self, int col, ListItem item) -> bool"""
4724 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4726 def GetColumnWidth(*args
, **kwargs
):
4727 """GetColumnWidth(self, int col) -> int"""
4728 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4730 def SetColumnWidth(*args
, **kwargs
):
4731 """SetColumnWidth(self, int col, int width) -> bool"""
4732 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4734 def GetCountPerPage(*args
, **kwargs
):
4735 """GetCountPerPage(self) -> int"""
4736 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4738 def GetViewRect(*args
, **kwargs
):
4739 """GetViewRect(self) -> Rect"""
4740 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4742 def GetItem(*args
, **kwargs
):
4743 """GetItem(self, long itemId, int col=0) -> ListItem"""
4744 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4745 if val
is not None: val
.thisown
= 1
4748 def SetItem(*args
, **kwargs
):
4749 """SetItem(self, ListItem info) -> bool"""
4750 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4752 def SetStringItem(*args
, **kwargs
):
4753 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4754 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4756 def GetItemState(*args
, **kwargs
):
4757 """GetItemState(self, long item, long stateMask) -> int"""
4758 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4760 def SetItemState(*args
, **kwargs
):
4761 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4762 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4764 def SetItemImage(*args
, **kwargs
):
4765 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4766 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4768 def GetItemText(*args
, **kwargs
):
4769 """GetItemText(self, long item) -> String"""
4770 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4772 def SetItemText(*args
, **kwargs
):
4773 """SetItemText(self, long item, String str)"""
4774 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4776 def GetItemData(*args
, **kwargs
):
4777 """GetItemData(self, long item) -> long"""
4778 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4780 def SetItemData(*args
, **kwargs
):
4781 """SetItemData(self, long item, long data) -> bool"""
4782 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4784 def GetItemPosition(*args
, **kwargs
):
4785 """GetItemPosition(self, long item) -> Point"""
4786 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4788 def GetItemRect(*args
, **kwargs
):
4789 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4790 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4792 def SetItemPosition(*args
, **kwargs
):
4793 """SetItemPosition(self, long item, Point pos) -> bool"""
4794 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4796 def GetItemCount(*args
, **kwargs
):
4797 """GetItemCount(self) -> int"""
4798 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4800 def GetColumnCount(*args
, **kwargs
):
4801 """GetColumnCount(self) -> int"""
4802 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4804 def GetItemSpacing(*args
, **kwargs
):
4805 """GetItemSpacing(self) -> Size"""
4806 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4808 def SetItemSpacing(*args
, **kwargs
):
4809 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4810 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4812 def GetSelectedItemCount(*args
, **kwargs
):
4813 """GetSelectedItemCount(self) -> int"""
4814 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4816 def GetTextColour(*args
, **kwargs
):
4817 """GetTextColour(self) -> Colour"""
4818 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4820 def SetTextColour(*args
, **kwargs
):
4821 """SetTextColour(self, Colour col)"""
4822 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4824 def GetTopItem(*args
, **kwargs
):
4825 """GetTopItem(self) -> long"""
4826 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4828 def SetSingleStyle(*args
, **kwargs
):
4829 """SetSingleStyle(self, long style, bool add=True)"""
4830 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4832 def SetWindowStyleFlag(*args
, **kwargs
):
4834 SetWindowStyleFlag(self, long style)
4836 Sets the style of the window. Please note that some styles cannot be
4837 changed after the window creation and that Refresh() might need to be
4838 called after changing the others for the change to take place
4841 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4843 def GetNextItem(*args
, **kwargs
):
4844 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4845 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4847 def GetImageList(*args
, **kwargs
):
4848 """GetImageList(self, int which) -> ImageList"""
4849 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4851 def SetImageList(*args
, **kwargs
):
4852 """SetImageList(self, ImageList imageList, int which)"""
4853 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4855 def AssignImageList(*args
, **kwargs
):
4856 """AssignImageList(self, ImageList imageList, int which)"""
4857 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4859 def InReportView(*args
, **kwargs
):
4860 """InReportView(self) -> bool"""
4861 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4863 def IsVirtual(*args
, **kwargs
):
4864 """IsVirtual(self) -> bool"""
4865 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4867 def RefreshItem(*args
, **kwargs
):
4868 """RefreshItem(self, long item)"""
4869 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4871 def RefreshItems(*args
, **kwargs
):
4872 """RefreshItems(self, long itemFrom, long itemTo)"""
4873 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4875 def Arrange(*args
, **kwargs
):
4876 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4877 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4879 def DeleteItem(*args
, **kwargs
):
4880 """DeleteItem(self, long item) -> bool"""
4881 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4883 def DeleteAllItems(*args
, **kwargs
):
4884 """DeleteAllItems(self) -> bool"""
4885 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4887 def DeleteColumn(*args
, **kwargs
):
4888 """DeleteColumn(self, int col) -> bool"""
4889 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4891 def DeleteAllColumns(*args
, **kwargs
):
4892 """DeleteAllColumns(self) -> bool"""
4893 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4895 def ClearAll(*args
, **kwargs
):
4896 """ClearAll(self)"""
4897 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4899 def EditLabel(*args
, **kwargs
):
4900 """EditLabel(self, long item)"""
4901 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4903 def EnsureVisible(*args
, **kwargs
):
4904 """EnsureVisible(self, long item) -> bool"""
4905 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4907 def FindItem(*args
, **kwargs
):
4908 """FindItem(self, long start, String str, bool partial=False) -> long"""
4909 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4911 def FindItemData(*args
, **kwargs
):
4912 """FindItemData(self, long start, long data) -> long"""
4913 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4915 def FindItemAtPos(*args
, **kwargs
):
4916 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4917 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4919 def HitTest(*args
, **kwargs
):
4921 HitTest(Point point) -> (item, where)
4923 Determines which item (if any) is at the specified point, giving
4924 in the second return value (see wx.LIST_HITTEST flags.)
4926 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4928 def InsertItem(*args
, **kwargs
):
4929 """InsertItem(self, ListItem info) -> long"""
4930 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4932 def InsertStringItem(*args
, **kwargs
):
4933 """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long"""
4934 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4936 def InsertImageItem(*args
, **kwargs
):
4937 """InsertImageItem(self, long index, int imageIndex) -> long"""
4938 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4940 def InsertImageStringItem(*args
, **kwargs
):
4941 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4942 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4944 def InsertColumnItem(*args
, **kwargs
):
4945 """InsertColumnItem(self, long col, ListItem info) -> long"""
4946 return _controls_
.ListCtrl_InsertColumnItem(*args
, **kwargs
)
4948 InsertColumnInfo
= InsertColumnItem
4949 def InsertColumn(*args
, **kwargs
):
4951 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4952 int width=-1) -> long
4954 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4956 def SetItemCount(*args
, **kwargs
):
4957 """SetItemCount(self, long count)"""
4958 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4960 def ScrollList(*args
, **kwargs
):
4961 """ScrollList(self, int dx, int dy) -> bool"""
4962 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4964 def SetItemTextColour(*args
, **kwargs
):
4965 """SetItemTextColour(self, long item, Colour col)"""
4966 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4968 def GetItemTextColour(*args
, **kwargs
):
4969 """GetItemTextColour(self, long item) -> Colour"""
4970 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4972 def SetItemBackgroundColour(*args
, **kwargs
):
4973 """SetItemBackgroundColour(self, long item, Colour col)"""
4974 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4976 def GetItemBackgroundColour(*args
, **kwargs
):
4977 """GetItemBackgroundColour(self, long item) -> Colour"""
4978 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4980 def SetItemFont(*args
, **kwargs
):
4981 """SetItemFont(self, long item, Font f)"""
4982 return _controls_
.ListCtrl_SetItemFont(*args
, **kwargs
)
4984 def GetItemFont(*args
, **kwargs
):
4985 """GetItemFont(self, long item) -> Font"""
4986 return _controls_
.ListCtrl_GetItemFont(*args
, **kwargs
)
4990 def Select(self
, idx
, on
=1):
4991 '''[de]select an item'''
4992 if on
: state
= wx
.LIST_STATE_SELECTED
4994 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4996 def Focus(self
, idx
):
4997 '''Focus and show the given item'''
4998 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4999 self
.EnsureVisible(idx
)
5001 def GetFocusedItem(self
):
5002 '''get the currently focused item or -1 if none'''
5003 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
5005 def GetFirstSelected(self
, *args
):
5006 '''return first selected item, or -1 when none'''
5007 return self
.GetNextSelected(-1)
5009 def GetNextSelected(self
, item
):
5010 '''return subsequent selected items, or -1 when no more'''
5011 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
5013 def IsSelected(self
, idx
):
5014 '''return True if the item is selected'''
5015 return (self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) & wx
.LIST_STATE_SELECTED
) != 0
5017 def SetColumnImage(self
, col
, image
):
5018 item
= self
.GetColumn(col
)
5019 # preserve all other attributes too
5020 item
.SetMask( wx
.LIST_MASK_STATE |
5022 wx
.LIST_MASK_IMAGE |
5025 wx
.LIST_MASK_WIDTH |
5026 wx
.LIST_MASK_FORMAT
)
5027 item
.SetImage(image
)
5028 self
.SetColumn(col
, item
)
5030 def ClearColumnImage(self
, col
):
5031 self
.SetColumnImage(col
, -1)
5033 def Append(self
, entry
):
5034 '''Append an item to the list control. The entry parameter should be a
5035 sequence with an item for each column'''
5041 pos
= self
.GetItemCount()
5042 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
5043 for i
in range(1, len(entry
)):
5044 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
5047 def SortItems(*args
, **kwargs
):
5048 """SortItems(self, PyObject func) -> bool"""
5049 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
5051 def GetMainWindow(*args
, **kwargs
):
5052 """GetMainWindow(self) -> Window"""
5053 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
5055 def GetClassDefaultAttributes(*args
, **kwargs
):
5057 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5059 Get the default attributes for this class. This is useful if you want
5060 to use the same font or colour in your own control as in a standard
5061 control -- which is a much better idea than hard coding specific
5062 colours or fonts which might look completely out of place on the
5063 user's system, especially if it uses themes.
5065 The variant parameter is only relevant under Mac currently and is
5066 ignore under other platforms. Under Mac, it will change the size of
5067 the returned font. See `wx.Window.SetWindowVariant` for more about
5070 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5072 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5074 class ListCtrlPtr(ListCtrl
):
5075 def __init__(self
, this
):
5077 if not hasattr(self
,"thisown"): self
.thisown
= 0
5078 self
.__class
__ = ListCtrl
5079 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
5081 def PreListCtrl(*args
, **kwargs
):
5082 """PreListCtrl() -> ListCtrl"""
5083 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
5087 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5089 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5091 Get the default attributes for this class. This is useful if you want
5092 to use the same font or colour in your own control as in a standard
5093 control -- which is a much better idea than hard coding specific
5094 colours or fonts which might look completely out of place on the
5095 user's system, especially if it uses themes.
5097 The variant parameter is only relevant under Mac currently and is
5098 ignore under other platforms. Under Mac, it will change the size of
5099 the returned font. See `wx.Window.SetWindowVariant` for more about
5102 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5104 #---------------------------------------------------------------------------
5106 class ListView(ListCtrl
):
5107 """Proxy of C++ ListView class"""
5109 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5110 def __init__(self
, *args
, **kwargs
):
5112 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5113 Size size=DefaultSize, long style=LC_REPORT,
5114 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
5116 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
5117 self
.this
= newobj
.this
5120 self
._setOORInfo
(self
)
5122 def Create(*args
, **kwargs
):
5124 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5125 Size size=DefaultSize, long style=LC_REPORT,
5126 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
5128 Do the 2nd phase and create the GUI control.
5130 return _controls_
.ListView_Create(*args
, **kwargs
)
5132 def Select(*args
, **kwargs
):
5133 """Select(self, long n, bool on=True)"""
5134 return _controls_
.ListView_Select(*args
, **kwargs
)
5136 def Focus(*args
, **kwargs
):
5137 """Focus(self, long index)"""
5138 return _controls_
.ListView_Focus(*args
, **kwargs
)
5140 def GetFocusedItem(*args
, **kwargs
):
5141 """GetFocusedItem(self) -> long"""
5142 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
5144 def GetNextSelected(*args
, **kwargs
):
5145 """GetNextSelected(self, long item) -> long"""
5146 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
5148 def GetFirstSelected(*args
, **kwargs
):
5149 """GetFirstSelected(self) -> long"""
5150 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
5152 def IsSelected(*args
, **kwargs
):
5153 """IsSelected(self, long index) -> bool"""
5154 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
5156 def SetColumnImage(*args
, **kwargs
):
5157 """SetColumnImage(self, int col, int image)"""
5158 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
5160 def ClearColumnImage(*args
, **kwargs
):
5161 """ClearColumnImage(self, int col)"""
5162 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
5165 class ListViewPtr(ListView
):
5166 def __init__(self
, this
):
5168 if not hasattr(self
,"thisown"): self
.thisown
= 0
5169 self
.__class
__ = ListView
5170 _controls_
.ListView_swigregister(ListViewPtr
)
5172 def PreListView(*args
, **kwargs
):
5173 """PreListView() -> ListView"""
5174 val
= _controls_
.new_PreListView(*args
, **kwargs
)
5178 #---------------------------------------------------------------------------
5180 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
5181 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
5182 TR_NO_LINES
= _controls_
.TR_NO_LINES
5183 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
5184 TR_SINGLE
= _controls_
.TR_SINGLE
5185 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
5186 TR_EXTENDED
= _controls_
.TR_EXTENDED
5187 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
5188 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
5189 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
5190 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
5191 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
5192 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
5193 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
5194 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
5195 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
5196 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
5197 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
5198 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
5199 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
5200 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
5201 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
5202 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
5203 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
5204 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
5205 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
5206 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
5207 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
5208 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
5209 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
5210 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
5211 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
5212 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
5213 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
5214 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
5215 #---------------------------------------------------------------------------
5217 class TreeItemId(object):
5218 """Proxy of C++ TreeItemId class"""
5220 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5221 def __init__(self
, *args
, **kwargs
):
5222 """__init__(self) -> TreeItemId"""
5223 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
5224 self
.this
= newobj
.this
5227 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
5230 if self
.thisown
: destroy(self
)
5233 def IsOk(*args
, **kwargs
):
5234 """IsOk(self) -> bool"""
5235 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
5237 def __eq__(*args
, **kwargs
):
5238 """__eq__(self, TreeItemId other) -> bool"""
5239 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
5241 def __ne__(*args
, **kwargs
):
5242 """__ne__(self, TreeItemId other) -> bool"""
5243 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
5245 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
5247 def __nonzero__(self
): return self
.IsOk()
5249 class TreeItemIdPtr(TreeItemId
):
5250 def __init__(self
, this
):
5252 if not hasattr(self
,"thisown"): self
.thisown
= 0
5253 self
.__class
__ = TreeItemId
5254 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
5255 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
5257 class TreeItemData(object):
5258 """Proxy of C++ TreeItemData class"""
5260 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5261 def __init__(self
, *args
, **kwargs
):
5262 """__init__(self, PyObject obj=None) -> TreeItemData"""
5263 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
5264 self
.this
= newobj
.this
5267 def __del__(self
, destroy
=_controls_
.delete_TreeItemData
):
5270 if self
.thisown
: destroy(self
)
5273 def GetData(*args
, **kwargs
):
5274 """GetData(self) -> PyObject"""
5275 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
5277 def SetData(*args
, **kwargs
):
5278 """SetData(self, PyObject obj)"""
5279 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
5281 def GetId(*args
, **kwargs
):
5282 """GetId(self) -> TreeItemId"""
5283 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
5285 def SetId(*args
, **kwargs
):
5286 """SetId(self, TreeItemId id)"""
5287 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
5289 def Destroy(*args
, **kwargs
):
5291 val
= _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
5296 class TreeItemDataPtr(TreeItemData
):
5297 def __init__(self
, this
):
5299 if not hasattr(self
,"thisown"): self
.thisown
= 0
5300 self
.__class
__ = TreeItemData
5301 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
5303 #---------------------------------------------------------------------------
5305 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
5306 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
5307 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
5308 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
5309 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
5310 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
5311 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
5312 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
5313 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
5314 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
5315 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
5316 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
5317 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
5318 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
5319 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
5320 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
5321 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
5322 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
5323 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
5324 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
5325 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
5326 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
5327 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
5328 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
5329 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
5330 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
5331 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
5332 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
5333 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
5334 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
5335 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
5336 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
5337 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
5338 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
5339 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
5340 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
5341 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
5342 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
5343 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
5344 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
5345 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
5346 EVT_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
5348 class TreeEvent(_core
.NotifyEvent
):
5349 """Proxy of C++ TreeEvent class"""
5351 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5352 def __init__(self
, *args
, **kwargs
):
5353 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
5354 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
5355 self
.this
= newobj
.this
5358 def GetItem(*args
, **kwargs
):
5359 """GetItem(self) -> TreeItemId"""
5360 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
5362 def SetItem(*args
, **kwargs
):
5363 """SetItem(self, TreeItemId item)"""
5364 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
5366 def GetOldItem(*args
, **kwargs
):
5367 """GetOldItem(self) -> TreeItemId"""
5368 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
5370 def SetOldItem(*args
, **kwargs
):
5371 """SetOldItem(self, TreeItemId item)"""
5372 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
5374 def GetPoint(*args
, **kwargs
):
5375 """GetPoint(self) -> Point"""
5376 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
5378 def SetPoint(*args
, **kwargs
):
5379 """SetPoint(self, Point pt)"""
5380 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
5382 def GetKeyEvent(*args
, **kwargs
):
5383 """GetKeyEvent(self) -> KeyEvent"""
5384 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
5386 def GetKeyCode(*args
, **kwargs
):
5387 """GetKeyCode(self) -> int"""
5388 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
5390 def SetKeyEvent(*args
, **kwargs
):
5391 """SetKeyEvent(self, KeyEvent evt)"""
5392 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
5394 def GetLabel(*args
, **kwargs
):
5395 """GetLabel(self) -> String"""
5396 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
5398 def SetLabel(*args
, **kwargs
):
5399 """SetLabel(self, String label)"""
5400 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
5402 def IsEditCancelled(*args
, **kwargs
):
5403 """IsEditCancelled(self) -> bool"""
5404 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
5406 def SetEditCanceled(*args
, **kwargs
):
5407 """SetEditCanceled(self, bool editCancelled)"""
5408 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
5410 def SetToolTip(*args
, **kwargs
):
5411 """SetToolTip(self, String toolTip)"""
5412 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
5414 def GetToolTip(*args
, **kwargs
):
5415 """GetToolTip(self) -> String"""
5416 return _controls_
.TreeEvent_GetToolTip(*args
, **kwargs
)
5419 class TreeEventPtr(TreeEvent
):
5420 def __init__(self
, this
):
5422 if not hasattr(self
,"thisown"): self
.thisown
= 0
5423 self
.__class
__ = TreeEvent
5424 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
5426 #---------------------------------------------------------------------------
5428 class TreeCtrl(_core
.Control
):
5429 """Proxy of C++ TreeCtrl class"""
5431 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5432 def __init__(self
, *args
, **kwargs
):
5434 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5435 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5436 Validator validator=DefaultValidator,
5437 String name=TreeCtrlNameStr) -> TreeCtrl
5439 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
5440 self
.this
= newobj
.this
5443 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5445 def Create(*args
, **kwargs
):
5447 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5448 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5449 Validator validator=DefaultValidator,
5450 String name=TreeCtrlNameStr) -> bool
5452 Do the 2nd phase and create the GUI control.
5454 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5456 def _setCallbackInfo(*args
, **kwargs
):
5457 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5458 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5460 def GetCount(*args
, **kwargs
):
5461 """GetCount(self) -> size_t"""
5462 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5464 def GetIndent(*args
, **kwargs
):
5465 """GetIndent(self) -> unsigned int"""
5466 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5468 def SetIndent(*args
, **kwargs
):
5469 """SetIndent(self, unsigned int indent)"""
5470 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5472 def GetSpacing(*args
, **kwargs
):
5473 """GetSpacing(self) -> unsigned int"""
5474 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5476 def SetSpacing(*args
, **kwargs
):
5477 """SetSpacing(self, unsigned int spacing)"""
5478 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5480 def GetImageList(*args
, **kwargs
):
5481 """GetImageList(self) -> ImageList"""
5482 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5484 def GetStateImageList(*args
, **kwargs
):
5485 """GetStateImageList(self) -> ImageList"""
5486 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5488 def SetImageList(*args
, **kwargs
):
5489 """SetImageList(self, ImageList imageList)"""
5490 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5492 def SetStateImageList(*args
, **kwargs
):
5493 """SetStateImageList(self, ImageList imageList)"""
5494 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5496 def AssignImageList(*args
, **kwargs
):
5497 """AssignImageList(self, ImageList imageList)"""
5498 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5500 def AssignStateImageList(*args
, **kwargs
):
5501 """AssignStateImageList(self, ImageList imageList)"""
5502 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5504 def GetItemText(*args
, **kwargs
):
5505 """GetItemText(self, TreeItemId item) -> String"""
5506 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5508 def GetItemImage(*args
, **kwargs
):
5509 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5510 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5512 def GetItemData(*args
, **kwargs
):
5513 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5514 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5516 def GetItemPyData(*args
, **kwargs
):
5517 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5518 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5520 GetPyData
= GetItemPyData
5521 def GetItemTextColour(*args
, **kwargs
):
5522 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5523 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5525 def GetItemBackgroundColour(*args
, **kwargs
):
5526 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5527 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5529 def GetItemFont(*args
, **kwargs
):
5530 """GetItemFont(self, TreeItemId item) -> Font"""
5531 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5533 def SetItemText(*args
, **kwargs
):
5534 """SetItemText(self, TreeItemId item, String text)"""
5535 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5537 def SetItemImage(*args
, **kwargs
):
5538 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5539 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5541 def SetItemData(*args
, **kwargs
):
5542 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5543 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5545 def SetItemPyData(*args
, **kwargs
):
5546 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5547 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5549 SetPyData
= SetItemPyData
5550 def SetItemHasChildren(*args
, **kwargs
):
5551 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5552 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5554 def SetItemBold(*args
, **kwargs
):
5555 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5556 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5558 def SetItemDropHighlight(*args
, **kwargs
):
5559 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5560 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5562 def SetItemTextColour(*args
, **kwargs
):
5563 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5564 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5566 def SetItemBackgroundColour(*args
, **kwargs
):
5567 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5568 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5570 def SetItemFont(*args
, **kwargs
):
5571 """SetItemFont(self, TreeItemId item, Font font)"""
5572 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5574 def IsVisible(*args
, **kwargs
):
5575 """IsVisible(self, TreeItemId item) -> bool"""
5576 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5578 def ItemHasChildren(*args
, **kwargs
):
5579 """ItemHasChildren(self, TreeItemId item) -> bool"""
5580 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5582 def IsExpanded(*args
, **kwargs
):
5583 """IsExpanded(self, TreeItemId item) -> bool"""
5584 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5586 def IsSelected(*args
, **kwargs
):
5587 """IsSelected(self, TreeItemId item) -> bool"""
5588 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5590 def IsBold(*args
, **kwargs
):
5591 """IsBold(self, TreeItemId item) -> bool"""
5592 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5594 def GetChildrenCount(*args
, **kwargs
):
5595 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5596 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5598 def GetRootItem(*args
, **kwargs
):
5599 """GetRootItem(self) -> TreeItemId"""
5600 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5602 def GetSelection(*args
, **kwargs
):
5603 """GetSelection(self) -> TreeItemId"""
5604 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5606 def GetSelections(*args
, **kwargs
):
5607 """GetSelections(self) -> PyObject"""
5608 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5610 def GetItemParent(*args
, **kwargs
):
5611 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5612 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5614 def GetFirstChild(*args
, **kwargs
):
5615 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5616 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5618 def GetNextChild(*args
, **kwargs
):
5619 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5620 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5622 def GetLastChild(*args
, **kwargs
):
5623 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5624 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5626 def GetNextSibling(*args
, **kwargs
):
5627 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5628 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5630 def GetPrevSibling(*args
, **kwargs
):
5631 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5632 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5634 def GetFirstVisibleItem(*args
, **kwargs
):
5635 """GetFirstVisibleItem(self) -> TreeItemId"""
5636 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5638 def GetNextVisible(*args
, **kwargs
):
5639 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5640 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5642 def GetPrevVisible(*args
, **kwargs
):
5643 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5644 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5646 def AddRoot(*args
, **kwargs
):
5647 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5648 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5650 def PrependItem(*args
, **kwargs
):
5652 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5653 TreeItemData data=None) -> TreeItemId
5655 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5657 def InsertItem(*args
, **kwargs
):
5659 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5660 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5662 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5664 def InsertItemBefore(*args
, **kwargs
):
5666 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5667 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5669 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5671 def AppendItem(*args
, **kwargs
):
5673 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5674 TreeItemData data=None) -> TreeItemId
5676 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5678 def Delete(*args
, **kwargs
):
5679 """Delete(self, TreeItemId item)"""
5680 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5682 def DeleteChildren(*args
, **kwargs
):
5683 """DeleteChildren(self, TreeItemId item)"""
5684 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5686 def DeleteAllItems(*args
, **kwargs
):
5687 """DeleteAllItems(self)"""
5688 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5690 def Expand(*args
, **kwargs
):
5691 """Expand(self, TreeItemId item)"""
5692 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5694 def Collapse(*args
, **kwargs
):
5695 """Collapse(self, TreeItemId item)"""
5696 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5698 def CollapseAndReset(*args
, **kwargs
):
5699 """CollapseAndReset(self, TreeItemId item)"""
5700 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5702 def Toggle(*args
, **kwargs
):
5703 """Toggle(self, TreeItemId item)"""
5704 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5706 def Unselect(*args
, **kwargs
):
5707 """Unselect(self)"""
5708 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5710 def UnselectItem(*args
, **kwargs
):
5711 """UnselectItem(self, TreeItemId item)"""
5712 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5714 def UnselectAll(*args
, **kwargs
):
5715 """UnselectAll(self)"""
5716 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5718 def SelectItem(*args
, **kwargs
):
5719 """SelectItem(self, TreeItemId item, bool select=True)"""
5720 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5722 def ToggleItemSelection(*args
, **kwargs
):
5723 """ToggleItemSelection(self, TreeItemId item)"""
5724 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5726 def EnsureVisible(*args
, **kwargs
):
5727 """EnsureVisible(self, TreeItemId item)"""
5728 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5730 def ScrollTo(*args
, **kwargs
):
5731 """ScrollTo(self, TreeItemId item)"""
5732 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5734 def EditLabel(*args
, **kwargs
):
5735 """EditLabel(self, TreeItemId item)"""
5736 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5738 def GetEditControl(*args
, **kwargs
):
5739 """GetEditControl(self) -> TextCtrl"""
5740 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5742 def SortChildren(*args
, **kwargs
):
5743 """SortChildren(self, TreeItemId item)"""
5744 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5746 def HitTest(*args
, **kwargs
):
5748 HitTest(Point point) -> (item, where)
5750 Determine which item (if any) belongs the given point. The coordinates
5751 specified are relative to the client area of tree ctrl and the where return
5752 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5755 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5757 def GetBoundingRect(*args
, **kwargs
):
5758 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5759 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5761 def GetClassDefaultAttributes(*args
, **kwargs
):
5763 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5765 Get the default attributes for this class. This is useful if you want
5766 to use the same font or colour in your own control as in a standard
5767 control -- which is a much better idea than hard coding specific
5768 colours or fonts which might look completely out of place on the
5769 user's system, especially if it uses themes.
5771 The variant parameter is only relevant under Mac currently and is
5772 ignore under other platforms. Under Mac, it will change the size of
5773 the returned font. See `wx.Window.SetWindowVariant` for more about
5776 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5778 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5780 class TreeCtrlPtr(TreeCtrl
):
5781 def __init__(self
, this
):
5783 if not hasattr(self
,"thisown"): self
.thisown
= 0
5784 self
.__class
__ = TreeCtrl
5785 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5787 def PreTreeCtrl(*args
, **kwargs
):
5788 """PreTreeCtrl() -> TreeCtrl"""
5789 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5793 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5795 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5797 Get the default attributes for this class. This is useful if you want
5798 to use the same font or colour in your own control as in a standard
5799 control -- which is a much better idea than hard coding specific
5800 colours or fonts which might look completely out of place on the
5801 user's system, especially if it uses themes.
5803 The variant parameter is only relevant under Mac currently and is
5804 ignore under other platforms. Under Mac, it will change the size of
5805 the returned font. See `wx.Window.SetWindowVariant` for more about
5808 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5810 #---------------------------------------------------------------------------
5812 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5813 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5814 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5815 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5816 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5817 class GenericDirCtrl(_core
.Control
):
5818 """Proxy of C++ GenericDirCtrl class"""
5820 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5821 def __init__(self
, *args
, **kwargs
):
5823 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5824 Point pos=DefaultPosition, Size size=DefaultSize,
5825 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5826 String filter=EmptyString,
5827 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5829 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5830 self
.this
= newobj
.this
5833 self
._setOORInfo
(self
)
5835 def Create(*args
, **kwargs
):
5837 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5838 Point pos=DefaultPosition, Size size=DefaultSize,
5839 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5840 String filter=EmptyString,
5841 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5843 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5845 def ExpandPath(*args
, **kwargs
):
5846 """ExpandPath(self, String path) -> bool"""
5847 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5849 def GetDefaultPath(*args
, **kwargs
):
5850 """GetDefaultPath(self) -> String"""
5851 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5853 def SetDefaultPath(*args
, **kwargs
):
5854 """SetDefaultPath(self, String path)"""
5855 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5857 def GetPath(*args
, **kwargs
):
5858 """GetPath(self) -> String"""
5859 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5861 def GetFilePath(*args
, **kwargs
):
5862 """GetFilePath(self) -> String"""
5863 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5865 def SetPath(*args
, **kwargs
):
5866 """SetPath(self, String path)"""
5867 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5869 def ShowHidden(*args
, **kwargs
):
5870 """ShowHidden(self, bool show)"""
5871 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5873 def GetShowHidden(*args
, **kwargs
):
5874 """GetShowHidden(self) -> bool"""
5875 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5877 def GetFilter(*args
, **kwargs
):
5878 """GetFilter(self) -> String"""
5879 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5881 def SetFilter(*args
, **kwargs
):
5882 """SetFilter(self, String filter)"""
5883 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5885 def GetFilterIndex(*args
, **kwargs
):
5886 """GetFilterIndex(self) -> int"""
5887 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5889 def SetFilterIndex(*args
, **kwargs
):
5890 """SetFilterIndex(self, int n)"""
5891 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5893 def GetRootId(*args
, **kwargs
):
5894 """GetRootId(self) -> TreeItemId"""
5895 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5897 def GetTreeCtrl(*args
, **kwargs
):
5898 """GetTreeCtrl(self) -> TreeCtrl"""
5899 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5901 def GetFilterListCtrl(*args
, **kwargs
):
5902 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5903 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5905 def FindChild(*args
, **kwargs
):
5907 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5909 Find the child that matches the first part of 'path'. E.g. if a child
5910 path is "/usr" and 'path' is "/usr/include" then the child for
5911 /usr is returned. If the path string has been used (we're at the
5912 leaf), done is set to True.
5915 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5917 def DoResize(*args
, **kwargs
):
5918 """DoResize(self)"""
5919 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5921 def ReCreateTree(*args
, **kwargs
):
5922 """ReCreateTree(self)"""
5923 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5926 class GenericDirCtrlPtr(GenericDirCtrl
):
5927 def __init__(self
, this
):
5929 if not hasattr(self
,"thisown"): self
.thisown
= 0
5930 self
.__class
__ = GenericDirCtrl
5931 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5932 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5934 def PreGenericDirCtrl(*args
, **kwargs
):
5935 """PreGenericDirCtrl() -> GenericDirCtrl"""
5936 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5940 class DirFilterListCtrl(Choice
):
5941 """Proxy of C++ DirFilterListCtrl class"""
5943 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5944 def __init__(self
, *args
, **kwargs
):
5946 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5947 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5949 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5950 self
.this
= newobj
.this
5953 self
._setOORInfo
(self
)
5955 def Create(*args
, **kwargs
):
5957 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5958 Size size=DefaultSize, long style=0) -> bool
5960 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5962 def FillFilterList(*args
, **kwargs
):
5963 """FillFilterList(self, String filter, int defaultFilter)"""
5964 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5967 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5968 def __init__(self
, this
):
5970 if not hasattr(self
,"thisown"): self
.thisown
= 0
5971 self
.__class
__ = DirFilterListCtrl
5972 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5974 def PreDirFilterListCtrl(*args
, **kwargs
):
5975 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5976 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5980 #---------------------------------------------------------------------------
5982 class PyControl(_core
.Control
):
5983 """Proxy of C++ PyControl class"""
5985 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5986 def __init__(self
, *args
, **kwargs
):
5988 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5989 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5990 String name=ControlNameStr) -> PyControl
5992 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5993 self
.this
= newobj
.this
5996 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5998 def _setCallbackInfo(*args
, **kwargs
):
5999 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
6000 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
6002 def SetBestSize(*args
, **kwargs
):
6003 """SetBestSize(self, Size size)"""
6004 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
6006 def DoEraseBackground(*args
, **kwargs
):
6007 """DoEraseBackground(self, DC dc) -> bool"""
6008 return _controls_
.PyControl_DoEraseBackground(*args
, **kwargs
)
6010 def DoMoveWindow(*args
, **kwargs
):
6011 """DoMoveWindow(self, int x, int y, int width, int height)"""
6012 return _controls_
.PyControl_DoMoveWindow(*args
, **kwargs
)
6014 def DoSetSize(*args
, **kwargs
):
6015 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
6016 return _controls_
.PyControl_DoSetSize(*args
, **kwargs
)
6018 def DoSetClientSize(*args
, **kwargs
):
6019 """DoSetClientSize(self, int width, int height)"""
6020 return _controls_
.PyControl_DoSetClientSize(*args
, **kwargs
)
6022 def DoSetVirtualSize(*args
, **kwargs
):
6023 """DoSetVirtualSize(self, int x, int y)"""
6024 return _controls_
.PyControl_DoSetVirtualSize(*args
, **kwargs
)
6026 def DoGetSize(*args
, **kwargs
):
6027 """DoGetSize() -> (width, height)"""
6028 return _controls_
.PyControl_DoGetSize(*args
, **kwargs
)
6030 def DoGetClientSize(*args
, **kwargs
):
6031 """DoGetClientSize() -> (width, height)"""
6032 return _controls_
.PyControl_DoGetClientSize(*args
, **kwargs
)
6034 def DoGetPosition(*args
, **kwargs
):
6035 """DoGetPosition() -> (x,y)"""
6036 return _controls_
.PyControl_DoGetPosition(*args
, **kwargs
)
6038 def DoGetVirtualSize(*args
, **kwargs
):
6039 """DoGetVirtualSize(self) -> Size"""
6040 return _controls_
.PyControl_DoGetVirtualSize(*args
, **kwargs
)
6042 def DoGetBestSize(*args
, **kwargs
):
6043 """DoGetBestSize(self) -> Size"""
6044 return _controls_
.PyControl_DoGetBestSize(*args
, **kwargs
)
6046 def InitDialog(*args
, **kwargs
):
6050 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
6051 to the dialog via validators.
6053 return _controls_
.PyControl_InitDialog(*args
, **kwargs
)
6055 def TransferDataToWindow(*args
, **kwargs
):
6057 TransferDataToWindow(self) -> bool
6059 Transfers values to child controls from data areas specified by their
6060 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
6061 style flag set, the method will also call TransferDataToWindow() of
6064 return _controls_
.PyControl_TransferDataToWindow(*args
, **kwargs
)
6066 def TransferDataFromWindow(*args
, **kwargs
):
6068 TransferDataFromWindow(self) -> bool
6070 Transfers values from child controls to data areas specified by their
6071 validators. Returns false if a transfer failed. If the window has
6072 wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
6073 also call TransferDataFromWindow() of all child windows.
6075 return _controls_
.PyControl_TransferDataFromWindow(*args
, **kwargs
)
6077 def Validate(*args
, **kwargs
):
6079 Validate(self) -> bool
6081 Validates the current values of the child controls using their
6082 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
6083 style flag set, the method will also call Validate() of all child
6084 windows. Returns false if any of the validations failed.
6086 return _controls_
.PyControl_Validate(*args
, **kwargs
)
6088 def AcceptsFocus(*args
, **kwargs
):
6090 AcceptsFocus(self) -> bool
6092 Can this window have focus?
6094 return _controls_
.PyControl_AcceptsFocus(*args
, **kwargs
)
6096 def AcceptsFocusFromKeyboard(*args
, **kwargs
):
6098 AcceptsFocusFromKeyboard(self) -> bool
6100 Can this window be given focus by keyboard navigation? if not, the
6101 only way to give it focus (provided it accepts it at all) is to click
6104 return _controls_
.PyControl_AcceptsFocusFromKeyboard(*args
, **kwargs
)
6106 def GetMaxSize(*args
, **kwargs
):
6107 """GetMaxSize(self) -> Size"""
6108 return _controls_
.PyControl_GetMaxSize(*args
, **kwargs
)
6110 def AddChild(*args
, **kwargs
):
6112 AddChild(self, Window child)
6114 Adds a child window. This is called automatically by window creation
6115 functions so should not be required by the application programmer.
6117 return _controls_
.PyControl_AddChild(*args
, **kwargs
)
6119 def RemoveChild(*args
, **kwargs
):
6121 RemoveChild(self, Window child)
6123 Removes a child window. This is called automatically by window
6124 deletion functions so should not be required by the application
6127 return _controls_
.PyControl_RemoveChild(*args
, **kwargs
)
6129 def ShouldInheritColours(*args
, **kwargs
):
6131 ShouldInheritColours(self) -> bool
6133 Return true from here to allow the colours of this window to be
6134 changed by InheritAttributes, returning false forbids inheriting them
6135 from the parent window.
6137 The base class version returns false, but this method is overridden in
6138 wxControl where it returns true.
6140 return _controls_
.PyControl_ShouldInheritColours(*args
, **kwargs
)
6142 def GetDefaultAttributes(*args
, **kwargs
):
6143 """GetDefaultAttributes(self) -> VisualAttributes"""
6144 return _controls_
.PyControl_GetDefaultAttributes(*args
, **kwargs
)
6146 def OnInternalIdle(*args
, **kwargs
):
6147 """OnInternalIdle(self)"""
6148 return _controls_
.PyControl_OnInternalIdle(*args
, **kwargs
)
6150 def base_DoMoveWindow(*args
, **kw
):
6151 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
6152 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
6153 "Please use PyScrolledWindow.DoMoveWindow instead.")
6155 def base_DoSetSize(*args
, **kw
):
6156 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
6157 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
6158 "Please use PyScrolledWindow.DoSetSize instead.")
6160 def base_DoSetClientSize(*args
, **kw
):
6161 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
6162 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
6163 "Please use PyScrolledWindow.DoSetClientSize instead.")
6165 def base_DoSetVirtualSize(*args
, **kw
):
6166 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
6167 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
6168 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
6170 def base_DoGetSize(*args
, **kw
):
6171 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
6172 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
6173 "Please use PyScrolledWindow.DoGetSize instead.")
6175 def base_DoGetClientSize(*args
, **kw
):
6176 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
6177 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
6178 "Please use PyScrolledWindow.DoGetClientSize instead.")
6180 def base_DoGetPosition(*args
, **kw
):
6181 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
6182 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
6183 "Please use PyScrolledWindow.DoGetPosition instead.")
6185 def base_DoGetVirtualSize(*args
, **kw
):
6186 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
6187 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
6188 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
6190 def base_DoGetBestSize(*args
, **kw
):
6191 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
6192 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
6193 "Please use PyScrolledWindow.DoGetBestSize instead.")
6195 def base_InitDialog(*args
, **kw
):
6196 return PyScrolledWindow
.InitDialog(*args
, **kw
)
6197 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
6198 "Please use PyScrolledWindow.InitDialog instead.")
6200 def base_TransferDataToWindow(*args
, **kw
):
6201 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
6202 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
6203 "Please use PyScrolledWindow.TransferDataToWindow instead.")
6205 def base_TransferDataFromWindow(*args
, **kw
):
6206 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
6207 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
6208 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
6210 def base_Validate(*args
, **kw
):
6211 return PyScrolledWindow
.Validate(*args
, **kw
)
6212 base_Validate
= wx
._deprecated
(base_Validate
,
6213 "Please use PyScrolledWindow.Validate instead.")
6215 def base_AcceptsFocus(*args
, **kw
):
6216 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
6217 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
6218 "Please use PyScrolledWindow.AcceptsFocus instead.")
6220 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
6221 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
6222 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
6223 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
6225 def base_GetMaxSize(*args
, **kw
):
6226 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
6227 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
6228 "Please use PyScrolledWindow.GetMaxSize instead.")
6230 def base_AddChild(*args
, **kw
):
6231 return PyScrolledWindow
.AddChild(*args
, **kw
)
6232 base_AddChild
= wx
._deprecated
(base_AddChild
,
6233 "Please use PyScrolledWindow.AddChild instead.")
6235 def base_RemoveChild(*args
, **kw
):
6236 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
6237 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
6238 "Please use PyScrolledWindow.RemoveChild instead.")
6240 def base_ShouldInheritColours(*args
, **kw
):
6241 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
6242 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
6243 "Please use PyScrolledWindow.ShouldInheritColours instead.")
6245 def base_GetDefaultAttributes(*args
, **kw
):
6246 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
6247 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
6248 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
6250 def base_OnInternalIdle(*args
, **kw
):
6251 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
6252 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
6253 "Please use PyScrolledWindow.OnInternalIdle instead.")
6256 class PyControlPtr(PyControl
):
6257 def __init__(self
, this
):
6259 if not hasattr(self
,"thisown"): self
.thisown
= 0
6260 self
.__class
__ = PyControl
6261 _controls_
.PyControl_swigregister(PyControlPtr
)
6263 def PrePyControl(*args
, **kwargs
):
6264 """PrePyControl() -> PyControl"""
6265 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
6269 #---------------------------------------------------------------------------
6271 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
6272 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
6273 wxEVT_HELP
= _controls_
.wxEVT_HELP
6274 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
6275 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
6276 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
6277 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
6278 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
6280 class HelpEvent(_core
.CommandEvent
):
6282 A help event is sent when the user has requested context-sensitive
6283 help. This can either be caused by the application requesting
6284 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
6285 the system generating a WM_HELP message when the user pressed F1 or
6286 clicked on the query button in a dialog caption.
6288 A help event is sent to the window that the user clicked on, and is
6289 propagated up the window hierarchy until the event is processed or
6290 there are no more event handlers. The application should call
6291 event.GetId to check the identity of the clicked-on window, and then
6292 either show some suitable help or call event.Skip if the identifier is
6293 unrecognised. Calling Skip is important because it allows wxWindows to
6294 generate further events for ancestors of the clicked-on
6295 window. Otherwise it would be impossible to show help for container
6296 windows, since processing would stop after the first window found.
6299 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6300 def __init__(self
, *args
, **kwargs
):
6301 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
6302 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
6303 self
.this
= newobj
.this
6306 def GetPosition(*args
, **kwargs
):
6308 GetPosition(self) -> Point
6310 Returns the left-click position of the mouse, in screen
6311 coordinates. This allows the application to position the help
6314 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
6316 def SetPosition(*args
, **kwargs
):
6318 SetPosition(self, Point pos)
6320 Sets the left-click position of the mouse, in screen coordinates.
6322 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
6324 def GetLink(*args
, **kwargs
):
6326 GetLink(self) -> String
6328 Get an optional link to further help
6330 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
6332 def SetLink(*args
, **kwargs
):
6334 SetLink(self, String link)
6336 Set an optional link to further help
6338 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
6340 def GetTarget(*args
, **kwargs
):
6342 GetTarget(self) -> String
6344 Get an optional target to display help in. E.g. a window specification
6346 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
6348 def SetTarget(*args
, **kwargs
):
6350 SetTarget(self, String target)
6352 Set an optional target to display help in. E.g. a window specification
6354 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
6357 class HelpEventPtr(HelpEvent
):
6358 def __init__(self
, this
):
6360 if not hasattr(self
,"thisown"): self
.thisown
= 0
6361 self
.__class
__ = HelpEvent
6362 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
6364 class ContextHelp(_core
.Object
):
6366 This class changes the cursor to a query and puts the application into
6367 a 'context-sensitive help mode'. When the user left-clicks on a window
6368 within the specified window, a ``EVT_HELP`` event is sent to that
6369 control, and the application may respond to it by popping up some
6372 There are a couple of ways to invoke this behaviour implicitly:
6374 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
6375 (Windows only). This will put a question mark in the titlebar,
6376 and Windows will put the application into context-sensitive help
6377 mode automatically, with further programming.
6379 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
6380 to create a context help object. Normally you will write your
6381 application so that this button is only added to a dialog for
6382 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
6385 :see: `wx.ContextHelpButton`
6389 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6390 def __init__(self
, *args
, **kwargs
):
6392 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
6394 Constructs a context help object, calling BeginContextHelp if doNow is
6397 If window is None, the top window is used.
6399 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
6400 self
.this
= newobj
.this
6403 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
6406 if self
.thisown
: destroy(self
)
6409 def BeginContextHelp(*args
, **kwargs
):
6411 BeginContextHelp(self, Window window=None) -> bool
6413 Puts the application into context-sensitive help mode. window is the
6414 window which will be used to catch events; if NULL, the top window
6417 Returns true if the application was successfully put into
6418 context-sensitive help mode. This function only returns when the event
6421 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
6423 def EndContextHelp(*args
, **kwargs
):
6425 EndContextHelp(self) -> bool
6427 Ends context-sensitive help mode. Not normally called by the
6430 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
6433 class ContextHelpPtr(ContextHelp
):
6434 def __init__(self
, this
):
6436 if not hasattr(self
,"thisown"): self
.thisown
= 0
6437 self
.__class
__ = ContextHelp
6438 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
6440 class ContextHelpButton(BitmapButton
):
6442 Instances of this class may be used to add a question mark button that
6443 when pressed, puts the application into context-help mode. It does
6444 this by creating a wx.ContextHelp object which itself generates a
6445 ``EVT_HELP`` event when the user clicks on a window.
6447 On Windows, you may add a question-mark icon to a dialog by use of the
6448 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
6449 will have to add a button explicitly, usually next to OK, Cancel or
6452 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
6456 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6457 def __init__(self
, *args
, **kwargs
):
6459 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
6460 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
6462 Constructor, creating and showing a context help button.
6464 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
6465 self
.this
= newobj
.this
6468 self
._setOORInfo
(self
)
6471 class ContextHelpButtonPtr(ContextHelpButton
):
6472 def __init__(self
, this
):
6474 if not hasattr(self
,"thisown"): self
.thisown
= 0
6475 self
.__class
__ = ContextHelpButton
6476 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
6478 class HelpProvider(object):
6480 wx.HelpProvider is an abstract class used by a program
6481 implementing context-sensitive help to show the help text for the
6484 The current help provider must be explicitly set by the
6485 application using wx.HelpProvider.Set().
6487 def __init__(self
): raise RuntimeError, "No constructor defined"
6489 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6490 def Set(*args
, **kwargs
):
6492 Set(HelpProvider helpProvider) -> HelpProvider
6494 Sset the current, application-wide help provider. Returns the previous
6495 one. Unlike some other classes, the help provider is not created on
6496 demand. This must be explicitly done by the application.
6498 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6500 Set
= staticmethod(Set
)
6501 def Get(*args
, **kwargs
):
6503 Get() -> HelpProvider
6505 Return the current application-wide help provider.
6507 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6509 Get
= staticmethod(Get
)
6510 def GetHelp(*args
, **kwargs
):
6512 GetHelp(self, Window window) -> String
6514 Gets the help string for this window. Its interpretation is dependent
6515 on the help provider except that empty string always means that no
6516 help is associated with the window.
6518 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
6520 def ShowHelp(*args
, **kwargs
):
6522 ShowHelp(self, Window window) -> bool
6524 Shows help for the given window. Uses GetHelp internally if
6525 applicable. Returns True if it was done, or False if no help was
6526 available for this window.
6528 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
6530 def AddHelp(*args
, **kwargs
):
6532 AddHelp(self, Window window, String text)
6534 Associates the text with the given window.
6536 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
6538 def AddHelpById(*args
, **kwargs
):
6540 AddHelpById(self, int id, String text)
6542 This version associates the given text with all windows with this
6543 id. May be used to set the same help string for all Cancel buttons in
6544 the application, for example.
6546 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
6548 def RemoveHelp(*args
, **kwargs
):
6550 RemoveHelp(self, Window window)
6552 Removes the association between the window pointer and the help
6553 text. This is called by the wx.Window destructor. Without this, the
6554 table of help strings will fill up and when window pointers are
6555 reused, the wrong help string will be found.
6557 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
6559 def Destroy(*args
, **kwargs
):
6561 val
= _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
6566 class HelpProviderPtr(HelpProvider
):
6567 def __init__(self
, this
):
6569 if not hasattr(self
,"thisown"): self
.thisown
= 0
6570 self
.__class
__ = HelpProvider
6571 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
6573 def HelpProvider_Set(*args
, **kwargs
):
6575 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
6577 Sset the current, application-wide help provider. Returns the previous
6578 one. Unlike some other classes, the help provider is not created on
6579 demand. This must be explicitly done by the application.
6581 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6583 def HelpProvider_Get(*args
, **kwargs
):
6585 HelpProvider_Get() -> HelpProvider
6587 Return the current application-wide help provider.
6589 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6591 class SimpleHelpProvider(HelpProvider
):
6593 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6594 supports only plain text help strings, and shows the string associated
6595 with the control (if any) in a tooltip.
6598 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6599 def __init__(self
, *args
, **kwargs
):
6601 __init__(self) -> SimpleHelpProvider
6603 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6604 supports only plain text help strings, and shows the string associated
6605 with the control (if any) in a tooltip.
6607 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
6608 self
.this
= newobj
.this
6612 class SimpleHelpProviderPtr(SimpleHelpProvider
):
6613 def __init__(self
, this
):
6615 if not hasattr(self
,"thisown"): self
.thisown
= 0
6616 self
.__class
__ = SimpleHelpProvider
6617 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
6619 #---------------------------------------------------------------------------
6621 class DragImage(_core
.Object
):
6622 """Proxy of C++ DragImage class"""
6624 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6625 def __init__(self
, *args
, **kwargs
):
6626 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6627 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
6628 self
.this
= newobj
.this
6631 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
6634 if self
.thisown
: destroy(self
)
6637 def SetBackingBitmap(*args
, **kwargs
):
6638 """SetBackingBitmap(self, Bitmap bitmap)"""
6639 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6641 def BeginDrag(*args
, **kwargs
):
6643 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6644 Rect rect=None) -> bool
6646 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6648 def BeginDragBounded(*args
, **kwargs
):
6649 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6650 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6652 def EndDrag(*args
, **kwargs
):
6653 """EndDrag(self) -> bool"""
6654 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6656 def Move(*args
, **kwargs
):
6657 """Move(self, Point pt) -> bool"""
6658 return _controls_
.DragImage_Move(*args
, **kwargs
)
6660 def Show(*args
, **kwargs
):
6661 """Show(self) -> bool"""
6662 return _controls_
.DragImage_Show(*args
, **kwargs
)
6664 def Hide(*args
, **kwargs
):
6665 """Hide(self) -> bool"""
6666 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6668 def GetImageRect(*args
, **kwargs
):
6669 """GetImageRect(self, Point pos) -> Rect"""
6670 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6672 def DoDrawImage(*args
, **kwargs
):
6673 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6674 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6676 def UpdateBackingFromWindow(*args
, **kwargs
):
6677 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6678 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6680 def RedrawImage(*args
, **kwargs
):
6681 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6682 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6685 class DragImagePtr(DragImage
):
6686 def __init__(self
, this
):
6688 if not hasattr(self
,"thisown"): self
.thisown
= 0
6689 self
.__class
__ = DragImage
6690 _controls_
.DragImage_swigregister(DragImagePtr
)
6692 def DragIcon(*args
, **kwargs
):
6693 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6694 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6698 def DragString(*args
, **kwargs
):
6699 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6700 val
= _controls_
.new_DragString(*args
, **kwargs
)
6704 def DragTreeItem(*args
, **kwargs
):
6705 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6706 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6710 def DragListItem(*args
, **kwargs
):
6711 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6712 val
= _controls_
.new_DragListItem(*args
, **kwargs
)
6716 #---------------------------------------------------------------------------
6718 DP_DEFAULT
= _controls_
.DP_DEFAULT
6719 DP_SPIN
= _controls_
.DP_SPIN
6720 DP_DROPDOWN
= _controls_
.DP_DROPDOWN
6721 DP_SHOWCENTURY
= _controls_
.DP_SHOWCENTURY
6722 DP_ALLOWNONE
= _controls_
.DP_ALLOWNONE
6723 class DatePickerCtrl(_core
.Control
):
6725 This control allows the user to select a date. Unlike
6726 `wx.calendar.CalendarCtrl`, which is a relatively big control,
6727 `wx.DatePickerCtrl` is implemented as a small window showing the
6728 currently selected date. The control can be edited using the keyboard,
6729 and can also display a popup window for more user-friendly date
6730 selection, depending on the styles used and the platform.
6733 return "<%s.%s; proxy of C++ wxDatePickerCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6734 def __init__(self
, *args
, **kwargs
):
6736 __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6737 Point pos=DefaultPosition, Size size=DefaultSize,
6738 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6739 Validator validator=DefaultValidator,
6740 String name=DatePickerCtrlNameStr) -> DatePickerCtrl
6742 Create a new DatePickerCtrl.
6744 newobj
= _controls_
.new_DatePickerCtrl(*args
, **kwargs
)
6745 self
.this
= newobj
.this
6748 self
._setOORInfo
(self
)
6750 def Create(*args
, **kwargs
):
6752 Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6753 Point pos=DefaultPosition, Size size=DefaultSize,
6754 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6755 Validator validator=DefaultValidator,
6756 String name=DatePickerCtrlNameStr) -> bool
6758 Create the GUI parts of the DatePickerCtrl, for use in 2-phase
6761 return _controls_
.DatePickerCtrl_Create(*args
, **kwargs
)
6763 def SetValue(*args
, **kwargs
):
6765 SetValue(self, DateTime dt)
6767 Changes the current value of the control. The date should be valid and
6768 included in the currently selected range, if any.
6770 Calling this method does not result in a date change event.
6772 return _controls_
.DatePickerCtrl_SetValue(*args
, **kwargs
)
6774 def GetValue(*args
, **kwargs
):
6776 GetValue(self) -> DateTime
6778 Returns the currently selected date. If there is no selection or the
6779 selection is outside of the current range, an invalid `wx.DateTime`
6782 return _controls_
.DatePickerCtrl_GetValue(*args
, **kwargs
)
6784 def SetRange(*args
, **kwargs
):
6786 SetRange(self, DateTime dt1, DateTime dt2)
6788 Sets the valid range for the date selection. If dt1 is valid, it
6789 becomes the earliest date (inclusive) accepted by the control. If dt2
6790 is valid, it becomes the latest possible date.
6792 If the current value of the control is outside of the newly set range
6793 bounds, the behaviour is undefined.
6795 return _controls_
.DatePickerCtrl_SetRange(*args
, **kwargs
)
6797 def GetLowerLimit(*args
, **kwargs
):
6799 GetLowerLimit(self) -> DateTime
6801 Get the lower limit of the valid range for the date selection, if any.
6802 If there is no range or there is no lower limit, then the
6803 `wx.DateTime` value returned will be invalid.
6805 return _controls_
.DatePickerCtrl_GetLowerLimit(*args
, **kwargs
)
6807 def GetUpperLimit(*args
, **kwargs
):
6809 GetUpperLimit(self) -> DateTime
6811 Get the upper limit of the valid range for the date selection, if any.
6812 If there is no range or there is no upper limit, then the
6813 `wx.DateTime` value returned will be invalid.
6815 return _controls_
.DatePickerCtrl_GetUpperLimit(*args
, **kwargs
)
6818 class DatePickerCtrlPtr(DatePickerCtrl
):
6819 def __init__(self
, this
):
6821 if not hasattr(self
,"thisown"): self
.thisown
= 0
6822 self
.__class
__ = DatePickerCtrl
6823 _controls_
.DatePickerCtrl_swigregister(DatePickerCtrlPtr
)
6824 DatePickerCtrlNameStr
= cvar
.DatePickerCtrlNameStr
6826 def PreDatePickerCtrl(*args
, **kwargs
):
6828 PreDatePickerCtrl() -> DatePickerCtrl
6830 Precreate a DatePickerCtrl for use in 2-phase creation.
6832 val
= _controls_
.new_PreDatePickerCtrl(*args
, **kwargs
)