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 BK_DEFAULT
= _controls_
.BK_DEFAULT
2945 BK_TOP
= _controls_
.BK_TOP
2946 BK_BOTTOM
= _controls_
.BK_BOTTOM
2947 BK_LEFT
= _controls_
.BK_LEFT
2948 BK_RIGHT
= _controls_
.BK_RIGHT
2949 BK_ALIGN_MASK
= _controls_
.BK_ALIGN_MASK
2950 class BookCtrlBase(_core
.Control
):
2951 """Proxy of C++ BookCtrlBase class"""
2952 def __init__(self
): raise RuntimeError, "No constructor defined"
2954 return "<%s.%s; proxy of C++ wxBookCtrlBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2955 def GetPageCount(*args
, **kwargs
):
2956 """GetPageCount(self) -> size_t"""
2957 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2959 def GetPage(*args
, **kwargs
):
2960 """GetPage(self, size_t n) -> Window"""
2961 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2963 def GetCurrentPage(*args
, **kwargs
):
2964 """GetCurrentPage(self) -> Window"""
2965 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2967 def GetSelection(*args
, **kwargs
):
2968 """GetSelection(self) -> int"""
2969 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2971 def SetPageText(*args
, **kwargs
):
2972 """SetPageText(self, size_t n, String strText) -> bool"""
2973 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2975 def GetPageText(*args
, **kwargs
):
2976 """GetPageText(self, size_t n) -> String"""
2977 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2979 def SetImageList(*args
, **kwargs
):
2980 """SetImageList(self, ImageList imageList)"""
2981 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2983 def AssignImageList(*args
, **kwargs
):
2984 """AssignImageList(self, ImageList imageList)"""
2985 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2987 def GetImageList(*args
, **kwargs
):
2988 """GetImageList(self) -> ImageList"""
2989 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2991 def GetPageImage(*args
, **kwargs
):
2992 """GetPageImage(self, size_t n) -> int"""
2993 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2995 def SetPageImage(*args
, **kwargs
):
2996 """SetPageImage(self, size_t n, int imageId) -> bool"""
2997 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2999 def SetPageSize(*args
, **kwargs
):
3000 """SetPageSize(self, Size size)"""
3001 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
3003 def CalcSizeFromPage(*args
, **kwargs
):
3004 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3005 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
3007 def GetInternalBorder(*args
, **kwargs
):
3008 """GetInternalBorder(self) -> unsigned int"""
3009 return _controls_
.BookCtrlBase_GetInternalBorder(*args
, **kwargs
)
3011 def SetInternalBorder(*args
, **kwargs
):
3012 """SetInternalBorder(self, unsigned int internalBorder)"""
3013 return _controls_
.BookCtrlBase_SetInternalBorder(*args
, **kwargs
)
3015 def IsVertical(*args
, **kwargs
):
3016 """IsVertical(self) -> bool"""
3017 return _controls_
.BookCtrlBase_IsVertical(*args
, **kwargs
)
3019 def SetFitToCurrentPage(*args
, **kwargs
):
3020 """SetFitToCurrentPage(self, bool fit)"""
3021 return _controls_
.BookCtrlBase_SetFitToCurrentPage(*args
, **kwargs
)
3023 def GetFitToCurrentPage(*args
, **kwargs
):
3024 """GetFitToCurrentPage(self) -> bool"""
3025 return _controls_
.BookCtrlBase_GetFitToCurrentPage(*args
, **kwargs
)
3027 def DeletePage(*args
, **kwargs
):
3028 """DeletePage(self, size_t n) -> bool"""
3029 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
3031 def RemovePage(*args
, **kwargs
):
3032 """RemovePage(self, size_t n) -> bool"""
3033 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
3035 def DeleteAllPages(*args
, **kwargs
):
3036 """DeleteAllPages(self) -> bool"""
3037 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
3039 def AddPage(*args
, **kwargs
):
3040 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
3041 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
3043 def InsertPage(*args
, **kwargs
):
3045 InsertPage(self, size_t n, Window page, String text, bool select=False,
3046 int imageId=-1) -> bool
3048 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
3050 def SetSelection(*args
, **kwargs
):
3051 """SetSelection(self, size_t n) -> int"""
3052 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
3054 def AdvanceSelection(*args
, **kwargs
):
3055 """AdvanceSelection(self, bool forward=True)"""
3056 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
3058 def GetClassDefaultAttributes(*args
, **kwargs
):
3060 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3062 Get the default attributes for this class. This is useful if you want
3063 to use the same font or colour in your own control as in a standard
3064 control -- which is a much better idea than hard coding specific
3065 colours or fonts which might look completely out of place on the
3066 user's system, especially if it uses themes.
3068 The variant parameter is only relevant under Mac currently and is
3069 ignore under other platforms. Under Mac, it will change the size of
3070 the returned font. See `wx.Window.SetWindowVariant` for more about
3073 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3075 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3077 class BookCtrlBasePtr(BookCtrlBase
):
3078 def __init__(self
, this
):
3080 if not hasattr(self
,"thisown"): self
.thisown
= 0
3081 self
.__class
__ = BookCtrlBase
3082 _controls_
.BookCtrlBase_swigregister(BookCtrlBasePtr
)
3083 NotebookNameStr
= cvar
.NotebookNameStr
3085 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
3087 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3089 Get the default attributes for this class. This is useful if you want
3090 to use the same font or colour in your own control as in a standard
3091 control -- which is a much better idea than hard coding specific
3092 colours or fonts which might look completely out of place on the
3093 user's system, especially if it uses themes.
3095 The variant parameter is only relevant under Mac currently and is
3096 ignore under other platforms. Under Mac, it will change the size of
3097 the returned font. See `wx.Window.SetWindowVariant` for more about
3100 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3102 class BookCtrlBaseEvent(_core
.NotifyEvent
):
3103 """Proxy of C++ BookCtrlBaseEvent class"""
3105 return "<%s.%s; proxy of C++ wxBookCtrlBaseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3106 def __init__(self
, *args
, **kwargs
):
3108 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3109 int nOldSel=-1) -> BookCtrlBaseEvent
3111 newobj
= _controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
)
3112 self
.this
= newobj
.this
3115 def GetSelection(*args
, **kwargs
):
3117 GetSelection(self) -> int
3119 Returns item index for a listbox or choice selection event (not valid
3122 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
3124 def SetSelection(*args
, **kwargs
):
3125 """SetSelection(self, int nSel)"""
3126 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
3128 def GetOldSelection(*args
, **kwargs
):
3129 """GetOldSelection(self) -> int"""
3130 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
3132 def SetOldSelection(*args
, **kwargs
):
3133 """SetOldSelection(self, int nOldSel)"""
3134 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
3137 class BookCtrlBaseEventPtr(BookCtrlBaseEvent
):
3138 def __init__(self
, this
):
3140 if not hasattr(self
,"thisown"): self
.thisown
= 0
3141 self
.__class
__ = BookCtrlBaseEvent
3142 _controls_
.BookCtrlBaseEvent_swigregister(BookCtrlBaseEventPtr
)
3144 #---------------------------------------------------------------------------
3146 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
3147 NB_TOP
= _controls_
.NB_TOP
3148 NB_LEFT
= _controls_
.NB_LEFT
3149 NB_RIGHT
= _controls_
.NB_RIGHT
3150 NB_BOTTOM
= _controls_
.NB_BOTTOM
3151 NB_MULTILINE
= _controls_
.NB_MULTILINE
3152 NB_NOPAGETHEME
= _controls_
.NB_NOPAGETHEME
3153 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
3154 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
3155 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
3156 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
3157 class Notebook(BookCtrlBase
):
3158 """Proxy of C++ Notebook class"""
3160 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3161 def __init__(self
, *args
, **kwargs
):
3163 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3164 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
3166 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
3167 self
.this
= newobj
.this
3170 self
._setOORInfo
(self
)
3172 def Create(*args
, **kwargs
):
3174 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3175 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
3177 return _controls_
.Notebook_Create(*args
, **kwargs
)
3179 def GetRowCount(*args
, **kwargs
):
3180 """GetRowCount(self) -> int"""
3181 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3183 def SetPadding(*args
, **kwargs
):
3184 """SetPadding(self, Size padding)"""
3185 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3187 def SetTabSize(*args
, **kwargs
):
3188 """SetTabSize(self, Size sz)"""
3189 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3191 def HitTest(*args
, **kwargs
):
3193 HitTest(Point pt) -> (tab, where)
3195 Returns the tab which is hit, and flags indicating where using
3196 wx.NB_HITTEST flags.
3198 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3200 def CalcSizeFromPage(*args
, **kwargs
):
3201 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3202 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
3204 def GetThemeBackgroundColour(*args
, **kwargs
):
3205 """GetThemeBackgroundColour(self) -> Colour"""
3206 return _controls_
.Notebook_GetThemeBackgroundColour(*args
, **kwargs
)
3208 def GetClassDefaultAttributes(*args
, **kwargs
):
3210 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3212 Get the default attributes for this class. This is useful if you want
3213 to use the same font or colour in your own control as in a standard
3214 control -- which is a much better idea than hard coding specific
3215 colours or fonts which might look completely out of place on the
3216 user's system, especially if it uses themes.
3218 The variant parameter is only relevant under Mac currently and is
3219 ignore under other platforms. Under Mac, it will change the size of
3220 the returned font. See `wx.Window.SetWindowVariant` for more about
3223 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3225 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3227 class NotebookPtr(Notebook
):
3228 def __init__(self
, this
):
3230 if not hasattr(self
,"thisown"): self
.thisown
= 0
3231 self
.__class
__ = Notebook
3232 _controls_
.Notebook_swigregister(NotebookPtr
)
3234 def PreNotebook(*args
, **kwargs
):
3235 """PreNotebook() -> Notebook"""
3236 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3240 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3242 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3244 Get the default attributes for this class. This is useful if you want
3245 to use the same font or colour in your own control as in a standard
3246 control -- which is a much better idea than hard coding specific
3247 colours or fonts which might look completely out of place on the
3248 user's system, especially if it uses themes.
3250 The variant parameter is only relevant under Mac currently and is
3251 ignore under other platforms. Under Mac, it will change the size of
3252 the returned font. See `wx.Window.SetWindowVariant` for more about
3255 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3257 class NotebookEvent(BookCtrlBaseEvent
):
3258 """Proxy of C++ NotebookEvent class"""
3260 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3261 def __init__(self
, *args
, **kwargs
):
3263 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3264 int nOldSel=-1) -> NotebookEvent
3266 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3267 self
.this
= newobj
.this
3271 class NotebookEventPtr(NotebookEvent
):
3272 def __init__(self
, this
):
3274 if not hasattr(self
,"thisown"): self
.thisown
= 0
3275 self
.__class
__ = NotebookEvent
3276 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3278 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3279 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3281 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3282 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3284 #----------------------------------------------------------------------------
3286 class NotebookPage(wx
.Panel
):
3288 There is an old (and apparently unsolvable) bug when placing a
3289 window with a nonstandard background colour in a wx.Notebook on
3290 wxGTK1, as the notbooks's background colour would always be used
3291 when the window is refreshed. The solution is to place a panel in
3292 the notbook and the coloured window on the panel, sized to cover
3293 the panel. This simple class does that for you, just put an
3294 instance of this in the notebook and make your regular window a
3295 child of this one and it will handle the resize for you.
3297 def __init__(self
, parent
, id=-1,
3298 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3299 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3300 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3302 self
.Bind(wx
.EVT_SIZE
, self
.OnSize
)
3304 def OnSize(self
, evt
):
3305 if self
.child
is None:
3306 children
= self
.GetChildren()
3308 self
.child
= children
[0]
3310 self
.child
.SetPosition((0,0))
3311 self
.child
.SetSize(self
.GetSize())
3314 #---------------------------------------------------------------------------
3316 LB_DEFAULT
= _controls_
.LB_DEFAULT
3317 LB_TOP
= _controls_
.LB_TOP
3318 LB_BOTTOM
= _controls_
.LB_BOTTOM
3319 LB_LEFT
= _controls_
.LB_LEFT
3320 LB_RIGHT
= _controls_
.LB_RIGHT
3321 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3322 class Listbook(BookCtrlBase
):
3323 """Proxy of C++ Listbook class"""
3325 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3326 def __init__(self
, *args
, **kwargs
):
3328 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3329 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3331 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3332 self
.this
= newobj
.this
3335 self
._setOORInfo
(self
)
3337 def Create(*args
, **kwargs
):
3339 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3340 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3342 return _controls_
.Listbook_Create(*args
, **kwargs
)
3344 def GetListView(*args
, **kwargs
):
3345 """GetListView(self) -> ListView"""
3346 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3349 class ListbookPtr(Listbook
):
3350 def __init__(self
, this
):
3352 if not hasattr(self
,"thisown"): self
.thisown
= 0
3353 self
.__class
__ = Listbook
3354 _controls_
.Listbook_swigregister(ListbookPtr
)
3356 def PreListbook(*args
, **kwargs
):
3357 """PreListbook() -> Listbook"""
3358 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3362 class ListbookEvent(BookCtrlBaseEvent
):
3363 """Proxy of C++ ListbookEvent class"""
3365 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3366 def __init__(self
, *args
, **kwargs
):
3368 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3369 int nOldSel=-1) -> ListbookEvent
3371 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3372 self
.this
= newobj
.this
3376 class ListbookEventPtr(ListbookEvent
):
3377 def __init__(self
, this
):
3379 if not hasattr(self
,"thisown"): self
.thisown
= 0
3380 self
.__class
__ = ListbookEvent
3381 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3383 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3384 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3385 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3386 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3388 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3389 CHB_TOP
= _controls_
.CHB_TOP
3390 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3391 CHB_LEFT
= _controls_
.CHB_LEFT
3392 CHB_RIGHT
= _controls_
.CHB_RIGHT
3393 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3394 class Choicebook(BookCtrlBase
):
3395 """Proxy of C++ Choicebook class"""
3397 return "<%s.%s; proxy of C++ wxChoicebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3398 def __init__(self
, *args
, **kwargs
):
3400 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3401 long style=0, String name=EmptyString) -> Choicebook
3403 newobj
= _controls_
.new_Choicebook(*args
, **kwargs
)
3404 self
.this
= newobj
.this
3407 self
._setOORInfo
(self
)
3409 def Create(*args
, **kwargs
):
3411 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3412 long style=0, String name=EmptyString) -> bool
3414 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3416 def GetChoiceCtrl(*args
, **kwargs
):
3417 """GetChoiceCtrl(self) -> Choice"""
3418 return _controls_
.Choicebook_GetChoiceCtrl(*args
, **kwargs
)
3420 def DeleteAllPages(*args
, **kwargs
):
3421 """DeleteAllPages(self) -> bool"""
3422 return _controls_
.Choicebook_DeleteAllPages(*args
, **kwargs
)
3425 class ChoicebookPtr(Choicebook
):
3426 def __init__(self
, this
):
3428 if not hasattr(self
,"thisown"): self
.thisown
= 0
3429 self
.__class
__ = Choicebook
3430 _controls_
.Choicebook_swigregister(ChoicebookPtr
)
3432 def PreChoicebook(*args
, **kwargs
):
3433 """PreChoicebook() -> Choicebook"""
3434 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3438 class ChoicebookEvent(BookCtrlBaseEvent
):
3439 """Proxy of C++ ChoicebookEvent class"""
3441 return "<%s.%s; proxy of C++ wxChoicebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3442 def __init__(self
, *args
, **kwargs
):
3444 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3445 int nOldSel=-1) -> ChoicebookEvent
3447 newobj
= _controls_
.new_ChoicebookEvent(*args
, **kwargs
)
3448 self
.this
= newobj
.this
3452 class ChoicebookEventPtr(ChoicebookEvent
):
3453 def __init__(self
, this
):
3455 if not hasattr(self
,"thisown"): self
.thisown
= 0
3456 self
.__class
__ = ChoicebookEvent
3457 _controls_
.ChoicebookEvent_swigregister(ChoicebookEventPtr
)
3459 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3460 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3461 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3462 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3464 #---------------------------------------------------------------------------
3466 class Treebook(BookCtrlBase
):
3467 """Proxy of C++ Treebook class"""
3469 return "<%s.%s; proxy of C++ wxTreebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3470 def __init__(self
, *args
, **kwargs
):
3472 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3473 long style=BK_DEFAULT,
3474 String name=EmptyString) -> Treebook
3476 newobj
= _controls_
.new_Treebook(*args
, **kwargs
)
3477 self
.this
= newobj
.this
3480 self
._setOORInfo
(self
)
3482 def Create(*args
, **kwargs
):
3484 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3485 long style=BK_DEFAULT,
3486 String name=EmptyString) -> bool
3488 return _controls_
.Treebook_Create(*args
, **kwargs
)
3490 def InsertPage(*args
, **kwargs
):
3492 InsertPage(self, size_t pos, Window page, String text, bool select=False,
3493 int imageId=NOT_FOUND) -> bool
3495 return _controls_
.Treebook_InsertPage(*args
, **kwargs
)
3497 def InsertSubPage(*args
, **kwargs
):
3499 InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
3500 int imageId=NOT_FOUND) -> bool
3502 return _controls_
.Treebook_InsertSubPage(*args
, **kwargs
)
3504 def AddPage(*args
, **kwargs
):
3505 """AddPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3506 return _controls_
.Treebook_AddPage(*args
, **kwargs
)
3508 def AddSubPage(*args
, **kwargs
):
3509 """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3510 return _controls_
.Treebook_AddSubPage(*args
, **kwargs
)
3512 def DeletePage(*args
, **kwargs
):
3513 """DeletePage(self, size_t pos) -> bool"""
3514 return _controls_
.Treebook_DeletePage(*args
, **kwargs
)
3516 def IsNodeExpanded(*args
, **kwargs
):
3517 """IsNodeExpanded(self, size_t pos) -> bool"""
3518 return _controls_
.Treebook_IsNodeExpanded(*args
, **kwargs
)
3520 def ExpandNode(*args
, **kwargs
):
3521 """ExpandNode(self, size_t pos, bool expand=True) -> bool"""
3522 return _controls_
.Treebook_ExpandNode(*args
, **kwargs
)
3524 def CollapseNode(*args
, **kwargs
):
3525 """CollapseNode(self, size_t pos) -> bool"""
3526 return _controls_
.Treebook_CollapseNode(*args
, **kwargs
)
3528 def GetPageParent(*args
, **kwargs
):
3529 """GetPageParent(self, size_t pos) -> int"""
3530 return _controls_
.Treebook_GetPageParent(*args
, **kwargs
)
3532 def GetTreeCtrl(*args
, **kwargs
):
3533 """GetTreeCtrl(self) -> wxTreeCtrl"""
3534 return _controls_
.Treebook_GetTreeCtrl(*args
, **kwargs
)
3537 class TreebookPtr(Treebook
):
3538 def __init__(self
, this
):
3540 if not hasattr(self
,"thisown"): self
.thisown
= 0
3541 self
.__class
__ = Treebook
3542 _controls_
.Treebook_swigregister(TreebookPtr
)
3544 def PreTreebook(*args
, **kwargs
):
3545 """PreTreebook() -> Treebook"""
3546 val
= _controls_
.new_PreTreebook(*args
, **kwargs
)
3550 class TreebookEvent(BookCtrlBaseEvent
):
3551 """Proxy of C++ TreebookEvent class"""
3553 return "<%s.%s; proxy of C++ wxTreebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3554 def __init__(self
, *args
, **kwargs
):
3556 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3557 int nOldSel=NOT_FOUND) -> TreebookEvent
3559 newobj
= _controls_
.new_TreebookEvent(*args
, **kwargs
)
3560 self
.this
= newobj
.this
3564 class TreebookEventPtr(TreebookEvent
):
3565 def __init__(self
, this
):
3567 if not hasattr(self
,"thisown"): self
.thisown
= 0
3568 self
.__class
__ = TreebookEvent
3569 _controls_
.TreebookEvent_swigregister(TreebookEventPtr
)
3571 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
3572 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
3573 wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
3574 wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
3575 EVT_TREEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
, 1 )
3576 EVT_TREEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
, 1)
3577 EVT_TREEBOOK_NODE_COLLAPSED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
, 1 )
3578 EVT_TREEBOOK_NODE_EXPANDED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
, 1 )
3580 #---------------------------------------------------------------------------
3582 class Toolbook(BookCtrlBase
):
3583 """Proxy of C++ Toolbook class"""
3585 return "<%s.%s; proxy of C++ wxToolbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3586 def __init__(self
, *args
, **kwargs
):
3588 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3589 long style=BK_DEFAULT,
3590 String name=EmptyString) -> Toolbook
3592 newobj
= _controls_
.new_Toolbook(*args
, **kwargs
)
3593 self
.this
= newobj
.this
3596 self
._setOORInfo
(self
)
3598 def Create(*args
, **kwargs
):
3600 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3601 long style=0, String name=wxEmptyString) -> bool
3603 return _controls_
.Toolbook_Create(*args
, **kwargs
)
3605 def GetToolBar(*args
, **kwargs
):
3606 """GetToolBar(self) -> ToolBarBase"""
3607 return _controls_
.Toolbook_GetToolBar(*args
, **kwargs
)
3609 def Realize(*args
, **kwargs
):
3611 return _controls_
.Toolbook_Realize(*args
, **kwargs
)
3614 class ToolbookPtr(Toolbook
):
3615 def __init__(self
, this
):
3617 if not hasattr(self
,"thisown"): self
.thisown
= 0
3618 self
.__class
__ = Toolbook
3619 _controls_
.Toolbook_swigregister(ToolbookPtr
)
3621 def PreToolbook(*args
, **kwargs
):
3622 """PreToolbook() -> Toolbook"""
3623 val
= _controls_
.new_PreToolbook(*args
, **kwargs
)
3627 class ToolbookEvent(BookCtrlBaseEvent
):
3628 """Proxy of C++ ToolbookEvent class"""
3630 return "<%s.%s; proxy of C++ wxToolbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3631 def __init__(self
, *args
, **kwargs
):
3633 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3634 int nOldSel=NOT_FOUND) -> ToolbookEvent
3636 newobj
= _controls_
.new_ToolbookEvent(*args
, **kwargs
)
3637 self
.this
= newobj
.this
3641 class ToolbookEventPtr(ToolbookEvent
):
3642 def __init__(self
, this
):
3644 if not hasattr(self
,"thisown"): self
.thisown
= 0
3645 self
.__class
__ = ToolbookEvent
3646 _controls_
.ToolbookEvent_swigregister(ToolbookEventPtr
)
3648 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
3649 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
3650 EVT_TOOLBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
, 1)
3651 EVT_TOOLBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
, 1)
3653 #---------------------------------------------------------------------------
3655 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3656 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3657 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3658 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3659 TB_VERTICAL
= _controls_
.TB_VERTICAL
3660 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3661 TB_FLAT
= _controls_
.TB_FLAT
3662 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3663 TB_NOICONS
= _controls_
.TB_NOICONS
3664 TB_TEXT
= _controls_
.TB_TEXT
3665 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3666 TB_NOALIGN
= _controls_
.TB_NOALIGN
3667 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3668 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3669 class ToolBarToolBase(_core
.Object
):
3670 """Proxy of C++ ToolBarToolBase class"""
3671 def __init__(self
): raise RuntimeError, "No constructor defined"
3673 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3674 def GetId(*args
, **kwargs
):
3675 """GetId(self) -> int"""
3676 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3678 def GetControl(*args
, **kwargs
):
3679 """GetControl(self) -> Control"""
3680 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3682 def GetToolBar(*args
, **kwargs
):
3683 """GetToolBar(self) -> ToolBarBase"""
3684 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3686 def IsButton(*args
, **kwargs
):
3687 """IsButton(self) -> int"""
3688 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3690 def IsControl(*args
, **kwargs
):
3691 """IsControl(self) -> int"""
3692 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3694 def IsSeparator(*args
, **kwargs
):
3695 """IsSeparator(self) -> int"""
3696 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3698 def GetStyle(*args
, **kwargs
):
3699 """GetStyle(self) -> int"""
3700 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3702 def GetKind(*args
, **kwargs
):
3703 """GetKind(self) -> int"""
3704 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3706 def IsEnabled(*args
, **kwargs
):
3707 """IsEnabled(self) -> bool"""
3708 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3710 def IsToggled(*args
, **kwargs
):
3711 """IsToggled(self) -> bool"""
3712 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3714 def CanBeToggled(*args
, **kwargs
):
3715 """CanBeToggled(self) -> bool"""
3716 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3718 def GetNormalBitmap(*args
, **kwargs
):
3719 """GetNormalBitmap(self) -> Bitmap"""
3720 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3722 def GetDisabledBitmap(*args
, **kwargs
):
3723 """GetDisabledBitmap(self) -> Bitmap"""
3724 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3726 def GetBitmap(*args
, **kwargs
):
3727 """GetBitmap(self) -> Bitmap"""
3728 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3730 def GetLabel(*args
, **kwargs
):
3731 """GetLabel(self) -> String"""
3732 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3734 def GetShortHelp(*args
, **kwargs
):
3735 """GetShortHelp(self) -> String"""
3736 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3738 def GetLongHelp(*args
, **kwargs
):
3739 """GetLongHelp(self) -> String"""
3740 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3742 def Enable(*args
, **kwargs
):
3743 """Enable(self, bool enable) -> bool"""
3744 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3746 def Toggle(*args
, **kwargs
):
3748 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3750 def SetToggle(*args
, **kwargs
):
3751 """SetToggle(self, bool toggle) -> bool"""
3752 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3754 def SetShortHelp(*args
, **kwargs
):
3755 """SetShortHelp(self, String help) -> bool"""
3756 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3758 def SetLongHelp(*args
, **kwargs
):
3759 """SetLongHelp(self, String help) -> bool"""
3760 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3762 def SetNormalBitmap(*args
, **kwargs
):
3763 """SetNormalBitmap(self, Bitmap bmp)"""
3764 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3766 def SetDisabledBitmap(*args
, **kwargs
):
3767 """SetDisabledBitmap(self, Bitmap bmp)"""
3768 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3770 def SetLabel(*args
, **kwargs
):
3771 """SetLabel(self, String label)"""
3772 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3774 def Detach(*args
, **kwargs
):
3776 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3778 def Attach(*args
, **kwargs
):
3779 """Attach(self, ToolBarBase tbar)"""
3780 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3782 def GetClientData(*args
, **kwargs
):
3783 """GetClientData(self) -> PyObject"""
3784 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3786 def SetClientData(*args
, **kwargs
):
3787 """SetClientData(self, PyObject clientData)"""
3788 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3790 GetBitmap1
= GetNormalBitmap
3791 GetBitmap2
= GetDisabledBitmap
3792 SetBitmap1
= SetNormalBitmap
3793 SetBitmap2
= SetDisabledBitmap
3796 class ToolBarToolBasePtr(ToolBarToolBase
):
3797 def __init__(self
, this
):
3799 if not hasattr(self
,"thisown"): self
.thisown
= 0
3800 self
.__class
__ = ToolBarToolBase
3801 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3803 class ToolBarBase(_core
.Control
):
3804 """Proxy of C++ ToolBarBase class"""
3805 def __init__(self
): raise RuntimeError, "No constructor defined"
3807 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3808 def DoAddTool(*args
, **kwargs
):
3810 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3811 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3812 String longHelp=EmptyString,
3813 PyObject clientData=None) -> ToolBarToolBase
3815 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3817 def DoInsertTool(*args
, **kwargs
):
3819 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3820 int kind=ITEM_NORMAL,
3821 String shortHelp=EmptyString, String longHelp=EmptyString,
3822 PyObject clientData=None) -> ToolBarToolBase
3824 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3826 # These match the original Add methods for this class, kept for
3827 # backwards compatibility with versions < 2.3.3.
3830 def AddTool(self
, id, bitmap
,
3831 pushedBitmap
= wx
.NullBitmap
,
3834 shortHelpString
= '',
3835 longHelpString
= '') :
3836 '''Old style method to add a tool to the toolbar.'''
3837 kind
= wx
.ITEM_NORMAL
3838 if isToggle
: kind
= wx
.ITEM_CHECK
3839 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3840 shortHelpString
, longHelpString
, clientData
)
3842 def AddSimpleTool(self
, id, bitmap
,
3843 shortHelpString
= '',
3844 longHelpString
= '',
3846 '''Old style method to add a tool to the toolbar.'''
3847 kind
= wx
.ITEM_NORMAL
3848 if isToggle
: kind
= wx
.ITEM_CHECK
3849 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3850 shortHelpString
, longHelpString
, None)
3852 def InsertTool(self
, pos
, id, bitmap
,
3853 pushedBitmap
= wx
.NullBitmap
,
3856 shortHelpString
= '',
3857 longHelpString
= ''):
3858 '''Old style method to insert a tool in the toolbar.'''
3859 kind
= wx
.ITEM_NORMAL
3860 if isToggle
: kind
= wx
.ITEM_CHECK
3861 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3862 shortHelpString
, longHelpString
, clientData
)
3864 def InsertSimpleTool(self
, pos
, id, bitmap
,
3865 shortHelpString
= '',
3866 longHelpString
= '',
3868 '''Old style method to insert a tool in the toolbar.'''
3869 kind
= wx
.ITEM_NORMAL
3870 if isToggle
: kind
= wx
.ITEM_CHECK
3871 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3872 shortHelpString
, longHelpString
, None)
3875 # The following are the new toolbar Add methods starting with
3876 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3877 # able to keep backwards compatibility with using the above
3878 # methods. Eventually these should migrate to be the methods used
3879 # primarily and lose the 'Label' in the name...
3881 def AddLabelTool(self
, id, label
, bitmap
,
3882 bmpDisabled
= wx
.NullBitmap
,
3883 kind
= wx
.ITEM_NORMAL
,
3884 shortHelp
= '', longHelp
= '',
3887 The full AddTool() function.
3889 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3890 is created and used as the disabled image.
3892 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3893 shortHelp
, longHelp
, clientData
)
3896 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3897 bmpDisabled
= wx
.NullBitmap
,
3898 kind
= wx
.ITEM_NORMAL
,
3899 shortHelp
= '', longHelp
= '',
3902 Insert the new tool at the given position, if pos == GetToolsCount(), it
3903 is equivalent to AddTool()
3905 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3906 shortHelp
, longHelp
, clientData
)
3908 def AddCheckLabelTool(self
, id, label
, bitmap
,
3909 bmpDisabled
= wx
.NullBitmap
,
3910 shortHelp
= '', longHelp
= '',
3912 '''Add a check tool, i.e. a tool which can be toggled'''
3913 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3914 shortHelp
, longHelp
, clientData
)
3916 def AddRadioLabelTool(self
, id, label
, bitmap
,
3917 bmpDisabled
= wx
.NullBitmap
,
3918 shortHelp
= '', longHelp
= '',
3921 Add a radio tool, i.e. a tool which can be toggled and releases any
3922 other toggled radio tools in the same group when it happens
3924 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3925 shortHelp
, longHelp
, clientData
)
3928 # For consistency with the backwards compatible methods above, here are
3929 # some non-'Label' versions of the Check and Radio methods
3931 def AddCheckTool(self
, id, bitmap
,
3932 bmpDisabled
= wx
.NullBitmap
,
3933 shortHelp
= '', longHelp
= '',
3935 '''Add a check tool, i.e. a tool which can be toggled'''
3936 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3937 shortHelp
, longHelp
, clientData
)
3939 def AddRadioTool(self
, id, bitmap
,
3940 bmpDisabled
= wx
.NullBitmap
,
3941 shortHelp
= '', longHelp
= '',
3944 Add a radio tool, i.e. a tool which can be toggled and releases any
3945 other toggled radio tools in the same group when it happens
3947 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3948 shortHelp
, longHelp
, clientData
)
3950 def AddToolItem(*args
, **kwargs
):
3951 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3952 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3954 def InsertToolItem(*args
, **kwargs
):
3955 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3956 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3958 def AddControl(*args
, **kwargs
):
3959 """AddControl(self, Control control) -> ToolBarToolBase"""
3960 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3962 def InsertControl(*args
, **kwargs
):
3963 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3964 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3966 def FindControl(*args
, **kwargs
):
3967 """FindControl(self, int id) -> Control"""
3968 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3970 def AddSeparator(*args
, **kwargs
):
3971 """AddSeparator(self) -> ToolBarToolBase"""
3972 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3974 def InsertSeparator(*args
, **kwargs
):
3975 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3976 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3978 def RemoveTool(*args
, **kwargs
):
3979 """RemoveTool(self, int id) -> ToolBarToolBase"""
3980 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3982 def DeleteToolByPos(*args
, **kwargs
):
3983 """DeleteToolByPos(self, size_t pos) -> bool"""
3984 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3986 def DeleteTool(*args
, **kwargs
):
3987 """DeleteTool(self, int id) -> bool"""
3988 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3990 def ClearTools(*args
, **kwargs
):
3991 """ClearTools(self)"""
3992 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3994 def Realize(*args
, **kwargs
):
3995 """Realize(self) -> bool"""
3996 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3998 def EnableTool(*args
, **kwargs
):
3999 """EnableTool(self, int id, bool enable)"""
4000 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
4002 def ToggleTool(*args
, **kwargs
):
4003 """ToggleTool(self, int id, bool toggle)"""
4004 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
4006 def SetToggle(*args
, **kwargs
):
4007 """SetToggle(self, int id, bool toggle)"""
4008 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
4010 def GetToolClientData(*args
, **kwargs
):
4011 """GetToolClientData(self, int id) -> PyObject"""
4012 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
4014 def SetToolClientData(*args
, **kwargs
):
4015 """SetToolClientData(self, int id, PyObject clientData)"""
4016 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
4018 def GetToolPos(*args
, **kwargs
):
4019 """GetToolPos(self, int id) -> int"""
4020 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
4022 def GetToolState(*args
, **kwargs
):
4023 """GetToolState(self, int id) -> bool"""
4024 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
4026 def GetToolEnabled(*args
, **kwargs
):
4027 """GetToolEnabled(self, int id) -> bool"""
4028 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
4030 def SetToolShortHelp(*args
, **kwargs
):
4031 """SetToolShortHelp(self, int id, String helpString)"""
4032 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
4034 def GetToolShortHelp(*args
, **kwargs
):
4035 """GetToolShortHelp(self, int id) -> String"""
4036 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
4038 def SetToolLongHelp(*args
, **kwargs
):
4039 """SetToolLongHelp(self, int id, String helpString)"""
4040 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
4042 def GetToolLongHelp(*args
, **kwargs
):
4043 """GetToolLongHelp(self, int id) -> String"""
4044 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
4046 def SetMarginsXY(*args
, **kwargs
):
4047 """SetMarginsXY(self, int x, int y)"""
4048 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
4050 def SetMargins(*args
, **kwargs
):
4051 """SetMargins(self, Size size)"""
4052 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
4054 def SetToolPacking(*args
, **kwargs
):
4055 """SetToolPacking(self, int packing)"""
4056 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
4058 def SetToolSeparation(*args
, **kwargs
):
4059 """SetToolSeparation(self, int separation)"""
4060 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
4062 def GetToolMargins(*args
, **kwargs
):
4063 """GetToolMargins(self) -> Size"""
4064 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
4066 def GetMargins(*args
, **kwargs
):
4067 """GetMargins(self) -> Size"""
4068 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
4070 def GetToolPacking(*args
, **kwargs
):
4071 """GetToolPacking(self) -> int"""
4072 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
4074 def GetToolSeparation(*args
, **kwargs
):
4075 """GetToolSeparation(self) -> int"""
4076 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
4078 def SetRows(*args
, **kwargs
):
4079 """SetRows(self, int nRows)"""
4080 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
4082 def SetMaxRowsCols(*args
, **kwargs
):
4083 """SetMaxRowsCols(self, int rows, int cols)"""
4084 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
4086 def GetMaxRows(*args
, **kwargs
):
4087 """GetMaxRows(self) -> int"""
4088 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
4090 def GetMaxCols(*args
, **kwargs
):
4091 """GetMaxCols(self) -> int"""
4092 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
4094 def SetToolBitmapSize(*args
, **kwargs
):
4095 """SetToolBitmapSize(self, Size size)"""
4096 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
4098 def GetToolBitmapSize(*args
, **kwargs
):
4099 """GetToolBitmapSize(self) -> Size"""
4100 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
4102 def GetToolSize(*args
, **kwargs
):
4103 """GetToolSize(self) -> Size"""
4104 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
4106 def FindToolForPosition(*args
, **kwargs
):
4107 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
4108 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
4110 def FindById(*args
, **kwargs
):
4111 """FindById(self, int toolid) -> ToolBarToolBase"""
4112 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
4114 def IsVertical(*args
, **kwargs
):
4115 """IsVertical(self) -> bool"""
4116 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
4119 class ToolBarBasePtr(ToolBarBase
):
4120 def __init__(self
, this
):
4122 if not hasattr(self
,"thisown"): self
.thisown
= 0
4123 self
.__class
__ = ToolBarBase
4124 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
4126 class ToolBar(ToolBarBase
):
4127 """Proxy of C++ ToolBar class"""
4129 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4130 def __init__(self
, *args
, **kwargs
):
4132 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4133 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
4134 String name=wxPyToolBarNameStr) -> ToolBar
4136 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
4137 self
.this
= newobj
.this
4140 self
._setOORInfo
(self
)
4142 def Create(*args
, **kwargs
):
4144 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4145 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
4146 String name=wxPyToolBarNameStr) -> bool
4148 return _controls_
.ToolBar_Create(*args
, **kwargs
)
4150 def FindToolForPosition(*args
, **kwargs
):
4151 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
4152 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
4154 def GetClassDefaultAttributes(*args
, **kwargs
):
4156 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4158 Get the default attributes for this class. This is useful if you want
4159 to use the same font or colour in your own control as in a standard
4160 control -- which is a much better idea than hard coding specific
4161 colours or fonts which might look completely out of place on the
4162 user's system, especially if it uses themes.
4164 The variant parameter is only relevant under Mac currently and is
4165 ignore under other platforms. Under Mac, it will change the size of
4166 the returned font. See `wx.Window.SetWindowVariant` for more about
4169 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4171 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4173 class ToolBarPtr(ToolBar
):
4174 def __init__(self
, this
):
4176 if not hasattr(self
,"thisown"): self
.thisown
= 0
4177 self
.__class
__ = ToolBar
4178 _controls_
.ToolBar_swigregister(ToolBarPtr
)
4180 def PreToolBar(*args
, **kwargs
):
4181 """PreToolBar() -> ToolBar"""
4182 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
4186 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
4188 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4190 Get the default attributes for this class. This is useful if you want
4191 to use the same font or colour in your own control as in a standard
4192 control -- which is a much better idea than hard coding specific
4193 colours or fonts which might look completely out of place on the
4194 user's system, especially if it uses themes.
4196 The variant parameter is only relevant under Mac currently and is
4197 ignore under other platforms. Under Mac, it will change the size of
4198 the returned font. See `wx.Window.SetWindowVariant` for more about
4201 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4203 #---------------------------------------------------------------------------
4205 LC_VRULES
= _controls_
.LC_VRULES
4206 LC_HRULES
= _controls_
.LC_HRULES
4207 LC_ICON
= _controls_
.LC_ICON
4208 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
4209 LC_LIST
= _controls_
.LC_LIST
4210 LC_REPORT
= _controls_
.LC_REPORT
4211 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
4212 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
4213 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
4214 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
4215 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
4216 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
4217 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
4218 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
4219 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
4220 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
4221 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
4222 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
4223 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
4224 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
4225 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
4226 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
4227 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
4228 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
4229 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
4230 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
4231 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
4232 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
4233 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
4234 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
4235 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
4236 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
4237 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
4238 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
4239 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
4240 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
4241 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
4242 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
4243 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
4244 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
4245 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
4246 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
4247 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
4248 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
4249 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
4250 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
4251 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
4252 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
4253 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
4254 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
4255 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
4256 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
4257 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
4258 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
4259 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
4260 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
4261 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
4262 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
4263 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
4264 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
4265 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
4266 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
4267 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
4268 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
4269 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
4270 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
4271 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
4272 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
4273 #---------------------------------------------------------------------------
4275 class ListItemAttr(object):
4276 """Proxy of C++ ListItemAttr class"""
4278 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4279 def __init__(self
, *args
, **kwargs
):
4281 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
4282 Font font=wxNullFont) -> ListItemAttr
4284 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
4285 self
.this
= newobj
.this
4288 def __del__(self
, destroy
=_controls_
.delete_ListItemAttr
):
4291 if self
.thisown
: destroy(self
)
4294 def SetTextColour(*args
, **kwargs
):
4295 """SetTextColour(self, Colour colText)"""
4296 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
4298 def SetBackgroundColour(*args
, **kwargs
):
4299 """SetBackgroundColour(self, Colour colBack)"""
4300 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
4302 def SetFont(*args
, **kwargs
):
4303 """SetFont(self, Font font)"""
4304 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
4306 def HasTextColour(*args
, **kwargs
):
4307 """HasTextColour(self) -> bool"""
4308 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
4310 def HasBackgroundColour(*args
, **kwargs
):
4311 """HasBackgroundColour(self) -> bool"""
4312 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
4314 def HasFont(*args
, **kwargs
):
4315 """HasFont(self) -> bool"""
4316 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4318 def GetTextColour(*args
, **kwargs
):
4319 """GetTextColour(self) -> Colour"""
4320 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4322 def GetBackgroundColour(*args
, **kwargs
):
4323 """GetBackgroundColour(self) -> Colour"""
4324 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4326 def GetFont(*args
, **kwargs
):
4327 """GetFont(self) -> Font"""
4328 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4330 def AssignFrom(*args
, **kwargs
):
4331 """AssignFrom(self, ListItemAttr source)"""
4332 return _controls_
.ListItemAttr_AssignFrom(*args
, **kwargs
)
4334 def Destroy(*args
, **kwargs
):
4336 val
= _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4341 class ListItemAttrPtr(ListItemAttr
):
4342 def __init__(self
, this
):
4344 if not hasattr(self
,"thisown"): self
.thisown
= 0
4345 self
.__class
__ = ListItemAttr
4346 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
4347 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4349 #---------------------------------------------------------------------------
4351 class ListItem(_core
.Object
):
4352 """Proxy of C++ ListItem class"""
4354 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4355 def __init__(self
, *args
, **kwargs
):
4356 """__init__(self) -> ListItem"""
4357 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
4358 self
.this
= newobj
.this
4361 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
4364 if self
.thisown
: destroy(self
)
4367 def Clear(*args
, **kwargs
):
4369 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4371 def ClearAttributes(*args
, **kwargs
):
4372 """ClearAttributes(self)"""
4373 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4375 def SetMask(*args
, **kwargs
):
4376 """SetMask(self, long mask)"""
4377 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4379 def SetId(*args
, **kwargs
):
4380 """SetId(self, long id)"""
4381 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4383 def SetColumn(*args
, **kwargs
):
4384 """SetColumn(self, int col)"""
4385 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4387 def SetState(*args
, **kwargs
):
4388 """SetState(self, long state)"""
4389 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4391 def SetStateMask(*args
, **kwargs
):
4392 """SetStateMask(self, long stateMask)"""
4393 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4395 def SetText(*args
, **kwargs
):
4396 """SetText(self, String text)"""
4397 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4399 def SetImage(*args
, **kwargs
):
4400 """SetImage(self, int image)"""
4401 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4403 def SetData(*args
, **kwargs
):
4404 """SetData(self, long data)"""
4405 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4407 def SetWidth(*args
, **kwargs
):
4408 """SetWidth(self, int width)"""
4409 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4411 def SetAlign(*args
, **kwargs
):
4412 """SetAlign(self, int align)"""
4413 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4415 def SetTextColour(*args
, **kwargs
):
4416 """SetTextColour(self, Colour colText)"""
4417 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4419 def SetBackgroundColour(*args
, **kwargs
):
4420 """SetBackgroundColour(self, Colour colBack)"""
4421 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4423 def SetFont(*args
, **kwargs
):
4424 """SetFont(self, Font font)"""
4425 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4427 def GetMask(*args
, **kwargs
):
4428 """GetMask(self) -> long"""
4429 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4431 def GetId(*args
, **kwargs
):
4432 """GetId(self) -> long"""
4433 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4435 def GetColumn(*args
, **kwargs
):
4436 """GetColumn(self) -> int"""
4437 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4439 def GetState(*args
, **kwargs
):
4440 """GetState(self) -> long"""
4441 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4443 def GetText(*args
, **kwargs
):
4444 """GetText(self) -> String"""
4445 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4447 def GetImage(*args
, **kwargs
):
4448 """GetImage(self) -> int"""
4449 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4451 def GetData(*args
, **kwargs
):
4452 """GetData(self) -> long"""
4453 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4455 def GetWidth(*args
, **kwargs
):
4456 """GetWidth(self) -> int"""
4457 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4459 def GetAlign(*args
, **kwargs
):
4460 """GetAlign(self) -> int"""
4461 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4463 def GetAttributes(*args
, **kwargs
):
4464 """GetAttributes(self) -> ListItemAttr"""
4465 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4467 def HasAttributes(*args
, **kwargs
):
4468 """HasAttributes(self) -> bool"""
4469 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4471 def GetTextColour(*args
, **kwargs
):
4472 """GetTextColour(self) -> Colour"""
4473 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4475 def GetBackgroundColour(*args
, **kwargs
):
4476 """GetBackgroundColour(self) -> Colour"""
4477 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4479 def GetFont(*args
, **kwargs
):
4480 """GetFont(self) -> Font"""
4481 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4483 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4484 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4485 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4486 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4487 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4488 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4489 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4490 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4491 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4492 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4494 class ListItemPtr(ListItem
):
4495 def __init__(self
, this
):
4497 if not hasattr(self
,"thisown"): self
.thisown
= 0
4498 self
.__class
__ = ListItem
4499 _controls_
.ListItem_swigregister(ListItemPtr
)
4501 #---------------------------------------------------------------------------
4503 class ListEvent(_core
.NotifyEvent
):
4504 """Proxy of C++ ListEvent class"""
4506 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4507 def __init__(self
, *args
, **kwargs
):
4508 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4509 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4510 self
.this
= newobj
.this
4513 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4514 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4515 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4516 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4517 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4518 m_item
= property(_controls_
.ListEvent_m_item_get
)
4519 def GetKeyCode(*args
, **kwargs
):
4520 """GetKeyCode(self) -> int"""
4521 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4523 GetCode
= GetKeyCode
4524 def GetIndex(*args
, **kwargs
):
4525 """GetIndex(self) -> long"""
4526 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4528 def GetColumn(*args
, **kwargs
):
4529 """GetColumn(self) -> int"""
4530 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4532 def GetPoint(*args
, **kwargs
):
4533 """GetPoint(self) -> Point"""
4534 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4536 GetPosition
= GetPoint
4537 def GetLabel(*args
, **kwargs
):
4538 """GetLabel(self) -> String"""
4539 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4541 def GetText(*args
, **kwargs
):
4542 """GetText(self) -> String"""
4543 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4545 def GetImage(*args
, **kwargs
):
4546 """GetImage(self) -> int"""
4547 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4549 def GetData(*args
, **kwargs
):
4550 """GetData(self) -> long"""
4551 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4553 def GetMask(*args
, **kwargs
):
4554 """GetMask(self) -> long"""
4555 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4557 def GetItem(*args
, **kwargs
):
4558 """GetItem(self) -> ListItem"""
4559 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4561 def GetCacheFrom(*args
, **kwargs
):
4562 """GetCacheFrom(self) -> long"""
4563 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4565 def GetCacheTo(*args
, **kwargs
):
4566 """GetCacheTo(self) -> long"""
4567 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4569 def IsEditCancelled(*args
, **kwargs
):
4570 """IsEditCancelled(self) -> bool"""
4571 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4573 def SetEditCanceled(*args
, **kwargs
):
4574 """SetEditCanceled(self, bool editCancelled)"""
4575 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4578 class ListEventPtr(ListEvent
):
4579 def __init__(self
, this
):
4581 if not hasattr(self
,"thisown"): self
.thisown
= 0
4582 self
.__class
__ = ListEvent
4583 _controls_
.ListEvent_swigregister(ListEventPtr
)
4585 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4586 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4587 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4588 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4589 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4590 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4591 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4592 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4593 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4594 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4595 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4596 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4597 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4598 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4599 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4600 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4601 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4602 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4603 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4604 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4605 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4606 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4607 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4608 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4609 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4610 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4615 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4616 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4617 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4618 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4619 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4620 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4621 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4622 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4623 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4624 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4625 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4626 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4627 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4628 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4634 #---------------------------------------------------------------------------
4636 class ListCtrl(_core
.Control
):
4637 """Proxy of C++ ListCtrl class"""
4639 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4640 def __init__(self
, *args
, **kwargs
):
4642 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4643 Size size=DefaultSize, long style=LC_ICON,
4644 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4646 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4647 self
.this
= newobj
.this
4650 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4652 def Create(*args
, **kwargs
):
4654 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4655 Size size=DefaultSize, long style=LC_ICON,
4656 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4658 Do the 2nd phase and create the GUI control.
4660 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4662 def _setCallbackInfo(*args
, **kwargs
):
4663 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4664 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4666 def SetForegroundColour(*args
, **kwargs
):
4668 SetForegroundColour(self, Colour col) -> bool
4670 Sets the foreground colour of the window. Returns True is the colour
4671 was changed. The interpretation of foreground colour is dependent on
4672 the window class; it may be the text colour or other colour, or it may
4675 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4677 def SetBackgroundColour(*args
, **kwargs
):
4679 SetBackgroundColour(self, Colour col) -> bool
4681 Sets the background colour of the window. Returns True if the colour
4682 was changed. The background colour is usually painted by the default
4683 EVT_ERASE_BACKGROUND event handler function under Windows and
4684 automatically under GTK. Using `wx.NullColour` will reset the window
4685 to the default background colour.
4687 Note that setting the background colour may not cause an immediate
4688 refresh, so you may wish to call `ClearBackground` or `Refresh` after
4689 calling this function.
4691 Using this function will disable attempts to use themes for this
4692 window, if the system supports them. Use with care since usually the
4693 themes represent the appearance chosen by the user to be used for all
4694 applications on the system.
4696 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4698 def GetColumn(*args
, **kwargs
):
4699 """GetColumn(self, int col) -> ListItem"""
4700 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4701 if val
is not None: val
.thisown
= 1
4704 def SetColumn(*args
, **kwargs
):
4705 """SetColumn(self, int col, ListItem item) -> bool"""
4706 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4708 def GetColumnWidth(*args
, **kwargs
):
4709 """GetColumnWidth(self, int col) -> int"""
4710 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4712 def SetColumnWidth(*args
, **kwargs
):
4713 """SetColumnWidth(self, int col, int width) -> bool"""
4714 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4716 def GetCountPerPage(*args
, **kwargs
):
4717 """GetCountPerPage(self) -> int"""
4718 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4720 def GetViewRect(*args
, **kwargs
):
4721 """GetViewRect(self) -> Rect"""
4722 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4724 def GetItem(*args
, **kwargs
):
4725 """GetItem(self, long itemId, int col=0) -> ListItem"""
4726 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4727 if val
is not None: val
.thisown
= 1
4730 def SetItem(*args
, **kwargs
):
4731 """SetItem(self, ListItem info) -> bool"""
4732 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4734 def SetStringItem(*args
, **kwargs
):
4735 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4736 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4738 def GetItemState(*args
, **kwargs
):
4739 """GetItemState(self, long item, long stateMask) -> int"""
4740 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4742 def SetItemState(*args
, **kwargs
):
4743 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4744 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4746 def SetItemImage(*args
, **kwargs
):
4747 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4748 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4750 def GetItemText(*args
, **kwargs
):
4751 """GetItemText(self, long item) -> String"""
4752 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4754 def SetItemText(*args
, **kwargs
):
4755 """SetItemText(self, long item, String str)"""
4756 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4758 def GetItemData(*args
, **kwargs
):
4759 """GetItemData(self, long item) -> long"""
4760 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4762 def SetItemData(*args
, **kwargs
):
4763 """SetItemData(self, long item, long data) -> bool"""
4764 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4766 def GetItemPosition(*args
, **kwargs
):
4767 """GetItemPosition(self, long item) -> Point"""
4768 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4770 def GetItemRect(*args
, **kwargs
):
4771 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4772 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4774 def SetItemPosition(*args
, **kwargs
):
4775 """SetItemPosition(self, long item, Point pos) -> bool"""
4776 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4778 def GetItemCount(*args
, **kwargs
):
4779 """GetItemCount(self) -> int"""
4780 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4782 def GetColumnCount(*args
, **kwargs
):
4783 """GetColumnCount(self) -> int"""
4784 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4786 def GetItemSpacing(*args
, **kwargs
):
4787 """GetItemSpacing(self) -> Size"""
4788 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4790 def SetItemSpacing(*args
, **kwargs
):
4791 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4792 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4794 def GetSelectedItemCount(*args
, **kwargs
):
4795 """GetSelectedItemCount(self) -> int"""
4796 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4798 def GetTextColour(*args
, **kwargs
):
4799 """GetTextColour(self) -> Colour"""
4800 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4802 def SetTextColour(*args
, **kwargs
):
4803 """SetTextColour(self, Colour col)"""
4804 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4806 def GetTopItem(*args
, **kwargs
):
4807 """GetTopItem(self) -> long"""
4808 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4810 def SetSingleStyle(*args
, **kwargs
):
4811 """SetSingleStyle(self, long style, bool add=True)"""
4812 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4814 def SetWindowStyleFlag(*args
, **kwargs
):
4816 SetWindowStyleFlag(self, long style)
4818 Sets the style of the window. Please note that some styles cannot be
4819 changed after the window creation and that Refresh() might need to be
4820 called after changing the others for the change to take place
4823 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4825 def GetNextItem(*args
, **kwargs
):
4826 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4827 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4829 def GetImageList(*args
, **kwargs
):
4830 """GetImageList(self, int which) -> ImageList"""
4831 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4833 def SetImageList(*args
, **kwargs
):
4834 """SetImageList(self, ImageList imageList, int which)"""
4835 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4837 def AssignImageList(*args
, **kwargs
):
4838 """AssignImageList(self, ImageList imageList, int which)"""
4839 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4841 def InReportView(*args
, **kwargs
):
4842 """InReportView(self) -> bool"""
4843 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4845 def IsVirtual(*args
, **kwargs
):
4846 """IsVirtual(self) -> bool"""
4847 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4849 def RefreshItem(*args
, **kwargs
):
4850 """RefreshItem(self, long item)"""
4851 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4853 def RefreshItems(*args
, **kwargs
):
4854 """RefreshItems(self, long itemFrom, long itemTo)"""
4855 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4857 def Arrange(*args
, **kwargs
):
4858 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4859 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4861 def DeleteItem(*args
, **kwargs
):
4862 """DeleteItem(self, long item) -> bool"""
4863 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4865 def DeleteAllItems(*args
, **kwargs
):
4866 """DeleteAllItems(self) -> bool"""
4867 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4869 def DeleteColumn(*args
, **kwargs
):
4870 """DeleteColumn(self, int col) -> bool"""
4871 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4873 def DeleteAllColumns(*args
, **kwargs
):
4874 """DeleteAllColumns(self) -> bool"""
4875 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4877 def ClearAll(*args
, **kwargs
):
4878 """ClearAll(self)"""
4879 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4881 def EditLabel(*args
, **kwargs
):
4882 """EditLabel(self, long item)"""
4883 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4885 def EnsureVisible(*args
, **kwargs
):
4886 """EnsureVisible(self, long item) -> bool"""
4887 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4889 def FindItem(*args
, **kwargs
):
4890 """FindItem(self, long start, String str, bool partial=False) -> long"""
4891 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4893 def FindItemData(*args
, **kwargs
):
4894 """FindItemData(self, long start, long data) -> long"""
4895 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4897 def FindItemAtPos(*args
, **kwargs
):
4898 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4899 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4901 def HitTest(*args
, **kwargs
):
4903 HitTest(Point point) -> (item, where)
4905 Determines which item (if any) is at the specified point, giving
4906 in the second return value (see wx.LIST_HITTEST flags.)
4908 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4910 def InsertItem(*args
, **kwargs
):
4911 """InsertItem(self, ListItem info) -> long"""
4912 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4914 def InsertStringItem(*args
, **kwargs
):
4915 """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long"""
4916 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4918 def InsertImageItem(*args
, **kwargs
):
4919 """InsertImageItem(self, long index, int imageIndex) -> long"""
4920 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4922 def InsertImageStringItem(*args
, **kwargs
):
4923 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4924 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4926 def InsertColumnItem(*args
, **kwargs
):
4927 """InsertColumnItem(self, long col, ListItem info) -> long"""
4928 return _controls_
.ListCtrl_InsertColumnItem(*args
, **kwargs
)
4930 InsertColumnInfo
= InsertColumnItem
4931 def InsertColumn(*args
, **kwargs
):
4933 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4934 int width=-1) -> long
4936 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4938 def SetItemCount(*args
, **kwargs
):
4939 """SetItemCount(self, long count)"""
4940 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4942 def ScrollList(*args
, **kwargs
):
4943 """ScrollList(self, int dx, int dy) -> bool"""
4944 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4946 def SetItemTextColour(*args
, **kwargs
):
4947 """SetItemTextColour(self, long item, Colour col)"""
4948 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4950 def GetItemTextColour(*args
, **kwargs
):
4951 """GetItemTextColour(self, long item) -> Colour"""
4952 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4954 def SetItemBackgroundColour(*args
, **kwargs
):
4955 """SetItemBackgroundColour(self, long item, Colour col)"""
4956 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4958 def GetItemBackgroundColour(*args
, **kwargs
):
4959 """GetItemBackgroundColour(self, long item) -> Colour"""
4960 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4962 def SetItemFont(*args
, **kwargs
):
4963 """SetItemFont(self, long item, Font f)"""
4964 return _controls_
.ListCtrl_SetItemFont(*args
, **kwargs
)
4966 def GetItemFont(*args
, **kwargs
):
4967 """GetItemFont(self, long item) -> Font"""
4968 return _controls_
.ListCtrl_GetItemFont(*args
, **kwargs
)
4972 def Select(self
, idx
, on
=1):
4973 '''[de]select an item'''
4974 if on
: state
= wx
.LIST_STATE_SELECTED
4976 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4978 def Focus(self
, idx
):
4979 '''Focus and show the given item'''
4980 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4981 self
.EnsureVisible(idx
)
4983 def GetFocusedItem(self
):
4984 '''get the currently focused item or -1 if none'''
4985 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4987 def GetFirstSelected(self
, *args
):
4988 '''return first selected item, or -1 when none'''
4989 return self
.GetNextSelected(-1)
4991 def GetNextSelected(self
, item
):
4992 '''return subsequent selected items, or -1 when no more'''
4993 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4995 def IsSelected(self
, idx
):
4996 '''return True if the item is selected'''
4997 return (self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) & wx
.LIST_STATE_SELECTED
) != 0
4999 def SetColumnImage(self
, col
, image
):
5000 item
= self
.GetColumn(col
)
5001 # preserve all other attributes too
5002 item
.SetMask( wx
.LIST_MASK_STATE |
5004 wx
.LIST_MASK_IMAGE |
5007 wx
.LIST_MASK_WIDTH |
5008 wx
.LIST_MASK_FORMAT
)
5009 item
.SetImage(image
)
5010 self
.SetColumn(col
, item
)
5012 def ClearColumnImage(self
, col
):
5013 self
.SetColumnImage(col
, -1)
5015 def Append(self
, entry
):
5016 '''Append an item to the list control. The entry parameter should be a
5017 sequence with an item for each column'''
5023 pos
= self
.GetItemCount()
5024 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
5025 for i
in range(1, len(entry
)):
5026 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
5029 def SortItems(*args
, **kwargs
):
5030 """SortItems(self, PyObject func) -> bool"""
5031 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
5033 def GetMainWindow(*args
, **kwargs
):
5034 """GetMainWindow(self) -> Window"""
5035 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
5037 def GetClassDefaultAttributes(*args
, **kwargs
):
5039 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5041 Get the default attributes for this class. This is useful if you want
5042 to use the same font or colour in your own control as in a standard
5043 control -- which is a much better idea than hard coding specific
5044 colours or fonts which might look completely out of place on the
5045 user's system, especially if it uses themes.
5047 The variant parameter is only relevant under Mac currently and is
5048 ignore under other platforms. Under Mac, it will change the size of
5049 the returned font. See `wx.Window.SetWindowVariant` for more about
5052 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5054 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5056 class ListCtrlPtr(ListCtrl
):
5057 def __init__(self
, this
):
5059 if not hasattr(self
,"thisown"): self
.thisown
= 0
5060 self
.__class
__ = ListCtrl
5061 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
5063 def PreListCtrl(*args
, **kwargs
):
5064 """PreListCtrl() -> ListCtrl"""
5065 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
5069 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5071 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5073 Get the default attributes for this class. This is useful if you want
5074 to use the same font or colour in your own control as in a standard
5075 control -- which is a much better idea than hard coding specific
5076 colours or fonts which might look completely out of place on the
5077 user's system, especially if it uses themes.
5079 The variant parameter is only relevant under Mac currently and is
5080 ignore under other platforms. Under Mac, it will change the size of
5081 the returned font. See `wx.Window.SetWindowVariant` for more about
5084 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5086 #---------------------------------------------------------------------------
5088 class ListView(ListCtrl
):
5089 """Proxy of C++ ListView class"""
5091 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5092 def __init__(self
, *args
, **kwargs
):
5094 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5095 Size size=DefaultSize, long style=LC_REPORT,
5096 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
5098 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
5099 self
.this
= newobj
.this
5102 self
._setOORInfo
(self
)
5104 def Create(*args
, **kwargs
):
5106 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5107 Size size=DefaultSize, long style=LC_REPORT,
5108 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
5110 Do the 2nd phase and create the GUI control.
5112 return _controls_
.ListView_Create(*args
, **kwargs
)
5114 def Select(*args
, **kwargs
):
5115 """Select(self, long n, bool on=True)"""
5116 return _controls_
.ListView_Select(*args
, **kwargs
)
5118 def Focus(*args
, **kwargs
):
5119 """Focus(self, long index)"""
5120 return _controls_
.ListView_Focus(*args
, **kwargs
)
5122 def GetFocusedItem(*args
, **kwargs
):
5123 """GetFocusedItem(self) -> long"""
5124 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
5126 def GetNextSelected(*args
, **kwargs
):
5127 """GetNextSelected(self, long item) -> long"""
5128 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
5130 def GetFirstSelected(*args
, **kwargs
):
5131 """GetFirstSelected(self) -> long"""
5132 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
5134 def IsSelected(*args
, **kwargs
):
5135 """IsSelected(self, long index) -> bool"""
5136 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
5138 def SetColumnImage(*args
, **kwargs
):
5139 """SetColumnImage(self, int col, int image)"""
5140 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
5142 def ClearColumnImage(*args
, **kwargs
):
5143 """ClearColumnImage(self, int col)"""
5144 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
5147 class ListViewPtr(ListView
):
5148 def __init__(self
, this
):
5150 if not hasattr(self
,"thisown"): self
.thisown
= 0
5151 self
.__class
__ = ListView
5152 _controls_
.ListView_swigregister(ListViewPtr
)
5154 def PreListView(*args
, **kwargs
):
5155 """PreListView() -> ListView"""
5156 val
= _controls_
.new_PreListView(*args
, **kwargs
)
5160 #---------------------------------------------------------------------------
5162 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
5163 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
5164 TR_NO_LINES
= _controls_
.TR_NO_LINES
5165 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
5166 TR_SINGLE
= _controls_
.TR_SINGLE
5167 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
5168 TR_EXTENDED
= _controls_
.TR_EXTENDED
5169 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
5170 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
5171 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
5172 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
5173 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
5174 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
5175 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
5176 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
5177 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
5178 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
5179 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
5180 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
5181 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
5182 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
5183 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
5184 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
5185 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
5186 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
5187 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
5188 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
5189 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
5190 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
5191 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
5192 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
5193 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
5194 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
5195 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
5196 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
5197 #---------------------------------------------------------------------------
5199 class TreeItemId(object):
5200 """Proxy of C++ TreeItemId class"""
5202 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5203 def __init__(self
, *args
, **kwargs
):
5204 """__init__(self) -> TreeItemId"""
5205 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
5206 self
.this
= newobj
.this
5209 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
5212 if self
.thisown
: destroy(self
)
5215 def IsOk(*args
, **kwargs
):
5216 """IsOk(self) -> bool"""
5217 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
5219 def __eq__(*args
, **kwargs
):
5220 """__eq__(self, TreeItemId other) -> bool"""
5221 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
5223 def __ne__(*args
, **kwargs
):
5224 """__ne__(self, TreeItemId other) -> bool"""
5225 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
5227 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
5229 def __nonzero__(self
): return self
.IsOk()
5231 class TreeItemIdPtr(TreeItemId
):
5232 def __init__(self
, this
):
5234 if not hasattr(self
,"thisown"): self
.thisown
= 0
5235 self
.__class
__ = TreeItemId
5236 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
5237 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
5239 class TreeItemData(object):
5240 """Proxy of C++ TreeItemData class"""
5242 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5243 def __init__(self
, *args
, **kwargs
):
5244 """__init__(self, PyObject obj=None) -> TreeItemData"""
5245 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
5246 self
.this
= newobj
.this
5249 def __del__(self
, destroy
=_controls_
.delete_TreeItemData
):
5252 if self
.thisown
: destroy(self
)
5255 def GetData(*args
, **kwargs
):
5256 """GetData(self) -> PyObject"""
5257 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
5259 def SetData(*args
, **kwargs
):
5260 """SetData(self, PyObject obj)"""
5261 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
5263 def GetId(*args
, **kwargs
):
5264 """GetId(self) -> TreeItemId"""
5265 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
5267 def SetId(*args
, **kwargs
):
5268 """SetId(self, TreeItemId id)"""
5269 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
5271 def Destroy(*args
, **kwargs
):
5273 val
= _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
5278 class TreeItemDataPtr(TreeItemData
):
5279 def __init__(self
, this
):
5281 if not hasattr(self
,"thisown"): self
.thisown
= 0
5282 self
.__class
__ = TreeItemData
5283 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
5285 #---------------------------------------------------------------------------
5287 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
5288 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
5289 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
5290 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
5291 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
5292 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
5293 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
5294 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
5295 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
5296 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
5297 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
5298 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
5299 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
5300 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
5301 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
5302 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
5303 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
5304 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
5305 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
5306 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
5307 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
5308 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
5309 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
5310 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
5311 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
5312 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
5313 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
5314 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
5315 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
5316 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
5317 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
5318 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
5319 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
5320 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
5321 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
5322 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
5323 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
5324 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
5325 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
5326 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
5327 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
5328 EVT_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
5330 class TreeEvent(_core
.NotifyEvent
):
5331 """Proxy of C++ TreeEvent class"""
5333 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5334 def __init__(self
, *args
, **kwargs
):
5335 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
5336 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
5337 self
.this
= newobj
.this
5340 def GetItem(*args
, **kwargs
):
5341 """GetItem(self) -> TreeItemId"""
5342 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
5344 def SetItem(*args
, **kwargs
):
5345 """SetItem(self, TreeItemId item)"""
5346 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
5348 def GetOldItem(*args
, **kwargs
):
5349 """GetOldItem(self) -> TreeItemId"""
5350 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
5352 def SetOldItem(*args
, **kwargs
):
5353 """SetOldItem(self, TreeItemId item)"""
5354 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
5356 def GetPoint(*args
, **kwargs
):
5357 """GetPoint(self) -> Point"""
5358 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
5360 def SetPoint(*args
, **kwargs
):
5361 """SetPoint(self, Point pt)"""
5362 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
5364 def GetKeyEvent(*args
, **kwargs
):
5365 """GetKeyEvent(self) -> KeyEvent"""
5366 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
5368 def GetKeyCode(*args
, **kwargs
):
5369 """GetKeyCode(self) -> int"""
5370 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
5372 def SetKeyEvent(*args
, **kwargs
):
5373 """SetKeyEvent(self, KeyEvent evt)"""
5374 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
5376 def GetLabel(*args
, **kwargs
):
5377 """GetLabel(self) -> String"""
5378 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
5380 def SetLabel(*args
, **kwargs
):
5381 """SetLabel(self, String label)"""
5382 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
5384 def IsEditCancelled(*args
, **kwargs
):
5385 """IsEditCancelled(self) -> bool"""
5386 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
5388 def SetEditCanceled(*args
, **kwargs
):
5389 """SetEditCanceled(self, bool editCancelled)"""
5390 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
5392 def SetToolTip(*args
, **kwargs
):
5393 """SetToolTip(self, String toolTip)"""
5394 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
5396 def GetToolTip(*args
, **kwargs
):
5397 """GetToolTip(self) -> String"""
5398 return _controls_
.TreeEvent_GetToolTip(*args
, **kwargs
)
5401 class TreeEventPtr(TreeEvent
):
5402 def __init__(self
, this
):
5404 if not hasattr(self
,"thisown"): self
.thisown
= 0
5405 self
.__class
__ = TreeEvent
5406 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
5408 #---------------------------------------------------------------------------
5410 class TreeCtrl(_core
.Control
):
5411 """Proxy of C++ TreeCtrl class"""
5413 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5414 def __init__(self
, *args
, **kwargs
):
5416 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5417 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5418 Validator validator=DefaultValidator,
5419 String name=TreeCtrlNameStr) -> TreeCtrl
5421 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
5422 self
.this
= newobj
.this
5425 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5427 def Create(*args
, **kwargs
):
5429 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5430 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5431 Validator validator=DefaultValidator,
5432 String name=TreeCtrlNameStr) -> bool
5434 Do the 2nd phase and create the GUI control.
5436 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5438 def _setCallbackInfo(*args
, **kwargs
):
5439 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5440 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5442 def GetCount(*args
, **kwargs
):
5443 """GetCount(self) -> size_t"""
5444 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5446 def GetIndent(*args
, **kwargs
):
5447 """GetIndent(self) -> unsigned int"""
5448 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5450 def SetIndent(*args
, **kwargs
):
5451 """SetIndent(self, unsigned int indent)"""
5452 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5454 def GetSpacing(*args
, **kwargs
):
5455 """GetSpacing(self) -> unsigned int"""
5456 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5458 def SetSpacing(*args
, **kwargs
):
5459 """SetSpacing(self, unsigned int spacing)"""
5460 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5462 def GetImageList(*args
, **kwargs
):
5463 """GetImageList(self) -> ImageList"""
5464 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5466 def GetStateImageList(*args
, **kwargs
):
5467 """GetStateImageList(self) -> ImageList"""
5468 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5470 def SetImageList(*args
, **kwargs
):
5471 """SetImageList(self, ImageList imageList)"""
5472 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5474 def SetStateImageList(*args
, **kwargs
):
5475 """SetStateImageList(self, ImageList imageList)"""
5476 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5478 def AssignImageList(*args
, **kwargs
):
5479 """AssignImageList(self, ImageList imageList)"""
5480 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5482 def AssignStateImageList(*args
, **kwargs
):
5483 """AssignStateImageList(self, ImageList imageList)"""
5484 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5486 def GetItemText(*args
, **kwargs
):
5487 """GetItemText(self, TreeItemId item) -> String"""
5488 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5490 def GetItemImage(*args
, **kwargs
):
5491 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5492 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5494 def GetItemData(*args
, **kwargs
):
5495 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5496 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5498 def GetItemPyData(*args
, **kwargs
):
5499 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5500 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5502 GetPyData
= GetItemPyData
5503 def GetItemTextColour(*args
, **kwargs
):
5504 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5505 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5507 def GetItemBackgroundColour(*args
, **kwargs
):
5508 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5509 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5511 def GetItemFont(*args
, **kwargs
):
5512 """GetItemFont(self, TreeItemId item) -> Font"""
5513 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5515 def SetItemText(*args
, **kwargs
):
5516 """SetItemText(self, TreeItemId item, String text)"""
5517 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5519 def SetItemImage(*args
, **kwargs
):
5520 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5521 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5523 def SetItemData(*args
, **kwargs
):
5524 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5525 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5527 def SetItemPyData(*args
, **kwargs
):
5528 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5529 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5531 SetPyData
= SetItemPyData
5532 def SetItemHasChildren(*args
, **kwargs
):
5533 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5534 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5536 def SetItemBold(*args
, **kwargs
):
5537 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5538 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5540 def SetItemDropHighlight(*args
, **kwargs
):
5541 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5542 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5544 def SetItemTextColour(*args
, **kwargs
):
5545 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5546 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5548 def SetItemBackgroundColour(*args
, **kwargs
):
5549 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5550 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5552 def SetItemFont(*args
, **kwargs
):
5553 """SetItemFont(self, TreeItemId item, Font font)"""
5554 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5556 def IsVisible(*args
, **kwargs
):
5557 """IsVisible(self, TreeItemId item) -> bool"""
5558 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5560 def ItemHasChildren(*args
, **kwargs
):
5561 """ItemHasChildren(self, TreeItemId item) -> bool"""
5562 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5564 def IsExpanded(*args
, **kwargs
):
5565 """IsExpanded(self, TreeItemId item) -> bool"""
5566 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5568 def IsSelected(*args
, **kwargs
):
5569 """IsSelected(self, TreeItemId item) -> bool"""
5570 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5572 def IsBold(*args
, **kwargs
):
5573 """IsBold(self, TreeItemId item) -> bool"""
5574 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5576 def GetChildrenCount(*args
, **kwargs
):
5577 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5578 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5580 def GetRootItem(*args
, **kwargs
):
5581 """GetRootItem(self) -> TreeItemId"""
5582 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5584 def GetSelection(*args
, **kwargs
):
5585 """GetSelection(self) -> TreeItemId"""
5586 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5588 def GetSelections(*args
, **kwargs
):
5589 """GetSelections(self) -> PyObject"""
5590 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5592 def GetItemParent(*args
, **kwargs
):
5593 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5594 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5596 def GetFirstChild(*args
, **kwargs
):
5597 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5598 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5600 def GetNextChild(*args
, **kwargs
):
5601 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5602 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5604 def GetLastChild(*args
, **kwargs
):
5605 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5606 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5608 def GetNextSibling(*args
, **kwargs
):
5609 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5610 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5612 def GetPrevSibling(*args
, **kwargs
):
5613 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5614 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5616 def GetFirstVisibleItem(*args
, **kwargs
):
5617 """GetFirstVisibleItem(self) -> TreeItemId"""
5618 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5620 def GetNextVisible(*args
, **kwargs
):
5621 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5622 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5624 def GetPrevVisible(*args
, **kwargs
):
5625 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5626 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5628 def AddRoot(*args
, **kwargs
):
5629 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5630 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5632 def PrependItem(*args
, **kwargs
):
5634 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5635 TreeItemData data=None) -> TreeItemId
5637 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5639 def InsertItem(*args
, **kwargs
):
5641 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5642 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5644 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5646 def InsertItemBefore(*args
, **kwargs
):
5648 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5649 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5651 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5653 def AppendItem(*args
, **kwargs
):
5655 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5656 TreeItemData data=None) -> TreeItemId
5658 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5660 def Delete(*args
, **kwargs
):
5661 """Delete(self, TreeItemId item)"""
5662 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5664 def DeleteChildren(*args
, **kwargs
):
5665 """DeleteChildren(self, TreeItemId item)"""
5666 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5668 def DeleteAllItems(*args
, **kwargs
):
5669 """DeleteAllItems(self)"""
5670 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5672 def Expand(*args
, **kwargs
):
5673 """Expand(self, TreeItemId item)"""
5674 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5676 def Collapse(*args
, **kwargs
):
5677 """Collapse(self, TreeItemId item)"""
5678 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5680 def CollapseAndReset(*args
, **kwargs
):
5681 """CollapseAndReset(self, TreeItemId item)"""
5682 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5684 def Toggle(*args
, **kwargs
):
5685 """Toggle(self, TreeItemId item)"""
5686 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5688 def Unselect(*args
, **kwargs
):
5689 """Unselect(self)"""
5690 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5692 def UnselectItem(*args
, **kwargs
):
5693 """UnselectItem(self, TreeItemId item)"""
5694 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5696 def UnselectAll(*args
, **kwargs
):
5697 """UnselectAll(self)"""
5698 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5700 def SelectItem(*args
, **kwargs
):
5701 """SelectItem(self, TreeItemId item, bool select=True)"""
5702 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5704 def ToggleItemSelection(*args
, **kwargs
):
5705 """ToggleItemSelection(self, TreeItemId item)"""
5706 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5708 def EnsureVisible(*args
, **kwargs
):
5709 """EnsureVisible(self, TreeItemId item)"""
5710 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5712 def ScrollTo(*args
, **kwargs
):
5713 """ScrollTo(self, TreeItemId item)"""
5714 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5716 def EditLabel(*args
, **kwargs
):
5717 """EditLabel(self, TreeItemId item)"""
5718 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5720 def GetEditControl(*args
, **kwargs
):
5721 """GetEditControl(self) -> TextCtrl"""
5722 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5724 def SortChildren(*args
, **kwargs
):
5725 """SortChildren(self, TreeItemId item)"""
5726 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5728 def HitTest(*args
, **kwargs
):
5730 HitTest(Point point) -> (item, where)
5732 Determine which item (if any) belongs the given point. The coordinates
5733 specified are relative to the client area of tree ctrl and the where return
5734 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5737 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5739 def GetBoundingRect(*args
, **kwargs
):
5740 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5741 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5743 def GetClassDefaultAttributes(*args
, **kwargs
):
5745 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5747 Get the default attributes for this class. This is useful if you want
5748 to use the same font or colour in your own control as in a standard
5749 control -- which is a much better idea than hard coding specific
5750 colours or fonts which might look completely out of place on the
5751 user's system, especially if it uses themes.
5753 The variant parameter is only relevant under Mac currently and is
5754 ignore under other platforms. Under Mac, it will change the size of
5755 the returned font. See `wx.Window.SetWindowVariant` for more about
5758 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5760 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5762 class TreeCtrlPtr(TreeCtrl
):
5763 def __init__(self
, this
):
5765 if not hasattr(self
,"thisown"): self
.thisown
= 0
5766 self
.__class
__ = TreeCtrl
5767 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5769 def PreTreeCtrl(*args
, **kwargs
):
5770 """PreTreeCtrl() -> TreeCtrl"""
5771 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5775 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5777 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5779 Get the default attributes for this class. This is useful if you want
5780 to use the same font or colour in your own control as in a standard
5781 control -- which is a much better idea than hard coding specific
5782 colours or fonts which might look completely out of place on the
5783 user's system, especially if it uses themes.
5785 The variant parameter is only relevant under Mac currently and is
5786 ignore under other platforms. Under Mac, it will change the size of
5787 the returned font. See `wx.Window.SetWindowVariant` for more about
5790 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5792 #---------------------------------------------------------------------------
5794 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5795 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5796 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5797 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5798 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5799 class GenericDirCtrl(_core
.Control
):
5800 """Proxy of C++ GenericDirCtrl class"""
5802 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5803 def __init__(self
, *args
, **kwargs
):
5805 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5806 Point pos=DefaultPosition, Size size=DefaultSize,
5807 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5808 String filter=EmptyString,
5809 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5811 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5812 self
.this
= newobj
.this
5815 self
._setOORInfo
(self
)
5817 def Create(*args
, **kwargs
):
5819 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5820 Point pos=DefaultPosition, Size size=DefaultSize,
5821 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5822 String filter=EmptyString,
5823 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5825 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5827 def ExpandPath(*args
, **kwargs
):
5828 """ExpandPath(self, String path) -> bool"""
5829 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5831 def GetDefaultPath(*args
, **kwargs
):
5832 """GetDefaultPath(self) -> String"""
5833 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5835 def SetDefaultPath(*args
, **kwargs
):
5836 """SetDefaultPath(self, String path)"""
5837 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5839 def GetPath(*args
, **kwargs
):
5840 """GetPath(self) -> String"""
5841 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5843 def GetFilePath(*args
, **kwargs
):
5844 """GetFilePath(self) -> String"""
5845 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5847 def SetPath(*args
, **kwargs
):
5848 """SetPath(self, String path)"""
5849 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5851 def ShowHidden(*args
, **kwargs
):
5852 """ShowHidden(self, bool show)"""
5853 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5855 def GetShowHidden(*args
, **kwargs
):
5856 """GetShowHidden(self) -> bool"""
5857 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5859 def GetFilter(*args
, **kwargs
):
5860 """GetFilter(self) -> String"""
5861 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5863 def SetFilter(*args
, **kwargs
):
5864 """SetFilter(self, String filter)"""
5865 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5867 def GetFilterIndex(*args
, **kwargs
):
5868 """GetFilterIndex(self) -> int"""
5869 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5871 def SetFilterIndex(*args
, **kwargs
):
5872 """SetFilterIndex(self, int n)"""
5873 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5875 def GetRootId(*args
, **kwargs
):
5876 """GetRootId(self) -> TreeItemId"""
5877 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5879 def GetTreeCtrl(*args
, **kwargs
):
5880 """GetTreeCtrl(self) -> TreeCtrl"""
5881 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5883 def GetFilterListCtrl(*args
, **kwargs
):
5884 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5885 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5887 def FindChild(*args
, **kwargs
):
5889 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5891 Find the child that matches the first part of 'path'. E.g. if a child
5892 path is "/usr" and 'path' is "/usr/include" then the child for
5893 /usr is returned. If the path string has been used (we're at the
5894 leaf), done is set to True.
5897 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5899 def DoResize(*args
, **kwargs
):
5900 """DoResize(self)"""
5901 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5903 def ReCreateTree(*args
, **kwargs
):
5904 """ReCreateTree(self)"""
5905 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5908 class GenericDirCtrlPtr(GenericDirCtrl
):
5909 def __init__(self
, this
):
5911 if not hasattr(self
,"thisown"): self
.thisown
= 0
5912 self
.__class
__ = GenericDirCtrl
5913 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5914 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5916 def PreGenericDirCtrl(*args
, **kwargs
):
5917 """PreGenericDirCtrl() -> GenericDirCtrl"""
5918 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5922 class DirFilterListCtrl(Choice
):
5923 """Proxy of C++ DirFilterListCtrl class"""
5925 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5926 def __init__(self
, *args
, **kwargs
):
5928 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5929 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5931 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5932 self
.this
= newobj
.this
5935 self
._setOORInfo
(self
)
5937 def Create(*args
, **kwargs
):
5939 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5940 Size size=DefaultSize, long style=0) -> bool
5942 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5944 def FillFilterList(*args
, **kwargs
):
5945 """FillFilterList(self, String filter, int defaultFilter)"""
5946 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5949 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5950 def __init__(self
, this
):
5952 if not hasattr(self
,"thisown"): self
.thisown
= 0
5953 self
.__class
__ = DirFilterListCtrl
5954 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5956 def PreDirFilterListCtrl(*args
, **kwargs
):
5957 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5958 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5962 #---------------------------------------------------------------------------
5964 class PyControl(_core
.Control
):
5965 """Proxy of C++ PyControl class"""
5967 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5968 def __init__(self
, *args
, **kwargs
):
5970 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5971 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5972 String name=ControlNameStr) -> PyControl
5974 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5975 self
.this
= newobj
.this
5978 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5980 def _setCallbackInfo(*args
, **kwargs
):
5981 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5982 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5984 def SetBestSize(*args
, **kwargs
):
5985 """SetBestSize(self, Size size)"""
5986 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5988 def DoEraseBackground(*args
, **kwargs
):
5989 """DoEraseBackground(self, DC dc) -> bool"""
5990 return _controls_
.PyControl_DoEraseBackground(*args
, **kwargs
)
5992 def DoMoveWindow(*args
, **kwargs
):
5993 """DoMoveWindow(self, int x, int y, int width, int height)"""
5994 return _controls_
.PyControl_DoMoveWindow(*args
, **kwargs
)
5996 def DoSetSize(*args
, **kwargs
):
5997 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5998 return _controls_
.PyControl_DoSetSize(*args
, **kwargs
)
6000 def DoSetClientSize(*args
, **kwargs
):
6001 """DoSetClientSize(self, int width, int height)"""
6002 return _controls_
.PyControl_DoSetClientSize(*args
, **kwargs
)
6004 def DoSetVirtualSize(*args
, **kwargs
):
6005 """DoSetVirtualSize(self, int x, int y)"""
6006 return _controls_
.PyControl_DoSetVirtualSize(*args
, **kwargs
)
6008 def DoGetSize(*args
, **kwargs
):
6009 """DoGetSize() -> (width, height)"""
6010 return _controls_
.PyControl_DoGetSize(*args
, **kwargs
)
6012 def DoGetClientSize(*args
, **kwargs
):
6013 """DoGetClientSize() -> (width, height)"""
6014 return _controls_
.PyControl_DoGetClientSize(*args
, **kwargs
)
6016 def DoGetPosition(*args
, **kwargs
):
6017 """DoGetPosition() -> (x,y)"""
6018 return _controls_
.PyControl_DoGetPosition(*args
, **kwargs
)
6020 def DoGetVirtualSize(*args
, **kwargs
):
6021 """DoGetVirtualSize(self) -> Size"""
6022 return _controls_
.PyControl_DoGetVirtualSize(*args
, **kwargs
)
6024 def DoGetBestSize(*args
, **kwargs
):
6025 """DoGetBestSize(self) -> Size"""
6026 return _controls_
.PyControl_DoGetBestSize(*args
, **kwargs
)
6028 def InitDialog(*args
, **kwargs
):
6032 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
6033 to the dialog via validators.
6035 return _controls_
.PyControl_InitDialog(*args
, **kwargs
)
6037 def TransferDataToWindow(*args
, **kwargs
):
6039 TransferDataToWindow(self) -> bool
6041 Transfers values to child controls from data areas specified by their
6042 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
6043 style flag set, the method will also call TransferDataToWindow() of
6046 return _controls_
.PyControl_TransferDataToWindow(*args
, **kwargs
)
6048 def TransferDataFromWindow(*args
, **kwargs
):
6050 TransferDataFromWindow(self) -> bool
6052 Transfers values from child controls to data areas specified by their
6053 validators. Returns false if a transfer failed. If the window has
6054 wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
6055 also call TransferDataFromWindow() of all child windows.
6057 return _controls_
.PyControl_TransferDataFromWindow(*args
, **kwargs
)
6059 def Validate(*args
, **kwargs
):
6061 Validate(self) -> bool
6063 Validates the current values of the child controls using their
6064 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
6065 style flag set, the method will also call Validate() of all child
6066 windows. Returns false if any of the validations failed.
6068 return _controls_
.PyControl_Validate(*args
, **kwargs
)
6070 def AcceptsFocus(*args
, **kwargs
):
6072 AcceptsFocus(self) -> bool
6074 Can this window have focus?
6076 return _controls_
.PyControl_AcceptsFocus(*args
, **kwargs
)
6078 def AcceptsFocusFromKeyboard(*args
, **kwargs
):
6080 AcceptsFocusFromKeyboard(self) -> bool
6082 Can this window be given focus by keyboard navigation? if not, the
6083 only way to give it focus (provided it accepts it at all) is to click
6086 return _controls_
.PyControl_AcceptsFocusFromKeyboard(*args
, **kwargs
)
6088 def GetMaxSize(*args
, **kwargs
):
6089 """GetMaxSize(self) -> Size"""
6090 return _controls_
.PyControl_GetMaxSize(*args
, **kwargs
)
6092 def AddChild(*args
, **kwargs
):
6094 AddChild(self, Window child)
6096 Adds a child window. This is called automatically by window creation
6097 functions so should not be required by the application programmer.
6099 return _controls_
.PyControl_AddChild(*args
, **kwargs
)
6101 def RemoveChild(*args
, **kwargs
):
6103 RemoveChild(self, Window child)
6105 Removes a child window. This is called automatically by window
6106 deletion functions so should not be required by the application
6109 return _controls_
.PyControl_RemoveChild(*args
, **kwargs
)
6111 def ShouldInheritColours(*args
, **kwargs
):
6113 ShouldInheritColours(self) -> bool
6115 Return true from here to allow the colours of this window to be
6116 changed by InheritAttributes, returning false forbids inheriting them
6117 from the parent window.
6119 The base class version returns false, but this method is overridden in
6120 wxControl where it returns true.
6122 return _controls_
.PyControl_ShouldInheritColours(*args
, **kwargs
)
6124 def GetDefaultAttributes(*args
, **kwargs
):
6125 """GetDefaultAttributes(self) -> VisualAttributes"""
6126 return _controls_
.PyControl_GetDefaultAttributes(*args
, **kwargs
)
6128 def OnInternalIdle(*args
, **kwargs
):
6129 """OnInternalIdle(self)"""
6130 return _controls_
.PyControl_OnInternalIdle(*args
, **kwargs
)
6132 def base_DoMoveWindow(*args
, **kw
):
6133 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
6134 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
6135 "Please use PyScrolledWindow.DoMoveWindow instead.")
6137 def base_DoSetSize(*args
, **kw
):
6138 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
6139 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
6140 "Please use PyScrolledWindow.DoSetSize instead.")
6142 def base_DoSetClientSize(*args
, **kw
):
6143 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
6144 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
6145 "Please use PyScrolledWindow.DoSetClientSize instead.")
6147 def base_DoSetVirtualSize(*args
, **kw
):
6148 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
6149 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
6150 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
6152 def base_DoGetSize(*args
, **kw
):
6153 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
6154 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
6155 "Please use PyScrolledWindow.DoGetSize instead.")
6157 def base_DoGetClientSize(*args
, **kw
):
6158 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
6159 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
6160 "Please use PyScrolledWindow.DoGetClientSize instead.")
6162 def base_DoGetPosition(*args
, **kw
):
6163 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
6164 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
6165 "Please use PyScrolledWindow.DoGetPosition instead.")
6167 def base_DoGetVirtualSize(*args
, **kw
):
6168 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
6169 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
6170 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
6172 def base_DoGetBestSize(*args
, **kw
):
6173 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
6174 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
6175 "Please use PyScrolledWindow.DoGetBestSize instead.")
6177 def base_InitDialog(*args
, **kw
):
6178 return PyScrolledWindow
.InitDialog(*args
, **kw
)
6179 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
6180 "Please use PyScrolledWindow.InitDialog instead.")
6182 def base_TransferDataToWindow(*args
, **kw
):
6183 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
6184 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
6185 "Please use PyScrolledWindow.TransferDataToWindow instead.")
6187 def base_TransferDataFromWindow(*args
, **kw
):
6188 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
6189 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
6190 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
6192 def base_Validate(*args
, **kw
):
6193 return PyScrolledWindow
.Validate(*args
, **kw
)
6194 base_Validate
= wx
._deprecated
(base_Validate
,
6195 "Please use PyScrolledWindow.Validate instead.")
6197 def base_AcceptsFocus(*args
, **kw
):
6198 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
6199 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
6200 "Please use PyScrolledWindow.AcceptsFocus instead.")
6202 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
6203 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
6204 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
6205 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
6207 def base_GetMaxSize(*args
, **kw
):
6208 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
6209 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
6210 "Please use PyScrolledWindow.GetMaxSize instead.")
6212 def base_AddChild(*args
, **kw
):
6213 return PyScrolledWindow
.AddChild(*args
, **kw
)
6214 base_AddChild
= wx
._deprecated
(base_AddChild
,
6215 "Please use PyScrolledWindow.AddChild instead.")
6217 def base_RemoveChild(*args
, **kw
):
6218 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
6219 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
6220 "Please use PyScrolledWindow.RemoveChild instead.")
6222 def base_ShouldInheritColours(*args
, **kw
):
6223 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
6224 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
6225 "Please use PyScrolledWindow.ShouldInheritColours instead.")
6227 def base_GetDefaultAttributes(*args
, **kw
):
6228 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
6229 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
6230 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
6232 def base_OnInternalIdle(*args
, **kw
):
6233 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
6234 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
6235 "Please use PyScrolledWindow.OnInternalIdle instead.")
6238 class PyControlPtr(PyControl
):
6239 def __init__(self
, this
):
6241 if not hasattr(self
,"thisown"): self
.thisown
= 0
6242 self
.__class
__ = PyControl
6243 _controls_
.PyControl_swigregister(PyControlPtr
)
6245 def PrePyControl(*args
, **kwargs
):
6246 """PrePyControl() -> PyControl"""
6247 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
6251 #---------------------------------------------------------------------------
6253 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
6254 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
6255 wxEVT_HELP
= _controls_
.wxEVT_HELP
6256 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
6257 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
6258 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
6259 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
6260 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
6262 class HelpEvent(_core
.CommandEvent
):
6264 A help event is sent when the user has requested context-sensitive
6265 help. This can either be caused by the application requesting
6266 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
6267 the system generating a WM_HELP message when the user pressed F1 or
6268 clicked on the query button in a dialog caption.
6270 A help event is sent to the window that the user clicked on, and is
6271 propagated up the window hierarchy until the event is processed or
6272 there are no more event handlers. The application should call
6273 event.GetId to check the identity of the clicked-on window, and then
6274 either show some suitable help or call event.Skip if the identifier is
6275 unrecognised. Calling Skip is important because it allows wxWindows to
6276 generate further events for ancestors of the clicked-on
6277 window. Otherwise it would be impossible to show help for container
6278 windows, since processing would stop after the first window found.
6281 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6282 def __init__(self
, *args
, **kwargs
):
6283 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
6284 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
6285 self
.this
= newobj
.this
6288 def GetPosition(*args
, **kwargs
):
6290 GetPosition(self) -> Point
6292 Returns the left-click position of the mouse, in screen
6293 coordinates. This allows the application to position the help
6296 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
6298 def SetPosition(*args
, **kwargs
):
6300 SetPosition(self, Point pos)
6302 Sets the left-click position of the mouse, in screen coordinates.
6304 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
6306 def GetLink(*args
, **kwargs
):
6308 GetLink(self) -> String
6310 Get an optional link to further help
6312 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
6314 def SetLink(*args
, **kwargs
):
6316 SetLink(self, String link)
6318 Set an optional link to further help
6320 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
6322 def GetTarget(*args
, **kwargs
):
6324 GetTarget(self) -> String
6326 Get an optional target to display help in. E.g. a window specification
6328 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
6330 def SetTarget(*args
, **kwargs
):
6332 SetTarget(self, String target)
6334 Set an optional target to display help in. E.g. a window specification
6336 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
6339 class HelpEventPtr(HelpEvent
):
6340 def __init__(self
, this
):
6342 if not hasattr(self
,"thisown"): self
.thisown
= 0
6343 self
.__class
__ = HelpEvent
6344 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
6346 class ContextHelp(_core
.Object
):
6348 This class changes the cursor to a query and puts the application into
6349 a 'context-sensitive help mode'. When the user left-clicks on a window
6350 within the specified window, a ``EVT_HELP`` event is sent to that
6351 control, and the application may respond to it by popping up some
6354 There are a couple of ways to invoke this behaviour implicitly:
6356 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
6357 (Windows only). This will put a question mark in the titlebar,
6358 and Windows will put the application into context-sensitive help
6359 mode automatically, with further programming.
6361 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
6362 to create a context help object. Normally you will write your
6363 application so that this button is only added to a dialog for
6364 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
6367 :see: `wx.ContextHelpButton`
6371 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6372 def __init__(self
, *args
, **kwargs
):
6374 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
6376 Constructs a context help object, calling BeginContextHelp if doNow is
6379 If window is None, the top window is used.
6381 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
6382 self
.this
= newobj
.this
6385 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
6388 if self
.thisown
: destroy(self
)
6391 def BeginContextHelp(*args
, **kwargs
):
6393 BeginContextHelp(self, Window window=None) -> bool
6395 Puts the application into context-sensitive help mode. window is the
6396 window which will be used to catch events; if NULL, the top window
6399 Returns true if the application was successfully put into
6400 context-sensitive help mode. This function only returns when the event
6403 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
6405 def EndContextHelp(*args
, **kwargs
):
6407 EndContextHelp(self) -> bool
6409 Ends context-sensitive help mode. Not normally called by the
6412 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
6415 class ContextHelpPtr(ContextHelp
):
6416 def __init__(self
, this
):
6418 if not hasattr(self
,"thisown"): self
.thisown
= 0
6419 self
.__class
__ = ContextHelp
6420 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
6422 class ContextHelpButton(BitmapButton
):
6424 Instances of this class may be used to add a question mark button that
6425 when pressed, puts the application into context-help mode. It does
6426 this by creating a wx.ContextHelp object which itself generates a
6427 ``EVT_HELP`` event when the user clicks on a window.
6429 On Windows, you may add a question-mark icon to a dialog by use of the
6430 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
6431 will have to add a button explicitly, usually next to OK, Cancel or
6434 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
6438 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6439 def __init__(self
, *args
, **kwargs
):
6441 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
6442 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
6444 Constructor, creating and showing a context help button.
6446 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
6447 self
.this
= newobj
.this
6450 self
._setOORInfo
(self
)
6453 class ContextHelpButtonPtr(ContextHelpButton
):
6454 def __init__(self
, this
):
6456 if not hasattr(self
,"thisown"): self
.thisown
= 0
6457 self
.__class
__ = ContextHelpButton
6458 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
6460 class HelpProvider(object):
6462 wx.HelpProvider is an abstract class used by a program
6463 implementing context-sensitive help to show the help text for the
6466 The current help provider must be explicitly set by the
6467 application using wx.HelpProvider.Set().
6469 def __init__(self
): raise RuntimeError, "No constructor defined"
6471 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6472 def Set(*args
, **kwargs
):
6474 Set(HelpProvider helpProvider) -> HelpProvider
6476 Sset the current, application-wide help provider. Returns the previous
6477 one. Unlike some other classes, the help provider is not created on
6478 demand. This must be explicitly done by the application.
6480 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6482 Set
= staticmethod(Set
)
6483 def Get(*args
, **kwargs
):
6485 Get() -> HelpProvider
6487 Return the current application-wide help provider.
6489 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6491 Get
= staticmethod(Get
)
6492 def GetHelp(*args
, **kwargs
):
6494 GetHelp(self, Window window) -> String
6496 Gets the help string for this window. Its interpretation is dependent
6497 on the help provider except that empty string always means that no
6498 help is associated with the window.
6500 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
6502 def ShowHelp(*args
, **kwargs
):
6504 ShowHelp(self, Window window) -> bool
6506 Shows help for the given window. Uses GetHelp internally if
6507 applicable. Returns True if it was done, or False if no help was
6508 available for this window.
6510 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
6512 def AddHelp(*args
, **kwargs
):
6514 AddHelp(self, Window window, String text)
6516 Associates the text with the given window.
6518 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
6520 def AddHelpById(*args
, **kwargs
):
6522 AddHelpById(self, int id, String text)
6524 This version associates the given text with all windows with this
6525 id. May be used to set the same help string for all Cancel buttons in
6526 the application, for example.
6528 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
6530 def RemoveHelp(*args
, **kwargs
):
6532 RemoveHelp(self, Window window)
6534 Removes the association between the window pointer and the help
6535 text. This is called by the wx.Window destructor. Without this, the
6536 table of help strings will fill up and when window pointers are
6537 reused, the wrong help string will be found.
6539 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
6541 def Destroy(*args
, **kwargs
):
6543 val
= _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
6548 class HelpProviderPtr(HelpProvider
):
6549 def __init__(self
, this
):
6551 if not hasattr(self
,"thisown"): self
.thisown
= 0
6552 self
.__class
__ = HelpProvider
6553 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
6555 def HelpProvider_Set(*args
, **kwargs
):
6557 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
6559 Sset the current, application-wide help provider. Returns the previous
6560 one. Unlike some other classes, the help provider is not created on
6561 demand. This must be explicitly done by the application.
6563 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6565 def HelpProvider_Get(*args
, **kwargs
):
6567 HelpProvider_Get() -> HelpProvider
6569 Return the current application-wide help provider.
6571 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6573 class SimpleHelpProvider(HelpProvider
):
6575 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6576 supports only plain text help strings, and shows the string associated
6577 with the control (if any) in a tooltip.
6580 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6581 def __init__(self
, *args
, **kwargs
):
6583 __init__(self) -> SimpleHelpProvider
6585 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6586 supports only plain text help strings, and shows the string associated
6587 with the control (if any) in a tooltip.
6589 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
6590 self
.this
= newobj
.this
6594 class SimpleHelpProviderPtr(SimpleHelpProvider
):
6595 def __init__(self
, this
):
6597 if not hasattr(self
,"thisown"): self
.thisown
= 0
6598 self
.__class
__ = SimpleHelpProvider
6599 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
6601 #---------------------------------------------------------------------------
6603 class DragImage(_core
.Object
):
6604 """Proxy of C++ DragImage class"""
6606 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6607 def __init__(self
, *args
, **kwargs
):
6608 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6609 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
6610 self
.this
= newobj
.this
6613 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
6616 if self
.thisown
: destroy(self
)
6619 def SetBackingBitmap(*args
, **kwargs
):
6620 """SetBackingBitmap(self, Bitmap bitmap)"""
6621 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6623 def BeginDrag(*args
, **kwargs
):
6625 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6626 Rect rect=None) -> bool
6628 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6630 def BeginDragBounded(*args
, **kwargs
):
6631 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6632 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6634 def EndDrag(*args
, **kwargs
):
6635 """EndDrag(self) -> bool"""
6636 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6638 def Move(*args
, **kwargs
):
6639 """Move(self, Point pt) -> bool"""
6640 return _controls_
.DragImage_Move(*args
, **kwargs
)
6642 def Show(*args
, **kwargs
):
6643 """Show(self) -> bool"""
6644 return _controls_
.DragImage_Show(*args
, **kwargs
)
6646 def Hide(*args
, **kwargs
):
6647 """Hide(self) -> bool"""
6648 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6650 def GetImageRect(*args
, **kwargs
):
6651 """GetImageRect(self, Point pos) -> Rect"""
6652 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6654 def DoDrawImage(*args
, **kwargs
):
6655 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6656 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6658 def UpdateBackingFromWindow(*args
, **kwargs
):
6659 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6660 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6662 def RedrawImage(*args
, **kwargs
):
6663 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6664 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6667 class DragImagePtr(DragImage
):
6668 def __init__(self
, this
):
6670 if not hasattr(self
,"thisown"): self
.thisown
= 0
6671 self
.__class
__ = DragImage
6672 _controls_
.DragImage_swigregister(DragImagePtr
)
6674 def DragIcon(*args
, **kwargs
):
6675 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6676 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6680 def DragString(*args
, **kwargs
):
6681 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6682 val
= _controls_
.new_DragString(*args
, **kwargs
)
6686 def DragTreeItem(*args
, **kwargs
):
6687 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6688 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6692 def DragListItem(*args
, **kwargs
):
6693 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6694 val
= _controls_
.new_DragListItem(*args
, **kwargs
)
6698 #---------------------------------------------------------------------------
6700 DP_DEFAULT
= _controls_
.DP_DEFAULT
6701 DP_SPIN
= _controls_
.DP_SPIN
6702 DP_DROPDOWN
= _controls_
.DP_DROPDOWN
6703 DP_SHOWCENTURY
= _controls_
.DP_SHOWCENTURY
6704 DP_ALLOWNONE
= _controls_
.DP_ALLOWNONE
6705 class DatePickerCtrl(_core
.Control
):
6707 This control allows the user to select a date. Unlike
6708 `wx.calendar.CalendarCtrl`, which is a relatively big control,
6709 `wx.DatePickerCtrl` is implemented as a small window showing the
6710 currently selected date. The control can be edited using the keyboard,
6711 and can also display a popup window for more user-friendly date
6712 selection, depending on the styles used and the platform.
6715 return "<%s.%s; proxy of C++ wxDatePickerCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6716 def __init__(self
, *args
, **kwargs
):
6718 __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6719 Point pos=DefaultPosition, Size size=DefaultSize,
6720 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6721 Validator validator=DefaultValidator,
6722 String name=DatePickerCtrlNameStr) -> DatePickerCtrl
6724 Create a new DatePickerCtrl.
6726 newobj
= _controls_
.new_DatePickerCtrl(*args
, **kwargs
)
6727 self
.this
= newobj
.this
6730 self
._setOORInfo
(self
)
6732 def Create(*args
, **kwargs
):
6734 Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6735 Point pos=DefaultPosition, Size size=DefaultSize,
6736 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6737 Validator validator=DefaultValidator,
6738 String name=DatePickerCtrlNameStr) -> bool
6740 Create the GUI parts of the DatePickerCtrl, for use in 2-phase
6743 return _controls_
.DatePickerCtrl_Create(*args
, **kwargs
)
6745 def SetValue(*args
, **kwargs
):
6747 SetValue(self, DateTime dt)
6749 Changes the current value of the control. The date should be valid and
6750 included in the currently selected range, if any.
6752 Calling this method does not result in a date change event.
6754 return _controls_
.DatePickerCtrl_SetValue(*args
, **kwargs
)
6756 def GetValue(*args
, **kwargs
):
6758 GetValue(self) -> DateTime
6760 Returns the currently selected date. If there is no selection or the
6761 selection is outside of the current range, an invalid `wx.DateTime`
6764 return _controls_
.DatePickerCtrl_GetValue(*args
, **kwargs
)
6766 def SetRange(*args
, **kwargs
):
6768 SetRange(self, DateTime dt1, DateTime dt2)
6770 Sets the valid range for the date selection. If dt1 is valid, it
6771 becomes the earliest date (inclusive) accepted by the control. If dt2
6772 is valid, it becomes the latest possible date.
6774 If the current value of the control is outside of the newly set range
6775 bounds, the behaviour is undefined.
6777 return _controls_
.DatePickerCtrl_SetRange(*args
, **kwargs
)
6779 def GetLowerLimit(*args
, **kwargs
):
6781 GetLowerLimit(self) -> DateTime
6783 Get the lower limit of the valid range for the date selection, if any.
6784 If there is no range or there is no lower limit, then the
6785 `wx.DateTime` value returned will be invalid.
6787 return _controls_
.DatePickerCtrl_GetLowerLimit(*args
, **kwargs
)
6789 def GetUpperLimit(*args
, **kwargs
):
6791 GetUpperLimit(self) -> DateTime
6793 Get the upper limit of the valid range for the date selection, if any.
6794 If there is no range or there is no upper limit, then the
6795 `wx.DateTime` value returned will be invalid.
6797 return _controls_
.DatePickerCtrl_GetUpperLimit(*args
, **kwargs
)
6800 class DatePickerCtrlPtr(DatePickerCtrl
):
6801 def __init__(self
, this
):
6803 if not hasattr(self
,"thisown"): self
.thisown
= 0
6804 self
.__class
__ = DatePickerCtrl
6805 _controls_
.DatePickerCtrl_swigregister(DatePickerCtrlPtr
)
6806 DatePickerCtrlNameStr
= cvar
.DatePickerCtrlNameStr
6808 def PreDatePickerCtrl(*args
, **kwargs
):
6810 PreDatePickerCtrl() -> DatePickerCtrl
6812 Precreate a DatePickerCtrl for use in 2-phase creation.
6814 val
= _controls_
.new_PreDatePickerCtrl(*args
, **kwargs
)