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 SetBitmapDisabled(*args
, **kwargs
):
245 SetBitmapDisabled(self, Bitmap bitmap)
247 Sets the bitmap for the disabled button appearance.
249 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
251 def SetBitmapFocus(*args
, **kwargs
):
253 SetBitmapFocus(self, Bitmap bitmap)
255 Sets the bitmap for the button appearance when it has the keyboard focus.
257 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
259 def SetBitmapSelected(*args
, **kwargs
):
261 SetBitmapSelected(self, Bitmap bitmap)
263 Sets the bitmap for the selected (depressed) button appearance.
265 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
267 def SetBitmapLabel(*args
, **kwargs
):
269 SetBitmapLabel(self, Bitmap bitmap)
271 Sets the bitmap label for the button. This is the bitmap used for the
272 unselected state, and for all other states if no other bitmaps are provided.
274 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
276 def SetMargins(*args
, **kwargs
):
277 """SetMargins(self, int x, int y)"""
278 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
280 def GetMarginX(*args
, **kwargs
):
281 """GetMarginX(self) -> int"""
282 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
284 def GetMarginY(*args
, **kwargs
):
285 """GetMarginY(self) -> int"""
286 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
289 class BitmapButtonPtr(BitmapButton
):
290 def __init__(self
, this
):
292 if not hasattr(self
,"thisown"): self
.thisown
= 0
293 self
.__class
__ = BitmapButton
294 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
296 def PreBitmapButton(*args
, **kwargs
):
298 PreBitmapButton() -> BitmapButton
300 Precreate a BitmapButton for 2-phase creation.
302 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
306 #---------------------------------------------------------------------------
308 CHK_2STATE
= _controls_
.CHK_2STATE
309 CHK_3STATE
= _controls_
.CHK_3STATE
310 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
311 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
312 CHK_CHECKED
= _controls_
.CHK_CHECKED
313 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
314 class CheckBox(_core
.Control
):
316 A checkbox is a labelled box which by default is either on (the
317 checkmark is visible) or off (no checkmark). Optionally (When the
318 wx.CHK_3STATE style flag is set) it can have a third state, called the
319 mixed or undetermined state. Often this is used as a "Does Not
323 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
324 def __init__(self
, *args
, **kwargs
):
326 __init__(self, Window parent, int id=-1, String label=EmptyString,
327 Point pos=DefaultPosition, Size size=DefaultSize,
328 long style=0, Validator validator=DefaultValidator,
329 String name=CheckBoxNameStr) -> CheckBox
331 Creates and shows a CheckBox control
333 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
334 self
.this
= newobj
.this
337 self
._setOORInfo
(self
)
339 def Create(*args
, **kwargs
):
341 Create(self, Window parent, int id=-1, String label=EmptyString,
342 Point pos=DefaultPosition, Size size=DefaultSize,
343 long style=0, Validator validator=DefaultValidator,
344 String name=CheckBoxNameStr) -> bool
346 Actually create the GUI CheckBox for 2-phase creation.
348 return _controls_
.CheckBox_Create(*args
, **kwargs
)
350 def GetValue(*args
, **kwargs
):
352 GetValue(self) -> bool
354 Gets the state of a 2-state CheckBox. Returns True if it is checked,
357 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
359 def IsChecked(*args
, **kwargs
):
361 IsChecked(self) -> bool
363 Similar to GetValue, but raises an exception if it is not a 2-state
366 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
368 def SetValue(*args
, **kwargs
):
370 SetValue(self, bool state)
372 Set the state of a 2-state CheckBox. Pass True for checked, False for
375 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
377 def Get3StateValue(*args
, **kwargs
):
379 Get3StateValue(self) -> int
381 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
382 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
383 the undetermined state. Raises an exceptiion when the function is
384 used with a 2-state CheckBox.
386 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
388 def Set3StateValue(*args
, **kwargs
):
390 Set3StateValue(self, int state)
392 Sets the CheckBox to the given state. The state parameter can be one
393 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
394 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
395 exception when the CheckBox is a 2-state checkbox and setting the
396 state to wx.CHK_UNDETERMINED.
398 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
400 def Is3State(*args
, **kwargs
):
402 Is3State(self) -> bool
404 Returns whether or not the CheckBox is a 3-state CheckBox.
406 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
408 def Is3rdStateAllowedForUser(*args
, **kwargs
):
410 Is3rdStateAllowedForUser(self) -> bool
412 Returns whether or not the user can set the CheckBox to the third
415 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
417 def GetClassDefaultAttributes(*args
, **kwargs
):
419 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
421 Get the default attributes for this class. This is useful if you want
422 to use the same font or colour in your own control as in a standard
423 control -- which is a much better idea than hard coding specific
424 colours or fonts which might look completely out of place on the
425 user's system, especially if it uses themes.
427 The variant parameter is only relevant under Mac currently and is
428 ignore under other platforms. Under Mac, it will change the size of
429 the returned font. See `wx.Window.SetWindowVariant` for more about
432 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
434 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
436 class CheckBoxPtr(CheckBox
):
437 def __init__(self
, this
):
439 if not hasattr(self
,"thisown"): self
.thisown
= 0
440 self
.__class
__ = CheckBox
441 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
442 CheckBoxNameStr
= cvar
.CheckBoxNameStr
444 def PreCheckBox(*args
, **kwargs
):
446 PreCheckBox() -> CheckBox
448 Precreate a CheckBox for 2-phase creation.
450 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
454 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
456 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
458 Get the default attributes for this class. This is useful if you want
459 to use the same font or colour in your own control as in a standard
460 control -- which is a much better idea than hard coding specific
461 colours or fonts which might look completely out of place on the
462 user's system, especially if it uses themes.
464 The variant parameter is only relevant under Mac currently and is
465 ignore under other platforms. Under Mac, it will change the size of
466 the returned font. See `wx.Window.SetWindowVariant` for more about
469 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
471 #---------------------------------------------------------------------------
473 class Choice(_core
.ControlWithItems
):
475 A Choice control is used to select one of a list of strings.
476 Unlike a `wx.ListBox`, only the selection is visible until the
477 user pulls down the menu of choices.
480 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
481 def __init__(self
, *args
, **kwargs
):
483 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
484 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
485 String name=ChoiceNameStr) -> Choice
487 Create and show a Choice control
489 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
490 self
.this
= newobj
.this
493 self
._setOORInfo
(self
)
495 def Create(*args
, **kwargs
):
497 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
498 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
499 String name=ChoiceNameStr) -> bool
501 Actually create the GUI Choice control for 2-phase creation
503 return _controls_
.Choice_Create(*args
, **kwargs
)
505 def GetCurrentSelection(*args
, **kwargs
):
507 GetCurrentSelection(self) -> int
509 Unlike `GetSelection` which only returns the accepted selection value,
510 i.e. the selection in the control once the user closes the dropdown
511 list, this function returns the current selection. That is, while the
512 dropdown list is shown, it returns the currently selected item in
513 it. When it is not shown, its result is the same as for the other
516 return _controls_
.Choice_GetCurrentSelection(*args
, **kwargs
)
518 def GetClassDefaultAttributes(*args
, **kwargs
):
520 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
522 Get the default attributes for this class. This is useful if you want
523 to use the same font or colour in your own control as in a standard
524 control -- which is a much better idea than hard coding specific
525 colours or fonts which might look completely out of place on the
526 user's system, especially if it uses themes.
528 The variant parameter is only relevant under Mac currently and is
529 ignore under other platforms. Under Mac, it will change the size of
530 the returned font. See `wx.Window.SetWindowVariant` for more about
533 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
535 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
537 class ChoicePtr(Choice
):
538 def __init__(self
, this
):
540 if not hasattr(self
,"thisown"): self
.thisown
= 0
541 self
.__class
__ = Choice
542 _controls_
.Choice_swigregister(ChoicePtr
)
543 ChoiceNameStr
= cvar
.ChoiceNameStr
545 def PreChoice(*args
, **kwargs
):
547 PreChoice() -> Choice
549 Precreate a Choice control for 2-phase creation.
551 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
555 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
557 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
559 Get the default attributes for this class. This is useful if you want
560 to use the same font or colour in your own control as in a standard
561 control -- which is a much better idea than hard coding specific
562 colours or fonts which might look completely out of place on the
563 user's system, especially if it uses themes.
565 The variant parameter is only relevant under Mac currently and is
566 ignore under other platforms. Under Mac, it will change the size of
567 the returned font. See `wx.Window.SetWindowVariant` for more about
570 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
572 #---------------------------------------------------------------------------
574 class ComboBox(_core
.Control
,_core
.ItemContainer
):
576 A combobox is like a combination of an edit control and a
577 listbox. It can be displayed as static list with editable or
578 read-only text field; or a drop-down list with text field.
580 A combobox permits a single selection only. Combobox items are
584 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
585 def __init__(self
, *args
, **kwargs
):
587 __init__(Window parent, int id, String value=EmptyString,
588 Point pos=DefaultPosition, Size size=DefaultSize,
589 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
590 String name=ComboBoxNameStr) -> ComboBox
592 Constructor, creates and shows a ComboBox control.
594 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
595 self
.this
= newobj
.this
598 self
._setOORInfo
(self
)
600 def Create(*args
, **kwargs
):
602 Create(Window parent, int id, String value=EmptyString,
603 Point pos=DefaultPosition, Size size=DefaultSize,
604 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
605 String name=ChoiceNameStr) -> bool
607 Actually create the GUI wxComboBox control for 2-phase creation
609 return _controls_
.ComboBox_Create(*args
, **kwargs
)
611 def GetValue(*args
, **kwargs
):
613 GetValue(self) -> String
615 Returns the current value in the combobox text field.
617 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
619 def SetValue(*args
, **kwargs
):
620 """SetValue(self, String value)"""
621 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
623 def Copy(*args
, **kwargs
):
627 Copies the selected text to the clipboard.
629 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
631 def Cut(*args
, **kwargs
):
635 Copies the selected text to the clipboard and removes the selection.
637 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
639 def Paste(*args
, **kwargs
):
643 Pastes text from the clipboard to the text field.
645 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
647 def SetInsertionPoint(*args
, **kwargs
):
649 SetInsertionPoint(self, long pos)
651 Sets the insertion point in the combobox text field.
653 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
655 def GetInsertionPoint(*args
, **kwargs
):
657 GetInsertionPoint(self) -> long
659 Returns the insertion point for the combobox's text field.
661 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
663 def GetLastPosition(*args
, **kwargs
):
665 GetLastPosition(self) -> long
667 Returns the last position in the combobox text field.
669 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
671 def Replace(*args
, **kwargs
):
673 Replace(self, long from, long to, String value)
675 Replaces the text between two positions with the given text, in the
678 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
680 def SetSelection(*args
, **kwargs
):
682 SetSelection(self, int n)
684 Sets the item at index 'n' to be the selected item.
686 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
688 def SetMark(*args
, **kwargs
):
690 SetMark(self, long from, long to)
692 Selects the text between the two positions in the combobox text field.
694 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
696 def GetCurrentSelection(*args
, **kwargs
):
698 GetCurrentSelection(self) -> int
700 Unlike `GetSelection` which only returns the accepted selection value,
701 i.e. the selection in the control once the user closes the dropdown
702 list, this function returns the current selection. That is, while the
703 dropdown list is shown, it returns the currently selected item in
704 it. When it is not shown, its result is the same as for the other
707 return _controls_
.ComboBox_GetCurrentSelection(*args
, **kwargs
)
709 def SetStringSelection(*args
, **kwargs
):
711 SetStringSelection(self, String string) -> bool
713 Select the item with the specifed string
715 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
717 def SetString(*args
, **kwargs
):
719 SetString(self, int n, String string)
721 Set the label for the n'th item (zero based) in the list.
723 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
725 def SetEditable(*args
, **kwargs
):
726 """SetEditable(self, bool editable)"""
727 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
729 def SetInsertionPointEnd(*args
, **kwargs
):
731 SetInsertionPointEnd(self)
733 Sets the insertion point at the end of the combobox text field.
735 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
737 def Remove(*args
, **kwargs
):
739 Remove(self, long from, long to)
741 Removes the text between the two positions in the combobox text field.
743 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
745 def IsEditable(*args
, **kwargs
):
747 IsEditable(self) -> bool
749 Returns True if the combo is ediatable (not read-only.)
751 return _controls_
.ComboBox_IsEditable(*args
, **kwargs
)
753 def Undo(*args
, **kwargs
):
757 Redoes the last undo in the text field. Windows only.
759 return _controls_
.ComboBox_Undo(*args
, **kwargs
)
761 def Redo(*args
, **kwargs
):
765 Undoes the last edit in the text field. Windows only.
767 return _controls_
.ComboBox_Redo(*args
, **kwargs
)
769 def SelectAll(*args
, **kwargs
):
773 Select all the text in the combo's text field.
775 return _controls_
.ComboBox_SelectAll(*args
, **kwargs
)
777 def CanCopy(*args
, **kwargs
):
779 CanCopy(self) -> bool
781 Returns True if the combobox is editable and there is a text selection
782 to copy to the clipboard. Only available on Windows.
784 return _controls_
.ComboBox_CanCopy(*args
, **kwargs
)
786 def CanCut(*args
, **kwargs
):
790 Returns True if the combobox is editable and there is a text selection
791 to copy to the clipboard. Only available on Windows.
793 return _controls_
.ComboBox_CanCut(*args
, **kwargs
)
795 def CanPaste(*args
, **kwargs
):
797 CanPaste(self) -> bool
799 Returns True if the combobox is editable and there is text on the
800 clipboard that can be pasted into the text field. Only available on
803 return _controls_
.ComboBox_CanPaste(*args
, **kwargs
)
805 def CanUndo(*args
, **kwargs
):
807 CanUndo(self) -> bool
809 Returns True if the combobox is editable and the last edit can be
810 undone. Only available on Windows.
812 return _controls_
.ComboBox_CanUndo(*args
, **kwargs
)
814 def CanRedo(*args
, **kwargs
):
816 CanRedo(self) -> bool
818 Returns True if the combobox is editable and the last undo can be
819 redone. Only available on Windows.
821 return _controls_
.ComboBox_CanRedo(*args
, **kwargs
)
823 def GetClassDefaultAttributes(*args
, **kwargs
):
825 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
827 Get the default attributes for this class. This is useful if you want
828 to use the same font or colour in your own control as in a standard
829 control -- which is a much better idea than hard coding specific
830 colours or fonts which might look completely out of place on the
831 user's system, especially if it uses themes.
833 The variant parameter is only relevant under Mac currently and is
834 ignore under other platforms. Under Mac, it will change the size of
835 the returned font. See `wx.Window.SetWindowVariant` for more about
838 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
840 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
842 class ComboBoxPtr(ComboBox
):
843 def __init__(self
, this
):
845 if not hasattr(self
,"thisown"): self
.thisown
= 0
846 self
.__class
__ = ComboBox
847 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
848 ComboBoxNameStr
= cvar
.ComboBoxNameStr
850 def PreComboBox(*args
, **kwargs
):
852 PreComboBox() -> ComboBox
854 Precreate a ComboBox control for 2-phase creation.
856 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
860 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
862 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
864 Get the default attributes for this class. This is useful if you want
865 to use the same font or colour in your own control as in a standard
866 control -- which is a much better idea than hard coding specific
867 colours or fonts which might look completely out of place on the
868 user's system, especially if it uses themes.
870 The variant parameter is only relevant under Mac currently and is
871 ignore under other platforms. Under Mac, it will change the size of
872 the returned font. See `wx.Window.SetWindowVariant` for more about
875 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
877 #---------------------------------------------------------------------------
879 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
880 GA_VERTICAL
= _controls_
.GA_VERTICAL
881 GA_SMOOTH
= _controls_
.GA_SMOOTH
882 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
883 class Gauge(_core
.Control
):
884 """Proxy of C++ Gauge class"""
886 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
887 def __init__(self
, *args
, **kwargs
):
889 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
890 Size size=DefaultSize, long style=GA_HORIZONTAL,
891 Validator validator=DefaultValidator,
892 String name=GaugeNameStr) -> Gauge
894 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
895 self
.this
= newobj
.this
898 self
._setOORInfo
(self
)
900 def Create(*args
, **kwargs
):
902 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
903 Size size=DefaultSize, long style=GA_HORIZONTAL,
904 Validator validator=DefaultValidator,
905 String name=GaugeNameStr) -> bool
907 return _controls_
.Gauge_Create(*args
, **kwargs
)
909 def SetRange(*args
, **kwargs
):
910 """SetRange(self, int range)"""
911 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
913 def GetRange(*args
, **kwargs
):
914 """GetRange(self) -> int"""
915 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
917 def SetValue(*args
, **kwargs
):
918 """SetValue(self, int pos)"""
919 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
921 def GetValue(*args
, **kwargs
):
922 """GetValue(self) -> int"""
923 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
925 def IsVertical(*args
, **kwargs
):
926 """IsVertical(self) -> bool"""
927 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
929 def SetShadowWidth(*args
, **kwargs
):
930 """SetShadowWidth(self, int w)"""
931 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
933 def GetShadowWidth(*args
, **kwargs
):
934 """GetShadowWidth(self) -> int"""
935 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
937 def SetBezelFace(*args
, **kwargs
):
938 """SetBezelFace(self, int w)"""
939 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
941 def GetBezelFace(*args
, **kwargs
):
942 """GetBezelFace(self) -> int"""
943 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
945 def GetClassDefaultAttributes(*args
, **kwargs
):
947 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
949 Get the default attributes for this class. This is useful if you want
950 to use the same font or colour in your own control as in a standard
951 control -- which is a much better idea than hard coding specific
952 colours or fonts which might look completely out of place on the
953 user's system, especially if it uses themes.
955 The variant parameter is only relevant under Mac currently and is
956 ignore under other platforms. Under Mac, it will change the size of
957 the returned font. See `wx.Window.SetWindowVariant` for more about
960 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
962 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
964 class GaugePtr(Gauge
):
965 def __init__(self
, this
):
967 if not hasattr(self
,"thisown"): self
.thisown
= 0
968 self
.__class
__ = Gauge
969 _controls_
.Gauge_swigregister(GaugePtr
)
970 GaugeNameStr
= cvar
.GaugeNameStr
972 def PreGauge(*args
, **kwargs
):
973 """PreGauge() -> Gauge"""
974 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
978 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
980 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
982 Get the default attributes for this class. This is useful if you want
983 to use the same font or colour in your own control as in a standard
984 control -- which is a much better idea than hard coding specific
985 colours or fonts which might look completely out of place on the
986 user's system, especially if it uses themes.
988 The variant parameter is only relevant under Mac currently and is
989 ignore under other platforms. Under Mac, it will change the size of
990 the returned font. See `wx.Window.SetWindowVariant` for more about
993 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
995 #---------------------------------------------------------------------------
997 class StaticBox(_core
.Control
):
998 """Proxy of C++ StaticBox class"""
1000 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1001 def __init__(self
, *args
, **kwargs
):
1003 __init__(self, Window parent, int id=-1, String label=EmptyString,
1004 Point pos=DefaultPosition, Size size=DefaultSize,
1005 long style=0, String name=StaticBoxNameStr) -> StaticBox
1007 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
1008 self
.this
= newobj
.this
1011 self
._setOORInfo
(self
)
1013 def Create(*args
, **kwargs
):
1015 Create(self, Window parent, int id=-1, String label=EmptyString,
1016 Point pos=DefaultPosition, Size size=DefaultSize,
1017 long style=0, String name=StaticBoxNameStr) -> bool
1019 return _controls_
.StaticBox_Create(*args
, **kwargs
)
1021 def GetClassDefaultAttributes(*args
, **kwargs
):
1023 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1025 Get the default attributes for this class. This is useful if you want
1026 to use the same font or colour in your own control as in a standard
1027 control -- which is a much better idea than hard coding specific
1028 colours or fonts which might look completely out of place on the
1029 user's system, especially if it uses themes.
1031 The variant parameter is only relevant under Mac currently and is
1032 ignore under other platforms. Under Mac, it will change the size of
1033 the returned font. See `wx.Window.SetWindowVariant` for more about
1036 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1038 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1040 class StaticBoxPtr(StaticBox
):
1041 def __init__(self
, this
):
1043 if not hasattr(self
,"thisown"): self
.thisown
= 0
1044 self
.__class
__ = StaticBox
1045 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
1046 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
1047 StaticBoxNameStr
= cvar
.StaticBoxNameStr
1048 StaticTextNameStr
= cvar
.StaticTextNameStr
1050 def PreStaticBox(*args
, **kwargs
):
1051 """PreStaticBox() -> StaticBox"""
1052 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
1056 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
1058 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1060 Get the default attributes for this class. This is useful if you want
1061 to use the same font or colour in your own control as in a standard
1062 control -- which is a much better idea than hard coding specific
1063 colours or fonts which might look completely out of place on the
1064 user's system, especially if it uses themes.
1066 The variant parameter is only relevant under Mac currently and is
1067 ignore under other platforms. Under Mac, it will change the size of
1068 the returned font. See `wx.Window.SetWindowVariant` for more about
1071 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1073 #---------------------------------------------------------------------------
1075 class StaticLine(_core
.Control
):
1076 """Proxy of C++ StaticLine class"""
1078 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1079 def __init__(self
, *args
, **kwargs
):
1081 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1082 Size size=DefaultSize, long style=LI_HORIZONTAL,
1083 String name=StaticTextNameStr) -> StaticLine
1085 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
1086 self
.this
= newobj
.this
1089 self
._setOORInfo
(self
)
1091 def Create(*args
, **kwargs
):
1093 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1094 Size size=DefaultSize, long style=LI_HORIZONTAL,
1095 String name=StaticTextNameStr) -> bool
1097 return _controls_
.StaticLine_Create(*args
, **kwargs
)
1099 def IsVertical(*args
, **kwargs
):
1100 """IsVertical(self) -> bool"""
1101 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
1103 def GetDefaultSize(*args
, **kwargs
):
1104 """GetDefaultSize() -> int"""
1105 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1107 GetDefaultSize
= staticmethod(GetDefaultSize
)
1108 def GetClassDefaultAttributes(*args
, **kwargs
):
1110 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1112 Get the default attributes for this class. This is useful if you want
1113 to use the same font or colour in your own control as in a standard
1114 control -- which is a much better idea than hard coding specific
1115 colours or fonts which might look completely out of place on the
1116 user's system, especially if it uses themes.
1118 The variant parameter is only relevant under Mac currently and is
1119 ignore under other platforms. Under Mac, it will change the size of
1120 the returned font. See `wx.Window.SetWindowVariant` for more about
1123 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1125 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1127 class StaticLinePtr(StaticLine
):
1128 def __init__(self
, this
):
1130 if not hasattr(self
,"thisown"): self
.thisown
= 0
1131 self
.__class
__ = StaticLine
1132 _controls_
.StaticLine_swigregister(StaticLinePtr
)
1134 def PreStaticLine(*args
, **kwargs
):
1135 """PreStaticLine() -> StaticLine"""
1136 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1140 def StaticLine_GetDefaultSize(*args
, **kwargs
):
1141 """StaticLine_GetDefaultSize() -> int"""
1142 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1144 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1146 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1148 Get the default attributes for this class. This is useful if you want
1149 to use the same font or colour in your own control as in a standard
1150 control -- which is a much better idea than hard coding specific
1151 colours or fonts which might look completely out of place on the
1152 user's system, especially if it uses themes.
1154 The variant parameter is only relevant under Mac currently and is
1155 ignore under other platforms. Under Mac, it will change the size of
1156 the returned font. See `wx.Window.SetWindowVariant` for more about
1159 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1161 #---------------------------------------------------------------------------
1163 class StaticText(_core
.Control
):
1164 """Proxy of C++ StaticText class"""
1166 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1167 def __init__(self
, *args
, **kwargs
):
1169 __init__(self, Window parent, int id=-1, String label=EmptyString,
1170 Point pos=DefaultPosition, Size size=DefaultSize,
1171 long style=0, String name=StaticTextNameStr) -> StaticText
1173 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
1174 self
.this
= newobj
.this
1177 self
._setOORInfo
(self
)
1179 def Create(*args
, **kwargs
):
1181 Create(self, Window parent, int id=-1, String label=EmptyString,
1182 Point pos=DefaultPosition, Size size=DefaultSize,
1183 long style=0, String name=StaticTextNameStr) -> bool
1185 return _controls_
.StaticText_Create(*args
, **kwargs
)
1187 def Wrap(*args
, **kwargs
):
1189 Wrap(self, int width)
1191 This functions wraps the control's label so that each of its lines
1192 becomes at most ``width`` pixels wide if possible (the lines are
1193 broken at words boundaries so it might not be the case if words are
1194 too long). If ``width`` is negative, no wrapping is done.
1196 return _controls_
.StaticText_Wrap(*args
, **kwargs
)
1198 def GetClassDefaultAttributes(*args
, **kwargs
):
1200 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1202 Get the default attributes for this class. This is useful if you want
1203 to use the same font or colour in your own control as in a standard
1204 control -- which is a much better idea than hard coding specific
1205 colours or fonts which might look completely out of place on the
1206 user's system, especially if it uses themes.
1208 The variant parameter is only relevant under Mac currently and is
1209 ignore under other platforms. Under Mac, it will change the size of
1210 the returned font. See `wx.Window.SetWindowVariant` for more about
1213 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1215 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1217 class StaticTextPtr(StaticText
):
1218 def __init__(self
, this
):
1220 if not hasattr(self
,"thisown"): self
.thisown
= 0
1221 self
.__class
__ = StaticText
1222 _controls_
.StaticText_swigregister(StaticTextPtr
)
1224 def PreStaticText(*args
, **kwargs
):
1225 """PreStaticText() -> StaticText"""
1226 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1230 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1232 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1234 Get the default attributes for this class. This is useful if you want
1235 to use the same font or colour in your own control as in a standard
1236 control -- which is a much better idea than hard coding specific
1237 colours or fonts which might look completely out of place on the
1238 user's system, especially if it uses themes.
1240 The variant parameter is only relevant under Mac currently and is
1241 ignore under other platforms. Under Mac, it will change the size of
1242 the returned font. See `wx.Window.SetWindowVariant` for more about
1245 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1247 #---------------------------------------------------------------------------
1249 class StaticBitmap(_core
.Control
):
1250 """Proxy of C++ StaticBitmap class"""
1252 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1253 def __init__(self
, *args
, **kwargs
):
1255 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1256 Point pos=DefaultPosition, Size size=DefaultSize,
1257 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1259 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
1260 self
.this
= newobj
.this
1263 self
._setOORInfo
(self
)
1265 def Create(*args
, **kwargs
):
1267 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1268 Point pos=DefaultPosition, Size size=DefaultSize,
1269 long style=0, String name=StaticBitmapNameStr) -> bool
1271 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1273 def GetBitmap(*args
, **kwargs
):
1274 """GetBitmap(self) -> Bitmap"""
1275 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1277 def SetBitmap(*args
, **kwargs
):
1278 """SetBitmap(self, Bitmap bitmap)"""
1279 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1281 def SetIcon(*args
, **kwargs
):
1282 """SetIcon(self, Icon icon)"""
1283 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1285 def GetClassDefaultAttributes(*args
, **kwargs
):
1287 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1289 Get the default attributes for this class. This is useful if you want
1290 to use the same font or colour in your own control as in a standard
1291 control -- which is a much better idea than hard coding specific
1292 colours or fonts which might look completely out of place on the
1293 user's system, especially if it uses themes.
1295 The variant parameter is only relevant under Mac currently and is
1296 ignore under other platforms. Under Mac, it will change the size of
1297 the returned font. See `wx.Window.SetWindowVariant` for more about
1300 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1302 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1304 class StaticBitmapPtr(StaticBitmap
):
1305 def __init__(self
, this
):
1307 if not hasattr(self
,"thisown"): self
.thisown
= 0
1308 self
.__class
__ = StaticBitmap
1309 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
1311 def PreStaticBitmap(*args
, **kwargs
):
1312 """PreStaticBitmap() -> StaticBitmap"""
1313 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1317 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1319 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1321 Get the default attributes for this class. This is useful if you want
1322 to use the same font or colour in your own control as in a standard
1323 control -- which is a much better idea than hard coding specific
1324 colours or fonts which might look completely out of place on the
1325 user's system, especially if it uses themes.
1327 The variant parameter is only relevant under Mac currently and is
1328 ignore under other platforms. Under Mac, it will change the size of
1329 the returned font. See `wx.Window.SetWindowVariant` for more about
1332 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1334 #---------------------------------------------------------------------------
1336 class ListBox(_core
.ControlWithItems
):
1337 """Proxy of C++ ListBox class"""
1339 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1340 def __init__(self
, *args
, **kwargs
):
1342 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1343 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1344 long style=0, Validator validator=DefaultValidator,
1345 String name=ListBoxNameStr) -> ListBox
1347 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
1348 self
.this
= newobj
.this
1351 self
._setOORInfo
(self
)
1353 def Create(*args
, **kwargs
):
1355 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1356 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1357 long style=0, Validator validator=DefaultValidator,
1358 String name=ListBoxNameStr) -> bool
1360 return _controls_
.ListBox_Create(*args
, **kwargs
)
1362 def Insert(*args
, **kwargs
):
1364 Insert(self, String item, int pos, PyObject clientData=None)
1366 Insert an item into the control before the item at the ``pos`` index,
1367 optionally associating some data object with the item.
1369 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1371 def InsertItems(*args
, **kwargs
):
1372 """InsertItems(self, wxArrayString items, int pos)"""
1373 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1375 def Set(*args
, **kwargs
):
1376 """Set(self, wxArrayString items)"""
1377 return _controls_
.ListBox_Set(*args
, **kwargs
)
1379 def IsSelected(*args
, **kwargs
):
1380 """IsSelected(self, int n) -> bool"""
1381 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1383 def SetSelection(*args
, **kwargs
):
1384 """SetSelection(self, int n, bool select=True)"""
1385 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1387 def Select(*args
, **kwargs
):
1391 This is the same as `SetSelection` and exists only because it is
1392 slightly more natural for controls which support multiple selection.
1394 return _controls_
.ListBox_Select(*args
, **kwargs
)
1396 def Deselect(*args
, **kwargs
):
1397 """Deselect(self, int n)"""
1398 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1400 def DeselectAll(*args
, **kwargs
):
1401 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1402 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1404 def SetStringSelection(*args
, **kwargs
):
1405 """SetStringSelection(self, String s, bool select=True) -> bool"""
1406 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1408 def GetSelections(*args
, **kwargs
):
1409 """GetSelections(self) -> PyObject"""
1410 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1412 def SetFirstItem(*args
, **kwargs
):
1413 """SetFirstItem(self, int n)"""
1414 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1416 def SetFirstItemStr(*args
, **kwargs
):
1417 """SetFirstItemStr(self, String s)"""
1418 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1420 def EnsureVisible(*args
, **kwargs
):
1421 """EnsureVisible(self, int n)"""
1422 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1424 def AppendAndEnsureVisible(*args
, **kwargs
):
1425 """AppendAndEnsureVisible(self, String s)"""
1426 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1428 def IsSorted(*args
, **kwargs
):
1429 """IsSorted(self) -> bool"""
1430 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1432 def SetItemForegroundColour(*args
, **kwargs
):
1433 """SetItemForegroundColour(self, int item, Colour c)"""
1434 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1436 def SetItemBackgroundColour(*args
, **kwargs
):
1437 """SetItemBackgroundColour(self, int item, Colour c)"""
1438 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1440 def SetItemFont(*args
, **kwargs
):
1441 """SetItemFont(self, int item, Font f)"""
1442 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1444 def GetClassDefaultAttributes(*args
, **kwargs
):
1446 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1448 Get the default attributes for this class. This is useful if you want
1449 to use the same font or colour in your own control as in a standard
1450 control -- which is a much better idea than hard coding specific
1451 colours or fonts which might look completely out of place on the
1452 user's system, especially if it uses themes.
1454 The variant parameter is only relevant under Mac currently and is
1455 ignore under other platforms. Under Mac, it will change the size of
1456 the returned font. See `wx.Window.SetWindowVariant` for more about
1459 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1461 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1463 class ListBoxPtr(ListBox
):
1464 def __init__(self
, this
):
1466 if not hasattr(self
,"thisown"): self
.thisown
= 0
1467 self
.__class
__ = ListBox
1468 _controls_
.ListBox_swigregister(ListBoxPtr
)
1469 ListBoxNameStr
= cvar
.ListBoxNameStr
1471 def PreListBox(*args
, **kwargs
):
1472 """PreListBox() -> ListBox"""
1473 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1477 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1479 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1481 Get the default attributes for this class. This is useful if you want
1482 to use the same font or colour in your own control as in a standard
1483 control -- which is a much better idea than hard coding specific
1484 colours or fonts which might look completely out of place on the
1485 user's system, especially if it uses themes.
1487 The variant parameter is only relevant under Mac currently and is
1488 ignore under other platforms. Under Mac, it will change the size of
1489 the returned font. See `wx.Window.SetWindowVariant` for more about
1492 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1494 #---------------------------------------------------------------------------
1496 class CheckListBox(ListBox
):
1497 """Proxy of C++ CheckListBox class"""
1499 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1500 def __init__(self
, *args
, **kwargs
):
1502 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1503 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1504 long style=0, Validator validator=DefaultValidator,
1505 String name=ListBoxNameStr) -> CheckListBox
1507 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1508 self
.this
= newobj
.this
1511 self
._setOORInfo
(self
)
1513 def Create(*args
, **kwargs
):
1515 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1516 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1517 long style=0, Validator validator=DefaultValidator,
1518 String name=ListBoxNameStr) -> bool
1520 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1522 def IsChecked(*args
, **kwargs
):
1523 """IsChecked(self, int index) -> bool"""
1524 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1526 def Check(*args
, **kwargs
):
1527 """Check(self, int index, int check=True)"""
1528 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1530 def HitTest(*args
, **kwargs
):
1532 HitTest(self, Point pt) -> int
1534 Test where the given (in client coords) point lies
1536 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1538 def HitTestXY(*args
, **kwargs
):
1540 HitTestXY(self, int x, int y) -> int
1542 Test where the given (in client coords) point lies
1544 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1547 class CheckListBoxPtr(CheckListBox
):
1548 def __init__(self
, this
):
1550 if not hasattr(self
,"thisown"): self
.thisown
= 0
1551 self
.__class
__ = CheckListBox
1552 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1554 def PreCheckListBox(*args
, **kwargs
):
1555 """PreCheckListBox() -> CheckListBox"""
1556 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1560 #---------------------------------------------------------------------------
1562 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1563 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1564 TE_READONLY
= _controls_
.TE_READONLY
1565 TE_MULTILINE
= _controls_
.TE_MULTILINE
1566 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1567 TE_LEFT
= _controls_
.TE_LEFT
1568 TE_CENTER
= _controls_
.TE_CENTER
1569 TE_RIGHT
= _controls_
.TE_RIGHT
1570 TE_CENTRE
= _controls_
.TE_CENTRE
1571 TE_RICH
= _controls_
.TE_RICH
1572 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1573 TE_PASSWORD
= _controls_
.TE_PASSWORD
1574 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1575 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1576 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1577 TE_CHARWRAP
= _controls_
.TE_CHARWRAP
1578 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1579 TE_BESTWRAP
= _controls_
.TE_BESTWRAP
1580 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1581 TE_RICH2
= _controls_
.TE_RICH2
1582 TE_CAPITALIZE
= _controls_
.TE_CAPITALIZE
1583 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1584 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1585 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1586 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1587 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1588 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1589 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1590 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1591 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1592 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1593 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1594 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1595 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1596 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1597 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1598 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1599 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1600 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1601 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1602 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1603 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1604 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1605 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1606 OutOfRangeTextCoord
= _controls_
.OutOfRangeTextCoord
1607 InvalidTextCoord
= _controls_
.InvalidTextCoord
1608 class TextAttr(object):
1609 """Proxy of C++ TextAttr class"""
1611 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1612 def __init__(self
, *args
, **kwargs
):
1614 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1615 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1617 newobj
= _controls_
.new_TextAttr(*args
, **kwargs
)
1618 self
.this
= newobj
.this
1621 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1624 if self
.thisown
: destroy(self
)
1627 def Init(*args
, **kwargs
):
1629 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1631 def SetTextColour(*args
, **kwargs
):
1632 """SetTextColour(self, Colour colText)"""
1633 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1635 def SetBackgroundColour(*args
, **kwargs
):
1636 """SetBackgroundColour(self, Colour colBack)"""
1637 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1639 def SetFont(*args
, **kwargs
):
1640 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1641 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1643 def SetAlignment(*args
, **kwargs
):
1644 """SetAlignment(self, int alignment)"""
1645 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1647 def SetTabs(*args
, **kwargs
):
1648 """SetTabs(self, wxArrayInt tabs)"""
1649 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1651 def SetLeftIndent(*args
, **kwargs
):
1652 """SetLeftIndent(self, int indent, int subIndent=0)"""
1653 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1655 def SetRightIndent(*args
, **kwargs
):
1656 """SetRightIndent(self, int indent)"""
1657 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1659 def SetFlags(*args
, **kwargs
):
1660 """SetFlags(self, long flags)"""
1661 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1663 def HasTextColour(*args
, **kwargs
):
1664 """HasTextColour(self) -> bool"""
1665 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1667 def HasBackgroundColour(*args
, **kwargs
):
1668 """HasBackgroundColour(self) -> bool"""
1669 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1671 def HasFont(*args
, **kwargs
):
1672 """HasFont(self) -> bool"""
1673 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1675 def HasAlignment(*args
, **kwargs
):
1676 """HasAlignment(self) -> bool"""
1677 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1679 def HasTabs(*args
, **kwargs
):
1680 """HasTabs(self) -> bool"""
1681 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1683 def HasLeftIndent(*args
, **kwargs
):
1684 """HasLeftIndent(self) -> bool"""
1685 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1687 def HasRightIndent(*args
, **kwargs
):
1688 """HasRightIndent(self) -> bool"""
1689 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1691 def HasFlag(*args
, **kwargs
):
1692 """HasFlag(self, long flag) -> bool"""
1693 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1695 def GetTextColour(*args
, **kwargs
):
1696 """GetTextColour(self) -> Colour"""
1697 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1699 def GetBackgroundColour(*args
, **kwargs
):
1700 """GetBackgroundColour(self) -> Colour"""
1701 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1703 def GetFont(*args
, **kwargs
):
1704 """GetFont(self) -> Font"""
1705 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1707 def GetAlignment(*args
, **kwargs
):
1708 """GetAlignment(self) -> int"""
1709 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1711 def GetTabs(*args
, **kwargs
):
1712 """GetTabs(self) -> wxArrayInt"""
1713 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1715 def GetLeftIndent(*args
, **kwargs
):
1716 """GetLeftIndent(self) -> long"""
1717 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1719 def GetLeftSubIndent(*args
, **kwargs
):
1720 """GetLeftSubIndent(self) -> long"""
1721 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1723 def GetRightIndent(*args
, **kwargs
):
1724 """GetRightIndent(self) -> long"""
1725 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1727 def GetFlags(*args
, **kwargs
):
1728 """GetFlags(self) -> long"""
1729 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1731 def IsDefault(*args
, **kwargs
):
1732 """IsDefault(self) -> bool"""
1733 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1735 def Combine(*args
, **kwargs
):
1736 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1737 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1739 Combine
= staticmethod(Combine
)
1741 class TextAttrPtr(TextAttr
):
1742 def __init__(self
, this
):
1744 if not hasattr(self
,"thisown"): self
.thisown
= 0
1745 self
.__class
__ = TextAttr
1746 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1747 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1749 def TextAttr_Combine(*args
, **kwargs
):
1750 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1751 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1753 class TextCtrl(_core
.Control
):
1754 """Proxy of C++ TextCtrl class"""
1756 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1757 def __init__(self
, *args
, **kwargs
):
1759 __init__(self, Window parent, int id=-1, String value=EmptyString,
1760 Point pos=DefaultPosition, Size size=DefaultSize,
1761 long style=0, Validator validator=DefaultValidator,
1762 String name=TextCtrlNameStr) -> TextCtrl
1764 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1765 self
.this
= newobj
.this
1768 self
._setOORInfo
(self
)
1770 def Create(*args
, **kwargs
):
1772 Create(self, Window parent, int id=-1, String value=EmptyString,
1773 Point pos=DefaultPosition, Size size=DefaultSize,
1774 long style=0, Validator validator=DefaultValidator,
1775 String name=TextCtrlNameStr) -> bool
1777 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1779 def GetValue(*args
, **kwargs
):
1780 """GetValue(self) -> String"""
1781 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1783 def SetValue(*args
, **kwargs
):
1784 """SetValue(self, String value)"""
1785 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1787 def GetRange(*args
, **kwargs
):
1788 """GetRange(self, long from, long to) -> String"""
1789 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1791 def GetLineLength(*args
, **kwargs
):
1792 """GetLineLength(self, long lineNo) -> int"""
1793 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1795 def GetLineText(*args
, **kwargs
):
1796 """GetLineText(self, long lineNo) -> String"""
1797 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1799 def GetNumberOfLines(*args
, **kwargs
):
1800 """GetNumberOfLines(self) -> int"""
1801 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1803 def IsModified(*args
, **kwargs
):
1804 """IsModified(self) -> bool"""
1805 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1807 def IsEditable(*args
, **kwargs
):
1808 """IsEditable(self) -> bool"""
1809 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1811 def IsSingleLine(*args
, **kwargs
):
1812 """IsSingleLine(self) -> bool"""
1813 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1815 def IsMultiLine(*args
, **kwargs
):
1816 """IsMultiLine(self) -> bool"""
1817 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1819 def GetSelection(*args
, **kwargs
):
1821 GetSelection() -> (from, to)
1823 If the return values from and to are the same, there is no selection.
1825 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1827 def GetStringSelection(*args
, **kwargs
):
1828 """GetStringSelection(self) -> String"""
1829 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1831 def Clear(*args
, **kwargs
):
1833 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1835 def Replace(*args
, **kwargs
):
1836 """Replace(self, long from, long to, String value)"""
1837 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1839 def Remove(*args
, **kwargs
):
1840 """Remove(self, long from, long to)"""
1841 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1843 def LoadFile(*args
, **kwargs
):
1844 """LoadFile(self, String file) -> bool"""
1845 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1847 def SaveFile(*args
, **kwargs
):
1848 """SaveFile(self, String file=EmptyString) -> bool"""
1849 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1851 def MarkDirty(*args
, **kwargs
):
1852 """MarkDirty(self)"""
1853 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1855 def DiscardEdits(*args
, **kwargs
):
1856 """DiscardEdits(self)"""
1857 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1859 def SetMaxLength(*args
, **kwargs
):
1860 """SetMaxLength(self, unsigned long len)"""
1861 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1863 def WriteText(*args
, **kwargs
):
1864 """WriteText(self, String text)"""
1865 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1867 def AppendText(*args
, **kwargs
):
1868 """AppendText(self, String text)"""
1869 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1871 def EmulateKeyPress(*args
, **kwargs
):
1872 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1873 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1875 def SetStyle(*args
, **kwargs
):
1876 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1877 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1879 def GetStyle(*args
, **kwargs
):
1880 """GetStyle(self, long position, TextAttr style) -> bool"""
1881 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1883 def SetDefaultStyle(*args
, **kwargs
):
1884 """SetDefaultStyle(self, TextAttr style) -> bool"""
1885 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1887 def GetDefaultStyle(*args
, **kwargs
):
1888 """GetDefaultStyle(self) -> TextAttr"""
1889 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1891 def XYToPosition(*args
, **kwargs
):
1892 """XYToPosition(self, long x, long y) -> long"""
1893 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1895 def PositionToXY(*args
, **kwargs
):
1896 """PositionToXY(long pos) -> (x, y)"""
1897 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1899 def ShowPosition(*args
, **kwargs
):
1900 """ShowPosition(self, long pos)"""
1901 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1903 def HitTest(*args
, **kwargs
):
1905 HitTest(Point pt) -> (result, col, row)
1907 Find the row, col coresponding to the character at the point given in
1908 pixels. NB: pt is in device coords but is not adjusted for the client
1909 area origin nor scrolling.
1911 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1913 def HitTestPos(*args
, **kwargs
):
1915 HitTestPos(Point pt) -> (result, position)
1917 Find the character position in the text coresponding to the point
1918 given in pixels. NB: pt is in device coords but is not adjusted for
1919 the client area origin nor scrolling.
1921 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1923 def Copy(*args
, **kwargs
):
1925 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1927 def Cut(*args
, **kwargs
):
1929 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1931 def Paste(*args
, **kwargs
):
1933 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1935 def CanCopy(*args
, **kwargs
):
1936 """CanCopy(self) -> bool"""
1937 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1939 def CanCut(*args
, **kwargs
):
1940 """CanCut(self) -> bool"""
1941 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1943 def CanPaste(*args
, **kwargs
):
1944 """CanPaste(self) -> bool"""
1945 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1947 def Undo(*args
, **kwargs
):
1949 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1951 def Redo(*args
, **kwargs
):
1953 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1955 def CanUndo(*args
, **kwargs
):
1956 """CanUndo(self) -> bool"""
1957 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1959 def CanRedo(*args
, **kwargs
):
1960 """CanRedo(self) -> bool"""
1961 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1963 def SetInsertionPoint(*args
, **kwargs
):
1964 """SetInsertionPoint(self, long pos)"""
1965 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1967 def SetInsertionPointEnd(*args
, **kwargs
):
1968 """SetInsertionPointEnd(self)"""
1969 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1971 def GetInsertionPoint(*args
, **kwargs
):
1972 """GetInsertionPoint(self) -> long"""
1973 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1975 def GetLastPosition(*args
, **kwargs
):
1976 """GetLastPosition(self) -> long"""
1977 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1979 def SetSelection(*args
, **kwargs
):
1980 """SetSelection(self, long from, long to)"""
1981 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1983 def SelectAll(*args
, **kwargs
):
1984 """SelectAll(self)"""
1985 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1987 def SetEditable(*args
, **kwargs
):
1988 """SetEditable(self, bool editable)"""
1989 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1991 def write(*args
, **kwargs
):
1992 """write(self, String text)"""
1993 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1995 def GetString(*args
, **kwargs
):
1996 """GetString(self, long from, long to) -> String"""
1997 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1999 def GetClassDefaultAttributes(*args
, **kwargs
):
2001 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2003 Get the default attributes for this class. This is useful if you want
2004 to use the same font or colour in your own control as in a standard
2005 control -- which is a much better idea than hard coding specific
2006 colours or fonts which might look completely out of place on the
2007 user's system, especially if it uses themes.
2009 The variant parameter is only relevant under Mac currently and is
2010 ignore under other platforms. Under Mac, it will change the size of
2011 the returned font. See `wx.Window.SetWindowVariant` for more about
2014 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2016 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2018 class TextCtrlPtr(TextCtrl
):
2019 def __init__(self
, this
):
2021 if not hasattr(self
,"thisown"): self
.thisown
= 0
2022 self
.__class
__ = TextCtrl
2023 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
2025 def PreTextCtrl(*args
, **kwargs
):
2026 """PreTextCtrl() -> TextCtrl"""
2027 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
2031 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2033 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2035 Get the default attributes for this class. This is useful if you want
2036 to use the same font or colour in your own control as in a standard
2037 control -- which is a much better idea than hard coding specific
2038 colours or fonts which might look completely out of place on the
2039 user's system, especially if it uses themes.
2041 The variant parameter is only relevant under Mac currently and is
2042 ignore under other platforms. Under Mac, it will change the size of
2043 the returned font. See `wx.Window.SetWindowVariant` for more about
2046 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2048 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
2049 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
2050 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
2051 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
2052 class TextUrlEvent(_core
.CommandEvent
):
2053 """Proxy of C++ TextUrlEvent class"""
2055 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2056 def __init__(self
, *args
, **kwargs
):
2057 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
2058 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
2059 self
.this
= newobj
.this
2062 def GetMouseEvent(*args
, **kwargs
):
2063 """GetMouseEvent(self) -> MouseEvent"""
2064 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
2066 def GetURLStart(*args
, **kwargs
):
2067 """GetURLStart(self) -> long"""
2068 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
2070 def GetURLEnd(*args
, **kwargs
):
2071 """GetURLEnd(self) -> long"""
2072 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
2075 class TextUrlEventPtr(TextUrlEvent
):
2076 def __init__(self
, this
):
2078 if not hasattr(self
,"thisown"): self
.thisown
= 0
2079 self
.__class
__ = TextUrlEvent
2080 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
2082 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
2083 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
2084 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
2085 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
2087 #---------------------------------------------------------------------------
2089 class ScrollBar(_core
.Control
):
2090 """Proxy of C++ ScrollBar class"""
2092 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2093 def __init__(self
, *args
, **kwargs
):
2095 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2096 Size size=DefaultSize, long style=SB_HORIZONTAL,
2097 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
2099 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
2100 self
.this
= newobj
.this
2103 self
._setOORInfo
(self
)
2105 def Create(*args
, **kwargs
):
2107 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2108 Size size=DefaultSize, long style=SB_HORIZONTAL,
2109 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2111 Do the 2nd phase and create the GUI control.
2113 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2115 def GetThumbPosition(*args
, **kwargs
):
2116 """GetThumbPosition(self) -> int"""
2117 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2119 def GetThumbSize(*args
, **kwargs
):
2120 """GetThumbSize(self) -> int"""
2121 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2123 GetThumbLength
= GetThumbSize
2124 def GetPageSize(*args
, **kwargs
):
2125 """GetPageSize(self) -> int"""
2126 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2128 def GetRange(*args
, **kwargs
):
2129 """GetRange(self) -> int"""
2130 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2132 def IsVertical(*args
, **kwargs
):
2133 """IsVertical(self) -> bool"""
2134 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2136 def SetThumbPosition(*args
, **kwargs
):
2137 """SetThumbPosition(self, int viewStart)"""
2138 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2140 def SetScrollbar(*args
, **kwargs
):
2142 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
2145 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
2147 def GetClassDefaultAttributes(*args
, **kwargs
):
2149 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2151 Get the default attributes for this class. This is useful if you want
2152 to use the same font or colour in your own control as in a standard
2153 control -- which is a much better idea than hard coding specific
2154 colours or fonts which might look completely out of place on the
2155 user's system, especially if it uses themes.
2157 The variant parameter is only relevant under Mac currently and is
2158 ignore under other platforms. Under Mac, it will change the size of
2159 the returned font. See `wx.Window.SetWindowVariant` for more about
2162 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2164 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2166 class ScrollBarPtr(ScrollBar
):
2167 def __init__(self
, this
):
2169 if not hasattr(self
,"thisown"): self
.thisown
= 0
2170 self
.__class
__ = ScrollBar
2171 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
2172 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2174 def PreScrollBar(*args
, **kwargs
):
2175 """PreScrollBar() -> ScrollBar"""
2176 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2180 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2182 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2184 Get the default attributes for this class. This is useful if you want
2185 to use the same font or colour in your own control as in a standard
2186 control -- which is a much better idea than hard coding specific
2187 colours or fonts which might look completely out of place on the
2188 user's system, especially if it uses themes.
2190 The variant parameter is only relevant under Mac currently and is
2191 ignore under other platforms. Under Mac, it will change the size of
2192 the returned font. See `wx.Window.SetWindowVariant` for more about
2195 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2197 #---------------------------------------------------------------------------
2199 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2200 SP_VERTICAL
= _controls_
.SP_VERTICAL
2201 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2202 SP_WRAP
= _controls_
.SP_WRAP
2203 class SpinButton(_core
.Control
):
2204 """Proxy of C++ SpinButton class"""
2206 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2207 def __init__(self
, *args
, **kwargs
):
2209 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2210 Size size=DefaultSize, long style=SP_HORIZONTAL,
2211 String name=SPIN_BUTTON_NAME) -> SpinButton
2213 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
2214 self
.this
= newobj
.this
2217 self
._setOORInfo
(self
)
2219 def Create(*args
, **kwargs
):
2221 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2222 Size size=DefaultSize, long style=SP_HORIZONTAL,
2223 String name=SPIN_BUTTON_NAME) -> bool
2225 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2227 def GetValue(*args
, **kwargs
):
2228 """GetValue(self) -> int"""
2229 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2231 def GetMin(*args
, **kwargs
):
2232 """GetMin(self) -> int"""
2233 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2235 def GetMax(*args
, **kwargs
):
2236 """GetMax(self) -> int"""
2237 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2239 def SetValue(*args
, **kwargs
):
2240 """SetValue(self, int val)"""
2241 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2243 def SetMin(*args
, **kwargs
):
2244 """SetMin(self, int minVal)"""
2245 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2247 def SetMax(*args
, **kwargs
):
2248 """SetMax(self, int maxVal)"""
2249 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2251 def SetRange(*args
, **kwargs
):
2252 """SetRange(self, int minVal, int maxVal)"""
2253 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2255 def IsVertical(*args
, **kwargs
):
2256 """IsVertical(self) -> bool"""
2257 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2259 def GetClassDefaultAttributes(*args
, **kwargs
):
2261 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2263 Get the default attributes for this class. This is useful if you want
2264 to use the same font or colour in your own control as in a standard
2265 control -- which is a much better idea than hard coding specific
2266 colours or fonts which might look completely out of place on the
2267 user's system, especially if it uses themes.
2269 The variant parameter is only relevant under Mac currently and is
2270 ignore under other platforms. Under Mac, it will change the size of
2271 the returned font. See `wx.Window.SetWindowVariant` for more about
2274 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2276 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2278 class SpinButtonPtr(SpinButton
):
2279 def __init__(self
, this
):
2281 if not hasattr(self
,"thisown"): self
.thisown
= 0
2282 self
.__class
__ = SpinButton
2283 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
2284 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2285 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2287 def PreSpinButton(*args
, **kwargs
):
2288 """PreSpinButton() -> SpinButton"""
2289 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2293 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2295 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2297 Get the default attributes for this class. This is useful if you want
2298 to use the same font or colour in your own control as in a standard
2299 control -- which is a much better idea than hard coding specific
2300 colours or fonts which might look completely out of place on the
2301 user's system, especially if it uses themes.
2303 The variant parameter is only relevant under Mac currently and is
2304 ignore under other platforms. Under Mac, it will change the size of
2305 the returned font. See `wx.Window.SetWindowVariant` for more about
2308 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2310 class SpinCtrl(_core
.Control
):
2311 """Proxy of C++ SpinCtrl class"""
2313 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2314 def __init__(self
, *args
, **kwargs
):
2316 __init__(self, Window parent, int id=-1, String value=EmptyString,
2317 Point pos=DefaultPosition, Size size=DefaultSize,
2318 long style=SP_ARROW_KEYS, int min=0, int max=100,
2319 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2321 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
2322 self
.this
= newobj
.this
2325 self
._setOORInfo
(self
)
2327 def Create(*args
, **kwargs
):
2329 Create(self, Window parent, int id=-1, String value=EmptyString,
2330 Point pos=DefaultPosition, Size size=DefaultSize,
2331 long style=SP_ARROW_KEYS, int min=0, int max=100,
2332 int initial=0, String name=SpinCtrlNameStr) -> bool
2334 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2336 def GetValue(*args
, **kwargs
):
2337 """GetValue(self) -> int"""
2338 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2340 def SetValue(*args
, **kwargs
):
2341 """SetValue(self, int value)"""
2342 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2344 def SetValueString(*args
, **kwargs
):
2345 """SetValueString(self, String text)"""
2346 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2348 def SetRange(*args
, **kwargs
):
2349 """SetRange(self, int minVal, int maxVal)"""
2350 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2352 def GetMin(*args
, **kwargs
):
2353 """GetMin(self) -> int"""
2354 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2356 def GetMax(*args
, **kwargs
):
2357 """GetMax(self) -> int"""
2358 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2360 def SetSelection(*args
, **kwargs
):
2361 """SetSelection(self, long from, long to)"""
2362 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2364 def GetClassDefaultAttributes(*args
, **kwargs
):
2366 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2368 Get the default attributes for this class. This is useful if you want
2369 to use the same font or colour in your own control as in a standard
2370 control -- which is a much better idea than hard coding specific
2371 colours or fonts which might look completely out of place on the
2372 user's system, especially if it uses themes.
2374 The variant parameter is only relevant under Mac currently and is
2375 ignore under other platforms. Under Mac, it will change the size of
2376 the returned font. See `wx.Window.SetWindowVariant` for more about
2379 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2381 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2383 class SpinCtrlPtr(SpinCtrl
):
2384 def __init__(self
, this
):
2386 if not hasattr(self
,"thisown"): self
.thisown
= 0
2387 self
.__class
__ = SpinCtrl
2388 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
2390 def PreSpinCtrl(*args
, **kwargs
):
2391 """PreSpinCtrl() -> SpinCtrl"""
2392 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2396 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2398 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2400 Get the default attributes for this class. This is useful if you want
2401 to use the same font or colour in your own control as in a standard
2402 control -- which is a much better idea than hard coding specific
2403 colours or fonts which might look completely out of place on the
2404 user's system, especially if it uses themes.
2406 The variant parameter is only relevant under Mac currently and is
2407 ignore under other platforms. Under Mac, it will change the size of
2408 the returned font. See `wx.Window.SetWindowVariant` for more about
2411 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2413 class SpinEvent(_core
.NotifyEvent
):
2414 """Proxy of C++ SpinEvent class"""
2416 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2417 def __init__(self
, *args
, **kwargs
):
2418 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2419 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
2420 self
.this
= newobj
.this
2423 def GetPosition(*args
, **kwargs
):
2424 """GetPosition(self) -> int"""
2425 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2427 def SetPosition(*args
, **kwargs
):
2428 """SetPosition(self, int pos)"""
2429 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2432 class SpinEventPtr(SpinEvent
):
2433 def __init__(self
, this
):
2435 if not hasattr(self
,"thisown"): self
.thisown
= 0
2436 self
.__class
__ = SpinEvent
2437 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
2439 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2440 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2441 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2442 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2443 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2445 #---------------------------------------------------------------------------
2447 class RadioBox(_core
.Control
):
2448 """Proxy of C++ RadioBox class"""
2450 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2451 def __init__(self
, *args
, **kwargs
):
2453 __init__(self, Window parent, int id=-1, String label=EmptyString,
2454 Point pos=DefaultPosition, Size size=DefaultSize,
2455 wxArrayString choices=wxPyEmptyStringArray,
2456 int majorDimension=0, long style=RA_HORIZONTAL,
2457 Validator validator=DefaultValidator,
2458 String name=RadioBoxNameStr) -> RadioBox
2460 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2461 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
2462 self
.this
= newobj
.this
2465 self
._setOORInfo
(self
)
2467 def Create(*args
, **kwargs
):
2469 Create(self, Window parent, int id=-1, String label=EmptyString,
2470 Point pos=DefaultPosition, Size size=DefaultSize,
2471 wxArrayString choices=wxPyEmptyStringArray,
2472 int majorDimension=0, long style=RA_HORIZONTAL,
2473 Validator validator=DefaultValidator,
2474 String name=RadioBoxNameStr) -> bool
2476 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2478 def SetSelection(*args
, **kwargs
):
2479 """SetSelection(self, int n)"""
2480 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2482 def GetSelection(*args
, **kwargs
):
2483 """GetSelection(self) -> int"""
2484 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2486 def GetStringSelection(*args
, **kwargs
):
2487 """GetStringSelection(self) -> String"""
2488 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2490 def SetStringSelection(*args
, **kwargs
):
2491 """SetStringSelection(self, String s) -> bool"""
2492 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2494 def GetCount(*args
, **kwargs
):
2495 """GetCount(self) -> int"""
2496 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2498 def FindString(*args
, **kwargs
):
2499 """FindString(self, String s) -> int"""
2500 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2502 def GetString(*args
, **kwargs
):
2503 """GetString(self, int n) -> String"""
2504 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2506 def SetString(*args
, **kwargs
):
2507 """SetString(self, int n, String label)"""
2508 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2510 GetItemLabel
= GetString
2511 SetItemLabel
= SetString
2512 def EnableItem(*args
, **kwargs
):
2513 """EnableItem(self, int n, bool enable=True)"""
2514 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2516 def ShowItem(*args
, **kwargs
):
2517 """ShowItem(self, int n, bool show=True)"""
2518 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2520 def GetColumnCount(*args
, **kwargs
):
2521 """GetColumnCount(self) -> int"""
2522 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2524 def GetRowCount(*args
, **kwargs
):
2525 """GetRowCount(self) -> int"""
2526 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2528 def GetNextItem(*args
, **kwargs
):
2529 """GetNextItem(self, int item, int dir, long style) -> int"""
2530 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2532 def GetClassDefaultAttributes(*args
, **kwargs
):
2534 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2536 Get the default attributes for this class. This is useful if you want
2537 to use the same font or colour in your own control as in a standard
2538 control -- which is a much better idea than hard coding specific
2539 colours or fonts which might look completely out of place on the
2540 user's system, especially if it uses themes.
2542 The variant parameter is only relevant under Mac currently and is
2543 ignore under other platforms. Under Mac, it will change the size of
2544 the returned font. See `wx.Window.SetWindowVariant` for more about
2547 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2549 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2551 class RadioBoxPtr(RadioBox
):
2552 def __init__(self
, this
):
2554 if not hasattr(self
,"thisown"): self
.thisown
= 0
2555 self
.__class
__ = RadioBox
2556 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2557 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2558 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2560 def PreRadioBox(*args
, **kwargs
):
2561 """PreRadioBox() -> RadioBox"""
2562 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2566 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2568 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2570 Get the default attributes for this class. This is useful if you want
2571 to use the same font or colour in your own control as in a standard
2572 control -- which is a much better idea than hard coding specific
2573 colours or fonts which might look completely out of place on the
2574 user's system, especially if it uses themes.
2576 The variant parameter is only relevant under Mac currently and is
2577 ignore under other platforms. Under Mac, it will change the size of
2578 the returned font. See `wx.Window.SetWindowVariant` for more about
2581 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2583 #---------------------------------------------------------------------------
2585 class RadioButton(_core
.Control
):
2586 """Proxy of C++ RadioButton class"""
2588 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2589 def __init__(self
, *args
, **kwargs
):
2591 __init__(self, Window parent, int id=-1, String label=EmptyString,
2592 Point pos=DefaultPosition, Size size=DefaultSize,
2593 long style=0, Validator validator=DefaultValidator,
2594 String name=RadioButtonNameStr) -> RadioButton
2596 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2597 self
.this
= newobj
.this
2600 self
._setOORInfo
(self
)
2602 def Create(*args
, **kwargs
):
2604 Create(self, Window parent, int id=-1, String label=EmptyString,
2605 Point pos=DefaultPosition, Size size=DefaultSize,
2606 long style=0, Validator validator=DefaultValidator,
2607 String name=RadioButtonNameStr) -> bool
2609 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2611 def GetValue(*args
, **kwargs
):
2612 """GetValue(self) -> bool"""
2613 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2615 def SetValue(*args
, **kwargs
):
2616 """SetValue(self, bool value)"""
2617 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2619 def GetClassDefaultAttributes(*args
, **kwargs
):
2621 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2623 Get the default attributes for this class. This is useful if you want
2624 to use the same font or colour in your own control as in a standard
2625 control -- which is a much better idea than hard coding specific
2626 colours or fonts which might look completely out of place on the
2627 user's system, especially if it uses themes.
2629 The variant parameter is only relevant under Mac currently and is
2630 ignore under other platforms. Under Mac, it will change the size of
2631 the returned font. See `wx.Window.SetWindowVariant` for more about
2634 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2636 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2638 class RadioButtonPtr(RadioButton
):
2639 def __init__(self
, this
):
2641 if not hasattr(self
,"thisown"): self
.thisown
= 0
2642 self
.__class
__ = RadioButton
2643 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2645 def PreRadioButton(*args
, **kwargs
):
2646 """PreRadioButton() -> RadioButton"""
2647 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2651 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2653 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2655 Get the default attributes for this class. This is useful if you want
2656 to use the same font or colour in your own control as in a standard
2657 control -- which is a much better idea than hard coding specific
2658 colours or fonts which might look completely out of place on the
2659 user's system, especially if it uses themes.
2661 The variant parameter is only relevant under Mac currently and is
2662 ignore under other platforms. Under Mac, it will change the size of
2663 the returned font. See `wx.Window.SetWindowVariant` for more about
2666 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2668 #---------------------------------------------------------------------------
2670 SL_HORIZONTAL
= _controls_
.SL_HORIZONTAL
2671 SL_VERTICAL
= _controls_
.SL_VERTICAL
2672 SL_TICKS
= _controls_
.SL_TICKS
2673 SL_AUTOTICKS
= _controls_
.SL_AUTOTICKS
2674 SL_LABELS
= _controls_
.SL_LABELS
2675 SL_LEFT
= _controls_
.SL_LEFT
2676 SL_TOP
= _controls_
.SL_TOP
2677 SL_RIGHT
= _controls_
.SL_RIGHT
2678 SL_BOTTOM
= _controls_
.SL_BOTTOM
2679 SL_BOTH
= _controls_
.SL_BOTH
2680 SL_SELRANGE
= _controls_
.SL_SELRANGE
2681 SL_INVERSE
= _controls_
.SL_INVERSE
2682 class Slider(_core
.Control
):
2683 """Proxy of C++ Slider class"""
2685 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2686 def __init__(self
, *args
, **kwargs
):
2688 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2689 int maxValue=100, Point pos=DefaultPosition,
2690 Size size=DefaultSize, long style=SL_HORIZONTAL,
2691 Validator validator=DefaultValidator,
2692 String name=SliderNameStr) -> Slider
2694 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2695 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2696 self
.this
= newobj
.this
2699 self
._setOORInfo
(self
)
2701 def Create(*args
, **kwargs
):
2703 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2704 int maxValue=100, Point pos=DefaultPosition,
2705 Size size=DefaultSize, long style=SL_HORIZONTAL,
2706 Validator validator=DefaultValidator,
2707 String name=SliderNameStr) -> bool
2709 return _controls_
.Slider_Create(*args
, **kwargs
)
2711 def GetValue(*args
, **kwargs
):
2712 """GetValue(self) -> int"""
2713 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2715 def SetValue(*args
, **kwargs
):
2716 """SetValue(self, int value)"""
2717 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2719 def SetRange(*args
, **kwargs
):
2720 """SetRange(self, int minValue, int maxValue)"""
2721 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2723 def GetMin(*args
, **kwargs
):
2724 """GetMin(self) -> int"""
2725 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2727 def GetMax(*args
, **kwargs
):
2728 """GetMax(self) -> int"""
2729 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2731 def SetMin(*args
, **kwargs
):
2732 """SetMin(self, int minValue)"""
2733 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2735 def SetMax(*args
, **kwargs
):
2736 """SetMax(self, int maxValue)"""
2737 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2739 def SetLineSize(*args
, **kwargs
):
2740 """SetLineSize(self, int lineSize)"""
2741 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2743 def SetPageSize(*args
, **kwargs
):
2744 """SetPageSize(self, int pageSize)"""
2745 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2747 def GetLineSize(*args
, **kwargs
):
2748 """GetLineSize(self) -> int"""
2749 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2751 def GetPageSize(*args
, **kwargs
):
2752 """GetPageSize(self) -> int"""
2753 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2755 def SetThumbLength(*args
, **kwargs
):
2756 """SetThumbLength(self, int lenPixels)"""
2757 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2759 def GetThumbLength(*args
, **kwargs
):
2760 """GetThumbLength(self) -> int"""
2761 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2763 def SetTickFreq(*args
, **kwargs
):
2764 """SetTickFreq(self, int n, int pos=1)"""
2765 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2767 def GetTickFreq(*args
, **kwargs
):
2768 """GetTickFreq(self) -> int"""
2769 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2771 def ClearTicks(*args
, **kwargs
):
2772 """ClearTicks(self)"""
2773 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2775 def SetTick(*args
, **kwargs
):
2776 """SetTick(self, int tickPos)"""
2777 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2779 def ClearSel(*args
, **kwargs
):
2780 """ClearSel(self)"""
2781 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2783 def GetSelEnd(*args
, **kwargs
):
2784 """GetSelEnd(self) -> int"""
2785 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2787 def GetSelStart(*args
, **kwargs
):
2788 """GetSelStart(self) -> int"""
2789 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2791 def SetSelection(*args
, **kwargs
):
2792 """SetSelection(self, int min, int max)"""
2793 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2795 def GetClassDefaultAttributes(*args
, **kwargs
):
2797 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2799 Get the default attributes for this class. This is useful if you want
2800 to use the same font or colour in your own control as in a standard
2801 control -- which is a much better idea than hard coding specific
2802 colours or fonts which might look completely out of place on the
2803 user's system, especially if it uses themes.
2805 The variant parameter is only relevant under Mac currently and is
2806 ignore under other platforms. Under Mac, it will change the size of
2807 the returned font. See `wx.Window.SetWindowVariant` for more about
2810 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2812 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2814 class SliderPtr(Slider
):
2815 def __init__(self
, this
):
2817 if not hasattr(self
,"thisown"): self
.thisown
= 0
2818 self
.__class
__ = Slider
2819 _controls_
.Slider_swigregister(SliderPtr
)
2820 SliderNameStr
= cvar
.SliderNameStr
2822 def PreSlider(*args
, **kwargs
):
2823 """PreSlider() -> Slider"""
2824 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2828 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2830 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2832 Get the default attributes for this class. This is useful if you want
2833 to use the same font or colour in your own control as in a standard
2834 control -- which is a much better idea than hard coding specific
2835 colours or fonts which might look completely out of place on the
2836 user's system, especially if it uses themes.
2838 The variant parameter is only relevant under Mac currently and is
2839 ignore under other platforms. Under Mac, it will change the size of
2840 the returned font. See `wx.Window.SetWindowVariant` for more about
2843 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2845 #---------------------------------------------------------------------------
2847 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2848 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2850 class ToggleButton(_core
.Control
):
2851 """Proxy of C++ ToggleButton class"""
2853 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2854 def __init__(self
, *args
, **kwargs
):
2856 __init__(self, Window parent, int id=-1, String label=EmptyString,
2857 Point pos=DefaultPosition, Size size=DefaultSize,
2858 long style=0, Validator validator=DefaultValidator,
2859 String name=ToggleButtonNameStr) -> ToggleButton
2861 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2862 self
.this
= newobj
.this
2865 self
._setOORInfo
(self
)
2867 def Create(*args
, **kwargs
):
2869 Create(self, Window parent, int id=-1, String label=EmptyString,
2870 Point pos=DefaultPosition, Size size=DefaultSize,
2871 long style=0, Validator validator=DefaultValidator,
2872 String name=ToggleButtonNameStr) -> bool
2874 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2876 def SetValue(*args
, **kwargs
):
2877 """SetValue(self, bool value)"""
2878 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2880 def GetValue(*args
, **kwargs
):
2881 """GetValue(self) -> bool"""
2882 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2884 def SetLabel(*args
, **kwargs
):
2886 SetLabel(self, String label)
2888 Sets the item's text.
2890 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2892 def GetClassDefaultAttributes(*args
, **kwargs
):
2894 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2896 Get the default attributes for this class. This is useful if you want
2897 to use the same font or colour in your own control as in a standard
2898 control -- which is a much better idea than hard coding specific
2899 colours or fonts which might look completely out of place on the
2900 user's system, especially if it uses themes.
2902 The variant parameter is only relevant under Mac currently and is
2903 ignore under other platforms. Under Mac, it will change the size of
2904 the returned font. See `wx.Window.SetWindowVariant` for more about
2907 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2909 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2911 class ToggleButtonPtr(ToggleButton
):
2912 def __init__(self
, this
):
2914 if not hasattr(self
,"thisown"): self
.thisown
= 0
2915 self
.__class
__ = ToggleButton
2916 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2917 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2919 def PreToggleButton(*args
, **kwargs
):
2920 """PreToggleButton() -> ToggleButton"""
2921 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2925 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2927 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2929 Get the default attributes for this class. This is useful if you want
2930 to use the same font or colour in your own control as in a standard
2931 control -- which is a much better idea than hard coding specific
2932 colours or fonts which might look completely out of place on the
2933 user's system, especially if it uses themes.
2935 The variant parameter is only relevant under Mac currently and is
2936 ignore under other platforms. Under Mac, it will change the size of
2937 the returned font. See `wx.Window.SetWindowVariant` for more about
2940 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2942 #---------------------------------------------------------------------------
2944 class BookCtrlBase(_core
.Control
):
2945 """Proxy of C++ BookCtrlBase class"""
2946 def __init__(self
): raise RuntimeError, "No constructor defined"
2948 return "<%s.%s; proxy of C++ wxBookCtrlBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2949 def GetPageCount(*args
, **kwargs
):
2950 """GetPageCount(self) -> size_t"""
2951 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2953 def GetPage(*args
, **kwargs
):
2954 """GetPage(self, size_t n) -> Window"""
2955 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2957 def GetCurrentPage(*args
, **kwargs
):
2958 """GetCurrentPage(self) -> Window"""
2959 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2961 def GetSelection(*args
, **kwargs
):
2962 """GetSelection(self) -> int"""
2963 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2965 def SetPageText(*args
, **kwargs
):
2966 """SetPageText(self, size_t n, String strText) -> bool"""
2967 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2969 def GetPageText(*args
, **kwargs
):
2970 """GetPageText(self, size_t n) -> String"""
2971 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2973 def SetImageList(*args
, **kwargs
):
2974 """SetImageList(self, ImageList imageList)"""
2975 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2977 def AssignImageList(*args
, **kwargs
):
2978 """AssignImageList(self, ImageList imageList)"""
2979 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2981 def GetImageList(*args
, **kwargs
):
2982 """GetImageList(self) -> ImageList"""
2983 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2985 def GetPageImage(*args
, **kwargs
):
2986 """GetPageImage(self, size_t n) -> int"""
2987 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2989 def SetPageImage(*args
, **kwargs
):
2990 """SetPageImage(self, size_t n, int imageId) -> bool"""
2991 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2993 def SetPageSize(*args
, **kwargs
):
2994 """SetPageSize(self, Size size)"""
2995 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2997 def CalcSizeFromPage(*args
, **kwargs
):
2998 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2999 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
3001 def DeletePage(*args
, **kwargs
):
3002 """DeletePage(self, size_t n) -> bool"""
3003 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
3005 def RemovePage(*args
, **kwargs
):
3006 """RemovePage(self, size_t n) -> bool"""
3007 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
3009 def DeleteAllPages(*args
, **kwargs
):
3010 """DeleteAllPages(self) -> bool"""
3011 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
3013 def AddPage(*args
, **kwargs
):
3014 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
3015 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
3017 def InsertPage(*args
, **kwargs
):
3019 InsertPage(self, size_t n, Window page, String text, bool select=False,
3020 int imageId=-1) -> bool
3022 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
3024 def SetSelection(*args
, **kwargs
):
3025 """SetSelection(self, size_t n) -> int"""
3026 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
3028 def AdvanceSelection(*args
, **kwargs
):
3029 """AdvanceSelection(self, bool forward=True)"""
3030 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
3032 def GetClassDefaultAttributes(*args
, **kwargs
):
3034 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3036 Get the default attributes for this class. This is useful if you want
3037 to use the same font or colour in your own control as in a standard
3038 control -- which is a much better idea than hard coding specific
3039 colours or fonts which might look completely out of place on the
3040 user's system, especially if it uses themes.
3042 The variant parameter is only relevant under Mac currently and is
3043 ignore under other platforms. Under Mac, it will change the size of
3044 the returned font. See `wx.Window.SetWindowVariant` for more about
3047 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3049 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3051 class BookCtrlBasePtr(BookCtrlBase
):
3052 def __init__(self
, this
):
3054 if not hasattr(self
,"thisown"): self
.thisown
= 0
3055 self
.__class
__ = BookCtrlBase
3056 _controls_
.BookCtrlBase_swigregister(BookCtrlBasePtr
)
3057 NotebookNameStr
= cvar
.NotebookNameStr
3059 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
3061 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3063 Get the default attributes for this class. This is useful if you want
3064 to use the same font or colour in your own control as in a standard
3065 control -- which is a much better idea than hard coding specific
3066 colours or fonts which might look completely out of place on the
3067 user's system, especially if it uses themes.
3069 The variant parameter is only relevant under Mac currently and is
3070 ignore under other platforms. Under Mac, it will change the size of
3071 the returned font. See `wx.Window.SetWindowVariant` for more about
3074 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3076 class BookCtrlBaseEvent(_core
.NotifyEvent
):
3077 """Proxy of C++ BookCtrlBaseEvent class"""
3079 return "<%s.%s; proxy of C++ wxBookCtrlBaseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3080 def __init__(self
, *args
, **kwargs
):
3082 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3083 int nOldSel=-1) -> BookCtrlBaseEvent
3085 newobj
= _controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
)
3086 self
.this
= newobj
.this
3089 def GetSelection(*args
, **kwargs
):
3091 GetSelection(self) -> int
3093 Returns item index for a listbox or choice selection event (not valid
3096 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
3098 def SetSelection(*args
, **kwargs
):
3099 """SetSelection(self, int nSel)"""
3100 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
3102 def GetOldSelection(*args
, **kwargs
):
3103 """GetOldSelection(self) -> int"""
3104 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
3106 def SetOldSelection(*args
, **kwargs
):
3107 """SetOldSelection(self, int nOldSel)"""
3108 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
3111 class BookCtrlBaseEventPtr(BookCtrlBaseEvent
):
3112 def __init__(self
, this
):
3114 if not hasattr(self
,"thisown"): self
.thisown
= 0
3115 self
.__class
__ = BookCtrlBaseEvent
3116 _controls_
.BookCtrlBaseEvent_swigregister(BookCtrlBaseEventPtr
)
3118 #---------------------------------------------------------------------------
3120 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
3121 NB_TOP
= _controls_
.NB_TOP
3122 NB_LEFT
= _controls_
.NB_LEFT
3123 NB_RIGHT
= _controls_
.NB_RIGHT
3124 NB_BOTTOM
= _controls_
.NB_BOTTOM
3125 NB_MULTILINE
= _controls_
.NB_MULTILINE
3126 NB_NOPAGETHEME
= _controls_
.NB_NOPAGETHEME
3127 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
3128 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
3129 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
3130 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
3131 class Notebook(BookCtrlBase
):
3132 """Proxy of C++ Notebook class"""
3134 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3135 def __init__(self
, *args
, **kwargs
):
3137 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3138 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
3140 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
3141 self
.this
= newobj
.this
3144 self
._setOORInfo
(self
)
3146 def Create(*args
, **kwargs
):
3148 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3149 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
3151 return _controls_
.Notebook_Create(*args
, **kwargs
)
3153 def GetRowCount(*args
, **kwargs
):
3154 """GetRowCount(self) -> int"""
3155 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3157 def SetPadding(*args
, **kwargs
):
3158 """SetPadding(self, Size padding)"""
3159 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3161 def SetTabSize(*args
, **kwargs
):
3162 """SetTabSize(self, Size sz)"""
3163 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3165 def HitTest(*args
, **kwargs
):
3167 HitTest(Point pt) -> (tab, where)
3169 Returns the tab which is hit, and flags indicating where using
3170 wx.NB_HITTEST flags.
3172 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3174 def CalcSizeFromPage(*args
, **kwargs
):
3175 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3176 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
3178 def GetThemeBackgroundColour(*args
, **kwargs
):
3179 """GetThemeBackgroundColour(self) -> Colour"""
3180 return _controls_
.Notebook_GetThemeBackgroundColour(*args
, **kwargs
)
3182 def GetClassDefaultAttributes(*args
, **kwargs
):
3184 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3186 Get the default attributes for this class. This is useful if you want
3187 to use the same font or colour in your own control as in a standard
3188 control -- which is a much better idea than hard coding specific
3189 colours or fonts which might look completely out of place on the
3190 user's system, especially if it uses themes.
3192 The variant parameter is only relevant under Mac currently and is
3193 ignore under other platforms. Under Mac, it will change the size of
3194 the returned font. See `wx.Window.SetWindowVariant` for more about
3197 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3199 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3201 class NotebookPtr(Notebook
):
3202 def __init__(self
, this
):
3204 if not hasattr(self
,"thisown"): self
.thisown
= 0
3205 self
.__class
__ = Notebook
3206 _controls_
.Notebook_swigregister(NotebookPtr
)
3208 def PreNotebook(*args
, **kwargs
):
3209 """PreNotebook() -> Notebook"""
3210 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3214 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3216 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3218 Get the default attributes for this class. This is useful if you want
3219 to use the same font or colour in your own control as in a standard
3220 control -- which is a much better idea than hard coding specific
3221 colours or fonts which might look completely out of place on the
3222 user's system, especially if it uses themes.
3224 The variant parameter is only relevant under Mac currently and is
3225 ignore under other platforms. Under Mac, it will change the size of
3226 the returned font. See `wx.Window.SetWindowVariant` for more about
3229 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3231 class NotebookEvent(BookCtrlBaseEvent
):
3232 """Proxy of C++ NotebookEvent class"""
3234 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3235 def __init__(self
, *args
, **kwargs
):
3237 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3238 int nOldSel=-1) -> NotebookEvent
3240 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3241 self
.this
= newobj
.this
3245 class NotebookEventPtr(NotebookEvent
):
3246 def __init__(self
, this
):
3248 if not hasattr(self
,"thisown"): self
.thisown
= 0
3249 self
.__class
__ = NotebookEvent
3250 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3252 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3253 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3255 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3256 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3258 #----------------------------------------------------------------------------
3260 class NotebookPage(wx
.Panel
):
3262 There is an old (and apparently unsolvable) bug when placing a
3263 window with a nonstandard background colour in a wx.Notebook on
3264 wxGTK1, as the notbooks's background colour would always be used
3265 when the window is refreshed. The solution is to place a panel in
3266 the notbook and the coloured window on the panel, sized to cover
3267 the panel. This simple class does that for you, just put an
3268 instance of this in the notebook and make your regular window a
3269 child of this one and it will handle the resize for you.
3271 def __init__(self
, parent
, id=-1,
3272 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3273 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3274 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3276 self
.Bind(wx
.EVT_SIZE
, self
.OnSize
)
3278 def OnSize(self
, evt
):
3279 if self
.child
is None:
3280 children
= self
.GetChildren()
3282 self
.child
= children
[0]
3284 self
.child
.SetPosition((0,0))
3285 self
.child
.SetSize(self
.GetSize())
3288 #---------------------------------------------------------------------------
3290 LB_DEFAULT
= _controls_
.LB_DEFAULT
3291 LB_TOP
= _controls_
.LB_TOP
3292 LB_BOTTOM
= _controls_
.LB_BOTTOM
3293 LB_LEFT
= _controls_
.LB_LEFT
3294 LB_RIGHT
= _controls_
.LB_RIGHT
3295 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3296 class Listbook(BookCtrlBase
):
3297 """Proxy of C++ Listbook class"""
3299 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3300 def __init__(self
, *args
, **kwargs
):
3302 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3303 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3305 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3306 self
.this
= newobj
.this
3309 self
._setOORInfo
(self
)
3311 def Create(*args
, **kwargs
):
3313 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3314 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3316 return _controls_
.Listbook_Create(*args
, **kwargs
)
3318 def IsVertical(*args
, **kwargs
):
3319 """IsVertical(self) -> bool"""
3320 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
3322 def GetListView(*args
, **kwargs
):
3323 """GetListView(self) -> ListView"""
3324 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3327 class ListbookPtr(Listbook
):
3328 def __init__(self
, this
):
3330 if not hasattr(self
,"thisown"): self
.thisown
= 0
3331 self
.__class
__ = Listbook
3332 _controls_
.Listbook_swigregister(ListbookPtr
)
3334 def PreListbook(*args
, **kwargs
):
3335 """PreListbook() -> Listbook"""
3336 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3340 class ListbookEvent(BookCtrlBaseEvent
):
3341 """Proxy of C++ ListbookEvent class"""
3343 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3344 def __init__(self
, *args
, **kwargs
):
3346 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3347 int nOldSel=-1) -> ListbookEvent
3349 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3350 self
.this
= newobj
.this
3354 class ListbookEventPtr(ListbookEvent
):
3355 def __init__(self
, this
):
3357 if not hasattr(self
,"thisown"): self
.thisown
= 0
3358 self
.__class
__ = ListbookEvent
3359 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3361 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3362 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3363 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3364 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3366 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3367 CHB_TOP
= _controls_
.CHB_TOP
3368 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3369 CHB_LEFT
= _controls_
.CHB_LEFT
3370 CHB_RIGHT
= _controls_
.CHB_RIGHT
3371 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3372 class Choicebook(BookCtrlBase
):
3373 """Proxy of C++ Choicebook class"""
3375 return "<%s.%s; proxy of C++ wxChoicebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3376 def __init__(self
, *args
, **kwargs
):
3378 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3379 long style=0, String name=EmptyString) -> Choicebook
3381 newobj
= _controls_
.new_Choicebook(*args
, **kwargs
)
3382 self
.this
= newobj
.this
3385 self
._setOORInfo
(self
)
3387 def Create(*args
, **kwargs
):
3389 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3390 long style=0, String name=EmptyString) -> bool
3392 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3394 def IsVertical(*args
, **kwargs
):
3395 """IsVertical(self) -> bool"""
3396 return _controls_
.Choicebook_IsVertical(*args
, **kwargs
)
3398 def GetChoiceCtrl(*args
, **kwargs
):
3399 """GetChoiceCtrl(self) -> Choice"""
3400 return _controls_
.Choicebook_GetChoiceCtrl(*args
, **kwargs
)
3402 def DeleteAllPages(*args
, **kwargs
):
3403 """DeleteAllPages(self) -> bool"""
3404 return _controls_
.Choicebook_DeleteAllPages(*args
, **kwargs
)
3407 class ChoicebookPtr(Choicebook
):
3408 def __init__(self
, this
):
3410 if not hasattr(self
,"thisown"): self
.thisown
= 0
3411 self
.__class
__ = Choicebook
3412 _controls_
.Choicebook_swigregister(ChoicebookPtr
)
3414 def PreChoicebook(*args
, **kwargs
):
3415 """PreChoicebook() -> Choicebook"""
3416 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3420 class ChoicebookEvent(BookCtrlBaseEvent
):
3421 """Proxy of C++ ChoicebookEvent class"""
3423 return "<%s.%s; proxy of C++ wxChoicebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3424 def __init__(self
, *args
, **kwargs
):
3426 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3427 int nOldSel=-1) -> ChoicebookEvent
3429 newobj
= _controls_
.new_ChoicebookEvent(*args
, **kwargs
)
3430 self
.this
= newobj
.this
3434 class ChoicebookEventPtr(ChoicebookEvent
):
3435 def __init__(self
, this
):
3437 if not hasattr(self
,"thisown"): self
.thisown
= 0
3438 self
.__class
__ = ChoicebookEvent
3439 _controls_
.ChoicebookEvent_swigregister(ChoicebookEventPtr
)
3441 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3442 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3443 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3444 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3446 #---------------------------------------------------------------------------
3448 #---------------------------------------------------------------------------
3450 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3451 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3452 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3453 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3454 TB_VERTICAL
= _controls_
.TB_VERTICAL
3455 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3456 TB_FLAT
= _controls_
.TB_FLAT
3457 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3458 TB_NOICONS
= _controls_
.TB_NOICONS
3459 TB_TEXT
= _controls_
.TB_TEXT
3460 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3461 TB_NOALIGN
= _controls_
.TB_NOALIGN
3462 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3463 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3464 class ToolBarToolBase(_core
.Object
):
3465 """Proxy of C++ ToolBarToolBase class"""
3466 def __init__(self
): raise RuntimeError, "No constructor defined"
3468 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3469 def GetId(*args
, **kwargs
):
3470 """GetId(self) -> int"""
3471 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3473 def GetControl(*args
, **kwargs
):
3474 """GetControl(self) -> Control"""
3475 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3477 def GetToolBar(*args
, **kwargs
):
3478 """GetToolBar(self) -> ToolBarBase"""
3479 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3481 def IsButton(*args
, **kwargs
):
3482 """IsButton(self) -> int"""
3483 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3485 def IsControl(*args
, **kwargs
):
3486 """IsControl(self) -> int"""
3487 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3489 def IsSeparator(*args
, **kwargs
):
3490 """IsSeparator(self) -> int"""
3491 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3493 def GetStyle(*args
, **kwargs
):
3494 """GetStyle(self) -> int"""
3495 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3497 def GetKind(*args
, **kwargs
):
3498 """GetKind(self) -> int"""
3499 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3501 def IsEnabled(*args
, **kwargs
):
3502 """IsEnabled(self) -> bool"""
3503 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3505 def IsToggled(*args
, **kwargs
):
3506 """IsToggled(self) -> bool"""
3507 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3509 def CanBeToggled(*args
, **kwargs
):
3510 """CanBeToggled(self) -> bool"""
3511 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3513 def GetNormalBitmap(*args
, **kwargs
):
3514 """GetNormalBitmap(self) -> Bitmap"""
3515 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3517 def GetDisabledBitmap(*args
, **kwargs
):
3518 """GetDisabledBitmap(self) -> Bitmap"""
3519 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3521 def GetBitmap(*args
, **kwargs
):
3522 """GetBitmap(self) -> Bitmap"""
3523 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3525 def GetLabel(*args
, **kwargs
):
3526 """GetLabel(self) -> String"""
3527 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3529 def GetShortHelp(*args
, **kwargs
):
3530 """GetShortHelp(self) -> String"""
3531 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3533 def GetLongHelp(*args
, **kwargs
):
3534 """GetLongHelp(self) -> String"""
3535 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3537 def Enable(*args
, **kwargs
):
3538 """Enable(self, bool enable) -> bool"""
3539 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3541 def Toggle(*args
, **kwargs
):
3543 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3545 def SetToggle(*args
, **kwargs
):
3546 """SetToggle(self, bool toggle) -> bool"""
3547 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3549 def SetShortHelp(*args
, **kwargs
):
3550 """SetShortHelp(self, String help) -> bool"""
3551 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3553 def SetLongHelp(*args
, **kwargs
):
3554 """SetLongHelp(self, String help) -> bool"""
3555 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3557 def SetNormalBitmap(*args
, **kwargs
):
3558 """SetNormalBitmap(self, Bitmap bmp)"""
3559 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3561 def SetDisabledBitmap(*args
, **kwargs
):
3562 """SetDisabledBitmap(self, Bitmap bmp)"""
3563 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3565 def SetLabel(*args
, **kwargs
):
3566 """SetLabel(self, String label)"""
3567 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3569 def Detach(*args
, **kwargs
):
3571 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3573 def Attach(*args
, **kwargs
):
3574 """Attach(self, ToolBarBase tbar)"""
3575 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3577 def GetClientData(*args
, **kwargs
):
3578 """GetClientData(self) -> PyObject"""
3579 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3581 def SetClientData(*args
, **kwargs
):
3582 """SetClientData(self, PyObject clientData)"""
3583 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3585 GetBitmap1
= GetNormalBitmap
3586 GetBitmap2
= GetDisabledBitmap
3587 SetBitmap1
= SetNormalBitmap
3588 SetBitmap2
= SetDisabledBitmap
3591 class ToolBarToolBasePtr(ToolBarToolBase
):
3592 def __init__(self
, this
):
3594 if not hasattr(self
,"thisown"): self
.thisown
= 0
3595 self
.__class
__ = ToolBarToolBase
3596 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3598 class ToolBarBase(_core
.Control
):
3599 """Proxy of C++ ToolBarBase class"""
3600 def __init__(self
): raise RuntimeError, "No constructor defined"
3602 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3603 def DoAddTool(*args
, **kwargs
):
3605 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3606 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3607 String longHelp=EmptyString,
3608 PyObject clientData=None) -> ToolBarToolBase
3610 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3612 def DoInsertTool(*args
, **kwargs
):
3614 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3615 int kind=ITEM_NORMAL,
3616 String shortHelp=EmptyString, String longHelp=EmptyString,
3617 PyObject clientData=None) -> ToolBarToolBase
3619 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3621 # These match the original Add methods for this class, kept for
3622 # backwards compatibility with versions < 2.3.3.
3625 def AddTool(self
, id, bitmap
,
3626 pushedBitmap
= wx
.NullBitmap
,
3629 shortHelpString
= '',
3630 longHelpString
= '') :
3631 '''Old style method to add a tool to the toolbar.'''
3632 kind
= wx
.ITEM_NORMAL
3633 if isToggle
: kind
= wx
.ITEM_CHECK
3634 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3635 shortHelpString
, longHelpString
, clientData
)
3637 def AddSimpleTool(self
, id, bitmap
,
3638 shortHelpString
= '',
3639 longHelpString
= '',
3641 '''Old style method to add a tool to the toolbar.'''
3642 kind
= wx
.ITEM_NORMAL
3643 if isToggle
: kind
= wx
.ITEM_CHECK
3644 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3645 shortHelpString
, longHelpString
, None)
3647 def InsertTool(self
, pos
, id, bitmap
,
3648 pushedBitmap
= wx
.NullBitmap
,
3651 shortHelpString
= '',
3652 longHelpString
= ''):
3653 '''Old style method to insert a tool in the toolbar.'''
3654 kind
= wx
.ITEM_NORMAL
3655 if isToggle
: kind
= wx
.ITEM_CHECK
3656 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3657 shortHelpString
, longHelpString
, clientData
)
3659 def InsertSimpleTool(self
, pos
, id, bitmap
,
3660 shortHelpString
= '',
3661 longHelpString
= '',
3663 '''Old style method to insert a tool in the toolbar.'''
3664 kind
= wx
.ITEM_NORMAL
3665 if isToggle
: kind
= wx
.ITEM_CHECK
3666 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3667 shortHelpString
, longHelpString
, None)
3670 # The following are the new toolbar Add methods starting with
3671 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3672 # able to keep backwards compatibility with using the above
3673 # methods. Eventually these should migrate to be the methods used
3674 # primarily and lose the 'Label' in the name...
3676 def AddLabelTool(self
, id, label
, bitmap
,
3677 bmpDisabled
= wx
.NullBitmap
,
3678 kind
= wx
.ITEM_NORMAL
,
3679 shortHelp
= '', longHelp
= '',
3682 The full AddTool() function.
3684 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3685 is created and used as the disabled image.
3687 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3688 shortHelp
, longHelp
, clientData
)
3691 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3692 bmpDisabled
= wx
.NullBitmap
,
3693 kind
= wx
.ITEM_NORMAL
,
3694 shortHelp
= '', longHelp
= '',
3697 Insert the new tool at the given position, if pos == GetToolsCount(), it
3698 is equivalent to AddTool()
3700 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3701 shortHelp
, longHelp
, clientData
)
3703 def AddCheckLabelTool(self
, id, label
, bitmap
,
3704 bmpDisabled
= wx
.NullBitmap
,
3705 shortHelp
= '', longHelp
= '',
3707 '''Add a check tool, i.e. a tool which can be toggled'''
3708 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3709 shortHelp
, longHelp
, clientData
)
3711 def AddRadioLabelTool(self
, id, label
, bitmap
,
3712 bmpDisabled
= wx
.NullBitmap
,
3713 shortHelp
= '', longHelp
= '',
3716 Add a radio tool, i.e. a tool which can be toggled and releases any
3717 other toggled radio tools in the same group when it happens
3719 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3720 shortHelp
, longHelp
, clientData
)
3723 # For consistency with the backwards compatible methods above, here are
3724 # some non-'Label' versions of the Check and Radio methods
3726 def AddCheckTool(self
, id, bitmap
,
3727 bmpDisabled
= wx
.NullBitmap
,
3728 shortHelp
= '', longHelp
= '',
3730 '''Add a check tool, i.e. a tool which can be toggled'''
3731 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3732 shortHelp
, longHelp
, clientData
)
3734 def AddRadioTool(self
, id, bitmap
,
3735 bmpDisabled
= wx
.NullBitmap
,
3736 shortHelp
= '', longHelp
= '',
3739 Add a radio tool, i.e. a tool which can be toggled and releases any
3740 other toggled radio tools in the same group when it happens
3742 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3743 shortHelp
, longHelp
, clientData
)
3745 def AddToolItem(*args
, **kwargs
):
3746 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3747 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3749 def InsertToolItem(*args
, **kwargs
):
3750 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3751 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3753 def AddControl(*args
, **kwargs
):
3754 """AddControl(self, Control control) -> ToolBarToolBase"""
3755 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3757 def InsertControl(*args
, **kwargs
):
3758 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3759 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3761 def FindControl(*args
, **kwargs
):
3762 """FindControl(self, int id) -> Control"""
3763 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3765 def AddSeparator(*args
, **kwargs
):
3766 """AddSeparator(self) -> ToolBarToolBase"""
3767 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3769 def InsertSeparator(*args
, **kwargs
):
3770 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3771 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3773 def RemoveTool(*args
, **kwargs
):
3774 """RemoveTool(self, int id) -> ToolBarToolBase"""
3775 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3777 def DeleteToolByPos(*args
, **kwargs
):
3778 """DeleteToolByPos(self, size_t pos) -> bool"""
3779 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3781 def DeleteTool(*args
, **kwargs
):
3782 """DeleteTool(self, int id) -> bool"""
3783 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3785 def ClearTools(*args
, **kwargs
):
3786 """ClearTools(self)"""
3787 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3789 def Realize(*args
, **kwargs
):
3790 """Realize(self) -> bool"""
3791 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3793 def EnableTool(*args
, **kwargs
):
3794 """EnableTool(self, int id, bool enable)"""
3795 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3797 def ToggleTool(*args
, **kwargs
):
3798 """ToggleTool(self, int id, bool toggle)"""
3799 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3801 def SetToggle(*args
, **kwargs
):
3802 """SetToggle(self, int id, bool toggle)"""
3803 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3805 def GetToolClientData(*args
, **kwargs
):
3806 """GetToolClientData(self, int id) -> PyObject"""
3807 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3809 def SetToolClientData(*args
, **kwargs
):
3810 """SetToolClientData(self, int id, PyObject clientData)"""
3811 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3813 def GetToolPos(*args
, **kwargs
):
3814 """GetToolPos(self, int id) -> int"""
3815 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3817 def GetToolState(*args
, **kwargs
):
3818 """GetToolState(self, int id) -> bool"""
3819 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3821 def GetToolEnabled(*args
, **kwargs
):
3822 """GetToolEnabled(self, int id) -> bool"""
3823 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3825 def SetToolShortHelp(*args
, **kwargs
):
3826 """SetToolShortHelp(self, int id, String helpString)"""
3827 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3829 def GetToolShortHelp(*args
, **kwargs
):
3830 """GetToolShortHelp(self, int id) -> String"""
3831 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3833 def SetToolLongHelp(*args
, **kwargs
):
3834 """SetToolLongHelp(self, int id, String helpString)"""
3835 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3837 def GetToolLongHelp(*args
, **kwargs
):
3838 """GetToolLongHelp(self, int id) -> String"""
3839 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3841 def SetMarginsXY(*args
, **kwargs
):
3842 """SetMarginsXY(self, int x, int y)"""
3843 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3845 def SetMargins(*args
, **kwargs
):
3846 """SetMargins(self, Size size)"""
3847 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3849 def SetToolPacking(*args
, **kwargs
):
3850 """SetToolPacking(self, int packing)"""
3851 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3853 def SetToolSeparation(*args
, **kwargs
):
3854 """SetToolSeparation(self, int separation)"""
3855 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3857 def GetToolMargins(*args
, **kwargs
):
3858 """GetToolMargins(self) -> Size"""
3859 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3861 def GetMargins(*args
, **kwargs
):
3862 """GetMargins(self) -> Size"""
3863 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3865 def GetToolPacking(*args
, **kwargs
):
3866 """GetToolPacking(self) -> int"""
3867 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3869 def GetToolSeparation(*args
, **kwargs
):
3870 """GetToolSeparation(self) -> int"""
3871 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3873 def SetRows(*args
, **kwargs
):
3874 """SetRows(self, int nRows)"""
3875 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3877 def SetMaxRowsCols(*args
, **kwargs
):
3878 """SetMaxRowsCols(self, int rows, int cols)"""
3879 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3881 def GetMaxRows(*args
, **kwargs
):
3882 """GetMaxRows(self) -> int"""
3883 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3885 def GetMaxCols(*args
, **kwargs
):
3886 """GetMaxCols(self) -> int"""
3887 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3889 def SetToolBitmapSize(*args
, **kwargs
):
3890 """SetToolBitmapSize(self, Size size)"""
3891 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3893 def GetToolBitmapSize(*args
, **kwargs
):
3894 """GetToolBitmapSize(self) -> Size"""
3895 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3897 def GetToolSize(*args
, **kwargs
):
3898 """GetToolSize(self) -> Size"""
3899 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3901 def FindToolForPosition(*args
, **kwargs
):
3902 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3903 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3905 def FindById(*args
, **kwargs
):
3906 """FindById(self, int toolid) -> ToolBarToolBase"""
3907 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3909 def IsVertical(*args
, **kwargs
):
3910 """IsVertical(self) -> bool"""
3911 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3914 class ToolBarBasePtr(ToolBarBase
):
3915 def __init__(self
, this
):
3917 if not hasattr(self
,"thisown"): self
.thisown
= 0
3918 self
.__class
__ = ToolBarBase
3919 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3921 class ToolBar(ToolBarBase
):
3922 """Proxy of C++ ToolBar class"""
3924 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3925 def __init__(self
, *args
, **kwargs
):
3927 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3928 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3929 String name=wxPyToolBarNameStr) -> ToolBar
3931 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3932 self
.this
= newobj
.this
3935 self
._setOORInfo
(self
)
3937 def Create(*args
, **kwargs
):
3939 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3940 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3941 String name=wxPyToolBarNameStr) -> bool
3943 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3945 def FindToolForPosition(*args
, **kwargs
):
3946 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3947 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3949 def GetClassDefaultAttributes(*args
, **kwargs
):
3951 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3953 Get the default attributes for this class. This is useful if you want
3954 to use the same font or colour in your own control as in a standard
3955 control -- which is a much better idea than hard coding specific
3956 colours or fonts which might look completely out of place on the
3957 user's system, especially if it uses themes.
3959 The variant parameter is only relevant under Mac currently and is
3960 ignore under other platforms. Under Mac, it will change the size of
3961 the returned font. See `wx.Window.SetWindowVariant` for more about
3964 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3966 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3968 class ToolBarPtr(ToolBar
):
3969 def __init__(self
, this
):
3971 if not hasattr(self
,"thisown"): self
.thisown
= 0
3972 self
.__class
__ = ToolBar
3973 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3975 def PreToolBar(*args
, **kwargs
):
3976 """PreToolBar() -> ToolBar"""
3977 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3981 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3983 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3985 Get the default attributes for this class. This is useful if you want
3986 to use the same font or colour in your own control as in a standard
3987 control -- which is a much better idea than hard coding specific
3988 colours or fonts which might look completely out of place on the
3989 user's system, especially if it uses themes.
3991 The variant parameter is only relevant under Mac currently and is
3992 ignore under other platforms. Under Mac, it will change the size of
3993 the returned font. See `wx.Window.SetWindowVariant` for more about
3996 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3998 #---------------------------------------------------------------------------
4000 LC_VRULES
= _controls_
.LC_VRULES
4001 LC_HRULES
= _controls_
.LC_HRULES
4002 LC_ICON
= _controls_
.LC_ICON
4003 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
4004 LC_LIST
= _controls_
.LC_LIST
4005 LC_REPORT
= _controls_
.LC_REPORT
4006 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
4007 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
4008 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
4009 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
4010 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
4011 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
4012 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
4013 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
4014 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
4015 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
4016 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
4017 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
4018 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
4019 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
4020 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
4021 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
4022 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
4023 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
4024 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
4025 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
4026 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
4027 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
4028 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
4029 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
4030 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
4031 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
4032 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
4033 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
4034 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
4035 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
4036 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
4037 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
4038 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
4039 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
4040 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
4041 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
4042 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
4043 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
4044 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
4045 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
4046 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
4047 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
4048 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
4049 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
4050 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
4051 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
4052 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
4053 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
4054 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
4055 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
4056 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
4057 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
4058 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
4059 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
4060 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
4061 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
4062 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
4063 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
4064 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
4065 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
4066 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
4067 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
4068 #---------------------------------------------------------------------------
4070 class ListItemAttr(object):
4071 """Proxy of C++ ListItemAttr class"""
4073 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4074 def __init__(self
, *args
, **kwargs
):
4076 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
4077 Font font=wxNullFont) -> ListItemAttr
4079 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
4080 self
.this
= newobj
.this
4083 def SetTextColour(*args
, **kwargs
):
4084 """SetTextColour(self, Colour colText)"""
4085 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
4087 def SetBackgroundColour(*args
, **kwargs
):
4088 """SetBackgroundColour(self, Colour colBack)"""
4089 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
4091 def SetFont(*args
, **kwargs
):
4092 """SetFont(self, Font font)"""
4093 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
4095 def HasTextColour(*args
, **kwargs
):
4096 """HasTextColour(self) -> bool"""
4097 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
4099 def HasBackgroundColour(*args
, **kwargs
):
4100 """HasBackgroundColour(self) -> bool"""
4101 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
4103 def HasFont(*args
, **kwargs
):
4104 """HasFont(self) -> bool"""
4105 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4107 def GetTextColour(*args
, **kwargs
):
4108 """GetTextColour(self) -> Colour"""
4109 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4111 def GetBackgroundColour(*args
, **kwargs
):
4112 """GetBackgroundColour(self) -> Colour"""
4113 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4115 def GetFont(*args
, **kwargs
):
4116 """GetFont(self) -> Font"""
4117 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4119 def Destroy(*args
, **kwargs
):
4121 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4124 class ListItemAttrPtr(ListItemAttr
):
4125 def __init__(self
, this
):
4127 if not hasattr(self
,"thisown"): self
.thisown
= 0
4128 self
.__class
__ = ListItemAttr
4129 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
4130 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4132 #---------------------------------------------------------------------------
4134 class ListItem(_core
.Object
):
4135 """Proxy of C++ ListItem class"""
4137 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4138 def __init__(self
, *args
, **kwargs
):
4139 """__init__(self) -> ListItem"""
4140 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
4141 self
.this
= newobj
.this
4144 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
4147 if self
.thisown
: destroy(self
)
4150 def Clear(*args
, **kwargs
):
4152 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4154 def ClearAttributes(*args
, **kwargs
):
4155 """ClearAttributes(self)"""
4156 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4158 def SetMask(*args
, **kwargs
):
4159 """SetMask(self, long mask)"""
4160 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4162 def SetId(*args
, **kwargs
):
4163 """SetId(self, long id)"""
4164 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4166 def SetColumn(*args
, **kwargs
):
4167 """SetColumn(self, int col)"""
4168 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4170 def SetState(*args
, **kwargs
):
4171 """SetState(self, long state)"""
4172 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4174 def SetStateMask(*args
, **kwargs
):
4175 """SetStateMask(self, long stateMask)"""
4176 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4178 def SetText(*args
, **kwargs
):
4179 """SetText(self, String text)"""
4180 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4182 def SetImage(*args
, **kwargs
):
4183 """SetImage(self, int image)"""
4184 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4186 def SetData(*args
, **kwargs
):
4187 """SetData(self, long data)"""
4188 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4190 def SetWidth(*args
, **kwargs
):
4191 """SetWidth(self, int width)"""
4192 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4194 def SetAlign(*args
, **kwargs
):
4195 """SetAlign(self, int align)"""
4196 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4198 def SetTextColour(*args
, **kwargs
):
4199 """SetTextColour(self, Colour colText)"""
4200 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4202 def SetBackgroundColour(*args
, **kwargs
):
4203 """SetBackgroundColour(self, Colour colBack)"""
4204 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4206 def SetFont(*args
, **kwargs
):
4207 """SetFont(self, Font font)"""
4208 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4210 def GetMask(*args
, **kwargs
):
4211 """GetMask(self) -> long"""
4212 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4214 def GetId(*args
, **kwargs
):
4215 """GetId(self) -> long"""
4216 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4218 def GetColumn(*args
, **kwargs
):
4219 """GetColumn(self) -> int"""
4220 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4222 def GetState(*args
, **kwargs
):
4223 """GetState(self) -> long"""
4224 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4226 def GetText(*args
, **kwargs
):
4227 """GetText(self) -> String"""
4228 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4230 def GetImage(*args
, **kwargs
):
4231 """GetImage(self) -> int"""
4232 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4234 def GetData(*args
, **kwargs
):
4235 """GetData(self) -> long"""
4236 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4238 def GetWidth(*args
, **kwargs
):
4239 """GetWidth(self) -> int"""
4240 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4242 def GetAlign(*args
, **kwargs
):
4243 """GetAlign(self) -> int"""
4244 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4246 def GetAttributes(*args
, **kwargs
):
4247 """GetAttributes(self) -> ListItemAttr"""
4248 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4250 def HasAttributes(*args
, **kwargs
):
4251 """HasAttributes(self) -> bool"""
4252 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4254 def GetTextColour(*args
, **kwargs
):
4255 """GetTextColour(self) -> Colour"""
4256 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4258 def GetBackgroundColour(*args
, **kwargs
):
4259 """GetBackgroundColour(self) -> Colour"""
4260 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4262 def GetFont(*args
, **kwargs
):
4263 """GetFont(self) -> Font"""
4264 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4266 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4267 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4268 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4269 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4270 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4271 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4272 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4273 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4274 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4275 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4277 class ListItemPtr(ListItem
):
4278 def __init__(self
, this
):
4280 if not hasattr(self
,"thisown"): self
.thisown
= 0
4281 self
.__class
__ = ListItem
4282 _controls_
.ListItem_swigregister(ListItemPtr
)
4284 #---------------------------------------------------------------------------
4286 class ListEvent(_core
.NotifyEvent
):
4287 """Proxy of C++ ListEvent class"""
4289 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4290 def __init__(self
, *args
, **kwargs
):
4291 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4292 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4293 self
.this
= newobj
.this
4296 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4297 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4298 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4299 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4300 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4301 m_item
= property(_controls_
.ListEvent_m_item_get
)
4302 def GetKeyCode(*args
, **kwargs
):
4303 """GetKeyCode(self) -> int"""
4304 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4306 GetCode
= GetKeyCode
4307 def GetIndex(*args
, **kwargs
):
4308 """GetIndex(self) -> long"""
4309 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4311 def GetColumn(*args
, **kwargs
):
4312 """GetColumn(self) -> int"""
4313 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4315 def GetPoint(*args
, **kwargs
):
4316 """GetPoint(self) -> Point"""
4317 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4319 GetPosition
= GetPoint
4320 def GetLabel(*args
, **kwargs
):
4321 """GetLabel(self) -> String"""
4322 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4324 def GetText(*args
, **kwargs
):
4325 """GetText(self) -> String"""
4326 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4328 def GetImage(*args
, **kwargs
):
4329 """GetImage(self) -> int"""
4330 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4332 def GetData(*args
, **kwargs
):
4333 """GetData(self) -> long"""
4334 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4336 def GetMask(*args
, **kwargs
):
4337 """GetMask(self) -> long"""
4338 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4340 def GetItem(*args
, **kwargs
):
4341 """GetItem(self) -> ListItem"""
4342 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4344 def GetCacheFrom(*args
, **kwargs
):
4345 """GetCacheFrom(self) -> long"""
4346 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4348 def GetCacheTo(*args
, **kwargs
):
4349 """GetCacheTo(self) -> long"""
4350 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4352 def IsEditCancelled(*args
, **kwargs
):
4353 """IsEditCancelled(self) -> bool"""
4354 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4356 def SetEditCanceled(*args
, **kwargs
):
4357 """SetEditCanceled(self, bool editCancelled)"""
4358 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4361 class ListEventPtr(ListEvent
):
4362 def __init__(self
, this
):
4364 if not hasattr(self
,"thisown"): self
.thisown
= 0
4365 self
.__class
__ = ListEvent
4366 _controls_
.ListEvent_swigregister(ListEventPtr
)
4368 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4369 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4370 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4371 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4372 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4373 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4374 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4375 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4376 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4377 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4378 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4379 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4380 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4381 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4382 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4383 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4384 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4385 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4386 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4387 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4388 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4389 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4390 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4391 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4392 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4393 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4398 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4399 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4400 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4401 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4402 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4403 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4404 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4405 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4406 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4407 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4408 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4409 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4410 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4411 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4417 #---------------------------------------------------------------------------
4419 class ListCtrl(_core
.Control
):
4420 """Proxy of C++ ListCtrl class"""
4422 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4423 def __init__(self
, *args
, **kwargs
):
4425 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4426 Size size=DefaultSize, long style=LC_ICON,
4427 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4429 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4430 self
.this
= newobj
.this
4433 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4435 def Create(*args
, **kwargs
):
4437 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4438 Size size=DefaultSize, long style=LC_ICON,
4439 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4441 Do the 2nd phase and create the GUI control.
4443 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4445 def _setCallbackInfo(*args
, **kwargs
):
4446 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4447 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4449 def SetForegroundColour(*args
, **kwargs
):
4451 SetForegroundColour(self, Colour col) -> bool
4453 Sets the foreground colour of the window. Returns True is the colour
4454 was changed. The interpretation of foreground colour is dependent on
4455 the window class; it may be the text colour or other colour, or it may
4458 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4460 def SetBackgroundColour(*args
, **kwargs
):
4462 SetBackgroundColour(self, Colour col) -> bool
4464 Sets the background colour of the window. Returns True if the colour
4465 was changed. The background colour is usually painted by the default
4466 EVT_ERASE_BACKGROUND event handler function under Windows and
4467 automatically under GTK. Using `wx.NullColour` will reset the window
4468 to the default background colour.
4470 Note that setting the background colour may not cause an immediate
4471 refresh, so you may wish to call `ClearBackground` or `Refresh` after
4472 calling this function.
4474 Using this function will disable attempts to use themes for this
4475 window, if the system supports them. Use with care since usually the
4476 themes represent the appearance chosen by the user to be used for all
4477 applications on the system.
4479 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4481 def GetColumn(*args
, **kwargs
):
4482 """GetColumn(self, int col) -> ListItem"""
4483 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4484 if val
is not None: val
.thisown
= 1
4487 def SetColumn(*args
, **kwargs
):
4488 """SetColumn(self, int col, ListItem item) -> bool"""
4489 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4491 def GetColumnWidth(*args
, **kwargs
):
4492 """GetColumnWidth(self, int col) -> int"""
4493 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4495 def SetColumnWidth(*args
, **kwargs
):
4496 """SetColumnWidth(self, int col, int width) -> bool"""
4497 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4499 def GetCountPerPage(*args
, **kwargs
):
4500 """GetCountPerPage(self) -> int"""
4501 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4503 def GetViewRect(*args
, **kwargs
):
4504 """GetViewRect(self) -> Rect"""
4505 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4507 def GetItem(*args
, **kwargs
):
4508 """GetItem(self, long itemId, int col=0) -> ListItem"""
4509 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4510 if val
is not None: val
.thisown
= 1
4513 def SetItem(*args
, **kwargs
):
4514 """SetItem(self, ListItem info) -> bool"""
4515 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4517 def SetStringItem(*args
, **kwargs
):
4518 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4519 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4521 def GetItemState(*args
, **kwargs
):
4522 """GetItemState(self, long item, long stateMask) -> int"""
4523 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4525 def SetItemState(*args
, **kwargs
):
4526 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4527 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4529 def SetItemImage(*args
, **kwargs
):
4530 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4531 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4533 def GetItemText(*args
, **kwargs
):
4534 """GetItemText(self, long item) -> String"""
4535 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4537 def SetItemText(*args
, **kwargs
):
4538 """SetItemText(self, long item, String str)"""
4539 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4541 def GetItemData(*args
, **kwargs
):
4542 """GetItemData(self, long item) -> long"""
4543 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4545 def SetItemData(*args
, **kwargs
):
4546 """SetItemData(self, long item, long data) -> bool"""
4547 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4549 def GetItemPosition(*args
, **kwargs
):
4550 """GetItemPosition(self, long item) -> Point"""
4551 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4553 def GetItemRect(*args
, **kwargs
):
4554 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4555 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4557 def SetItemPosition(*args
, **kwargs
):
4558 """SetItemPosition(self, long item, Point pos) -> bool"""
4559 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4561 def GetItemCount(*args
, **kwargs
):
4562 """GetItemCount(self) -> int"""
4563 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4565 def GetColumnCount(*args
, **kwargs
):
4566 """GetColumnCount(self) -> int"""
4567 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4569 def GetItemSpacing(*args
, **kwargs
):
4570 """GetItemSpacing(self) -> Size"""
4571 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4573 def SetItemSpacing(*args
, **kwargs
):
4574 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4575 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4577 def GetSelectedItemCount(*args
, **kwargs
):
4578 """GetSelectedItemCount(self) -> int"""
4579 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4581 def GetTextColour(*args
, **kwargs
):
4582 """GetTextColour(self) -> Colour"""
4583 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4585 def SetTextColour(*args
, **kwargs
):
4586 """SetTextColour(self, Colour col)"""
4587 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4589 def GetTopItem(*args
, **kwargs
):
4590 """GetTopItem(self) -> long"""
4591 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4593 def SetSingleStyle(*args
, **kwargs
):
4594 """SetSingleStyle(self, long style, bool add=True)"""
4595 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4597 def SetWindowStyleFlag(*args
, **kwargs
):
4599 SetWindowStyleFlag(self, long style)
4601 Sets the style of the window. Please note that some styles cannot be
4602 changed after the window creation and that Refresh() might need to be
4603 called after changing the others for the change to take place
4606 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4608 def GetNextItem(*args
, **kwargs
):
4609 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4610 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4612 def GetImageList(*args
, **kwargs
):
4613 """GetImageList(self, int which) -> ImageList"""
4614 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4616 def SetImageList(*args
, **kwargs
):
4617 """SetImageList(self, ImageList imageList, int which)"""
4618 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4620 def AssignImageList(*args
, **kwargs
):
4621 """AssignImageList(self, ImageList imageList, int which)"""
4622 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4624 def InReportView(*args
, **kwargs
):
4625 """InReportView(self) -> bool"""
4626 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4628 def IsVirtual(*args
, **kwargs
):
4629 """IsVirtual(self) -> bool"""
4630 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4632 def RefreshItem(*args
, **kwargs
):
4633 """RefreshItem(self, long item)"""
4634 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4636 def RefreshItems(*args
, **kwargs
):
4637 """RefreshItems(self, long itemFrom, long itemTo)"""
4638 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4640 def Arrange(*args
, **kwargs
):
4641 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4642 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4644 def DeleteItem(*args
, **kwargs
):
4645 """DeleteItem(self, long item) -> bool"""
4646 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4648 def DeleteAllItems(*args
, **kwargs
):
4649 """DeleteAllItems(self) -> bool"""
4650 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4652 def DeleteColumn(*args
, **kwargs
):
4653 """DeleteColumn(self, int col) -> bool"""
4654 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4656 def DeleteAllColumns(*args
, **kwargs
):
4657 """DeleteAllColumns(self) -> bool"""
4658 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4660 def ClearAll(*args
, **kwargs
):
4661 """ClearAll(self)"""
4662 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4664 def EditLabel(*args
, **kwargs
):
4665 """EditLabel(self, long item)"""
4666 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4668 def EnsureVisible(*args
, **kwargs
):
4669 """EnsureVisible(self, long item) -> bool"""
4670 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4672 def FindItem(*args
, **kwargs
):
4673 """FindItem(self, long start, String str, bool partial=False) -> long"""
4674 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4676 def FindItemData(*args
, **kwargs
):
4677 """FindItemData(self, long start, long data) -> long"""
4678 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4680 def FindItemAtPos(*args
, **kwargs
):
4681 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4682 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4684 def HitTest(*args
, **kwargs
):
4686 HitTest(Point point) -> (item, where)
4688 Determines which item (if any) is at the specified point, giving
4689 in the second return value (see wx.LIST_HITTEST flags.)
4691 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4693 def InsertItem(*args
, **kwargs
):
4694 """InsertItem(self, ListItem info) -> long"""
4695 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4697 def InsertStringItem(*args
, **kwargs
):
4698 """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long"""
4699 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4701 def InsertImageItem(*args
, **kwargs
):
4702 """InsertImageItem(self, long index, int imageIndex) -> long"""
4703 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4705 def InsertImageStringItem(*args
, **kwargs
):
4706 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4707 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4709 def InsertColumnItem(*args
, **kwargs
):
4710 """InsertColumnItem(self, long col, ListItem info) -> long"""
4711 return _controls_
.ListCtrl_InsertColumnItem(*args
, **kwargs
)
4713 InsertColumnInfo
= InsertColumnItem
4714 def InsertColumn(*args
, **kwargs
):
4716 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4717 int width=-1) -> long
4719 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4721 def SetItemCount(*args
, **kwargs
):
4722 """SetItemCount(self, long count)"""
4723 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4725 def ScrollList(*args
, **kwargs
):
4726 """ScrollList(self, int dx, int dy) -> bool"""
4727 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4729 def SetItemTextColour(*args
, **kwargs
):
4730 """SetItemTextColour(self, long item, Colour col)"""
4731 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4733 def GetItemTextColour(*args
, **kwargs
):
4734 """GetItemTextColour(self, long item) -> Colour"""
4735 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4737 def SetItemBackgroundColour(*args
, **kwargs
):
4738 """SetItemBackgroundColour(self, long item, Colour col)"""
4739 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4741 def GetItemBackgroundColour(*args
, **kwargs
):
4742 """GetItemBackgroundColour(self, long item) -> Colour"""
4743 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4745 def SetItemFont(*args
, **kwargs
):
4746 """SetItemFont(self, long item, Font f)"""
4747 return _controls_
.ListCtrl_SetItemFont(*args
, **kwargs
)
4749 def GetItemFont(*args
, **kwargs
):
4750 """GetItemFont(self, long item) -> Font"""
4751 return _controls_
.ListCtrl_GetItemFont(*args
, **kwargs
)
4755 def Select(self
, idx
, on
=1):
4756 '''[de]select an item'''
4757 if on
: state
= wx
.LIST_STATE_SELECTED
4759 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4761 def Focus(self
, idx
):
4762 '''Focus and show the given item'''
4763 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4764 self
.EnsureVisible(idx
)
4766 def GetFocusedItem(self
):
4767 '''get the currently focused item or -1 if none'''
4768 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4770 def GetFirstSelected(self
, *args
):
4771 '''return first selected item, or -1 when none'''
4772 return self
.GetNextSelected(-1)
4774 def GetNextSelected(self
, item
):
4775 '''return subsequent selected items, or -1 when no more'''
4776 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4778 def IsSelected(self
, idx
):
4779 '''return True if the item is selected'''
4780 return (self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) & wx
.LIST_STATE_SELECTED
) != 0
4782 def SetColumnImage(self
, col
, image
):
4783 item
= self
.GetColumn(col
)
4784 # preserve all other attributes too
4785 item
.SetMask( wx
.LIST_MASK_STATE |
4787 wx
.LIST_MASK_IMAGE |
4790 wx
.LIST_MASK_WIDTH |
4791 wx
.LIST_MASK_FORMAT
)
4792 item
.SetImage(image
)
4793 self
.SetColumn(col
, item
)
4795 def ClearColumnImage(self
, col
):
4796 self
.SetColumnImage(col
, -1)
4798 def Append(self
, entry
):
4799 '''Append an item to the list control. The entry parameter should be a
4800 sequence with an item for each column'''
4806 pos
= self
.GetItemCount()
4807 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4808 for i
in range(1, len(entry
)):
4809 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4812 def SortItems(*args
, **kwargs
):
4813 """SortItems(self, PyObject func) -> bool"""
4814 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4816 def GetMainWindow(*args
, **kwargs
):
4817 """GetMainWindow(self) -> Window"""
4818 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4820 def GetClassDefaultAttributes(*args
, **kwargs
):
4822 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4824 Get the default attributes for this class. This is useful if you want
4825 to use the same font or colour in your own control as in a standard
4826 control -- which is a much better idea than hard coding specific
4827 colours or fonts which might look completely out of place on the
4828 user's system, especially if it uses themes.
4830 The variant parameter is only relevant under Mac currently and is
4831 ignore under other platforms. Under Mac, it will change the size of
4832 the returned font. See `wx.Window.SetWindowVariant` for more about
4835 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4837 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4839 class ListCtrlPtr(ListCtrl
):
4840 def __init__(self
, this
):
4842 if not hasattr(self
,"thisown"): self
.thisown
= 0
4843 self
.__class
__ = ListCtrl
4844 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
4846 def PreListCtrl(*args
, **kwargs
):
4847 """PreListCtrl() -> ListCtrl"""
4848 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4852 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4854 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4856 Get the default attributes for this class. This is useful if you want
4857 to use the same font or colour in your own control as in a standard
4858 control -- which is a much better idea than hard coding specific
4859 colours or fonts which might look completely out of place on the
4860 user's system, especially if it uses themes.
4862 The variant parameter is only relevant under Mac currently and is
4863 ignore under other platforms. Under Mac, it will change the size of
4864 the returned font. See `wx.Window.SetWindowVariant` for more about
4867 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4869 #---------------------------------------------------------------------------
4871 class ListView(ListCtrl
):
4872 """Proxy of C++ ListView class"""
4874 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4875 def __init__(self
, *args
, **kwargs
):
4877 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4878 Size size=DefaultSize, long style=LC_REPORT,
4879 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4881 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
4882 self
.this
= newobj
.this
4885 self
._setOORInfo
(self
)
4887 def Create(*args
, **kwargs
):
4889 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4890 Size size=DefaultSize, long style=LC_REPORT,
4891 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4893 Do the 2nd phase and create the GUI control.
4895 return _controls_
.ListView_Create(*args
, **kwargs
)
4897 def Select(*args
, **kwargs
):
4898 """Select(self, long n, bool on=True)"""
4899 return _controls_
.ListView_Select(*args
, **kwargs
)
4901 def Focus(*args
, **kwargs
):
4902 """Focus(self, long index)"""
4903 return _controls_
.ListView_Focus(*args
, **kwargs
)
4905 def GetFocusedItem(*args
, **kwargs
):
4906 """GetFocusedItem(self) -> long"""
4907 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4909 def GetNextSelected(*args
, **kwargs
):
4910 """GetNextSelected(self, long item) -> long"""
4911 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4913 def GetFirstSelected(*args
, **kwargs
):
4914 """GetFirstSelected(self) -> long"""
4915 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4917 def IsSelected(*args
, **kwargs
):
4918 """IsSelected(self, long index) -> bool"""
4919 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4921 def SetColumnImage(*args
, **kwargs
):
4922 """SetColumnImage(self, int col, int image)"""
4923 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4925 def ClearColumnImage(*args
, **kwargs
):
4926 """ClearColumnImage(self, int col)"""
4927 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4930 class ListViewPtr(ListView
):
4931 def __init__(self
, this
):
4933 if not hasattr(self
,"thisown"): self
.thisown
= 0
4934 self
.__class
__ = ListView
4935 _controls_
.ListView_swigregister(ListViewPtr
)
4937 def PreListView(*args
, **kwargs
):
4938 """PreListView() -> ListView"""
4939 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4943 #---------------------------------------------------------------------------
4945 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4946 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4947 TR_NO_LINES
= _controls_
.TR_NO_LINES
4948 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4949 TR_SINGLE
= _controls_
.TR_SINGLE
4950 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4951 TR_EXTENDED
= _controls_
.TR_EXTENDED
4952 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4953 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4954 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4955 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4956 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4957 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4958 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4959 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
4960 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
4961 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4962 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4963 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4964 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4965 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4966 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4967 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4968 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4969 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4970 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4971 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4972 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4973 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4974 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4975 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4976 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4977 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4978 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4979 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4980 #---------------------------------------------------------------------------
4982 class TreeItemId(object):
4983 """Proxy of C++ TreeItemId class"""
4985 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4986 def __init__(self
, *args
, **kwargs
):
4987 """__init__(self) -> TreeItemId"""
4988 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
4989 self
.this
= newobj
.this
4992 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
4995 if self
.thisown
: destroy(self
)
4998 def IsOk(*args
, **kwargs
):
4999 """IsOk(self) -> bool"""
5000 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
5002 def __eq__(*args
, **kwargs
):
5003 """__eq__(self, TreeItemId other) -> bool"""
5004 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
5006 def __ne__(*args
, **kwargs
):
5007 """__ne__(self, TreeItemId other) -> bool"""
5008 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
5010 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
5012 def __nonzero__(self
): return self
.IsOk()
5014 class TreeItemIdPtr(TreeItemId
):
5015 def __init__(self
, this
):
5017 if not hasattr(self
,"thisown"): self
.thisown
= 0
5018 self
.__class
__ = TreeItemId
5019 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
5020 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
5022 class TreeItemData(object):
5023 """Proxy of C++ TreeItemData class"""
5025 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5026 def __init__(self
, *args
, **kwargs
):
5027 """__init__(self, PyObject obj=None) -> TreeItemData"""
5028 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
5029 self
.this
= newobj
.this
5032 def GetData(*args
, **kwargs
):
5033 """GetData(self) -> PyObject"""
5034 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
5036 def SetData(*args
, **kwargs
):
5037 """SetData(self, PyObject obj)"""
5038 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
5040 def GetId(*args
, **kwargs
):
5041 """GetId(self) -> TreeItemId"""
5042 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
5044 def SetId(*args
, **kwargs
):
5045 """SetId(self, TreeItemId id)"""
5046 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
5048 def Destroy(*args
, **kwargs
):
5050 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
5053 class TreeItemDataPtr(TreeItemData
):
5054 def __init__(self
, this
):
5056 if not hasattr(self
,"thisown"): self
.thisown
= 0
5057 self
.__class
__ = TreeItemData
5058 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
5060 #---------------------------------------------------------------------------
5062 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
5063 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
5064 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
5065 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
5066 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
5067 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
5068 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
5069 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
5070 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
5071 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
5072 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
5073 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
5074 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
5075 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
5076 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
5077 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
5078 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
5079 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
5080 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
5081 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
5082 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
5083 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
5084 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
5085 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
5086 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
5087 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
5088 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
5089 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
5090 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
5091 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
5092 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
5093 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
5094 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
5095 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
5096 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
5097 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
5098 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
5099 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
5100 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
5101 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
5102 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
5103 EVT_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
5105 class TreeEvent(_core
.NotifyEvent
):
5106 """Proxy of C++ TreeEvent class"""
5108 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5109 def __init__(self
, *args
, **kwargs
):
5110 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
5111 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
5112 self
.this
= newobj
.this
5115 def GetItem(*args
, **kwargs
):
5116 """GetItem(self) -> TreeItemId"""
5117 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
5119 def SetItem(*args
, **kwargs
):
5120 """SetItem(self, TreeItemId item)"""
5121 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
5123 def GetOldItem(*args
, **kwargs
):
5124 """GetOldItem(self) -> TreeItemId"""
5125 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
5127 def SetOldItem(*args
, **kwargs
):
5128 """SetOldItem(self, TreeItemId item)"""
5129 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
5131 def GetPoint(*args
, **kwargs
):
5132 """GetPoint(self) -> Point"""
5133 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
5135 def SetPoint(*args
, **kwargs
):
5136 """SetPoint(self, Point pt)"""
5137 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
5139 def GetKeyEvent(*args
, **kwargs
):
5140 """GetKeyEvent(self) -> KeyEvent"""
5141 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
5143 def GetKeyCode(*args
, **kwargs
):
5144 """GetKeyCode(self) -> int"""
5145 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
5147 def SetKeyEvent(*args
, **kwargs
):
5148 """SetKeyEvent(self, KeyEvent evt)"""
5149 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
5151 def GetLabel(*args
, **kwargs
):
5152 """GetLabel(self) -> String"""
5153 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
5155 def SetLabel(*args
, **kwargs
):
5156 """SetLabel(self, String label)"""
5157 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
5159 def IsEditCancelled(*args
, **kwargs
):
5160 """IsEditCancelled(self) -> bool"""
5161 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
5163 def SetEditCanceled(*args
, **kwargs
):
5164 """SetEditCanceled(self, bool editCancelled)"""
5165 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
5167 def SetToolTip(*args
, **kwargs
):
5168 """SetToolTip(self, String toolTip)"""
5169 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
5171 def GetToolTip(*args
, **kwargs
):
5172 """GetToolTip(self) -> String"""
5173 return _controls_
.TreeEvent_GetToolTip(*args
, **kwargs
)
5176 class TreeEventPtr(TreeEvent
):
5177 def __init__(self
, this
):
5179 if not hasattr(self
,"thisown"): self
.thisown
= 0
5180 self
.__class
__ = TreeEvent
5181 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
5183 #---------------------------------------------------------------------------
5185 class TreeCtrl(_core
.Control
):
5186 """Proxy of C++ TreeCtrl class"""
5188 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5189 def __init__(self
, *args
, **kwargs
):
5191 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5192 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5193 Validator validator=DefaultValidator,
5194 String name=TreeCtrlNameStr) -> TreeCtrl
5196 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
5197 self
.this
= newobj
.this
5200 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5202 def Create(*args
, **kwargs
):
5204 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5205 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5206 Validator validator=DefaultValidator,
5207 String name=TreeCtrlNameStr) -> bool
5209 Do the 2nd phase and create the GUI control.
5211 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5213 def _setCallbackInfo(*args
, **kwargs
):
5214 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5215 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5217 def GetCount(*args
, **kwargs
):
5218 """GetCount(self) -> size_t"""
5219 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5221 def GetIndent(*args
, **kwargs
):
5222 """GetIndent(self) -> unsigned int"""
5223 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5225 def SetIndent(*args
, **kwargs
):
5226 """SetIndent(self, unsigned int indent)"""
5227 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5229 def GetSpacing(*args
, **kwargs
):
5230 """GetSpacing(self) -> unsigned int"""
5231 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5233 def SetSpacing(*args
, **kwargs
):
5234 """SetSpacing(self, unsigned int spacing)"""
5235 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5237 def GetImageList(*args
, **kwargs
):
5238 """GetImageList(self) -> ImageList"""
5239 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5241 def GetStateImageList(*args
, **kwargs
):
5242 """GetStateImageList(self) -> ImageList"""
5243 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5245 def SetImageList(*args
, **kwargs
):
5246 """SetImageList(self, ImageList imageList)"""
5247 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5249 def SetStateImageList(*args
, **kwargs
):
5250 """SetStateImageList(self, ImageList imageList)"""
5251 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5253 def AssignImageList(*args
, **kwargs
):
5254 """AssignImageList(self, ImageList imageList)"""
5255 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5257 def AssignStateImageList(*args
, **kwargs
):
5258 """AssignStateImageList(self, ImageList imageList)"""
5259 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5261 def GetItemText(*args
, **kwargs
):
5262 """GetItemText(self, TreeItemId item) -> String"""
5263 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5265 def GetItemImage(*args
, **kwargs
):
5266 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5267 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5269 def GetItemData(*args
, **kwargs
):
5270 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5271 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5273 def GetItemPyData(*args
, **kwargs
):
5274 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5275 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5277 GetPyData
= GetItemPyData
5278 def GetItemTextColour(*args
, **kwargs
):
5279 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5280 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5282 def GetItemBackgroundColour(*args
, **kwargs
):
5283 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5284 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5286 def GetItemFont(*args
, **kwargs
):
5287 """GetItemFont(self, TreeItemId item) -> Font"""
5288 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5290 def SetItemText(*args
, **kwargs
):
5291 """SetItemText(self, TreeItemId item, String text)"""
5292 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5294 def SetItemImage(*args
, **kwargs
):
5295 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5296 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5298 def SetItemData(*args
, **kwargs
):
5299 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5300 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5302 def SetItemPyData(*args
, **kwargs
):
5303 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5304 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5306 SetPyData
= SetItemPyData
5307 def SetItemHasChildren(*args
, **kwargs
):
5308 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5309 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5311 def SetItemBold(*args
, **kwargs
):
5312 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5313 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5315 def SetItemDropHighlight(*args
, **kwargs
):
5316 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5317 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5319 def SetItemTextColour(*args
, **kwargs
):
5320 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5321 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5323 def SetItemBackgroundColour(*args
, **kwargs
):
5324 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5325 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5327 def SetItemFont(*args
, **kwargs
):
5328 """SetItemFont(self, TreeItemId item, Font font)"""
5329 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5331 def IsVisible(*args
, **kwargs
):
5332 """IsVisible(self, TreeItemId item) -> bool"""
5333 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5335 def ItemHasChildren(*args
, **kwargs
):
5336 """ItemHasChildren(self, TreeItemId item) -> bool"""
5337 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5339 def IsExpanded(*args
, **kwargs
):
5340 """IsExpanded(self, TreeItemId item) -> bool"""
5341 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5343 def IsSelected(*args
, **kwargs
):
5344 """IsSelected(self, TreeItemId item) -> bool"""
5345 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5347 def IsBold(*args
, **kwargs
):
5348 """IsBold(self, TreeItemId item) -> bool"""
5349 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5351 def GetChildrenCount(*args
, **kwargs
):
5352 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5353 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5355 def GetRootItem(*args
, **kwargs
):
5356 """GetRootItem(self) -> TreeItemId"""
5357 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5359 def GetSelection(*args
, **kwargs
):
5360 """GetSelection(self) -> TreeItemId"""
5361 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5363 def GetSelections(*args
, **kwargs
):
5364 """GetSelections(self) -> PyObject"""
5365 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5367 def GetItemParent(*args
, **kwargs
):
5368 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5369 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5371 def GetFirstChild(*args
, **kwargs
):
5372 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5373 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5375 def GetNextChild(*args
, **kwargs
):
5376 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5377 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5379 def GetLastChild(*args
, **kwargs
):
5380 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5381 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5383 def GetNextSibling(*args
, **kwargs
):
5384 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5385 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5387 def GetPrevSibling(*args
, **kwargs
):
5388 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5389 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5391 def GetFirstVisibleItem(*args
, **kwargs
):
5392 """GetFirstVisibleItem(self) -> TreeItemId"""
5393 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5395 def GetNextVisible(*args
, **kwargs
):
5396 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5397 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5399 def GetPrevVisible(*args
, **kwargs
):
5400 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5401 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5403 def AddRoot(*args
, **kwargs
):
5404 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5405 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5407 def PrependItem(*args
, **kwargs
):
5409 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5410 TreeItemData data=None) -> TreeItemId
5412 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5414 def InsertItem(*args
, **kwargs
):
5416 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5417 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5419 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5421 def InsertItemBefore(*args
, **kwargs
):
5423 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5424 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5426 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5428 def AppendItem(*args
, **kwargs
):
5430 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5431 TreeItemData data=None) -> TreeItemId
5433 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5435 def Delete(*args
, **kwargs
):
5436 """Delete(self, TreeItemId item)"""
5437 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5439 def DeleteChildren(*args
, **kwargs
):
5440 """DeleteChildren(self, TreeItemId item)"""
5441 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5443 def DeleteAllItems(*args
, **kwargs
):
5444 """DeleteAllItems(self)"""
5445 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5447 def Expand(*args
, **kwargs
):
5448 """Expand(self, TreeItemId item)"""
5449 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5451 def Collapse(*args
, **kwargs
):
5452 """Collapse(self, TreeItemId item)"""
5453 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5455 def CollapseAndReset(*args
, **kwargs
):
5456 """CollapseAndReset(self, TreeItemId item)"""
5457 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5459 def Toggle(*args
, **kwargs
):
5460 """Toggle(self, TreeItemId item)"""
5461 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5463 def Unselect(*args
, **kwargs
):
5464 """Unselect(self)"""
5465 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5467 def UnselectItem(*args
, **kwargs
):
5468 """UnselectItem(self, TreeItemId item)"""
5469 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5471 def UnselectAll(*args
, **kwargs
):
5472 """UnselectAll(self)"""
5473 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5475 def SelectItem(*args
, **kwargs
):
5476 """SelectItem(self, TreeItemId item, bool select=True)"""
5477 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5479 def ToggleItemSelection(*args
, **kwargs
):
5480 """ToggleItemSelection(self, TreeItemId item)"""
5481 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5483 def EnsureVisible(*args
, **kwargs
):
5484 """EnsureVisible(self, TreeItemId item)"""
5485 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5487 def ScrollTo(*args
, **kwargs
):
5488 """ScrollTo(self, TreeItemId item)"""
5489 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5491 def EditLabel(*args
, **kwargs
):
5492 """EditLabel(self, TreeItemId item)"""
5493 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5495 def GetEditControl(*args
, **kwargs
):
5496 """GetEditControl(self) -> TextCtrl"""
5497 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5499 def SortChildren(*args
, **kwargs
):
5500 """SortChildren(self, TreeItemId item)"""
5501 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5503 def HitTest(*args
, **kwargs
):
5505 HitTest(Point point) -> (item, where)
5507 Determine which item (if any) belongs the given point. The coordinates
5508 specified are relative to the client area of tree ctrl and the where return
5509 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5512 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5514 def GetBoundingRect(*args
, **kwargs
):
5515 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5516 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5518 def GetClassDefaultAttributes(*args
, **kwargs
):
5520 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5522 Get the default attributes for this class. This is useful if you want
5523 to use the same font or colour in your own control as in a standard
5524 control -- which is a much better idea than hard coding specific
5525 colours or fonts which might look completely out of place on the
5526 user's system, especially if it uses themes.
5528 The variant parameter is only relevant under Mac currently and is
5529 ignore under other platforms. Under Mac, it will change the size of
5530 the returned font. See `wx.Window.SetWindowVariant` for more about
5533 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5535 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5537 class TreeCtrlPtr(TreeCtrl
):
5538 def __init__(self
, this
):
5540 if not hasattr(self
,"thisown"): self
.thisown
= 0
5541 self
.__class
__ = TreeCtrl
5542 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5544 def PreTreeCtrl(*args
, **kwargs
):
5545 """PreTreeCtrl() -> TreeCtrl"""
5546 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5550 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5552 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5554 Get the default attributes for this class. This is useful if you want
5555 to use the same font or colour in your own control as in a standard
5556 control -- which is a much better idea than hard coding specific
5557 colours or fonts which might look completely out of place on the
5558 user's system, especially if it uses themes.
5560 The variant parameter is only relevant under Mac currently and is
5561 ignore under other platforms. Under Mac, it will change the size of
5562 the returned font. See `wx.Window.SetWindowVariant` for more about
5565 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5567 #---------------------------------------------------------------------------
5569 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5570 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5571 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5572 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5573 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5574 class GenericDirCtrl(_core
.Control
):
5575 """Proxy of C++ GenericDirCtrl class"""
5577 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5578 def __init__(self
, *args
, **kwargs
):
5580 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5581 Point pos=DefaultPosition, Size size=DefaultSize,
5582 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5583 String filter=EmptyString,
5584 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5586 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5587 self
.this
= newobj
.this
5590 self
._setOORInfo
(self
)
5592 def Create(*args
, **kwargs
):
5594 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5595 Point pos=DefaultPosition, Size size=DefaultSize,
5596 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5597 String filter=EmptyString,
5598 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5600 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5602 def ExpandPath(*args
, **kwargs
):
5603 """ExpandPath(self, String path) -> bool"""
5604 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5606 def GetDefaultPath(*args
, **kwargs
):
5607 """GetDefaultPath(self) -> String"""
5608 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5610 def SetDefaultPath(*args
, **kwargs
):
5611 """SetDefaultPath(self, String path)"""
5612 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5614 def GetPath(*args
, **kwargs
):
5615 """GetPath(self) -> String"""
5616 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5618 def GetFilePath(*args
, **kwargs
):
5619 """GetFilePath(self) -> String"""
5620 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5622 def SetPath(*args
, **kwargs
):
5623 """SetPath(self, String path)"""
5624 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5626 def ShowHidden(*args
, **kwargs
):
5627 """ShowHidden(self, bool show)"""
5628 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5630 def GetShowHidden(*args
, **kwargs
):
5631 """GetShowHidden(self) -> bool"""
5632 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5634 def GetFilter(*args
, **kwargs
):
5635 """GetFilter(self) -> String"""
5636 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5638 def SetFilter(*args
, **kwargs
):
5639 """SetFilter(self, String filter)"""
5640 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5642 def GetFilterIndex(*args
, **kwargs
):
5643 """GetFilterIndex(self) -> int"""
5644 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5646 def SetFilterIndex(*args
, **kwargs
):
5647 """SetFilterIndex(self, int n)"""
5648 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5650 def GetRootId(*args
, **kwargs
):
5651 """GetRootId(self) -> TreeItemId"""
5652 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5654 def GetTreeCtrl(*args
, **kwargs
):
5655 """GetTreeCtrl(self) -> TreeCtrl"""
5656 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5658 def GetFilterListCtrl(*args
, **kwargs
):
5659 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5660 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5662 def FindChild(*args
, **kwargs
):
5664 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5666 Find the child that matches the first part of 'path'. E.g. if a child
5667 path is "/usr" and 'path' is "/usr/include" then the child for
5668 /usr is returned. If the path string has been used (we're at the
5669 leaf), done is set to True.
5672 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5674 def DoResize(*args
, **kwargs
):
5675 """DoResize(self)"""
5676 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5678 def ReCreateTree(*args
, **kwargs
):
5679 """ReCreateTree(self)"""
5680 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5683 class GenericDirCtrlPtr(GenericDirCtrl
):
5684 def __init__(self
, this
):
5686 if not hasattr(self
,"thisown"): self
.thisown
= 0
5687 self
.__class
__ = GenericDirCtrl
5688 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5689 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5691 def PreGenericDirCtrl(*args
, **kwargs
):
5692 """PreGenericDirCtrl() -> GenericDirCtrl"""
5693 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5697 class DirFilterListCtrl(Choice
):
5698 """Proxy of C++ DirFilterListCtrl class"""
5700 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5701 def __init__(self
, *args
, **kwargs
):
5703 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5704 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5706 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5707 self
.this
= newobj
.this
5710 self
._setOORInfo
(self
)
5712 def Create(*args
, **kwargs
):
5714 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5715 Size size=DefaultSize, long style=0) -> bool
5717 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5719 def FillFilterList(*args
, **kwargs
):
5720 """FillFilterList(self, String filter, int defaultFilter)"""
5721 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5724 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5725 def __init__(self
, this
):
5727 if not hasattr(self
,"thisown"): self
.thisown
= 0
5728 self
.__class
__ = DirFilterListCtrl
5729 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5731 def PreDirFilterListCtrl(*args
, **kwargs
):
5732 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5733 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5737 #---------------------------------------------------------------------------
5739 class PyControl(_core
.Control
):
5740 """Proxy of C++ PyControl class"""
5742 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5743 def __init__(self
, *args
, **kwargs
):
5745 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5746 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5747 String name=ControlNameStr) -> PyControl
5749 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5750 self
.this
= newobj
.this
5753 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5755 def _setCallbackInfo(*args
, **kwargs
):
5756 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5757 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5759 def SetBestSize(*args
, **kwargs
):
5760 """SetBestSize(self, Size size)"""
5761 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5763 def DoEraseBackground(*args
, **kwargs
):
5764 """DoEraseBackground(self, DC dc) -> bool"""
5765 return _controls_
.PyControl_DoEraseBackground(*args
, **kwargs
)
5767 def base_DoMoveWindow(*args
, **kwargs
):
5768 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
5769 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
5771 def base_DoSetSize(*args
, **kwargs
):
5772 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5773 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
5775 def base_DoSetClientSize(*args
, **kwargs
):
5776 """base_DoSetClientSize(self, int width, int height)"""
5777 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
5779 def base_DoSetVirtualSize(*args
, **kwargs
):
5780 """base_DoSetVirtualSize(self, int x, int y)"""
5781 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
5783 def base_DoGetSize(*args
, **kwargs
):
5784 """base_DoGetSize() -> (width, height)"""
5785 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
5787 def base_DoGetClientSize(*args
, **kwargs
):
5788 """base_DoGetClientSize() -> (width, height)"""
5789 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
5791 def base_DoGetPosition(*args
, **kwargs
):
5792 """base_DoGetPosition() -> (x,y)"""
5793 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
5795 def base_DoGetVirtualSize(*args
, **kwargs
):
5796 """base_DoGetVirtualSize(self) -> Size"""
5797 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
5799 def base_DoGetBestSize(*args
, **kwargs
):
5800 """base_DoGetBestSize(self) -> Size"""
5801 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
5803 def base_InitDialog(*args
, **kwargs
):
5804 """base_InitDialog(self)"""
5805 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
5807 def base_TransferDataToWindow(*args
, **kwargs
):
5808 """base_TransferDataToWindow(self) -> bool"""
5809 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
5811 def base_TransferDataFromWindow(*args
, **kwargs
):
5812 """base_TransferDataFromWindow(self) -> bool"""
5813 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
5815 def base_Validate(*args
, **kwargs
):
5816 """base_Validate(self) -> bool"""
5817 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
5819 def base_AcceptsFocus(*args
, **kwargs
):
5820 """base_AcceptsFocus(self) -> bool"""
5821 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
5823 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
5824 """base_AcceptsFocusFromKeyboard(self) -> bool"""
5825 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
5827 def base_GetMaxSize(*args
, **kwargs
):
5828 """base_GetMaxSize(self) -> Size"""
5829 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
5831 def base_AddChild(*args
, **kwargs
):
5832 """base_AddChild(self, Window child)"""
5833 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
5835 def base_RemoveChild(*args
, **kwargs
):
5836 """base_RemoveChild(self, Window child)"""
5837 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
5839 def base_ShouldInheritColours(*args
, **kwargs
):
5840 """base_ShouldInheritColours(self) -> bool"""
5841 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
5843 def base_GetDefaultAttributes(*args
, **kwargs
):
5844 """base_GetDefaultAttributes(self) -> VisualAttributes"""
5845 return _controls_
.PyControl_base_GetDefaultAttributes(*args
, **kwargs
)
5847 def base_OnInternalIdle(*args
, **kwargs
):
5848 """base_OnInternalIdle(self)"""
5849 return _controls_
.PyControl_base_OnInternalIdle(*args
, **kwargs
)
5852 class PyControlPtr(PyControl
):
5853 def __init__(self
, this
):
5855 if not hasattr(self
,"thisown"): self
.thisown
= 0
5856 self
.__class
__ = PyControl
5857 _controls_
.PyControl_swigregister(PyControlPtr
)
5859 def PrePyControl(*args
, **kwargs
):
5860 """PrePyControl() -> PyControl"""
5861 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5865 #---------------------------------------------------------------------------
5867 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5868 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5869 wxEVT_HELP
= _controls_
.wxEVT_HELP
5870 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5871 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5872 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5873 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5874 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5876 class HelpEvent(_core
.CommandEvent
):
5878 A help event is sent when the user has requested context-sensitive
5879 help. This can either be caused by the application requesting
5880 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5881 the system generating a WM_HELP message when the user pressed F1 or
5882 clicked on the query button in a dialog caption.
5884 A help event is sent to the window that the user clicked on, and is
5885 propagated up the window hierarchy until the event is processed or
5886 there are no more event handlers. The application should call
5887 event.GetId to check the identity of the clicked-on window, and then
5888 either show some suitable help or call event.Skip if the identifier is
5889 unrecognised. Calling Skip is important because it allows wxWindows to
5890 generate further events for ancestors of the clicked-on
5891 window. Otherwise it would be impossible to show help for container
5892 windows, since processing would stop after the first window found.
5895 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5896 def __init__(self
, *args
, **kwargs
):
5897 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5898 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
5899 self
.this
= newobj
.this
5902 def GetPosition(*args
, **kwargs
):
5904 GetPosition(self) -> Point
5906 Returns the left-click position of the mouse, in screen
5907 coordinates. This allows the application to position the help
5910 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5912 def SetPosition(*args
, **kwargs
):
5914 SetPosition(self, Point pos)
5916 Sets the left-click position of the mouse, in screen coordinates.
5918 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5920 def GetLink(*args
, **kwargs
):
5922 GetLink(self) -> String
5924 Get an optional link to further help
5926 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5928 def SetLink(*args
, **kwargs
):
5930 SetLink(self, String link)
5932 Set an optional link to further help
5934 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5936 def GetTarget(*args
, **kwargs
):
5938 GetTarget(self) -> String
5940 Get an optional target to display help in. E.g. a window specification
5942 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5944 def SetTarget(*args
, **kwargs
):
5946 SetTarget(self, String target)
5948 Set an optional target to display help in. E.g. a window specification
5950 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5953 class HelpEventPtr(HelpEvent
):
5954 def __init__(self
, this
):
5956 if not hasattr(self
,"thisown"): self
.thisown
= 0
5957 self
.__class
__ = HelpEvent
5958 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
5960 class ContextHelp(_core
.Object
):
5962 This class changes the cursor to a query and puts the application into
5963 a 'context-sensitive help mode'. When the user left-clicks on a window
5964 within the specified window, a ``EVT_HELP`` event is sent to that
5965 control, and the application may respond to it by popping up some
5968 There are a couple of ways to invoke this behaviour implicitly:
5970 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5971 (Windows only). This will put a question mark in the titlebar,
5972 and Windows will put the application into context-sensitive help
5973 mode automatically, with further programming.
5975 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5976 to create a context help object. Normally you will write your
5977 application so that this button is only added to a dialog for
5978 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5981 :see: `wx.ContextHelpButton`
5985 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5986 def __init__(self
, *args
, **kwargs
):
5988 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5990 Constructs a context help object, calling BeginContextHelp if doNow is
5993 If window is None, the top window is used.
5995 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
5996 self
.this
= newobj
.this
5999 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
6002 if self
.thisown
: destroy(self
)
6005 def BeginContextHelp(*args
, **kwargs
):
6007 BeginContextHelp(self, Window window=None) -> bool
6009 Puts the application into context-sensitive help mode. window is the
6010 window which will be used to catch events; if NULL, the top window
6013 Returns true if the application was successfully put into
6014 context-sensitive help mode. This function only returns when the event
6017 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
6019 def EndContextHelp(*args
, **kwargs
):
6021 EndContextHelp(self) -> bool
6023 Ends context-sensitive help mode. Not normally called by the
6026 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
6029 class ContextHelpPtr(ContextHelp
):
6030 def __init__(self
, this
):
6032 if not hasattr(self
,"thisown"): self
.thisown
= 0
6033 self
.__class
__ = ContextHelp
6034 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
6036 class ContextHelpButton(BitmapButton
):
6038 Instances of this class may be used to add a question mark button that
6039 when pressed, puts the application into context-help mode. It does
6040 this by creating a wx.ContextHelp object which itself generates a
6041 ``EVT_HELP`` event when the user clicks on a window.
6043 On Windows, you may add a question-mark icon to a dialog by use of the
6044 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
6045 will have to add a button explicitly, usually next to OK, Cancel or
6048 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
6052 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6053 def __init__(self
, *args
, **kwargs
):
6055 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
6056 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
6058 Constructor, creating and showing a context help button.
6060 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
6061 self
.this
= newobj
.this
6064 self
._setOORInfo
(self
)
6067 class ContextHelpButtonPtr(ContextHelpButton
):
6068 def __init__(self
, this
):
6070 if not hasattr(self
,"thisown"): self
.thisown
= 0
6071 self
.__class
__ = ContextHelpButton
6072 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
6074 class HelpProvider(object):
6076 wx.HelpProvider is an abstract class used by a program
6077 implementing context-sensitive help to show the help text for the
6080 The current help provider must be explicitly set by the
6081 application using wx.HelpProvider.Set().
6083 def __init__(self
): raise RuntimeError, "No constructor defined"
6085 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6086 def Set(*args
, **kwargs
):
6088 Set(HelpProvider helpProvider) -> HelpProvider
6090 Sset the current, application-wide help provider. Returns the previous
6091 one. Unlike some other classes, the help provider is not created on
6092 demand. This must be explicitly done by the application.
6094 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6096 Set
= staticmethod(Set
)
6097 def Get(*args
, **kwargs
):
6099 Get() -> HelpProvider
6101 Return the current application-wide help provider.
6103 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6105 Get
= staticmethod(Get
)
6106 def GetHelp(*args
, **kwargs
):
6108 GetHelp(self, Window window) -> String
6110 Gets the help string for this window. Its interpretation is dependent
6111 on the help provider except that empty string always means that no
6112 help is associated with the window.
6114 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
6116 def ShowHelp(*args
, **kwargs
):
6118 ShowHelp(self, Window window) -> bool
6120 Shows help for the given window. Uses GetHelp internally if
6121 applicable. Returns True if it was done, or False if no help was
6122 available for this window.
6124 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
6126 def AddHelp(*args
, **kwargs
):
6128 AddHelp(self, Window window, String text)
6130 Associates the text with the given window.
6132 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
6134 def AddHelpById(*args
, **kwargs
):
6136 AddHelpById(self, int id, String text)
6138 This version associates the given text with all windows with this
6139 id. May be used to set the same help string for all Cancel buttons in
6140 the application, for example.
6142 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
6144 def RemoveHelp(*args
, **kwargs
):
6146 RemoveHelp(self, Window window)
6148 Removes the association between the window pointer and the help
6149 text. This is called by the wx.Window destructor. Without this, the
6150 table of help strings will fill up and when window pointers are
6151 reused, the wrong help string will be found.
6153 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
6155 def Destroy(*args
, **kwargs
):
6157 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
6160 class HelpProviderPtr(HelpProvider
):
6161 def __init__(self
, this
):
6163 if not hasattr(self
,"thisown"): self
.thisown
= 0
6164 self
.__class
__ = HelpProvider
6165 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
6167 def HelpProvider_Set(*args
, **kwargs
):
6169 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
6171 Sset the current, application-wide help provider. Returns the previous
6172 one. Unlike some other classes, the help provider is not created on
6173 demand. This must be explicitly done by the application.
6175 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6177 def HelpProvider_Get(*args
, **kwargs
):
6179 HelpProvider_Get() -> HelpProvider
6181 Return the current application-wide help provider.
6183 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6185 class SimpleHelpProvider(HelpProvider
):
6187 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6188 supports only plain text help strings, and shows the string associated
6189 with the control (if any) in a tooltip.
6192 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6193 def __init__(self
, *args
, **kwargs
):
6195 __init__(self) -> SimpleHelpProvider
6197 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6198 supports only plain text help strings, and shows the string associated
6199 with the control (if any) in a tooltip.
6201 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
6202 self
.this
= newobj
.this
6206 class SimpleHelpProviderPtr(SimpleHelpProvider
):
6207 def __init__(self
, this
):
6209 if not hasattr(self
,"thisown"): self
.thisown
= 0
6210 self
.__class
__ = SimpleHelpProvider
6211 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
6213 #---------------------------------------------------------------------------
6215 class DragImage(_core
.Object
):
6216 """Proxy of C++ DragImage class"""
6218 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6219 def __init__(self
, *args
, **kwargs
):
6220 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6221 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
6222 self
.this
= newobj
.this
6225 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
6228 if self
.thisown
: destroy(self
)
6231 def SetBackingBitmap(*args
, **kwargs
):
6232 """SetBackingBitmap(self, Bitmap bitmap)"""
6233 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6235 def BeginDrag(*args
, **kwargs
):
6237 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6238 Rect rect=None) -> bool
6240 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6242 def BeginDragBounded(*args
, **kwargs
):
6243 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6244 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6246 def EndDrag(*args
, **kwargs
):
6247 """EndDrag(self) -> bool"""
6248 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6250 def Move(*args
, **kwargs
):
6251 """Move(self, Point pt) -> bool"""
6252 return _controls_
.DragImage_Move(*args
, **kwargs
)
6254 def Show(*args
, **kwargs
):
6255 """Show(self) -> bool"""
6256 return _controls_
.DragImage_Show(*args
, **kwargs
)
6258 def Hide(*args
, **kwargs
):
6259 """Hide(self) -> bool"""
6260 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6262 def GetImageRect(*args
, **kwargs
):
6263 """GetImageRect(self, Point pos) -> Rect"""
6264 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6266 def DoDrawImage(*args
, **kwargs
):
6267 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6268 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6270 def UpdateBackingFromWindow(*args
, **kwargs
):
6271 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6272 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6274 def RedrawImage(*args
, **kwargs
):
6275 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6276 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6279 class DragImagePtr(DragImage
):
6280 def __init__(self
, this
):
6282 if not hasattr(self
,"thisown"): self
.thisown
= 0
6283 self
.__class
__ = DragImage
6284 _controls_
.DragImage_swigregister(DragImagePtr
)
6286 def DragIcon(*args
, **kwargs
):
6287 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6288 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6292 def DragString(*args
, **kwargs
):
6293 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6294 val
= _controls_
.new_DragString(*args
, **kwargs
)
6298 def DragTreeItem(*args
, **kwargs
):
6299 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6300 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6304 def DragListItem(*args
, **kwargs
):
6305 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6306 val
= _controls_
.new_DragListItem(*args
, **kwargs
)
6310 #---------------------------------------------------------------------------
6312 DP_DEFAULT
= _controls_
.DP_DEFAULT
6313 DP_SPIN
= _controls_
.DP_SPIN
6314 DP_DROPDOWN
= _controls_
.DP_DROPDOWN
6315 DP_SHOWCENTURY
= _controls_
.DP_SHOWCENTURY
6316 DP_ALLOWNONE
= _controls_
.DP_ALLOWNONE
6317 class DatePickerCtrl(_core
.Control
):
6319 This control allows the user to select a date. Unlike
6320 `wx.calendar.CalendarCtrl`, which is a relatively big control,
6321 `wx.DatePickerCtrl` is implemented as a small window showing the
6322 currently selected date. The control can be edited using the keyboard,
6323 and can also display a popup window for more user-friendly date
6324 selection, depending on the styles used and the platform.
6327 return "<%s.%s; proxy of C++ wxDatePickerCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6328 def __init__(self
, *args
, **kwargs
):
6330 __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6331 Point pos=DefaultPosition, Size size=DefaultSize,
6332 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6333 Validator validator=DefaultValidator,
6334 String name=DatePickerCtrlNameStr) -> DatePickerCtrl
6336 Create a new DatePickerCtrl.
6338 newobj
= _controls_
.new_DatePickerCtrl(*args
, **kwargs
)
6339 self
.this
= newobj
.this
6342 self
._setOORInfo
(self
)
6344 def Create(*args
, **kwargs
):
6346 Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6347 Point pos=DefaultPosition, Size size=DefaultSize,
6348 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6349 Validator validator=DefaultValidator,
6350 String name=DatePickerCtrlNameStr) -> bool
6352 Create the GUI parts of the DatePickerCtrl, for use in 2-phase
6355 return _controls_
.DatePickerCtrl_Create(*args
, **kwargs
)
6357 def SetValue(*args
, **kwargs
):
6359 SetValue(self, DateTime dt)
6361 Changes the current value of the control. The date should be valid and
6362 included in the currently selected range, if any.
6364 Calling this method does not result in a date change event.
6366 return _controls_
.DatePickerCtrl_SetValue(*args
, **kwargs
)
6368 def GetValue(*args
, **kwargs
):
6370 GetValue(self) -> DateTime
6372 Returns the currently selected date. If there is no selection or the
6373 selection is outside of the current range, an invalid `wx.DateTime`
6376 return _controls_
.DatePickerCtrl_GetValue(*args
, **kwargs
)
6378 def SetRange(*args
, **kwargs
):
6380 SetRange(self, DateTime dt1, DateTime dt2)
6382 Sets the valid range for the date selection. If dt1 is valid, it
6383 becomes the earliest date (inclusive) accepted by the control. If dt2
6384 is valid, it becomes the latest possible date.
6386 If the current value of the control is outside of the newly set range
6387 bounds, the behaviour is undefined.
6389 return _controls_
.DatePickerCtrl_SetRange(*args
, **kwargs
)
6391 def GetLowerLimit(*args
, **kwargs
):
6393 GetLowerLimit(self) -> DateTime
6395 Get the lower limit of the valid range for the date selection, if any.
6396 If there is no range or there is no lower limit, then the
6397 `wx.DateTime` value returned will be invalid.
6399 return _controls_
.DatePickerCtrl_GetLowerLimit(*args
, **kwargs
)
6401 def GetUpperLimit(*args
, **kwargs
):
6403 GetUpperLimit(self) -> DateTime
6405 Get the upper limit of the valid range for the date selection, if any.
6406 If there is no range or there is no upper limit, then the
6407 `wx.DateTime` value returned will be invalid.
6409 return _controls_
.DatePickerCtrl_GetUpperLimit(*args
, **kwargs
)
6412 class DatePickerCtrlPtr(DatePickerCtrl
):
6413 def __init__(self
, this
):
6415 if not hasattr(self
,"thisown"): self
.thisown
= 0
6416 self
.__class
__ = DatePickerCtrl
6417 _controls_
.DatePickerCtrl_swigregister(DatePickerCtrlPtr
)
6418 DatePickerCtrlNameStr
= cvar
.DatePickerCtrlNameStr
6420 def PreDatePickerCtrl(*args
, **kwargs
):
6422 PreDatePickerCtrl() -> DatePickerCtrl
6424 Precreate a DatePickerCtrl for use in 2-phase creation.
6426 val
= _controls_
.new_PreDatePickerCtrl(*args
, **kwargs
)