1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
6 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if isinstance(value
, class_type
):
9 self
.__dict
__[name
] = value
.this
10 if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
) or (name
== "thisown"):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 method
= class_type
.__swig
_getmethods
__.get(name
,None)
25 if method
: return method(self
)
26 raise AttributeError,name
30 _object
= types
.ObjectType
32 except AttributeError:
38 def _swig_setattr_nondynamic_method(set):
39 def set_attr(self
,name
,value
):
40 if hasattr(self
,name
) or (name
in ("this", "thisown")):
43 raise AttributeError("You cannot add attributes to %s" % self
)
49 #---------------------------------------------------------------------------
51 BU_LEFT
= _controls_
.BU_LEFT
52 BU_TOP
= _controls_
.BU_TOP
53 BU_RIGHT
= _controls_
.BU_RIGHT
54 BU_BOTTOM
= _controls_
.BU_BOTTOM
55 BU_ALIGN_MASK
= _controls_
.BU_ALIGN_MASK
56 BU_EXACTFIT
= _controls_
.BU_EXACTFIT
57 BU_AUTODRAW
= _controls_
.BU_AUTODRAW
58 class Button(_core
.Control
):
60 A button is a control that contains a text string, and is one of the most
61 common elements of a GUI. It may be placed on a dialog box or panel, or
62 indeed almost any other window.
65 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
66 def __init__(self
, *args
, **kwargs
):
68 __init__(self, Window parent, int id=-1, String label=EmptyString,
69 Point pos=DefaultPosition, Size size=DefaultSize,
70 long style=0, Validator validator=DefaultValidator,
71 String name=ButtonNameStr) -> Button
73 Create and show a button. The preferred way to create standard
74 buttons is to use a standard ID and an empty label. In this case
75 wxWigets will automatically use a stock label that coresponds to the
76 ID given. In additon, the button will be decorated with stock icons
79 newobj
= _controls_
.new_Button(*args
, **kwargs
)
80 self
.this
= newobj
.this
83 self
._setOORInfo
(self
)
85 def Create(*args
, **kwargs
):
87 Create(self, Window parent, int id=-1, String label=EmptyString,
88 Point pos=DefaultPosition, Size size=DefaultSize,
89 long style=0, Validator validator=DefaultValidator,
90 String name=ButtonNameStr) -> bool
92 Acutally create the GUI Button for 2-phase creation.
94 return _controls_
.Button_Create(*args
, **kwargs
)
96 def SetDefault(*args
, **kwargs
):
100 This sets the button to be the default item for the panel or dialog box.
102 return _controls_
.Button_SetDefault(*args
, **kwargs
)
104 def GetDefaultSize(*args
, **kwargs
):
106 GetDefaultSize() -> Size
108 Returns the default button size for this platform.
110 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
112 GetDefaultSize
= staticmethod(GetDefaultSize
)
113 def GetClassDefaultAttributes(*args
, **kwargs
):
115 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
117 Get the default attributes for this class. This is useful if you want
118 to use the same font or colour in your own control as in a standard
119 control -- which is a much better idea than hard coding specific
120 colours or fonts which might look completely out of place on the
121 user's system, especially if it uses themes.
123 The variant parameter is only relevant under Mac currently and is
124 ignore under other platforms. Under Mac, it will change the size of
125 the returned font. See `wx.Window.SetWindowVariant` for more about
128 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
130 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
132 class ButtonPtr(Button
):
133 def __init__(self
, this
):
135 if not hasattr(self
,"thisown"): self
.thisown
= 0
136 self
.__class
__ = Button
137 _controls_
.Button_swigregister(ButtonPtr
)
138 cvar
= _controls_
.cvar
139 ButtonNameStr
= cvar
.ButtonNameStr
141 def PreButton(*args
, **kwargs
):
143 PreButton() -> Button
145 Precreate a Button for 2-phase creation.
147 val
= _controls_
.new_PreButton(*args
, **kwargs
)
151 def Button_GetDefaultSize(*args
, **kwargs
):
153 Button_GetDefaultSize() -> Size
155 Returns the default button size for this platform.
157 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
159 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
161 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
163 Get the default attributes for this class. This is useful if you want
164 to use the same font or colour in your own control as in a standard
165 control -- which is a much better idea than hard coding specific
166 colours or fonts which might look completely out of place on the
167 user's system, especially if it uses themes.
169 The variant parameter is only relevant under Mac currently and is
170 ignore under other platforms. Under Mac, it will change the size of
171 the returned font. See `wx.Window.SetWindowVariant` for more about
174 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
176 class BitmapButton(Button
):
178 A Button that contains a bitmap. A bitmap button can be supplied with a
179 single bitmap, and wxWidgets will draw all button states using this bitmap. If
180 the application needs more control, additional bitmaps for the selected state,
181 unpressed focused state, and greyed-out state may be supplied.
184 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
185 def __init__(self
, *args
, **kwargs
):
187 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
188 Point pos=DefaultPosition, Size size=DefaultSize,
189 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
190 String name=ButtonNameStr) -> BitmapButton
192 Create and show a button with a bitmap for the label.
194 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
195 self
.this
= newobj
.this
198 self
._setOORInfo
(self
)
200 def Create(*args
, **kwargs
):
202 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
203 Point pos=DefaultPosition, Size size=DefaultSize,
204 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
205 String name=ButtonNameStr) -> bool
207 Acutally create the GUI BitmapButton for 2-phase creation.
209 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
211 def GetBitmapLabel(*args
, **kwargs
):
213 GetBitmapLabel(self) -> Bitmap
215 Returns the label bitmap (the one passed to the constructor).
217 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
219 def GetBitmapDisabled(*args
, **kwargs
):
221 GetBitmapDisabled(self) -> Bitmap
223 Returns the bitmap for the disabled state.
225 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
227 def GetBitmapFocus(*args
, **kwargs
):
229 GetBitmapFocus(self) -> Bitmap
231 Returns the bitmap for the focused state.
233 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
235 def GetBitmapSelected(*args
, **kwargs
):
237 GetBitmapSelected(self) -> Bitmap
239 Returns the bitmap for the selected state.
241 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
243 def SetBitmapDisabled(*args
, **kwargs
):
245 SetBitmapDisabled(self, Bitmap bitmap)
247 Sets the bitmap for the disabled button appearance.
249 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
251 def SetBitmapFocus(*args
, **kwargs
):
253 SetBitmapFocus(self, Bitmap bitmap)
255 Sets the bitmap for the button appearance when it has the keyboard focus.
257 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
259 def SetBitmapSelected(*args
, **kwargs
):
261 SetBitmapSelected(self, Bitmap bitmap)
263 Sets the bitmap for the selected (depressed) button appearance.
265 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
267 def SetBitmapLabel(*args
, **kwargs
):
269 SetBitmapLabel(self, Bitmap bitmap)
271 Sets the bitmap label for the button. This is the bitmap used for the
272 unselected state, and for all other states if no other bitmaps are provided.
274 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
276 def SetMargins(*args
, **kwargs
):
277 """SetMargins(self, int x, int y)"""
278 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
280 def GetMarginX(*args
, **kwargs
):
281 """GetMarginX(self) -> int"""
282 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
284 def GetMarginY(*args
, **kwargs
):
285 """GetMarginY(self) -> int"""
286 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
289 class BitmapButtonPtr(BitmapButton
):
290 def __init__(self
, this
):
292 if not hasattr(self
,"thisown"): self
.thisown
= 0
293 self
.__class
__ = BitmapButton
294 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
296 def PreBitmapButton(*args
, **kwargs
):
298 PreBitmapButton() -> BitmapButton
300 Precreate a BitmapButton for 2-phase creation.
302 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
306 #---------------------------------------------------------------------------
308 CHK_2STATE
= _controls_
.CHK_2STATE
309 CHK_3STATE
= _controls_
.CHK_3STATE
310 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
311 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
312 CHK_CHECKED
= _controls_
.CHK_CHECKED
313 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
314 class CheckBox(_core
.Control
):
316 A checkbox is a labelled box which by default is either on (the
317 checkmark is visible) or off (no checkmark). Optionally (When the
318 wx.CHK_3STATE style flag is set) it can have a third state, called the
319 mixed or undetermined state. Often this is used as a "Does Not
323 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
324 def __init__(self
, *args
, **kwargs
):
326 __init__(self, Window parent, int id=-1, String label=EmptyString,
327 Point pos=DefaultPosition, Size size=DefaultSize,
328 long style=0, Validator validator=DefaultValidator,
329 String name=CheckBoxNameStr) -> CheckBox
331 Creates and shows a CheckBox control
333 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
334 self
.this
= newobj
.this
337 self
._setOORInfo
(self
)
339 def Create(*args
, **kwargs
):
341 Create(self, Window parent, int id=-1, String label=EmptyString,
342 Point pos=DefaultPosition, Size size=DefaultSize,
343 long style=0, Validator validator=DefaultValidator,
344 String name=CheckBoxNameStr) -> bool
346 Actually create the GUI CheckBox for 2-phase creation.
348 return _controls_
.CheckBox_Create(*args
, **kwargs
)
350 def GetValue(*args
, **kwargs
):
352 GetValue(self) -> bool
354 Gets the state of a 2-state CheckBox. Returns True if it is checked,
357 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
359 def IsChecked(*args
, **kwargs
):
361 IsChecked(self) -> bool
363 Similar to GetValue, but raises an exception if it is not a 2-state
366 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
368 def SetValue(*args
, **kwargs
):
370 SetValue(self, bool state)
372 Set the state of a 2-state CheckBox. Pass True for checked, False for
375 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
377 def Get3StateValue(*args
, **kwargs
):
379 Get3StateValue(self) -> int
381 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
382 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
383 the undetermined state. Raises an exceptiion when the function is
384 used with a 2-state CheckBox.
386 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
388 def Set3StateValue(*args
, **kwargs
):
390 Set3StateValue(self, int state)
392 Sets the CheckBox to the given state. The state parameter can be one
393 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
394 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
395 exception when the CheckBox is a 2-state checkbox and setting the
396 state to wx.CHK_UNDETERMINED.
398 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
400 def Is3State(*args
, **kwargs
):
402 Is3State(self) -> bool
404 Returns whether or not the CheckBox is a 3-state CheckBox.
406 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
408 def Is3rdStateAllowedForUser(*args
, **kwargs
):
410 Is3rdStateAllowedForUser(self) -> bool
412 Returns whether or not the user can set the CheckBox to the third
415 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
417 def GetClassDefaultAttributes(*args
, **kwargs
):
419 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
421 Get the default attributes for this class. This is useful if you want
422 to use the same font or colour in your own control as in a standard
423 control -- which is a much better idea than hard coding specific
424 colours or fonts which might look completely out of place on the
425 user's system, especially if it uses themes.
427 The variant parameter is only relevant under Mac currently and is
428 ignore under other platforms. Under Mac, it will change the size of
429 the returned font. See `wx.Window.SetWindowVariant` for more about
432 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
434 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
436 class CheckBoxPtr(CheckBox
):
437 def __init__(self
, this
):
439 if not hasattr(self
,"thisown"): self
.thisown
= 0
440 self
.__class
__ = CheckBox
441 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
442 CheckBoxNameStr
= cvar
.CheckBoxNameStr
444 def PreCheckBox(*args
, **kwargs
):
446 PreCheckBox() -> CheckBox
448 Precreate a CheckBox for 2-phase creation.
450 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
454 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
456 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
458 Get the default attributes for this class. This is useful if you want
459 to use the same font or colour in your own control as in a standard
460 control -- which is a much better idea than hard coding specific
461 colours or fonts which might look completely out of place on the
462 user's system, especially if it uses themes.
464 The variant parameter is only relevant under Mac currently and is
465 ignore under other platforms. Under Mac, it will change the size of
466 the returned font. See `wx.Window.SetWindowVariant` for more about
469 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
471 #---------------------------------------------------------------------------
473 class Choice(_core
.ControlWithItems
):
475 A Choice control is used to select one of a list of strings.
476 Unlike a `wx.ListBox`, only the selection is visible until the
477 user pulls down the menu of choices.
480 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
481 def __init__(self
, *args
, **kwargs
):
483 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
484 List choices=[], long style=0, Validator validator=DefaultValidator,
485 String name=ChoiceNameStr) -> Choice
487 Create and show a Choice control
489 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
490 self
.this
= newobj
.this
493 self
._setOORInfo
(self
)
495 def Create(*args
, **kwargs
):
497 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
498 List choices=[], long style=0, Validator validator=DefaultValidator,
499 String name=ChoiceNameStr) -> bool
501 Actually create the GUI Choice control for 2-phase creation
503 return _controls_
.Choice_Create(*args
, **kwargs
)
505 def SetSelection(*args
, **kwargs
):
507 SetSelection(self, int n)
509 Select the n'th item (zero based) in the list.
511 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
513 def SetStringSelection(*args
, **kwargs
):
515 SetStringSelection(self, String string) -> bool
517 Select the item with the specifed string
519 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
521 def SetString(*args
, **kwargs
):
523 SetString(self, int n, String string)
525 Set the label for the n'th item (zero based) in the list.
527 return _controls_
.Choice_SetString(*args
, **kwargs
)
529 Select
= SetSelection
530 def GetClassDefaultAttributes(*args
, **kwargs
):
532 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
534 Get the default attributes for this class. This is useful if you want
535 to use the same font or colour in your own control as in a standard
536 control -- which is a much better idea than hard coding specific
537 colours or fonts which might look completely out of place on the
538 user's system, especially if it uses themes.
540 The variant parameter is only relevant under Mac currently and is
541 ignore under other platforms. Under Mac, it will change the size of
542 the returned font. See `wx.Window.SetWindowVariant` for more about
545 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
547 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
549 class ChoicePtr(Choice
):
550 def __init__(self
, this
):
552 if not hasattr(self
,"thisown"): self
.thisown
= 0
553 self
.__class
__ = Choice
554 _controls_
.Choice_swigregister(ChoicePtr
)
555 ChoiceNameStr
= cvar
.ChoiceNameStr
557 def PreChoice(*args
, **kwargs
):
559 PreChoice() -> Choice
561 Precreate a Choice control for 2-phase creation.
563 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
567 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
569 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
571 Get the default attributes for this class. This is useful if you want
572 to use the same font or colour in your own control as in a standard
573 control -- which is a much better idea than hard coding specific
574 colours or fonts which might look completely out of place on the
575 user's system, especially if it uses themes.
577 The variant parameter is only relevant under Mac currently and is
578 ignore under other platforms. Under Mac, it will change the size of
579 the returned font. See `wx.Window.SetWindowVariant` for more about
582 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
584 #---------------------------------------------------------------------------
586 class ComboBox(Choice
):
588 A combobox is like a combination of an edit control and a
589 listbox. It can be displayed as static list with editable or
590 read-only text field; or a drop-down list with text field.
592 A combobox permits a single selection only. Combobox items are
596 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
597 def __init__(self
, *args
, **kwargs
):
599 __init__(Window parent, int id, String value=EmptyString,
600 Point pos=DefaultPosition, Size size=DefaultSize,
601 List choices=[], long style=0, Validator validator=DefaultValidator,
602 String name=ComboBoxNameStr) -> ComboBox
604 Constructor, creates and shows a ComboBox control.
606 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
607 self
.this
= newobj
.this
610 self
._setOORInfo
(self
)
612 def Create(*args
, **kwargs
):
614 Create(Window parent, int id, String value=EmptyString,
615 Point pos=DefaultPosition, Size size=DefaultSize,
616 List choices=[], long style=0, Validator validator=DefaultValidator,
617 String name=ChoiceNameStr) -> bool
619 Actually create the GUI wxComboBox control for 2-phase creation
621 return _controls_
.ComboBox_Create(*args
, **kwargs
)
623 def GetValue(*args
, **kwargs
):
625 GetValue(self) -> String
627 Returns the current value in the combobox text field.
629 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
631 def SetValue(*args
, **kwargs
):
632 """SetValue(self, String value)"""
633 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
635 def Copy(*args
, **kwargs
):
639 Copies the selected text to the clipboard.
641 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
643 def Cut(*args
, **kwargs
):
647 Copies the selected text to the clipboard and removes the selection.
649 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
651 def Paste(*args
, **kwargs
):
655 Pastes text from the clipboard to the text field.
657 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
659 def SetInsertionPoint(*args
, **kwargs
):
661 SetInsertionPoint(self, long pos)
663 Sets the insertion point in the combobox text field.
665 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
667 def GetInsertionPoint(*args
, **kwargs
):
669 GetInsertionPoint(self) -> long
671 Returns the insertion point for the combobox's text field.
673 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
675 def GetLastPosition(*args
, **kwargs
):
677 GetLastPosition(self) -> long
679 Returns the last position in the combobox text field.
681 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
683 def Replace(*args
, **kwargs
):
685 Replace(self, long from, long to, String value)
687 Replaces the text between two positions with the given text, in the
690 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
692 def SetSelection(*args
, **kwargs
):
694 SetSelection(self, int n)
696 Sets the item at index 'n' to be the selected item.
698 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
700 def SetMark(*args
, **kwargs
):
702 SetMark(self, long from, long to)
704 Selects the text between the two positions in the combobox text field.
706 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
708 def GetMark(*args
, **kwargs
):
710 GetMark(self) -> (from, to)
712 Gets the positions of the begining and ending of the selection mark in
713 the combobox text field.
715 return _controls_
.ComboBox_GetMark(*args
, **kwargs
)
717 def SetStringSelection(*args
, **kwargs
):
719 SetStringSelection(self, String string) -> bool
721 Select the item with the specifed string
723 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
725 def SetString(*args
, **kwargs
):
727 SetString(self, int n, String string)
729 Set the label for the n'th item (zero based) in the list.
731 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
733 def SetEditable(*args
, **kwargs
):
734 """SetEditable(self, bool editable)"""
735 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
737 def SetInsertionPointEnd(*args
, **kwargs
):
739 SetInsertionPointEnd(self)
741 Sets the insertion point at the end of the combobox text field.
743 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
745 def Remove(*args
, **kwargs
):
747 Remove(self, long from, long to)
749 Removes the text between the two positions in the combobox text field.
751 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
753 def IsEditable(*args
, **kwargs
):
755 IsEditable(self) -> bool
757 Returns True if the combo is ediatable (not read-only.)
759 return _controls_
.ComboBox_IsEditable(*args
, **kwargs
)
761 def Undo(*args
, **kwargs
):
765 Redoes the last undo in the text field. Windows only.
767 return _controls_
.ComboBox_Undo(*args
, **kwargs
)
769 def Redo(*args
, **kwargs
):
773 Undoes the last edit in the text field. Windows only.
775 return _controls_
.ComboBox_Redo(*args
, **kwargs
)
777 def SelectAll(*args
, **kwargs
):
781 Select all the text in the combo's text field.
783 return _controls_
.ComboBox_SelectAll(*args
, **kwargs
)
785 def CanCopy(*args
, **kwargs
):
787 CanCopy(self) -> bool
789 Returns True if the combobox is editable and there is a text selection
790 to copy to the clipboard. Only available on Windows.
792 return _controls_
.ComboBox_CanCopy(*args
, **kwargs
)
794 def CanCut(*args
, **kwargs
):
798 Returns True if the combobox is editable and there is a text selection
799 to copy to the clipboard. Only available on Windows.
801 return _controls_
.ComboBox_CanCut(*args
, **kwargs
)
803 def CanPaste(*args
, **kwargs
):
805 CanPaste(self) -> bool
807 Returns True if the combobox is editable and there is text on the
808 clipboard that can be pasted into the text field. Only available on
811 return _controls_
.ComboBox_CanPaste(*args
, **kwargs
)
813 def CanUndo(*args
, **kwargs
):
815 CanUndo(self) -> bool
817 Returns True if the combobox is editable and the last edit can be
818 undone. Only available on Windows.
820 return _controls_
.ComboBox_CanUndo(*args
, **kwargs
)
822 def CanRedo(*args
, **kwargs
):
824 CanRedo(self) -> bool
826 Returns True if the combobox is editable and the last undo can be
827 redone. Only available on Windows.
829 return _controls_
.ComboBox_CanRedo(*args
, **kwargs
)
831 def GetClassDefaultAttributes(*args
, **kwargs
):
833 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
835 Get the default attributes for this class. This is useful if you want
836 to use the same font or colour in your own control as in a standard
837 control -- which is a much better idea than hard coding specific
838 colours or fonts which might look completely out of place on the
839 user's system, especially if it uses themes.
841 The variant parameter is only relevant under Mac currently and is
842 ignore under other platforms. Under Mac, it will change the size of
843 the returned font. See `wx.Window.SetWindowVariant` for more about
846 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
848 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
850 class ComboBoxPtr(ComboBox
):
851 def __init__(self
, this
):
853 if not hasattr(self
,"thisown"): self
.thisown
= 0
854 self
.__class
__ = ComboBox
855 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
856 ComboBoxNameStr
= cvar
.ComboBoxNameStr
858 def PreComboBox(*args
, **kwargs
):
860 PreComboBox() -> ComboBox
862 Precreate a ComboBox control for 2-phase creation.
864 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
868 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
870 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
872 Get the default attributes for this class. This is useful if you want
873 to use the same font or colour in your own control as in a standard
874 control -- which is a much better idea than hard coding specific
875 colours or fonts which might look completely out of place on the
876 user's system, especially if it uses themes.
878 The variant parameter is only relevant under Mac currently and is
879 ignore under other platforms. Under Mac, it will change the size of
880 the returned font. See `wx.Window.SetWindowVariant` for more about
883 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
885 #---------------------------------------------------------------------------
887 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
888 GA_VERTICAL
= _controls_
.GA_VERTICAL
889 GA_SMOOTH
= _controls_
.GA_SMOOTH
890 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
891 class Gauge(_core
.Control
):
892 """Proxy of C++ Gauge class"""
894 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
895 def __init__(self
, *args
, **kwargs
):
897 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
898 Size size=DefaultSize, long style=GA_HORIZONTAL,
899 Validator validator=DefaultValidator,
900 String name=GaugeNameStr) -> Gauge
902 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
903 self
.this
= newobj
.this
906 self
._setOORInfo
(self
)
908 def Create(*args
, **kwargs
):
910 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
911 Size size=DefaultSize, long style=GA_HORIZONTAL,
912 Validator validator=DefaultValidator,
913 String name=GaugeNameStr) -> bool
915 return _controls_
.Gauge_Create(*args
, **kwargs
)
917 def SetRange(*args
, **kwargs
):
918 """SetRange(self, int range)"""
919 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
921 def GetRange(*args
, **kwargs
):
922 """GetRange(self) -> int"""
923 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
925 def SetValue(*args
, **kwargs
):
926 """SetValue(self, int pos)"""
927 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
929 def GetValue(*args
, **kwargs
):
930 """GetValue(self) -> int"""
931 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
933 def IsVertical(*args
, **kwargs
):
934 """IsVertical(self) -> bool"""
935 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
937 def SetShadowWidth(*args
, **kwargs
):
938 """SetShadowWidth(self, int w)"""
939 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
941 def GetShadowWidth(*args
, **kwargs
):
942 """GetShadowWidth(self) -> int"""
943 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
945 def SetBezelFace(*args
, **kwargs
):
946 """SetBezelFace(self, int w)"""
947 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
949 def GetBezelFace(*args
, **kwargs
):
950 """GetBezelFace(self) -> int"""
951 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
953 def GetClassDefaultAttributes(*args
, **kwargs
):
955 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
957 Get the default attributes for this class. This is useful if you want
958 to use the same font or colour in your own control as in a standard
959 control -- which is a much better idea than hard coding specific
960 colours or fonts which might look completely out of place on the
961 user's system, especially if it uses themes.
963 The variant parameter is only relevant under Mac currently and is
964 ignore under other platforms. Under Mac, it will change the size of
965 the returned font. See `wx.Window.SetWindowVariant` for more about
968 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
970 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
972 class GaugePtr(Gauge
):
973 def __init__(self
, this
):
975 if not hasattr(self
,"thisown"): self
.thisown
= 0
976 self
.__class
__ = Gauge
977 _controls_
.Gauge_swigregister(GaugePtr
)
978 GaugeNameStr
= cvar
.GaugeNameStr
980 def PreGauge(*args
, **kwargs
):
981 """PreGauge() -> Gauge"""
982 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
986 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
988 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
990 Get the default attributes for this class. This is useful if you want
991 to use the same font or colour in your own control as in a standard
992 control -- which is a much better idea than hard coding specific
993 colours or fonts which might look completely out of place on the
994 user's system, especially if it uses themes.
996 The variant parameter is only relevant under Mac currently and is
997 ignore under other platforms. Under Mac, it will change the size of
998 the returned font. See `wx.Window.SetWindowVariant` for more about
1001 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
1003 #---------------------------------------------------------------------------
1005 class StaticBox(_core
.Control
):
1006 """Proxy of C++ StaticBox class"""
1008 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1009 def __init__(self
, *args
, **kwargs
):
1011 __init__(self, Window parent, int id=-1, String label=EmptyString,
1012 Point pos=DefaultPosition, Size size=DefaultSize,
1013 long style=0, String name=StaticBoxNameStr) -> StaticBox
1015 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
1016 self
.this
= newobj
.this
1019 self
._setOORInfo
(self
)
1021 def Create(*args
, **kwargs
):
1023 Create(self, Window parent, int id=-1, String label=EmptyString,
1024 Point pos=DefaultPosition, Size size=DefaultSize,
1025 long style=0, String name=StaticBoxNameStr) -> bool
1027 return _controls_
.StaticBox_Create(*args
, **kwargs
)
1029 def GetClassDefaultAttributes(*args
, **kwargs
):
1031 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1033 Get the default attributes for this class. This is useful if you want
1034 to use the same font or colour in your own control as in a standard
1035 control -- which is a much better idea than hard coding specific
1036 colours or fonts which might look completely out of place on the
1037 user's system, especially if it uses themes.
1039 The variant parameter is only relevant under Mac currently and is
1040 ignore under other platforms. Under Mac, it will change the size of
1041 the returned font. See `wx.Window.SetWindowVariant` for more about
1044 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1046 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1048 class StaticBoxPtr(StaticBox
):
1049 def __init__(self
, this
):
1051 if not hasattr(self
,"thisown"): self
.thisown
= 0
1052 self
.__class
__ = StaticBox
1053 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
1054 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
1055 StaticBoxNameStr
= cvar
.StaticBoxNameStr
1056 StaticTextNameStr
= cvar
.StaticTextNameStr
1058 def PreStaticBox(*args
, **kwargs
):
1059 """PreStaticBox() -> StaticBox"""
1060 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
1064 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
1066 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1068 Get the default attributes for this class. This is useful if you want
1069 to use the same font or colour in your own control as in a standard
1070 control -- which is a much better idea than hard coding specific
1071 colours or fonts which might look completely out of place on the
1072 user's system, especially if it uses themes.
1074 The variant parameter is only relevant under Mac currently and is
1075 ignore under other platforms. Under Mac, it will change the size of
1076 the returned font. See `wx.Window.SetWindowVariant` for more about
1079 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1081 #---------------------------------------------------------------------------
1083 class StaticLine(_core
.Control
):
1084 """Proxy of C++ StaticLine class"""
1086 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1087 def __init__(self
, *args
, **kwargs
):
1089 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1090 Size size=DefaultSize, long style=LI_HORIZONTAL,
1091 String name=StaticTextNameStr) -> StaticLine
1093 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
1094 self
.this
= newobj
.this
1097 self
._setOORInfo
(self
)
1099 def Create(*args
, **kwargs
):
1101 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1102 Size size=DefaultSize, long style=LI_HORIZONTAL,
1103 String name=StaticTextNameStr) -> bool
1105 return _controls_
.StaticLine_Create(*args
, **kwargs
)
1107 def IsVertical(*args
, **kwargs
):
1108 """IsVertical(self) -> bool"""
1109 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
1111 def GetDefaultSize(*args
, **kwargs
):
1112 """GetDefaultSize() -> int"""
1113 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1115 GetDefaultSize
= staticmethod(GetDefaultSize
)
1116 def GetClassDefaultAttributes(*args
, **kwargs
):
1118 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1120 Get the default attributes for this class. This is useful if you want
1121 to use the same font or colour in your own control as in a standard
1122 control -- which is a much better idea than hard coding specific
1123 colours or fonts which might look completely out of place on the
1124 user's system, especially if it uses themes.
1126 The variant parameter is only relevant under Mac currently and is
1127 ignore under other platforms. Under Mac, it will change the size of
1128 the returned font. See `wx.Window.SetWindowVariant` for more about
1131 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1133 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1135 class StaticLinePtr(StaticLine
):
1136 def __init__(self
, this
):
1138 if not hasattr(self
,"thisown"): self
.thisown
= 0
1139 self
.__class
__ = StaticLine
1140 _controls_
.StaticLine_swigregister(StaticLinePtr
)
1142 def PreStaticLine(*args
, **kwargs
):
1143 """PreStaticLine() -> StaticLine"""
1144 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1148 def StaticLine_GetDefaultSize(*args
, **kwargs
):
1149 """StaticLine_GetDefaultSize() -> int"""
1150 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1152 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1154 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1156 Get the default attributes for this class. This is useful if you want
1157 to use the same font or colour in your own control as in a standard
1158 control -- which is a much better idea than hard coding specific
1159 colours or fonts which might look completely out of place on the
1160 user's system, especially if it uses themes.
1162 The variant parameter is only relevant under Mac currently and is
1163 ignore under other platforms. Under Mac, it will change the size of
1164 the returned font. See `wx.Window.SetWindowVariant` for more about
1167 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1169 #---------------------------------------------------------------------------
1171 class StaticText(_core
.Control
):
1172 """Proxy of C++ StaticText class"""
1174 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1175 def __init__(self
, *args
, **kwargs
):
1177 __init__(self, Window parent, int id=-1, String label=EmptyString,
1178 Point pos=DefaultPosition, Size size=DefaultSize,
1179 long style=0, String name=StaticTextNameStr) -> StaticText
1181 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
1182 self
.this
= newobj
.this
1185 self
._setOORInfo
(self
)
1187 def Create(*args
, **kwargs
):
1189 Create(self, Window parent, int id=-1, String label=EmptyString,
1190 Point pos=DefaultPosition, Size size=DefaultSize,
1191 long style=0, String name=StaticTextNameStr) -> bool
1193 return _controls_
.StaticText_Create(*args
, **kwargs
)
1195 def GetClassDefaultAttributes(*args
, **kwargs
):
1197 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1199 Get the default attributes for this class. This is useful if you want
1200 to use the same font or colour in your own control as in a standard
1201 control -- which is a much better idea than hard coding specific
1202 colours or fonts which might look completely out of place on the
1203 user's system, especially if it uses themes.
1205 The variant parameter is only relevant under Mac currently and is
1206 ignore under other platforms. Under Mac, it will change the size of
1207 the returned font. See `wx.Window.SetWindowVariant` for more about
1210 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1212 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1214 class StaticTextPtr(StaticText
):
1215 def __init__(self
, this
):
1217 if not hasattr(self
,"thisown"): self
.thisown
= 0
1218 self
.__class
__ = StaticText
1219 _controls_
.StaticText_swigregister(StaticTextPtr
)
1221 def PreStaticText(*args
, **kwargs
):
1222 """PreStaticText() -> StaticText"""
1223 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1227 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1229 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1231 Get the default attributes for this class. This is useful if you want
1232 to use the same font or colour in your own control as in a standard
1233 control -- which is a much better idea than hard coding specific
1234 colours or fonts which might look completely out of place on the
1235 user's system, especially if it uses themes.
1237 The variant parameter is only relevant under Mac currently and is
1238 ignore under other platforms. Under Mac, it will change the size of
1239 the returned font. See `wx.Window.SetWindowVariant` for more about
1242 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1244 #---------------------------------------------------------------------------
1246 class StaticBitmap(_core
.Control
):
1247 """Proxy of C++ StaticBitmap class"""
1249 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1250 def __init__(self
, *args
, **kwargs
):
1252 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1253 Point pos=DefaultPosition, Size size=DefaultSize,
1254 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1256 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
1257 self
.this
= newobj
.this
1260 self
._setOORInfo
(self
)
1262 def Create(*args
, **kwargs
):
1264 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1265 Point pos=DefaultPosition, Size size=DefaultSize,
1266 long style=0, String name=StaticBitmapNameStr) -> bool
1268 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1270 def GetBitmap(*args
, **kwargs
):
1271 """GetBitmap(self) -> Bitmap"""
1272 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1274 def SetBitmap(*args
, **kwargs
):
1275 """SetBitmap(self, Bitmap bitmap)"""
1276 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1278 def SetIcon(*args
, **kwargs
):
1279 """SetIcon(self, Icon icon)"""
1280 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1282 def GetClassDefaultAttributes(*args
, **kwargs
):
1284 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1286 Get the default attributes for this class. This is useful if you want
1287 to use the same font or colour in your own control as in a standard
1288 control -- which is a much better idea than hard coding specific
1289 colours or fonts which might look completely out of place on the
1290 user's system, especially if it uses themes.
1292 The variant parameter is only relevant under Mac currently and is
1293 ignore under other platforms. Under Mac, it will change the size of
1294 the returned font. See `wx.Window.SetWindowVariant` for more about
1297 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1299 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1301 class StaticBitmapPtr(StaticBitmap
):
1302 def __init__(self
, this
):
1304 if not hasattr(self
,"thisown"): self
.thisown
= 0
1305 self
.__class
__ = StaticBitmap
1306 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
1308 def PreStaticBitmap(*args
, **kwargs
):
1309 """PreStaticBitmap() -> StaticBitmap"""
1310 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1314 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1316 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1318 Get the default attributes for this class. This is useful if you want
1319 to use the same font or colour in your own control as in a standard
1320 control -- which is a much better idea than hard coding specific
1321 colours or fonts which might look completely out of place on the
1322 user's system, especially if it uses themes.
1324 The variant parameter is only relevant under Mac currently and is
1325 ignore under other platforms. Under Mac, it will change the size of
1326 the returned font. See `wx.Window.SetWindowVariant` for more about
1329 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1331 #---------------------------------------------------------------------------
1333 class ListBox(_core
.ControlWithItems
):
1334 """Proxy of C++ ListBox class"""
1336 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1337 def __init__(self
, *args
, **kwargs
):
1339 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1340 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1341 long style=0, Validator validator=DefaultValidator,
1342 String name=ListBoxNameStr) -> ListBox
1344 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
1345 self
.this
= newobj
.this
1348 self
._setOORInfo
(self
)
1350 def Create(*args
, **kwargs
):
1352 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1353 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1354 long style=0, Validator validator=DefaultValidator,
1355 String name=ListBoxNameStr) -> bool
1357 return _controls_
.ListBox_Create(*args
, **kwargs
)
1359 def Insert(*args
, **kwargs
):
1361 Insert(self, String item, int pos, PyObject clientData=None)
1363 Insert an item into the control before the item at the ``pos`` index,
1364 optionally associating some data object with the item.
1366 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1368 def InsertItems(*args
, **kwargs
):
1369 """InsertItems(self, wxArrayString items, int pos)"""
1370 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1372 def Set(*args
, **kwargs
):
1373 """Set(self, wxArrayString items)"""
1374 return _controls_
.ListBox_Set(*args
, **kwargs
)
1376 def IsSelected(*args
, **kwargs
):
1377 """IsSelected(self, int n) -> bool"""
1378 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1380 def SetSelection(*args
, **kwargs
):
1381 """SetSelection(self, int n, bool select=True)"""
1382 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1384 def Select(*args
, **kwargs
):
1388 Sets the item at index 'n' to be the selected item.
1390 return _controls_
.ListBox_Select(*args
, **kwargs
)
1392 def Deselect(*args
, **kwargs
):
1393 """Deselect(self, int n)"""
1394 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1396 def DeselectAll(*args
, **kwargs
):
1397 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1398 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1400 def SetStringSelection(*args
, **kwargs
):
1401 """SetStringSelection(self, String s, bool select=True) -> bool"""
1402 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1404 def GetSelections(*args
, **kwargs
):
1405 """GetSelections(self) -> PyObject"""
1406 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1408 def SetFirstItem(*args
, **kwargs
):
1409 """SetFirstItem(self, int n)"""
1410 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1412 def SetFirstItemStr(*args
, **kwargs
):
1413 """SetFirstItemStr(self, String s)"""
1414 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1416 def EnsureVisible(*args
, **kwargs
):
1417 """EnsureVisible(self, int n)"""
1418 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1420 def AppendAndEnsureVisible(*args
, **kwargs
):
1421 """AppendAndEnsureVisible(self, String s)"""
1422 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1424 def IsSorted(*args
, **kwargs
):
1425 """IsSorted(self) -> bool"""
1426 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1428 def SetItemForegroundColour(*args
, **kwargs
):
1429 """SetItemForegroundColour(self, int item, Colour c)"""
1430 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1432 def SetItemBackgroundColour(*args
, **kwargs
):
1433 """SetItemBackgroundColour(self, int item, Colour c)"""
1434 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1436 def SetItemFont(*args
, **kwargs
):
1437 """SetItemFont(self, int item, Font f)"""
1438 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1440 def GetClassDefaultAttributes(*args
, **kwargs
):
1442 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1444 Get the default attributes for this class. This is useful if you want
1445 to use the same font or colour in your own control as in a standard
1446 control -- which is a much better idea than hard coding specific
1447 colours or fonts which might look completely out of place on the
1448 user's system, especially if it uses themes.
1450 The variant parameter is only relevant under Mac currently and is
1451 ignore under other platforms. Under Mac, it will change the size of
1452 the returned font. See `wx.Window.SetWindowVariant` for more about
1455 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1457 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1459 class ListBoxPtr(ListBox
):
1460 def __init__(self
, this
):
1462 if not hasattr(self
,"thisown"): self
.thisown
= 0
1463 self
.__class
__ = ListBox
1464 _controls_
.ListBox_swigregister(ListBoxPtr
)
1465 ListBoxNameStr
= cvar
.ListBoxNameStr
1467 def PreListBox(*args
, **kwargs
):
1468 """PreListBox() -> ListBox"""
1469 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1473 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1475 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1477 Get the default attributes for this class. This is useful if you want
1478 to use the same font or colour in your own control as in a standard
1479 control -- which is a much better idea than hard coding specific
1480 colours or fonts which might look completely out of place on the
1481 user's system, especially if it uses themes.
1483 The variant parameter is only relevant under Mac currently and is
1484 ignore under other platforms. Under Mac, it will change the size of
1485 the returned font. See `wx.Window.SetWindowVariant` for more about
1488 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1490 #---------------------------------------------------------------------------
1492 class CheckListBox(ListBox
):
1493 """Proxy of C++ CheckListBox class"""
1495 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1496 def __init__(self
, *args
, **kwargs
):
1498 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1499 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1500 long style=0, Validator validator=DefaultValidator,
1501 String name=ListBoxNameStr) -> CheckListBox
1503 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1504 self
.this
= newobj
.this
1507 self
._setOORInfo
(self
)
1509 def Create(*args
, **kwargs
):
1511 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1512 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1513 long style=0, Validator validator=DefaultValidator,
1514 String name=ListBoxNameStr) -> bool
1516 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1518 def IsChecked(*args
, **kwargs
):
1519 """IsChecked(self, int index) -> bool"""
1520 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1522 def Check(*args
, **kwargs
):
1523 """Check(self, int index, int check=True)"""
1524 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1526 def GetItemHeight(*args
, **kwargs
):
1527 """GetItemHeight(self) -> int"""
1528 return _controls_
.CheckListBox_GetItemHeight(*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_LINEWRAP
= _controls_
.TE_LINEWRAP
1578 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1579 TE_RICH2
= _controls_
.TE_RICH2
1580 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1581 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1582 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1583 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1584 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1585 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1586 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1587 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1588 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1589 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1590 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1591 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1592 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1593 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1594 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1595 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1596 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1597 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1598 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1599 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1600 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1601 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1602 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1603 class TextAttr(object):
1604 """Proxy of C++ TextAttr class"""
1606 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1607 def __init__(self
, *args
, **kwargs
):
1609 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1610 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1612 newobj
= _controls_
.new_TextAttr(*args
, **kwargs
)
1613 self
.this
= newobj
.this
1616 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1619 if self
.thisown
: destroy(self
)
1622 def Init(*args
, **kwargs
):
1624 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1626 def SetTextColour(*args
, **kwargs
):
1627 """SetTextColour(self, Colour colText)"""
1628 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1630 def SetBackgroundColour(*args
, **kwargs
):
1631 """SetBackgroundColour(self, Colour colBack)"""
1632 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1634 def SetFont(*args
, **kwargs
):
1635 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1636 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1638 def SetAlignment(*args
, **kwargs
):
1639 """SetAlignment(self, int alignment)"""
1640 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1642 def SetTabs(*args
, **kwargs
):
1643 """SetTabs(self, wxArrayInt tabs)"""
1644 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1646 def SetLeftIndent(*args
, **kwargs
):
1647 """SetLeftIndent(self, int indent, int subIndent=0)"""
1648 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1650 def SetRightIndent(*args
, **kwargs
):
1651 """SetRightIndent(self, int indent)"""
1652 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1654 def SetFlags(*args
, **kwargs
):
1655 """SetFlags(self, long flags)"""
1656 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1658 def HasTextColour(*args
, **kwargs
):
1659 """HasTextColour(self) -> bool"""
1660 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1662 def HasBackgroundColour(*args
, **kwargs
):
1663 """HasBackgroundColour(self) -> bool"""
1664 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1666 def HasFont(*args
, **kwargs
):
1667 """HasFont(self) -> bool"""
1668 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1670 def HasAlignment(*args
, **kwargs
):
1671 """HasAlignment(self) -> bool"""
1672 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1674 def HasTabs(*args
, **kwargs
):
1675 """HasTabs(self) -> bool"""
1676 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1678 def HasLeftIndent(*args
, **kwargs
):
1679 """HasLeftIndent(self) -> bool"""
1680 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1682 def HasRightIndent(*args
, **kwargs
):
1683 """HasRightIndent(self) -> bool"""
1684 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1686 def HasFlag(*args
, **kwargs
):
1687 """HasFlag(self, long flag) -> bool"""
1688 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1690 def GetTextColour(*args
, **kwargs
):
1691 """GetTextColour(self) -> Colour"""
1692 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1694 def GetBackgroundColour(*args
, **kwargs
):
1695 """GetBackgroundColour(self) -> Colour"""
1696 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1698 def GetFont(*args
, **kwargs
):
1699 """GetFont(self) -> Font"""
1700 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1702 def GetAlignment(*args
, **kwargs
):
1703 """GetAlignment(self) -> int"""
1704 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1706 def GetTabs(*args
, **kwargs
):
1707 """GetTabs(self) -> wxArrayInt"""
1708 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1710 def GetLeftIndent(*args
, **kwargs
):
1711 """GetLeftIndent(self) -> long"""
1712 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1714 def GetLeftSubIndent(*args
, **kwargs
):
1715 """GetLeftSubIndent(self) -> long"""
1716 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1718 def GetRightIndent(*args
, **kwargs
):
1719 """GetRightIndent(self) -> long"""
1720 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1722 def GetFlags(*args
, **kwargs
):
1723 """GetFlags(self) -> long"""
1724 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1726 def IsDefault(*args
, **kwargs
):
1727 """IsDefault(self) -> bool"""
1728 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1730 def Combine(*args
, **kwargs
):
1731 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1732 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1734 Combine
= staticmethod(Combine
)
1736 class TextAttrPtr(TextAttr
):
1737 def __init__(self
, this
):
1739 if not hasattr(self
,"thisown"): self
.thisown
= 0
1740 self
.__class
__ = TextAttr
1741 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1742 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1744 def TextAttr_Combine(*args
, **kwargs
):
1745 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1746 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1748 class TextCtrl(_core
.Control
):
1749 """Proxy of C++ TextCtrl class"""
1751 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1752 def __init__(self
, *args
, **kwargs
):
1754 __init__(self, Window parent, int id=-1, String value=EmptyString,
1755 Point pos=DefaultPosition, Size size=DefaultSize,
1756 long style=0, Validator validator=DefaultValidator,
1757 String name=TextCtrlNameStr) -> TextCtrl
1759 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1760 self
.this
= newobj
.this
1763 self
._setOORInfo
(self
)
1765 def Create(*args
, **kwargs
):
1767 Create(self, Window parent, int id=-1, String value=EmptyString,
1768 Point pos=DefaultPosition, Size size=DefaultSize,
1769 long style=0, Validator validator=DefaultValidator,
1770 String name=TextCtrlNameStr) -> bool
1772 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1774 def GetValue(*args
, **kwargs
):
1775 """GetValue(self) -> String"""
1776 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1778 def SetValue(*args
, **kwargs
):
1779 """SetValue(self, String value)"""
1780 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1782 def GetRange(*args
, **kwargs
):
1783 """GetRange(self, long from, long to) -> String"""
1784 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1786 def GetLineLength(*args
, **kwargs
):
1787 """GetLineLength(self, long lineNo) -> int"""
1788 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1790 def GetLineText(*args
, **kwargs
):
1791 """GetLineText(self, long lineNo) -> String"""
1792 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1794 def GetNumberOfLines(*args
, **kwargs
):
1795 """GetNumberOfLines(self) -> int"""
1796 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1798 def IsModified(*args
, **kwargs
):
1799 """IsModified(self) -> bool"""
1800 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1802 def IsEditable(*args
, **kwargs
):
1803 """IsEditable(self) -> bool"""
1804 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1806 def IsSingleLine(*args
, **kwargs
):
1807 """IsSingleLine(self) -> bool"""
1808 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1810 def IsMultiLine(*args
, **kwargs
):
1811 """IsMultiLine(self) -> bool"""
1812 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1814 def GetSelection(*args
, **kwargs
):
1816 GetSelection() -> (from, to)
1818 If the return values from and to are the same, there is no selection.
1820 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1822 def GetStringSelection(*args
, **kwargs
):
1823 """GetStringSelection(self) -> String"""
1824 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1826 def Clear(*args
, **kwargs
):
1828 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1830 def Replace(*args
, **kwargs
):
1831 """Replace(self, long from, long to, String value)"""
1832 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1834 def Remove(*args
, **kwargs
):
1835 """Remove(self, long from, long to)"""
1836 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1838 def LoadFile(*args
, **kwargs
):
1839 """LoadFile(self, String file) -> bool"""
1840 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1842 def SaveFile(*args
, **kwargs
):
1843 """SaveFile(self, String file=EmptyString) -> bool"""
1844 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1846 def MarkDirty(*args
, **kwargs
):
1847 """MarkDirty(self)"""
1848 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1850 def DiscardEdits(*args
, **kwargs
):
1851 """DiscardEdits(self)"""
1852 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1854 def SetMaxLength(*args
, **kwargs
):
1855 """SetMaxLength(self, unsigned long len)"""
1856 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1858 def WriteText(*args
, **kwargs
):
1859 """WriteText(self, String text)"""
1860 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1862 def AppendText(*args
, **kwargs
):
1863 """AppendText(self, String text)"""
1864 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1866 def EmulateKeyPress(*args
, **kwargs
):
1867 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1868 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1870 def SetStyle(*args
, **kwargs
):
1871 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1872 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1874 def GetStyle(*args
, **kwargs
):
1875 """GetStyle(self, long position, TextAttr style) -> bool"""
1876 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1878 def SetDefaultStyle(*args
, **kwargs
):
1879 """SetDefaultStyle(self, TextAttr style) -> bool"""
1880 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1882 def GetDefaultStyle(*args
, **kwargs
):
1883 """GetDefaultStyle(self) -> TextAttr"""
1884 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1886 def XYToPosition(*args
, **kwargs
):
1887 """XYToPosition(self, long x, long y) -> long"""
1888 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1890 def PositionToXY(*args
, **kwargs
):
1891 """PositionToXY(long pos) -> (x, y)"""
1892 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1894 def ShowPosition(*args
, **kwargs
):
1895 """ShowPosition(self, long pos)"""
1896 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1898 def HitTest(*args
, **kwargs
):
1900 HitTest(Point pt) -> (result, row, col)
1902 Find the row, col coresponding to the character at the point given in
1903 pixels. NB: pt is in device coords but is not adjusted for the client
1904 area origin nor scrolling.
1906 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1908 def HitTestPos(*args
, **kwargs
):
1910 HitTestPos(Point pt) -> (result, position)
1912 Find the character position in the text coresponding to the point
1913 given in pixels. NB: pt is in device coords but is not adjusted for
1914 the client area origin nor scrolling.
1916 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1918 def Copy(*args
, **kwargs
):
1920 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1922 def Cut(*args
, **kwargs
):
1924 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1926 def Paste(*args
, **kwargs
):
1928 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1930 def CanCopy(*args
, **kwargs
):
1931 """CanCopy(self) -> bool"""
1932 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1934 def CanCut(*args
, **kwargs
):
1935 """CanCut(self) -> bool"""
1936 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1938 def CanPaste(*args
, **kwargs
):
1939 """CanPaste(self) -> bool"""
1940 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1942 def Undo(*args
, **kwargs
):
1944 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1946 def Redo(*args
, **kwargs
):
1948 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1950 def CanUndo(*args
, **kwargs
):
1951 """CanUndo(self) -> bool"""
1952 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1954 def CanRedo(*args
, **kwargs
):
1955 """CanRedo(self) -> bool"""
1956 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1958 def SetInsertionPoint(*args
, **kwargs
):
1959 """SetInsertionPoint(self, long pos)"""
1960 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1962 def SetInsertionPointEnd(*args
, **kwargs
):
1963 """SetInsertionPointEnd(self)"""
1964 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1966 def GetInsertionPoint(*args
, **kwargs
):
1967 """GetInsertionPoint(self) -> long"""
1968 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1970 def GetLastPosition(*args
, **kwargs
):
1971 """GetLastPosition(self) -> long"""
1972 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1974 def SetSelection(*args
, **kwargs
):
1975 """SetSelection(self, long from, long to)"""
1976 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1978 def SelectAll(*args
, **kwargs
):
1979 """SelectAll(self)"""
1980 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1982 def SetEditable(*args
, **kwargs
):
1983 """SetEditable(self, bool editable)"""
1984 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1986 def ShowNativeCaret(*args
, **kwargs
):
1987 """ShowNativeCaret(self, bool show=True) -> bool"""
1988 return _controls_
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1990 def HideNativeCaret(*args
, **kwargs
):
1991 """HideNativeCaret(self) -> bool"""
1992 return _controls_
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1994 def write(*args
, **kwargs
):
1995 """write(self, String text)"""
1996 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1998 def GetString(*args
, **kwargs
):
1999 """GetString(self, long from, long to) -> String"""
2000 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
2002 def GetClassDefaultAttributes(*args
, **kwargs
):
2004 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2006 Get the default attributes for this class. This is useful if you want
2007 to use the same font or colour in your own control as in a standard
2008 control -- which is a much better idea than hard coding specific
2009 colours or fonts which might look completely out of place on the
2010 user's system, especially if it uses themes.
2012 The variant parameter is only relevant under Mac currently and is
2013 ignore under other platforms. Under Mac, it will change the size of
2014 the returned font. See `wx.Window.SetWindowVariant` for more about
2017 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2019 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2021 class TextCtrlPtr(TextCtrl
):
2022 def __init__(self
, this
):
2024 if not hasattr(self
,"thisown"): self
.thisown
= 0
2025 self
.__class
__ = TextCtrl
2026 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
2028 def PreTextCtrl(*args
, **kwargs
):
2029 """PreTextCtrl() -> TextCtrl"""
2030 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
2034 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2036 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2038 Get the default attributes for this class. This is useful if you want
2039 to use the same font or colour in your own control as in a standard
2040 control -- which is a much better idea than hard coding specific
2041 colours or fonts which might look completely out of place on the
2042 user's system, especially if it uses themes.
2044 The variant parameter is only relevant under Mac currently and is
2045 ignore under other platforms. Under Mac, it will change the size of
2046 the returned font. See `wx.Window.SetWindowVariant` for more about
2049 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2051 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
2052 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
2053 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
2054 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
2055 class TextUrlEvent(_core
.CommandEvent
):
2056 """Proxy of C++ TextUrlEvent class"""
2058 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2059 def __init__(self
, *args
, **kwargs
):
2060 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
2061 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
2062 self
.this
= newobj
.this
2065 def GetMouseEvent(*args
, **kwargs
):
2066 """GetMouseEvent(self) -> MouseEvent"""
2067 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
2069 def GetURLStart(*args
, **kwargs
):
2070 """GetURLStart(self) -> long"""
2071 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
2073 def GetURLEnd(*args
, **kwargs
):
2074 """GetURLEnd(self) -> long"""
2075 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
2078 class TextUrlEventPtr(TextUrlEvent
):
2079 def __init__(self
, this
):
2081 if not hasattr(self
,"thisown"): self
.thisown
= 0
2082 self
.__class
__ = TextUrlEvent
2083 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
2085 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
2086 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
2087 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
2088 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
2090 #---------------------------------------------------------------------------
2092 class ScrollBar(_core
.Control
):
2093 """Proxy of C++ ScrollBar class"""
2095 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2096 def __init__(self
, *args
, **kwargs
):
2098 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2099 Size size=DefaultSize, long style=SB_HORIZONTAL,
2100 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
2102 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
2103 self
.this
= newobj
.this
2106 self
._setOORInfo
(self
)
2108 def Create(*args
, **kwargs
):
2110 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2111 Size size=DefaultSize, long style=SB_HORIZONTAL,
2112 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2114 Do the 2nd phase and create the GUI control.
2116 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2118 def GetThumbPosition(*args
, **kwargs
):
2119 """GetThumbPosition(self) -> int"""
2120 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2122 def GetThumbSize(*args
, **kwargs
):
2123 """GetThumbSize(self) -> int"""
2124 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2126 GetThumbLength
= GetThumbSize
2127 def GetPageSize(*args
, **kwargs
):
2128 """GetPageSize(self) -> int"""
2129 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2131 def GetRange(*args
, **kwargs
):
2132 """GetRange(self) -> int"""
2133 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2135 def IsVertical(*args
, **kwargs
):
2136 """IsVertical(self) -> bool"""
2137 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2139 def SetThumbPosition(*args
, **kwargs
):
2140 """SetThumbPosition(self, int viewStart)"""
2141 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2143 def SetScrollbar(*args
, **kwargs
):
2145 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
2148 Sets the scrollbar properties of a built-in scrollbar.
2150 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
2152 def GetClassDefaultAttributes(*args
, **kwargs
):
2154 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2156 Get the default attributes for this class. This is useful if you want
2157 to use the same font or colour in your own control as in a standard
2158 control -- which is a much better idea than hard coding specific
2159 colours or fonts which might look completely out of place on the
2160 user's system, especially if it uses themes.
2162 The variant parameter is only relevant under Mac currently and is
2163 ignore under other platforms. Under Mac, it will change the size of
2164 the returned font. See `wx.Window.SetWindowVariant` for more about
2167 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2169 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2171 class ScrollBarPtr(ScrollBar
):
2172 def __init__(self
, this
):
2174 if not hasattr(self
,"thisown"): self
.thisown
= 0
2175 self
.__class
__ = ScrollBar
2176 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
2177 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2179 def PreScrollBar(*args
, **kwargs
):
2180 """PreScrollBar() -> ScrollBar"""
2181 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2185 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2187 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2189 Get the default attributes for this class. This is useful if you want
2190 to use the same font or colour in your own control as in a standard
2191 control -- which is a much better idea than hard coding specific
2192 colours or fonts which might look completely out of place on the
2193 user's system, especially if it uses themes.
2195 The variant parameter is only relevant under Mac currently and is
2196 ignore under other platforms. Under Mac, it will change the size of
2197 the returned font. See `wx.Window.SetWindowVariant` for more about
2200 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2202 #---------------------------------------------------------------------------
2204 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2205 SP_VERTICAL
= _controls_
.SP_VERTICAL
2206 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2207 SP_WRAP
= _controls_
.SP_WRAP
2208 class SpinButton(_core
.Control
):
2209 """Proxy of C++ SpinButton class"""
2211 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2212 def __init__(self
, *args
, **kwargs
):
2214 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2215 Size size=DefaultSize, long style=SP_HORIZONTAL,
2216 String name=SPIN_BUTTON_NAME) -> SpinButton
2218 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
2219 self
.this
= newobj
.this
2222 self
._setOORInfo
(self
)
2224 def Create(*args
, **kwargs
):
2226 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2227 Size size=DefaultSize, long style=SP_HORIZONTAL,
2228 String name=SPIN_BUTTON_NAME) -> bool
2230 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2232 def GetValue(*args
, **kwargs
):
2233 """GetValue(self) -> int"""
2234 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2236 def GetMin(*args
, **kwargs
):
2237 """GetMin(self) -> int"""
2238 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2240 def GetMax(*args
, **kwargs
):
2241 """GetMax(self) -> int"""
2242 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2244 def SetValue(*args
, **kwargs
):
2245 """SetValue(self, int val)"""
2246 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2248 def SetMin(*args
, **kwargs
):
2249 """SetMin(self, int minVal)"""
2250 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2252 def SetMax(*args
, **kwargs
):
2253 """SetMax(self, int maxVal)"""
2254 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2256 def SetRange(*args
, **kwargs
):
2257 """SetRange(self, int minVal, int maxVal)"""
2258 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2260 def IsVertical(*args
, **kwargs
):
2261 """IsVertical(self) -> bool"""
2262 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2264 def GetClassDefaultAttributes(*args
, **kwargs
):
2266 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2268 Get the default attributes for this class. This is useful if you want
2269 to use the same font or colour in your own control as in a standard
2270 control -- which is a much better idea than hard coding specific
2271 colours or fonts which might look completely out of place on the
2272 user's system, especially if it uses themes.
2274 The variant parameter is only relevant under Mac currently and is
2275 ignore under other platforms. Under Mac, it will change the size of
2276 the returned font. See `wx.Window.SetWindowVariant` for more about
2279 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2281 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2283 class SpinButtonPtr(SpinButton
):
2284 def __init__(self
, this
):
2286 if not hasattr(self
,"thisown"): self
.thisown
= 0
2287 self
.__class
__ = SpinButton
2288 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
2289 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2290 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2292 def PreSpinButton(*args
, **kwargs
):
2293 """PreSpinButton() -> SpinButton"""
2294 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2298 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2300 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2302 Get the default attributes for this class. This is useful if you want
2303 to use the same font or colour in your own control as in a standard
2304 control -- which is a much better idea than hard coding specific
2305 colours or fonts which might look completely out of place on the
2306 user's system, especially if it uses themes.
2308 The variant parameter is only relevant under Mac currently and is
2309 ignore under other platforms. Under Mac, it will change the size of
2310 the returned font. See `wx.Window.SetWindowVariant` for more about
2313 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2315 class SpinCtrl(_core
.Control
):
2316 """Proxy of C++ SpinCtrl class"""
2318 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2319 def __init__(self
, *args
, **kwargs
):
2321 __init__(self, Window parent, int id=-1, String value=EmptyString,
2322 Point pos=DefaultPosition, Size size=DefaultSize,
2323 long style=SP_ARROW_KEYS, int min=0, int max=100,
2324 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2326 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
2327 self
.this
= newobj
.this
2330 self
._setOORInfo
(self
)
2332 def Create(*args
, **kwargs
):
2334 Create(self, Window parent, int id=-1, String value=EmptyString,
2335 Point pos=DefaultPosition, Size size=DefaultSize,
2336 long style=SP_ARROW_KEYS, int min=0, int max=100,
2337 int initial=0, String name=SpinCtrlNameStr) -> bool
2339 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2341 def GetValue(*args
, **kwargs
):
2342 """GetValue(self) -> int"""
2343 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2345 def SetValue(*args
, **kwargs
):
2346 """SetValue(self, int value)"""
2347 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2349 def SetValueString(*args
, **kwargs
):
2350 """SetValueString(self, String text)"""
2351 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2353 def SetRange(*args
, **kwargs
):
2354 """SetRange(self, int minVal, int maxVal)"""
2355 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2357 def GetMin(*args
, **kwargs
):
2358 """GetMin(self) -> int"""
2359 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2361 def GetMax(*args
, **kwargs
):
2362 """GetMax(self) -> int"""
2363 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2365 def SetSelection(*args
, **kwargs
):
2366 """SetSelection(self, long from, long to)"""
2367 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2369 def GetClassDefaultAttributes(*args
, **kwargs
):
2371 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2373 Get the default attributes for this class. This is useful if you want
2374 to use the same font or colour in your own control as in a standard
2375 control -- which is a much better idea than hard coding specific
2376 colours or fonts which might look completely out of place on the
2377 user's system, especially if it uses themes.
2379 The variant parameter is only relevant under Mac currently and is
2380 ignore under other platforms. Under Mac, it will change the size of
2381 the returned font. See `wx.Window.SetWindowVariant` for more about
2384 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2386 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2388 class SpinCtrlPtr(SpinCtrl
):
2389 def __init__(self
, this
):
2391 if not hasattr(self
,"thisown"): self
.thisown
= 0
2392 self
.__class
__ = SpinCtrl
2393 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
2395 def PreSpinCtrl(*args
, **kwargs
):
2396 """PreSpinCtrl() -> SpinCtrl"""
2397 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2401 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2403 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2405 Get the default attributes for this class. This is useful if you want
2406 to use the same font or colour in your own control as in a standard
2407 control -- which is a much better idea than hard coding specific
2408 colours or fonts which might look completely out of place on the
2409 user's system, especially if it uses themes.
2411 The variant parameter is only relevant under Mac currently and is
2412 ignore under other platforms. Under Mac, it will change the size of
2413 the returned font. See `wx.Window.SetWindowVariant` for more about
2416 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2418 class SpinEvent(_core
.NotifyEvent
):
2419 """Proxy of C++ SpinEvent class"""
2421 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2422 def __init__(self
, *args
, **kwargs
):
2423 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2424 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
2425 self
.this
= newobj
.this
2428 def GetPosition(*args
, **kwargs
):
2429 """GetPosition(self) -> int"""
2430 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2432 def SetPosition(*args
, **kwargs
):
2433 """SetPosition(self, int pos)"""
2434 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2437 class SpinEventPtr(SpinEvent
):
2438 def __init__(self
, this
):
2440 if not hasattr(self
,"thisown"): self
.thisown
= 0
2441 self
.__class
__ = SpinEvent
2442 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
2444 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2445 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2446 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2447 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2448 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2450 #---------------------------------------------------------------------------
2452 class RadioBox(_core
.Control
):
2453 """Proxy of C++ RadioBox class"""
2455 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2456 def __init__(self
, *args
, **kwargs
):
2458 __init__(self, Window parent, int id=-1, String label=EmptyString,
2459 Point pos=DefaultPosition, Size size=DefaultSize,
2460 wxArrayString choices=wxPyEmptyStringArray,
2461 int majorDimension=0, long style=RA_HORIZONTAL,
2462 Validator validator=DefaultValidator,
2463 String name=RadioBoxNameStr) -> RadioBox
2465 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2466 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
2467 self
.this
= newobj
.this
2470 self
._setOORInfo
(self
)
2472 def Create(*args
, **kwargs
):
2474 Create(self, Window parent, int id=-1, String label=EmptyString,
2475 Point pos=DefaultPosition, Size size=DefaultSize,
2476 wxArrayString choices=wxPyEmptyStringArray,
2477 int majorDimension=0, long style=RA_HORIZONTAL,
2478 Validator validator=DefaultValidator,
2479 String name=RadioBoxNameStr) -> bool
2481 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2483 def SetSelection(*args
, **kwargs
):
2484 """SetSelection(self, int n)"""
2485 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2487 def GetSelection(*args
, **kwargs
):
2488 """GetSelection(self) -> int"""
2489 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2491 def GetStringSelection(*args
, **kwargs
):
2492 """GetStringSelection(self) -> String"""
2493 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2495 def SetStringSelection(*args
, **kwargs
):
2496 """SetStringSelection(self, String s) -> bool"""
2497 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2499 def GetCount(*args
, **kwargs
):
2500 """GetCount(self) -> int"""
2501 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2503 def FindString(*args
, **kwargs
):
2504 """FindString(self, String s) -> int"""
2505 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2507 def GetString(*args
, **kwargs
):
2508 """GetString(self, int n) -> String"""
2509 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2511 def SetString(*args
, **kwargs
):
2512 """SetString(self, int n, String label)"""
2513 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2515 GetItemLabel
= GetString
2516 SetItemLabel
= SetString
2517 def EnableItem(*args
, **kwargs
):
2518 """EnableItem(self, int n, bool enable=True)"""
2519 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2521 def ShowItem(*args
, **kwargs
):
2522 """ShowItem(self, int n, bool show=True)"""
2523 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2525 def GetColumnCount(*args
, **kwargs
):
2526 """GetColumnCount(self) -> int"""
2527 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2529 def GetRowCount(*args
, **kwargs
):
2530 """GetRowCount(self) -> int"""
2531 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2533 def GetNextItem(*args
, **kwargs
):
2534 """GetNextItem(self, int item, int dir, long style) -> int"""
2535 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2537 def GetClassDefaultAttributes(*args
, **kwargs
):
2539 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2541 Get the default attributes for this class. This is useful if you want
2542 to use the same font or colour in your own control as in a standard
2543 control -- which is a much better idea than hard coding specific
2544 colours or fonts which might look completely out of place on the
2545 user's system, especially if it uses themes.
2547 The variant parameter is only relevant under Mac currently and is
2548 ignore under other platforms. Under Mac, it will change the size of
2549 the returned font. See `wx.Window.SetWindowVariant` for more about
2552 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2554 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2556 class RadioBoxPtr(RadioBox
):
2557 def __init__(self
, this
):
2559 if not hasattr(self
,"thisown"): self
.thisown
= 0
2560 self
.__class
__ = RadioBox
2561 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2562 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2563 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2565 def PreRadioBox(*args
, **kwargs
):
2566 """PreRadioBox() -> RadioBox"""
2567 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2571 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2573 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2575 Get the default attributes for this class. This is useful if you want
2576 to use the same font or colour in your own control as in a standard
2577 control -- which is a much better idea than hard coding specific
2578 colours or fonts which might look completely out of place on the
2579 user's system, especially if it uses themes.
2581 The variant parameter is only relevant under Mac currently and is
2582 ignore under other platforms. Under Mac, it will change the size of
2583 the returned font. See `wx.Window.SetWindowVariant` for more about
2586 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2588 #---------------------------------------------------------------------------
2590 class RadioButton(_core
.Control
):
2591 """Proxy of C++ RadioButton class"""
2593 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2594 def __init__(self
, *args
, **kwargs
):
2596 __init__(self, Window parent, int id=-1, String label=EmptyString,
2597 Point pos=DefaultPosition, Size size=DefaultSize,
2598 long style=0, Validator validator=DefaultValidator,
2599 String name=RadioButtonNameStr) -> RadioButton
2601 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2602 self
.this
= newobj
.this
2605 self
._setOORInfo
(self
)
2607 def Create(*args
, **kwargs
):
2609 Create(self, Window parent, int id=-1, String label=EmptyString,
2610 Point pos=DefaultPosition, Size size=DefaultSize,
2611 long style=0, Validator validator=DefaultValidator,
2612 String name=RadioButtonNameStr) -> bool
2614 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2616 def GetValue(*args
, **kwargs
):
2617 """GetValue(self) -> bool"""
2618 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2620 def SetValue(*args
, **kwargs
):
2621 """SetValue(self, bool value)"""
2622 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2624 def GetClassDefaultAttributes(*args
, **kwargs
):
2626 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2628 Get the default attributes for this class. This is useful if you want
2629 to use the same font or colour in your own control as in a standard
2630 control -- which is a much better idea than hard coding specific
2631 colours or fonts which might look completely out of place on the
2632 user's system, especially if it uses themes.
2634 The variant parameter is only relevant under Mac currently and is
2635 ignore under other platforms. Under Mac, it will change the size of
2636 the returned font. See `wx.Window.SetWindowVariant` for more about
2639 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2641 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2643 class RadioButtonPtr(RadioButton
):
2644 def __init__(self
, this
):
2646 if not hasattr(self
,"thisown"): self
.thisown
= 0
2647 self
.__class
__ = RadioButton
2648 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2650 def PreRadioButton(*args
, **kwargs
):
2651 """PreRadioButton() -> RadioButton"""
2652 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2656 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2658 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2660 Get the default attributes for this class. This is useful if you want
2661 to use the same font or colour in your own control as in a standard
2662 control -- which is a much better idea than hard coding specific
2663 colours or fonts which might look completely out of place on the
2664 user's system, especially if it uses themes.
2666 The variant parameter is only relevant under Mac currently and is
2667 ignore under other platforms. Under Mac, it will change the size of
2668 the returned font. See `wx.Window.SetWindowVariant` for more about
2671 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2673 #---------------------------------------------------------------------------
2675 class Slider(_core
.Control
):
2676 """Proxy of C++ Slider class"""
2678 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2679 def __init__(self
, *args
, **kwargs
):
2681 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2682 int maxValue=100, Point pos=DefaultPosition,
2683 Size size=DefaultSize, long style=SL_HORIZONTAL,
2684 Validator validator=DefaultValidator,
2685 String name=SliderNameStr) -> Slider
2687 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2688 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2689 self
.this
= newobj
.this
2692 self
._setOORInfo
(self
)
2694 def Create(*args
, **kwargs
):
2696 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2697 int maxValue=100, Point pos=DefaultPosition,
2698 Size size=DefaultSize, long style=SL_HORIZONTAL,
2699 Validator validator=DefaultValidator,
2700 String name=SliderNameStr) -> bool
2702 return _controls_
.Slider_Create(*args
, **kwargs
)
2704 def GetValue(*args
, **kwargs
):
2705 """GetValue(self) -> int"""
2706 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2708 def SetValue(*args
, **kwargs
):
2709 """SetValue(self, int value)"""
2710 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2712 def SetRange(*args
, **kwargs
):
2713 """SetRange(self, int minValue, int maxValue)"""
2714 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2716 def GetMin(*args
, **kwargs
):
2717 """GetMin(self) -> int"""
2718 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2720 def GetMax(*args
, **kwargs
):
2721 """GetMax(self) -> int"""
2722 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2724 def SetMin(*args
, **kwargs
):
2725 """SetMin(self, int minValue)"""
2726 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2728 def SetMax(*args
, **kwargs
):
2729 """SetMax(self, int maxValue)"""
2730 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2732 def SetLineSize(*args
, **kwargs
):
2733 """SetLineSize(self, int lineSize)"""
2734 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2736 def SetPageSize(*args
, **kwargs
):
2737 """SetPageSize(self, int pageSize)"""
2738 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2740 def GetLineSize(*args
, **kwargs
):
2741 """GetLineSize(self) -> int"""
2742 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2744 def GetPageSize(*args
, **kwargs
):
2745 """GetPageSize(self) -> int"""
2746 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2748 def SetThumbLength(*args
, **kwargs
):
2749 """SetThumbLength(self, int lenPixels)"""
2750 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2752 def GetThumbLength(*args
, **kwargs
):
2753 """GetThumbLength(self) -> int"""
2754 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2756 def SetTickFreq(*args
, **kwargs
):
2757 """SetTickFreq(self, int n, int pos=1)"""
2758 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2760 def GetTickFreq(*args
, **kwargs
):
2761 """GetTickFreq(self) -> int"""
2762 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2764 def ClearTicks(*args
, **kwargs
):
2765 """ClearTicks(self)"""
2766 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2768 def SetTick(*args
, **kwargs
):
2769 """SetTick(self, int tickPos)"""
2770 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2772 def ClearSel(*args
, **kwargs
):
2773 """ClearSel(self)"""
2774 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2776 def GetSelEnd(*args
, **kwargs
):
2777 """GetSelEnd(self) -> int"""
2778 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2780 def GetSelStart(*args
, **kwargs
):
2781 """GetSelStart(self) -> int"""
2782 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2784 def SetSelection(*args
, **kwargs
):
2785 """SetSelection(self, int min, int max)"""
2786 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2788 def GetClassDefaultAttributes(*args
, **kwargs
):
2790 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2792 Get the default attributes for this class. This is useful if you want
2793 to use the same font or colour in your own control as in a standard
2794 control -- which is a much better idea than hard coding specific
2795 colours or fonts which might look completely out of place on the
2796 user's system, especially if it uses themes.
2798 The variant parameter is only relevant under Mac currently and is
2799 ignore under other platforms. Under Mac, it will change the size of
2800 the returned font. See `wx.Window.SetWindowVariant` for more about
2803 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2805 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2807 class SliderPtr(Slider
):
2808 def __init__(self
, this
):
2810 if not hasattr(self
,"thisown"): self
.thisown
= 0
2811 self
.__class
__ = Slider
2812 _controls_
.Slider_swigregister(SliderPtr
)
2813 SliderNameStr
= cvar
.SliderNameStr
2815 def PreSlider(*args
, **kwargs
):
2816 """PreSlider() -> Slider"""
2817 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2821 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2823 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2825 Get the default attributes for this class. This is useful if you want
2826 to use the same font or colour in your own control as in a standard
2827 control -- which is a much better idea than hard coding specific
2828 colours or fonts which might look completely out of place on the
2829 user's system, especially if it uses themes.
2831 The variant parameter is only relevant under Mac currently and is
2832 ignore under other platforms. Under Mac, it will change the size of
2833 the returned font. See `wx.Window.SetWindowVariant` for more about
2836 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2838 #---------------------------------------------------------------------------
2840 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2841 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2843 class ToggleButton(_core
.Control
):
2844 """Proxy of C++ ToggleButton class"""
2846 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2847 def __init__(self
, *args
, **kwargs
):
2849 __init__(self, Window parent, int id=-1, String label=EmptyString,
2850 Point pos=DefaultPosition, Size size=DefaultSize,
2851 long style=0, Validator validator=DefaultValidator,
2852 String name=ToggleButtonNameStr) -> ToggleButton
2854 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2855 self
.this
= newobj
.this
2858 self
._setOORInfo
(self
)
2860 def Create(*args
, **kwargs
):
2862 Create(self, Window parent, int id=-1, String label=EmptyString,
2863 Point pos=DefaultPosition, Size size=DefaultSize,
2864 long style=0, Validator validator=DefaultValidator,
2865 String name=ToggleButtonNameStr) -> bool
2867 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2869 def SetValue(*args
, **kwargs
):
2870 """SetValue(self, bool value)"""
2871 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2873 def GetValue(*args
, **kwargs
):
2874 """GetValue(self) -> bool"""
2875 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2877 def SetLabel(*args
, **kwargs
):
2879 SetLabel(self, String label)
2881 Sets the item's text.
2883 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2885 def GetClassDefaultAttributes(*args
, **kwargs
):
2887 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2889 Get the default attributes for this class. This is useful if you want
2890 to use the same font or colour in your own control as in a standard
2891 control -- which is a much better idea than hard coding specific
2892 colours or fonts which might look completely out of place on the
2893 user's system, especially if it uses themes.
2895 The variant parameter is only relevant under Mac currently and is
2896 ignore under other platforms. Under Mac, it will change the size of
2897 the returned font. See `wx.Window.SetWindowVariant` for more about
2900 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2902 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2904 class ToggleButtonPtr(ToggleButton
):
2905 def __init__(self
, this
):
2907 if not hasattr(self
,"thisown"): self
.thisown
= 0
2908 self
.__class
__ = ToggleButton
2909 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2910 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2912 def PreToggleButton(*args
, **kwargs
):
2913 """PreToggleButton() -> ToggleButton"""
2914 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2918 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2920 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2922 Get the default attributes for this class. This is useful if you want
2923 to use the same font or colour in your own control as in a standard
2924 control -- which is a much better idea than hard coding specific
2925 colours or fonts which might look completely out of place on the
2926 user's system, especially if it uses themes.
2928 The variant parameter is only relevant under Mac currently and is
2929 ignore under other platforms. Under Mac, it will change the size of
2930 the returned font. See `wx.Window.SetWindowVariant` for more about
2933 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2935 #---------------------------------------------------------------------------
2937 class BookCtrlBase(_core
.Control
):
2938 """Proxy of C++ BookCtrlBase class"""
2939 def __init__(self
): raise RuntimeError, "No constructor defined"
2941 return "<%s.%s; proxy of C++ wxBookCtrlBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2942 def GetPageCount(*args
, **kwargs
):
2943 """GetPageCount(self) -> size_t"""
2944 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2946 def GetPage(*args
, **kwargs
):
2947 """GetPage(self, size_t n) -> Window"""
2948 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2950 def GetCurrentPage(*args
, **kwargs
):
2951 """GetCurrentPage(self) -> Window"""
2952 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2954 def GetSelection(*args
, **kwargs
):
2955 """GetSelection(self) -> int"""
2956 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2958 def SetPageText(*args
, **kwargs
):
2959 """SetPageText(self, size_t n, String strText) -> bool"""
2960 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2962 def GetPageText(*args
, **kwargs
):
2963 """GetPageText(self, size_t n) -> String"""
2964 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2966 def SetImageList(*args
, **kwargs
):
2967 """SetImageList(self, ImageList imageList)"""
2968 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2970 def AssignImageList(*args
, **kwargs
):
2971 """AssignImageList(self, ImageList imageList)"""
2972 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2974 def GetImageList(*args
, **kwargs
):
2975 """GetImageList(self) -> ImageList"""
2976 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2978 def GetPageImage(*args
, **kwargs
):
2979 """GetPageImage(self, size_t n) -> int"""
2980 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2982 def SetPageImage(*args
, **kwargs
):
2983 """SetPageImage(self, size_t n, int imageId) -> bool"""
2984 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2986 def SetPageSize(*args
, **kwargs
):
2987 """SetPageSize(self, Size size)"""
2988 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2990 def CalcSizeFromPage(*args
, **kwargs
):
2991 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2992 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2994 def DeletePage(*args
, **kwargs
):
2995 """DeletePage(self, size_t n) -> bool"""
2996 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2998 def RemovePage(*args
, **kwargs
):
2999 """RemovePage(self, size_t n) -> bool"""
3000 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
3002 def DeleteAllPages(*args
, **kwargs
):
3003 """DeleteAllPages(self) -> bool"""
3004 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
3006 def AddPage(*args
, **kwargs
):
3007 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
3008 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
3010 def InsertPage(*args
, **kwargs
):
3012 InsertPage(self, size_t n, Window page, String text, bool select=False,
3013 int imageId=-1) -> bool
3015 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
3017 def SetSelection(*args
, **kwargs
):
3018 """SetSelection(self, size_t n) -> int"""
3019 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
3021 def AdvanceSelection(*args
, **kwargs
):
3022 """AdvanceSelection(self, bool forward=True)"""
3023 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
3025 def GetClassDefaultAttributes(*args
, **kwargs
):
3027 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3029 Get the default attributes for this class. This is useful if you want
3030 to use the same font or colour in your own control as in a standard
3031 control -- which is a much better idea than hard coding specific
3032 colours or fonts which might look completely out of place on the
3033 user's system, especially if it uses themes.
3035 The variant parameter is only relevant under Mac currently and is
3036 ignore under other platforms. Under Mac, it will change the size of
3037 the returned font. See `wx.Window.SetWindowVariant` for more about
3040 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3042 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3044 class BookCtrlBasePtr(BookCtrlBase
):
3045 def __init__(self
, this
):
3047 if not hasattr(self
,"thisown"): self
.thisown
= 0
3048 self
.__class
__ = BookCtrlBase
3049 _controls_
.BookCtrlBase_swigregister(BookCtrlBasePtr
)
3050 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
3052 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
3054 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3056 Get the default attributes for this class. This is useful if you want
3057 to use the same font or colour in your own control as in a standard
3058 control -- which is a much better idea than hard coding specific
3059 colours or fonts which might look completely out of place on the
3060 user's system, especially if it uses themes.
3062 The variant parameter is only relevant under Mac currently and is
3063 ignore under other platforms. Under Mac, it will change the size of
3064 the returned font. See `wx.Window.SetWindowVariant` for more about
3067 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3069 class BookCtrlBaseEvent(_core
.NotifyEvent
):
3070 """Proxy of C++ BookCtrlBaseEvent class"""
3072 return "<%s.%s; proxy of C++ wxBookCtrlBaseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3073 def __init__(self
, *args
, **kwargs
):
3075 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3076 int nOldSel=-1) -> BookCtrlBaseEvent
3078 newobj
= _controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
)
3079 self
.this
= newobj
.this
3082 def GetSelection(*args
, **kwargs
):
3083 """GetSelection(self) -> int"""
3084 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
3086 def SetSelection(*args
, **kwargs
):
3087 """SetSelection(self, int nSel)"""
3088 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
3090 def GetOldSelection(*args
, **kwargs
):
3091 """GetOldSelection(self) -> int"""
3092 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
3094 def SetOldSelection(*args
, **kwargs
):
3095 """SetOldSelection(self, int nOldSel)"""
3096 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
3099 class BookCtrlBaseEventPtr(BookCtrlBaseEvent
):
3100 def __init__(self
, this
):
3102 if not hasattr(self
,"thisown"): self
.thisown
= 0
3103 self
.__class
__ = BookCtrlBaseEvent
3104 _controls_
.BookCtrlBaseEvent_swigregister(BookCtrlBaseEventPtr
)
3106 #---------------------------------------------------------------------------
3108 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
3109 NB_TOP
= _controls_
.NB_TOP
3110 NB_LEFT
= _controls_
.NB_LEFT
3111 NB_RIGHT
= _controls_
.NB_RIGHT
3112 NB_BOTTOM
= _controls_
.NB_BOTTOM
3113 NB_MULTILINE
= _controls_
.NB_MULTILINE
3114 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
3115 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
3116 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
3117 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
3118 class Notebook(BookCtrlBase
):
3119 """Proxy of C++ Notebook class"""
3121 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3122 def __init__(self
, *args
, **kwargs
):
3124 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3125 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
3127 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
3128 self
.this
= newobj
.this
3131 self
._setOORInfo
(self
)
3133 def Create(*args
, **kwargs
):
3135 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3136 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool
3138 return _controls_
.Notebook_Create(*args
, **kwargs
)
3140 def GetRowCount(*args
, **kwargs
):
3141 """GetRowCount(self) -> int"""
3142 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3144 def SetPadding(*args
, **kwargs
):
3145 """SetPadding(self, Size padding)"""
3146 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3148 def SetTabSize(*args
, **kwargs
):
3149 """SetTabSize(self, Size sz)"""
3150 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3152 def HitTest(*args
, **kwargs
):
3154 HitTest(Point pt) -> (tab, where)
3156 Returns the tab which is hit, and flags indicating where using
3157 wx.NB_HITTEST flags.
3159 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3161 def CalcSizeFromPage(*args
, **kwargs
):
3162 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3163 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
3165 def GetClassDefaultAttributes(*args
, **kwargs
):
3167 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3169 Get the default attributes for this class. This is useful if you want
3170 to use the same font or colour in your own control as in a standard
3171 control -- which is a much better idea than hard coding specific
3172 colours or fonts which might look completely out of place on the
3173 user's system, especially if it uses themes.
3175 The variant parameter is only relevant under Mac currently and is
3176 ignore under other platforms. Under Mac, it will change the size of
3177 the returned font. See `wx.Window.SetWindowVariant` for more about
3180 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3182 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3184 class NotebookPtr(Notebook
):
3185 def __init__(self
, this
):
3187 if not hasattr(self
,"thisown"): self
.thisown
= 0
3188 self
.__class
__ = Notebook
3189 _controls_
.Notebook_swigregister(NotebookPtr
)
3191 def PreNotebook(*args
, **kwargs
):
3192 """PreNotebook() -> Notebook"""
3193 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3197 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3199 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3201 Get the default attributes for this class. This is useful if you want
3202 to use the same font or colour in your own control as in a standard
3203 control -- which is a much better idea than hard coding specific
3204 colours or fonts which might look completely out of place on the
3205 user's system, especially if it uses themes.
3207 The variant parameter is only relevant under Mac currently and is
3208 ignore under other platforms. Under Mac, it will change the size of
3209 the returned font. See `wx.Window.SetWindowVariant` for more about
3212 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3214 class NotebookEvent(BookCtrlBaseEvent
):
3215 """Proxy of C++ NotebookEvent class"""
3217 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3218 def __init__(self
, *args
, **kwargs
):
3220 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3221 int nOldSel=-1) -> NotebookEvent
3223 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3224 self
.this
= newobj
.this
3228 class NotebookEventPtr(NotebookEvent
):
3229 def __init__(self
, this
):
3231 if not hasattr(self
,"thisown"): self
.thisown
= 0
3232 self
.__class
__ = NotebookEvent
3233 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3235 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3236 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3238 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3239 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3241 #----------------------------------------------------------------------------
3243 class NotebookPage(wx
.Panel
):
3245 There is an old (and apparently unsolvable) bug when placing a
3246 window with a nonstandard background colour in a wxNotebook on
3247 wxGTK, as the notbooks's background colour would always be used
3248 when the window is refreshed. The solution is to place a panel in
3249 the notbook and the coloured window on the panel, sized to cover
3250 the panel. This simple class does that for you, just put an
3251 instance of this in the notebook and make your regular window a
3252 child of this one and it will handle the resize for you.
3254 def __init__(self
, parent
, id=-1,
3255 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3256 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3257 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3259 EVT_SIZE(self
, self
.OnSize
)
3261 def OnSize(self
, evt
):
3262 if self
.child
is None:
3263 children
= self
.GetChildren()
3265 self
.child
= children
[0]
3267 self
.child
.SetPosition((0,0))
3268 self
.child
.SetSize(self
.GetSize())
3271 #---------------------------------------------------------------------------
3273 LB_DEFAULT
= _controls_
.LB_DEFAULT
3274 LB_TOP
= _controls_
.LB_TOP
3275 LB_BOTTOM
= _controls_
.LB_BOTTOM
3276 LB_LEFT
= _controls_
.LB_LEFT
3277 LB_RIGHT
= _controls_
.LB_RIGHT
3278 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3279 class Listbook(BookCtrlBase
):
3280 """Proxy of C++ Listbook class"""
3282 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3283 def __init__(self
, *args
, **kwargs
):
3285 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3286 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3288 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3289 self
.this
= newobj
.this
3292 self
._setOORInfo
(self
)
3294 def Create(*args
, **kwargs
):
3296 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3297 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3299 return _controls_
.Listbook_Create(*args
, **kwargs
)
3301 def IsVertical(*args
, **kwargs
):
3302 """IsVertical(self) -> bool"""
3303 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
3305 def GetListView(*args
, **kwargs
):
3306 """GetListView(self) -> ListView"""
3307 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3310 class ListbookPtr(Listbook
):
3311 def __init__(self
, this
):
3313 if not hasattr(self
,"thisown"): self
.thisown
= 0
3314 self
.__class
__ = Listbook
3315 _controls_
.Listbook_swigregister(ListbookPtr
)
3317 def PreListbook(*args
, **kwargs
):
3318 """PreListbook() -> Listbook"""
3319 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3323 class ListbookEvent(BookCtrlBaseEvent
):
3324 """Proxy of C++ ListbookEvent class"""
3326 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3327 def __init__(self
, *args
, **kwargs
):
3329 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3330 int nOldSel=-1) -> ListbookEvent
3332 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3333 self
.this
= newobj
.this
3337 class ListbookEventPtr(ListbookEvent
):
3338 def __init__(self
, this
):
3340 if not hasattr(self
,"thisown"): self
.thisown
= 0
3341 self
.__class
__ = ListbookEvent
3342 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3344 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3345 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3346 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3347 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3349 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3350 CHB_TOP
= _controls_
.CHB_TOP
3351 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3352 CHB_LEFT
= _controls_
.CHB_LEFT
3353 CHB_RIGHT
= _controls_
.CHB_RIGHT
3354 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3355 class Choicebook(BookCtrlBase
):
3356 """Proxy of C++ Choicebook class"""
3358 return "<%s.%s; proxy of C++ wxChoicebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3359 def __init__(self
, *args
, **kwargs
):
3361 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3362 long style=0, String name=EmptyString) -> Choicebook
3364 newobj
= _controls_
.new_Choicebook(*args
, **kwargs
)
3365 self
.this
= newobj
.this
3368 self
._setOORInfo
(self
)
3370 def Create(*args
, **kwargs
):
3372 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3373 long style=0, String name=EmptyString) -> bool
3375 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3377 def IsVertical(*args
, **kwargs
):
3378 """IsVertical(self) -> bool"""
3379 return _controls_
.Choicebook_IsVertical(*args
, **kwargs
)
3381 def DeleteAllPages(*args
, **kwargs
):
3382 """DeleteAllPages(self) -> bool"""
3383 return _controls_
.Choicebook_DeleteAllPages(*args
, **kwargs
)
3386 class ChoicebookPtr(Choicebook
):
3387 def __init__(self
, this
):
3389 if not hasattr(self
,"thisown"): self
.thisown
= 0
3390 self
.__class
__ = Choicebook
3391 _controls_
.Choicebook_swigregister(ChoicebookPtr
)
3393 def PreChoicebook(*args
, **kwargs
):
3394 """PreChoicebook() -> Choicebook"""
3395 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3399 class ChoicebookEvent(BookCtrlBaseEvent
):
3400 """Proxy of C++ ChoicebookEvent class"""
3402 return "<%s.%s; proxy of C++ wxChoicebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3403 def __init__(self
, *args
, **kwargs
):
3405 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3406 int nOldSel=-1) -> ChoicebookEvent
3408 newobj
= _controls_
.new_ChoicebookEvent(*args
, **kwargs
)
3409 self
.this
= newobj
.this
3413 class ChoicebookEventPtr(ChoicebookEvent
):
3414 def __init__(self
, this
):
3416 if not hasattr(self
,"thisown"): self
.thisown
= 0
3417 self
.__class
__ = ChoicebookEvent
3418 _controls_
.ChoicebookEvent_swigregister(ChoicebookEventPtr
)
3420 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3421 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3422 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3423 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3425 #---------------------------------------------------------------------------
3427 class BookCtrlSizer(_core
.Sizer
):
3428 """Proxy of C++ BookCtrlSizer class"""
3430 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3431 def __init__(self
, *args
, **kwargs
):
3432 """__init__(self, BookCtrlBase nb) -> BookCtrlSizer"""
3433 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
3434 self
.this
= newobj
.this
3437 self
._setOORInfo
(self
)
3439 def RecalcSizes(*args
, **kwargs
):
3443 Using the sizes calculated by `CalcMin` reposition and resize all the
3444 items managed by this sizer. You should not need to call this directly as
3445 it is called by `Layout`.
3447 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
3449 def CalcMin(*args
, **kwargs
):
3451 CalcMin(self) -> Size
3453 This method is where the sizer will do the actual calculation of its
3454 children's minimal sizes. You should not need to call this directly as
3455 it is called by `Layout`.
3457 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
3459 def GetControl(*args
, **kwargs
):
3460 """GetControl(self) -> BookCtrlBase"""
3461 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
3464 class BookCtrlSizerPtr(BookCtrlSizer
):
3465 def __init__(self
, this
):
3467 if not hasattr(self
,"thisown"): self
.thisown
= 0
3468 self
.__class
__ = BookCtrlSizer
3469 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
3471 class NotebookSizer(_core
.Sizer
):
3472 """Proxy of C++ NotebookSizer class"""
3474 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3475 def __init__(self
, *args
, **kwargs
):
3476 """__init__(self, Notebook nb) -> NotebookSizer"""
3477 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
3478 self
.this
= newobj
.this
3481 self
._setOORInfo
(self
)
3483 def RecalcSizes(*args
, **kwargs
):
3487 Using the sizes calculated by `CalcMin` reposition and resize all the
3488 items managed by this sizer. You should not need to call this directly as
3489 it is called by `Layout`.
3491 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
3493 def CalcMin(*args
, **kwargs
):
3495 CalcMin(self) -> Size
3497 This method is where the sizer will do the actual calculation of its
3498 children's minimal sizes. You should not need to call this directly as
3499 it is called by `Layout`.
3501 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
3503 def GetNotebook(*args
, **kwargs
):
3504 """GetNotebook(self) -> Notebook"""
3505 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
3508 class NotebookSizerPtr(NotebookSizer
):
3509 def __init__(self
, this
):
3511 if not hasattr(self
,"thisown"): self
.thisown
= 0
3512 self
.__class
__ = NotebookSizer
3513 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
3515 NotebookSizer
= wx
._deprecated
(NotebookSizer
, "NotebookSizer is no longer needed.")
3516 BookCtrlSizer
= wx
._deprecated
(BookCtrlSizer
, "BookCtrlSizer is no longer needed.")
3517 #---------------------------------------------------------------------------
3519 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3520 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3521 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3522 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3523 TB_VERTICAL
= _controls_
.TB_VERTICAL
3524 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3525 TB_FLAT
= _controls_
.TB_FLAT
3526 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3527 TB_NOICONS
= _controls_
.TB_NOICONS
3528 TB_TEXT
= _controls_
.TB_TEXT
3529 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3530 TB_NOALIGN
= _controls_
.TB_NOALIGN
3531 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3532 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3533 class ToolBarToolBase(_core
.Object
):
3534 """Proxy of C++ ToolBarToolBase class"""
3535 def __init__(self
): raise RuntimeError, "No constructor defined"
3537 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3538 def GetId(*args
, **kwargs
):
3539 """GetId(self) -> int"""
3540 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3542 def GetControl(*args
, **kwargs
):
3543 """GetControl(self) -> Control"""
3544 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3546 def GetToolBar(*args
, **kwargs
):
3547 """GetToolBar(self) -> ToolBarBase"""
3548 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3550 def IsButton(*args
, **kwargs
):
3551 """IsButton(self) -> int"""
3552 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3554 def IsControl(*args
, **kwargs
):
3555 """IsControl(self) -> int"""
3556 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3558 def IsSeparator(*args
, **kwargs
):
3559 """IsSeparator(self) -> int"""
3560 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3562 def GetStyle(*args
, **kwargs
):
3563 """GetStyle(self) -> int"""
3564 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3566 def GetKind(*args
, **kwargs
):
3567 """GetKind(self) -> int"""
3568 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3570 def IsEnabled(*args
, **kwargs
):
3571 """IsEnabled(self) -> bool"""
3572 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3574 def IsToggled(*args
, **kwargs
):
3575 """IsToggled(self) -> bool"""
3576 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3578 def CanBeToggled(*args
, **kwargs
):
3579 """CanBeToggled(self) -> bool"""
3580 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3582 def GetNormalBitmap(*args
, **kwargs
):
3583 """GetNormalBitmap(self) -> Bitmap"""
3584 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3586 def GetDisabledBitmap(*args
, **kwargs
):
3587 """GetDisabledBitmap(self) -> Bitmap"""
3588 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3590 def GetBitmap(*args
, **kwargs
):
3591 """GetBitmap(self) -> Bitmap"""
3592 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3594 def GetLabel(*args
, **kwargs
):
3595 """GetLabel(self) -> String"""
3596 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3598 def GetShortHelp(*args
, **kwargs
):
3599 """GetShortHelp(self) -> String"""
3600 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3602 def GetLongHelp(*args
, **kwargs
):
3603 """GetLongHelp(self) -> String"""
3604 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3606 def Enable(*args
, **kwargs
):
3607 """Enable(self, bool enable) -> bool"""
3608 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3610 def Toggle(*args
, **kwargs
):
3612 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3614 def SetToggle(*args
, **kwargs
):
3615 """SetToggle(self, bool toggle) -> bool"""
3616 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3618 def SetShortHelp(*args
, **kwargs
):
3619 """SetShortHelp(self, String help) -> bool"""
3620 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3622 def SetLongHelp(*args
, **kwargs
):
3623 """SetLongHelp(self, String help) -> bool"""
3624 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3626 def SetNormalBitmap(*args
, **kwargs
):
3627 """SetNormalBitmap(self, Bitmap bmp)"""
3628 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3630 def SetDisabledBitmap(*args
, **kwargs
):
3631 """SetDisabledBitmap(self, Bitmap bmp)"""
3632 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3634 def SetLabel(*args
, **kwargs
):
3635 """SetLabel(self, String label)"""
3636 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3638 def Detach(*args
, **kwargs
):
3640 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3642 def Attach(*args
, **kwargs
):
3643 """Attach(self, ToolBarBase tbar)"""
3644 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3646 def GetClientData(*args
, **kwargs
):
3647 """GetClientData(self) -> PyObject"""
3648 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3650 def SetClientData(*args
, **kwargs
):
3651 """SetClientData(self, PyObject clientData)"""
3652 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3654 GetBitmap1
= GetNormalBitmap
3655 GetBitmap2
= GetDisabledBitmap
3656 SetBitmap1
= SetNormalBitmap
3657 SetBitmap2
= SetDisabledBitmap
3660 class ToolBarToolBasePtr(ToolBarToolBase
):
3661 def __init__(self
, this
):
3663 if not hasattr(self
,"thisown"): self
.thisown
= 0
3664 self
.__class
__ = ToolBarToolBase
3665 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3667 class ToolBarBase(_core
.Control
):
3668 """Proxy of C++ ToolBarBase class"""
3669 def __init__(self
): raise RuntimeError, "No constructor defined"
3671 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3672 def DoAddTool(*args
, **kwargs
):
3674 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3675 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3676 String longHelp=EmptyString,
3677 PyObject clientData=None) -> ToolBarToolBase
3679 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3681 def DoInsertTool(*args
, **kwargs
):
3683 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3684 int kind=ITEM_NORMAL,
3685 String shortHelp=EmptyString, String longHelp=EmptyString,
3686 PyObject clientData=None) -> ToolBarToolBase
3688 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3690 # These match the original Add methods for this class, kept for
3691 # backwards compatibility with versions < 2.3.3.
3694 def AddTool(self
, id, bitmap
,
3695 pushedBitmap
= wx
.NullBitmap
,
3698 shortHelpString
= '',
3699 longHelpString
= '') :
3700 '''Old style method to add a tool to the toolbar.'''
3701 kind
= wx
.ITEM_NORMAL
3702 if isToggle
: kind
= wx
.ITEM_CHECK
3703 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3704 shortHelpString
, longHelpString
, clientData
)
3706 def AddSimpleTool(self
, id, bitmap
,
3707 shortHelpString
= '',
3708 longHelpString
= '',
3710 '''Old style method to add a tool to the toolbar.'''
3711 kind
= wx
.ITEM_NORMAL
3712 if isToggle
: kind
= wx
.ITEM_CHECK
3713 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3714 shortHelpString
, longHelpString
, None)
3716 def InsertTool(self
, pos
, id, bitmap
,
3717 pushedBitmap
= wx
.NullBitmap
,
3720 shortHelpString
= '',
3721 longHelpString
= ''):
3722 '''Old style method to insert a tool in the toolbar.'''
3723 kind
= wx
.ITEM_NORMAL
3724 if isToggle
: kind
= wx
.ITEM_CHECK
3725 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3726 shortHelpString
, longHelpString
, clientData
)
3728 def InsertSimpleTool(self
, pos
, id, bitmap
,
3729 shortHelpString
= '',
3730 longHelpString
= '',
3732 '''Old style method to insert a tool in the toolbar.'''
3733 kind
= wx
.ITEM_NORMAL
3734 if isToggle
: kind
= wx
.ITEM_CHECK
3735 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3736 shortHelpString
, longHelpString
, None)
3739 # The following are the new toolbar Add methods starting with
3740 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3741 # able to keep backwards compatibility with using the above
3742 # methods. Eventually these should migrate to be the methods used
3743 # primarily and lose the 'Label' in the name...
3745 def AddLabelTool(self
, id, label
, bitmap
,
3746 bmpDisabled
= wx
.NullBitmap
,
3747 kind
= wx
.ITEM_NORMAL
,
3748 shortHelp
= '', longHelp
= '',
3751 The full AddTool() function.
3753 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3754 is created and used as the disabled image.
3756 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3757 shortHelp
, longHelp
, clientData
)
3760 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3761 bmpDisabled
= wx
.NullBitmap
,
3762 kind
= wx
.ITEM_NORMAL
,
3763 shortHelp
= '', longHelp
= '',
3766 Insert the new tool at the given position, if pos == GetToolsCount(), it
3767 is equivalent to AddTool()
3769 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3770 shortHelp
, longHelp
, clientData
)
3772 def AddCheckLabelTool(self
, id, label
, bitmap
,
3773 bmpDisabled
= wx
.NullBitmap
,
3774 shortHelp
= '', longHelp
= '',
3776 '''Add a check tool, i.e. a tool which can be toggled'''
3777 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3778 shortHelp
, longHelp
, clientData
)
3780 def AddRadioLabelTool(self
, id, label
, bitmap
,
3781 bmpDisabled
= wx
.NullBitmap
,
3782 shortHelp
= '', longHelp
= '',
3785 Add a radio tool, i.e. a tool which can be toggled and releases any
3786 other toggled radio tools in the same group when it happens
3788 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3789 shortHelp
, longHelp
, clientData
)
3792 # For consistency with the backwards compatible methods above, here are
3793 # some non-'Label' versions of the Check and Radio methods
3795 def AddCheckTool(self
, id, bitmap
,
3796 bmpDisabled
= wx
.NullBitmap
,
3797 shortHelp
= '', longHelp
= '',
3799 '''Add a check tool, i.e. a tool which can be toggled'''
3800 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3801 shortHelp
, longHelp
, clientData
)
3803 def AddRadioTool(self
, id, bitmap
,
3804 bmpDisabled
= wx
.NullBitmap
,
3805 shortHelp
= '', longHelp
= '',
3808 Add a radio tool, i.e. a tool which can be toggled and releases any
3809 other toggled radio tools in the same group when it happens
3811 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3812 shortHelp
, longHelp
, clientData
)
3814 def AddToolItem(*args
, **kwargs
):
3815 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3816 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3818 def InsertToolItem(*args
, **kwargs
):
3819 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3820 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3822 def AddControl(*args
, **kwargs
):
3823 """AddControl(self, Control control) -> ToolBarToolBase"""
3824 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3826 def InsertControl(*args
, **kwargs
):
3827 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3828 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3830 def FindControl(*args
, **kwargs
):
3831 """FindControl(self, int id) -> Control"""
3832 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3834 def AddSeparator(*args
, **kwargs
):
3835 """AddSeparator(self) -> ToolBarToolBase"""
3836 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3838 def InsertSeparator(*args
, **kwargs
):
3839 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3840 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3842 def RemoveTool(*args
, **kwargs
):
3843 """RemoveTool(self, int id) -> ToolBarToolBase"""
3844 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3846 def DeleteToolByPos(*args
, **kwargs
):
3847 """DeleteToolByPos(self, size_t pos) -> bool"""
3848 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3850 def DeleteTool(*args
, **kwargs
):
3851 """DeleteTool(self, int id) -> bool"""
3852 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3854 def ClearTools(*args
, **kwargs
):
3855 """ClearTools(self)"""
3856 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3858 def Realize(*args
, **kwargs
):
3859 """Realize(self) -> bool"""
3860 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3862 def EnableTool(*args
, **kwargs
):
3863 """EnableTool(self, int id, bool enable)"""
3864 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3866 def ToggleTool(*args
, **kwargs
):
3867 """ToggleTool(self, int id, bool toggle)"""
3868 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3870 def SetToggle(*args
, **kwargs
):
3871 """SetToggle(self, int id, bool toggle)"""
3872 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3874 def GetToolClientData(*args
, **kwargs
):
3875 """GetToolClientData(self, int id) -> PyObject"""
3876 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3878 def SetToolClientData(*args
, **kwargs
):
3879 """SetToolClientData(self, int id, PyObject clientData)"""
3880 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3882 def GetToolPos(*args
, **kwargs
):
3883 """GetToolPos(self, int id) -> int"""
3884 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3886 def GetToolState(*args
, **kwargs
):
3887 """GetToolState(self, int id) -> bool"""
3888 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3890 def GetToolEnabled(*args
, **kwargs
):
3891 """GetToolEnabled(self, int id) -> bool"""
3892 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3894 def SetToolShortHelp(*args
, **kwargs
):
3895 """SetToolShortHelp(self, int id, String helpString)"""
3896 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3898 def GetToolShortHelp(*args
, **kwargs
):
3899 """GetToolShortHelp(self, int id) -> String"""
3900 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3902 def SetToolLongHelp(*args
, **kwargs
):
3903 """SetToolLongHelp(self, int id, String helpString)"""
3904 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3906 def GetToolLongHelp(*args
, **kwargs
):
3907 """GetToolLongHelp(self, int id) -> String"""
3908 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3910 def SetMarginsXY(*args
, **kwargs
):
3911 """SetMarginsXY(self, int x, int y)"""
3912 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3914 def SetMargins(*args
, **kwargs
):
3915 """SetMargins(self, Size size)"""
3916 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3918 def SetToolPacking(*args
, **kwargs
):
3919 """SetToolPacking(self, int packing)"""
3920 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3922 def SetToolSeparation(*args
, **kwargs
):
3923 """SetToolSeparation(self, int separation)"""
3924 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3926 def GetToolMargins(*args
, **kwargs
):
3927 """GetToolMargins(self) -> Size"""
3928 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3930 def GetMargins(*args
, **kwargs
):
3931 """GetMargins(self) -> Size"""
3932 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3934 def GetToolPacking(*args
, **kwargs
):
3935 """GetToolPacking(self) -> int"""
3936 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3938 def GetToolSeparation(*args
, **kwargs
):
3939 """GetToolSeparation(self) -> int"""
3940 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3942 def SetRows(*args
, **kwargs
):
3943 """SetRows(self, int nRows)"""
3944 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3946 def SetMaxRowsCols(*args
, **kwargs
):
3947 """SetMaxRowsCols(self, int rows, int cols)"""
3948 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3950 def GetMaxRows(*args
, **kwargs
):
3951 """GetMaxRows(self) -> int"""
3952 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3954 def GetMaxCols(*args
, **kwargs
):
3955 """GetMaxCols(self) -> int"""
3956 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3958 def SetToolBitmapSize(*args
, **kwargs
):
3959 """SetToolBitmapSize(self, Size size)"""
3960 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3962 def GetToolBitmapSize(*args
, **kwargs
):
3963 """GetToolBitmapSize(self) -> Size"""
3964 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3966 def GetToolSize(*args
, **kwargs
):
3967 """GetToolSize(self) -> Size"""
3968 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3970 def FindToolForPosition(*args
, **kwargs
):
3971 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3972 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3974 def FindById(*args
, **kwargs
):
3975 """FindById(self, int toolid) -> ToolBarToolBase"""
3976 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3978 def IsVertical(*args
, **kwargs
):
3979 """IsVertical(self) -> bool"""
3980 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3983 class ToolBarBasePtr(ToolBarBase
):
3984 def __init__(self
, this
):
3986 if not hasattr(self
,"thisown"): self
.thisown
= 0
3987 self
.__class
__ = ToolBarBase
3988 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3990 class ToolBar(ToolBarBase
):
3991 """Proxy of C++ ToolBar class"""
3993 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3994 def __init__(self
, *args
, **kwargs
):
3996 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3997 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3998 String name=wxPyToolBarNameStr) -> ToolBar
4000 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
4001 self
.this
= newobj
.this
4004 self
._setOORInfo
(self
)
4006 def Create(*args
, **kwargs
):
4008 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4009 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
4010 String name=wxPyToolBarNameStr) -> bool
4012 return _controls_
.ToolBar_Create(*args
, **kwargs
)
4014 def FindToolForPosition(*args
, **kwargs
):
4015 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
4016 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
4018 def GetClassDefaultAttributes(*args
, **kwargs
):
4020 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4022 Get the default attributes for this class. This is useful if you want
4023 to use the same font or colour in your own control as in a standard
4024 control -- which is a much better idea than hard coding specific
4025 colours or fonts which might look completely out of place on the
4026 user's system, especially if it uses themes.
4028 The variant parameter is only relevant under Mac currently and is
4029 ignore under other platforms. Under Mac, it will change the size of
4030 the returned font. See `wx.Window.SetWindowVariant` for more about
4033 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4035 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4037 class ToolBarPtr(ToolBar
):
4038 def __init__(self
, this
):
4040 if not hasattr(self
,"thisown"): self
.thisown
= 0
4041 self
.__class
__ = ToolBar
4042 _controls_
.ToolBar_swigregister(ToolBarPtr
)
4044 def PreToolBar(*args
, **kwargs
):
4045 """PreToolBar() -> ToolBar"""
4046 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
4050 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
4052 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4054 Get the default attributes for this class. This is useful if you want
4055 to use the same font or colour in your own control as in a standard
4056 control -- which is a much better idea than hard coding specific
4057 colours or fonts which might look completely out of place on the
4058 user's system, especially if it uses themes.
4060 The variant parameter is only relevant under Mac currently and is
4061 ignore under other platforms. Under Mac, it will change the size of
4062 the returned font. See `wx.Window.SetWindowVariant` for more about
4065 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4067 #---------------------------------------------------------------------------
4069 LC_VRULES
= _controls_
.LC_VRULES
4070 LC_HRULES
= _controls_
.LC_HRULES
4071 LC_ICON
= _controls_
.LC_ICON
4072 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
4073 LC_LIST
= _controls_
.LC_LIST
4074 LC_REPORT
= _controls_
.LC_REPORT
4075 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
4076 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
4077 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
4078 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
4079 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
4080 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
4081 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
4082 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
4083 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
4084 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
4085 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
4086 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
4087 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
4088 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
4089 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
4090 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
4091 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
4092 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
4093 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
4094 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
4095 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
4096 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
4097 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
4098 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
4099 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
4100 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
4101 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
4102 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
4103 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
4104 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
4105 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
4106 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
4107 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
4108 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
4109 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
4110 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
4111 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
4112 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
4113 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
4114 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
4115 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
4116 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
4117 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
4118 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
4119 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
4120 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
4121 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
4122 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
4123 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
4124 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
4125 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
4126 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
4127 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
4128 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
4129 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
4130 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
4131 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
4132 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
4133 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
4134 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
4135 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
4136 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
4137 #---------------------------------------------------------------------------
4139 class ListItemAttr(object):
4140 """Proxy of C++ ListItemAttr class"""
4142 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4143 def __init__(self
, *args
, **kwargs
):
4145 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
4146 Font font=wxNullFont) -> ListItemAttr
4148 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
4149 self
.this
= newobj
.this
4152 def SetTextColour(*args
, **kwargs
):
4153 """SetTextColour(self, Colour colText)"""
4154 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
4156 def SetBackgroundColour(*args
, **kwargs
):
4157 """SetBackgroundColour(self, Colour colBack)"""
4158 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
4160 def SetFont(*args
, **kwargs
):
4161 """SetFont(self, Font font)"""
4162 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
4164 def HasTextColour(*args
, **kwargs
):
4165 """HasTextColour(self) -> bool"""
4166 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
4168 def HasBackgroundColour(*args
, **kwargs
):
4169 """HasBackgroundColour(self) -> bool"""
4170 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
4172 def HasFont(*args
, **kwargs
):
4173 """HasFont(self) -> bool"""
4174 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4176 def GetTextColour(*args
, **kwargs
):
4177 """GetTextColour(self) -> Colour"""
4178 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4180 def GetBackgroundColour(*args
, **kwargs
):
4181 """GetBackgroundColour(self) -> Colour"""
4182 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4184 def GetFont(*args
, **kwargs
):
4185 """GetFont(self) -> Font"""
4186 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4188 def Destroy(*args
, **kwargs
):
4190 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4193 class ListItemAttrPtr(ListItemAttr
):
4194 def __init__(self
, this
):
4196 if not hasattr(self
,"thisown"): self
.thisown
= 0
4197 self
.__class
__ = ListItemAttr
4198 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
4199 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4201 #---------------------------------------------------------------------------
4203 class ListItem(_core
.Object
):
4204 """Proxy of C++ ListItem class"""
4206 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4207 def __init__(self
, *args
, **kwargs
):
4208 """__init__(self) -> ListItem"""
4209 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
4210 self
.this
= newobj
.this
4213 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
4216 if self
.thisown
: destroy(self
)
4219 def Clear(*args
, **kwargs
):
4221 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4223 def ClearAttributes(*args
, **kwargs
):
4224 """ClearAttributes(self)"""
4225 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4227 def SetMask(*args
, **kwargs
):
4228 """SetMask(self, long mask)"""
4229 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4231 def SetId(*args
, **kwargs
):
4232 """SetId(self, long id)"""
4233 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4235 def SetColumn(*args
, **kwargs
):
4236 """SetColumn(self, int col)"""
4237 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4239 def SetState(*args
, **kwargs
):
4240 """SetState(self, long state)"""
4241 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4243 def SetStateMask(*args
, **kwargs
):
4244 """SetStateMask(self, long stateMask)"""
4245 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4247 def SetText(*args
, **kwargs
):
4248 """SetText(self, String text)"""
4249 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4251 def SetImage(*args
, **kwargs
):
4252 """SetImage(self, int image)"""
4253 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4255 def SetData(*args
, **kwargs
):
4256 """SetData(self, long data)"""
4257 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4259 def SetWidth(*args
, **kwargs
):
4260 """SetWidth(self, int width)"""
4261 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4263 def SetAlign(*args
, **kwargs
):
4264 """SetAlign(self, int align)"""
4265 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4267 def SetTextColour(*args
, **kwargs
):
4268 """SetTextColour(self, Colour colText)"""
4269 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4271 def SetBackgroundColour(*args
, **kwargs
):
4272 """SetBackgroundColour(self, Colour colBack)"""
4273 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4275 def SetFont(*args
, **kwargs
):
4276 """SetFont(self, Font font)"""
4277 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4279 def GetMask(*args
, **kwargs
):
4280 """GetMask(self) -> long"""
4281 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4283 def GetId(*args
, **kwargs
):
4284 """GetId(self) -> long"""
4285 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4287 def GetColumn(*args
, **kwargs
):
4288 """GetColumn(self) -> int"""
4289 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4291 def GetState(*args
, **kwargs
):
4292 """GetState(self) -> long"""
4293 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4295 def GetText(*args
, **kwargs
):
4296 """GetText(self) -> String"""
4297 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4299 def GetImage(*args
, **kwargs
):
4300 """GetImage(self) -> int"""
4301 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4303 def GetData(*args
, **kwargs
):
4304 """GetData(self) -> long"""
4305 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4307 def GetWidth(*args
, **kwargs
):
4308 """GetWidth(self) -> int"""
4309 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4311 def GetAlign(*args
, **kwargs
):
4312 """GetAlign(self) -> int"""
4313 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4315 def GetAttributes(*args
, **kwargs
):
4316 """GetAttributes(self) -> ListItemAttr"""
4317 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4319 def HasAttributes(*args
, **kwargs
):
4320 """HasAttributes(self) -> bool"""
4321 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4323 def GetTextColour(*args
, **kwargs
):
4324 """GetTextColour(self) -> Colour"""
4325 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4327 def GetBackgroundColour(*args
, **kwargs
):
4328 """GetBackgroundColour(self) -> Colour"""
4329 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4331 def GetFont(*args
, **kwargs
):
4332 """GetFont(self) -> Font"""
4333 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4335 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4336 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4337 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4338 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4339 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4340 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4341 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4342 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4343 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4344 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4346 class ListItemPtr(ListItem
):
4347 def __init__(self
, this
):
4349 if not hasattr(self
,"thisown"): self
.thisown
= 0
4350 self
.__class
__ = ListItem
4351 _controls_
.ListItem_swigregister(ListItemPtr
)
4353 #---------------------------------------------------------------------------
4355 class ListEvent(_core
.NotifyEvent
):
4356 """Proxy of C++ ListEvent class"""
4358 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4359 def __init__(self
, *args
, **kwargs
):
4360 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4361 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4362 self
.this
= newobj
.this
4365 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4366 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4367 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4368 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4369 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4370 m_item
= property(_controls_
.ListEvent_m_item_get
)
4371 def GetKeyCode(*args
, **kwargs
):
4372 """GetKeyCode(self) -> int"""
4373 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4375 GetCode
= GetKeyCode
4376 def GetIndex(*args
, **kwargs
):
4377 """GetIndex(self) -> long"""
4378 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4380 def GetColumn(*args
, **kwargs
):
4381 """GetColumn(self) -> int"""
4382 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4384 def GetPoint(*args
, **kwargs
):
4385 """GetPoint(self) -> Point"""
4386 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4388 GetPosition
= GetPoint
4389 def GetLabel(*args
, **kwargs
):
4390 """GetLabel(self) -> String"""
4391 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4393 def GetText(*args
, **kwargs
):
4394 """GetText(self) -> String"""
4395 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4397 def GetImage(*args
, **kwargs
):
4398 """GetImage(self) -> int"""
4399 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4401 def GetData(*args
, **kwargs
):
4402 """GetData(self) -> long"""
4403 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4405 def GetMask(*args
, **kwargs
):
4406 """GetMask(self) -> long"""
4407 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4409 def GetItem(*args
, **kwargs
):
4410 """GetItem(self) -> ListItem"""
4411 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4413 def GetCacheFrom(*args
, **kwargs
):
4414 """GetCacheFrom(self) -> long"""
4415 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4417 def GetCacheTo(*args
, **kwargs
):
4418 """GetCacheTo(self) -> long"""
4419 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4421 def IsEditCancelled(*args
, **kwargs
):
4422 """IsEditCancelled(self) -> bool"""
4423 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4425 def SetEditCanceled(*args
, **kwargs
):
4426 """SetEditCanceled(self, bool editCancelled)"""
4427 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4430 class ListEventPtr(ListEvent
):
4431 def __init__(self
, this
):
4433 if not hasattr(self
,"thisown"): self
.thisown
= 0
4434 self
.__class
__ = ListEvent
4435 _controls_
.ListEvent_swigregister(ListEventPtr
)
4437 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4438 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4439 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4440 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4441 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4442 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4443 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
4444 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
4445 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4446 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4447 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4448 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4449 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4450 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4451 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4452 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4453 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4454 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4455 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4456 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4457 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4458 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4459 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4460 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4461 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4462 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4463 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4464 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4465 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
4466 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
4467 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4468 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4469 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4470 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4471 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4472 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4473 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4474 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4475 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4476 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4477 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4478 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4479 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4480 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4482 EVT_LIST_GET_INFO
= wx
._deprecated
(EVT_LIST_GET_INFO
)
4483 EVT_LIST_SET_INFO
= wx
._deprecated
(EVT_LIST_SET_INFO
)
4485 #---------------------------------------------------------------------------
4487 class ListCtrl(_core
.Control
):
4488 """Proxy of C++ ListCtrl class"""
4490 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4491 def __init__(self
, *args
, **kwargs
):
4493 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4494 Size size=DefaultSize, long style=LC_ICON,
4495 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4497 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4498 self
.this
= newobj
.this
4501 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4503 def Create(*args
, **kwargs
):
4505 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4506 Size size=DefaultSize, long style=LC_ICON,
4507 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4509 Do the 2nd phase and create the GUI control.
4511 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4513 def _setCallbackInfo(*args
, **kwargs
):
4514 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4515 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4517 def SetForegroundColour(*args
, **kwargs
):
4519 SetForegroundColour(self, Colour col) -> bool
4521 Sets the foreground colour of the window. Returns True is the colour
4522 was changed. The interpretation of foreground colour is dependent on
4523 the window class; it may be the text colour or other colour, or it may
4526 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4528 def SetBackgroundColour(*args
, **kwargs
):
4530 SetBackgroundColour(self, Colour col) -> bool
4532 Sets the background colour of the window. Returns True if the colour
4533 was changed. The background colour is usually painted by the default
4534 EVT_ERASE_BACKGROUND event handler function under Windows and
4535 automatically under GTK. Using `wx.NullColour` will reset the window
4536 to the default background colour.
4538 Note that setting the background colour may not cause an immediate
4539 refresh, so you may wish to call `ClearBackground` or `Refresh` after
4540 calling this function.
4542 Using this function will disable attempts to use themes for this
4543 window, if the system supports them. Use with care since usually the
4544 themes represent the appearance chosen by the user to be used for all
4545 applications on the system.
4547 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4549 def GetColumn(*args
, **kwargs
):
4550 """GetColumn(self, int col) -> ListItem"""
4551 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4552 if val
is not None: val
.thisown
= 1
4555 def SetColumn(*args
, **kwargs
):
4556 """SetColumn(self, int col, ListItem item) -> bool"""
4557 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4559 def GetColumnWidth(*args
, **kwargs
):
4560 """GetColumnWidth(self, int col) -> int"""
4561 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4563 def SetColumnWidth(*args
, **kwargs
):
4564 """SetColumnWidth(self, int col, int width) -> bool"""
4565 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4567 def GetCountPerPage(*args
, **kwargs
):
4568 """GetCountPerPage(self) -> int"""
4569 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4571 def GetViewRect(*args
, **kwargs
):
4572 """GetViewRect(self) -> Rect"""
4573 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4575 def GetEditControl(*args
, **kwargs
):
4576 """GetEditControl(self) -> TextCtrl"""
4577 return _controls_
.ListCtrl_GetEditControl(*args
, **kwargs
)
4579 def GetItem(*args
, **kwargs
):
4580 """GetItem(self, long itemId, int col=0) -> ListItem"""
4581 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4582 if val
is not None: val
.thisown
= 1
4585 def SetItem(*args
, **kwargs
):
4586 """SetItem(self, ListItem info) -> bool"""
4587 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4589 def SetStringItem(*args
, **kwargs
):
4590 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4591 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4593 def GetItemState(*args
, **kwargs
):
4594 """GetItemState(self, long item, long stateMask) -> int"""
4595 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4597 def SetItemState(*args
, **kwargs
):
4598 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4599 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4601 def SetItemImage(*args
, **kwargs
):
4602 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4603 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4605 def GetItemText(*args
, **kwargs
):
4606 """GetItemText(self, long item) -> String"""
4607 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4609 def SetItemText(*args
, **kwargs
):
4610 """SetItemText(self, long item, String str)"""
4611 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4613 def GetItemData(*args
, **kwargs
):
4614 """GetItemData(self, long item) -> long"""
4615 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4617 def SetItemData(*args
, **kwargs
):
4618 """SetItemData(self, long item, long data) -> bool"""
4619 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4621 def GetItemPosition(*args
, **kwargs
):
4622 """GetItemPosition(self, long item) -> Point"""
4623 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4625 def GetItemRect(*args
, **kwargs
):
4626 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4627 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4629 def SetItemPosition(*args
, **kwargs
):
4630 """SetItemPosition(self, long item, Point pos) -> bool"""
4631 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4633 def GetItemCount(*args
, **kwargs
):
4634 """GetItemCount(self) -> int"""
4635 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4637 def GetColumnCount(*args
, **kwargs
):
4638 """GetColumnCount(self) -> int"""
4639 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4641 def GetItemSpacing(*args
, **kwargs
):
4642 """GetItemSpacing(self) -> Size"""
4643 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4645 def GetSelectedItemCount(*args
, **kwargs
):
4646 """GetSelectedItemCount(self) -> int"""
4647 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4649 def GetTextColour(*args
, **kwargs
):
4650 """GetTextColour(self) -> Colour"""
4651 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4653 def SetTextColour(*args
, **kwargs
):
4654 """SetTextColour(self, Colour col)"""
4655 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4657 def GetTopItem(*args
, **kwargs
):
4658 """GetTopItem(self) -> long"""
4659 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4661 def SetSingleStyle(*args
, **kwargs
):
4662 """SetSingleStyle(self, long style, bool add=True)"""
4663 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4665 def SetWindowStyleFlag(*args
, **kwargs
):
4667 SetWindowStyleFlag(self, long style)
4669 Sets the style of the window. Please note that some styles cannot be
4670 changed after the window creation and that Refresh() might need to be
4671 called after changing the others for the change to take place
4674 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4676 def GetNextItem(*args
, **kwargs
):
4677 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4678 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4680 def GetImageList(*args
, **kwargs
):
4681 """GetImageList(self, int which) -> ImageList"""
4682 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4684 def SetImageList(*args
, **kwargs
):
4685 """SetImageList(self, ImageList imageList, int which)"""
4686 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4688 def AssignImageList(*args
, **kwargs
):
4689 """AssignImageList(self, ImageList imageList, int which)"""
4690 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4692 def InReportView(*args
, **kwargs
):
4693 """InReportView(self) -> bool"""
4694 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4696 def IsVirtual(*args
, **kwargs
):
4697 """IsVirtual(self) -> bool"""
4698 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4700 def RefreshItem(*args
, **kwargs
):
4701 """RefreshItem(self, long item)"""
4702 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4704 def RefreshItems(*args
, **kwargs
):
4705 """RefreshItems(self, long itemFrom, long itemTo)"""
4706 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4708 def Arrange(*args
, **kwargs
):
4709 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4710 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4712 def DeleteItem(*args
, **kwargs
):
4713 """DeleteItem(self, long item) -> bool"""
4714 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4716 def DeleteAllItems(*args
, **kwargs
):
4717 """DeleteAllItems(self) -> bool"""
4718 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4720 def DeleteColumn(*args
, **kwargs
):
4721 """DeleteColumn(self, int col) -> bool"""
4722 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4724 def DeleteAllColumns(*args
, **kwargs
):
4725 """DeleteAllColumns(self) -> bool"""
4726 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4728 def ClearAll(*args
, **kwargs
):
4729 """ClearAll(self)"""
4730 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4732 def EditLabel(*args
, **kwargs
):
4733 """EditLabel(self, long item) -> TextCtrl"""
4734 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4736 def EndEditLabel(*args
, **kwargs
):
4737 """EndEditLabel(self, bool cancel) -> bool"""
4738 return _controls_
.ListCtrl_EndEditLabel(*args
, **kwargs
)
4740 def EnsureVisible(*args
, **kwargs
):
4741 """EnsureVisible(self, long item) -> bool"""
4742 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4744 def FindItem(*args
, **kwargs
):
4745 """FindItem(self, long start, String str, bool partial=False) -> long"""
4746 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4748 def FindItemData(*args
, **kwargs
):
4749 """FindItemData(self, long start, long data) -> long"""
4750 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4752 def FindItemAtPos(*args
, **kwargs
):
4753 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4754 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4756 def HitTest(*args
, **kwargs
):
4758 HitTest(Point point) -> (item, where)
4760 Determines which item (if any) is at the specified point, giving
4761 in the second return value (see wxLIST_HITTEST_... flags.)
4763 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4765 def InsertItem(*args
, **kwargs
):
4766 """InsertItem(self, ListItem info) -> long"""
4767 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4769 def InsertStringItem(*args
, **kwargs
):
4770 """InsertStringItem(self, long index, String label) -> long"""
4771 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4773 def InsertImageItem(*args
, **kwargs
):
4774 """InsertImageItem(self, long index, int imageIndex) -> long"""
4775 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4777 def InsertImageStringItem(*args
, **kwargs
):
4778 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4779 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4781 def InsertColumnInfo(*args
, **kwargs
):
4782 """InsertColumnInfo(self, long col, ListItem info) -> long"""
4783 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
4785 def InsertColumn(*args
, **kwargs
):
4787 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4788 int width=-1) -> long
4790 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4792 def SetItemCount(*args
, **kwargs
):
4793 """SetItemCount(self, long count)"""
4794 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4796 def ScrollList(*args
, **kwargs
):
4797 """ScrollList(self, int dx, int dy) -> bool"""
4798 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4800 def SetItemTextColour(*args
, **kwargs
):
4801 """SetItemTextColour(self, long item, Colour col)"""
4802 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4804 def GetItemTextColour(*args
, **kwargs
):
4805 """GetItemTextColour(self, long item) -> Colour"""
4806 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4808 def SetItemBackgroundColour(*args
, **kwargs
):
4809 """SetItemBackgroundColour(self, long item, Colour col)"""
4810 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4812 def GetItemBackgroundColour(*args
, **kwargs
):
4813 """GetItemBackgroundColour(self, long item) -> Colour"""
4814 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4818 def Select(self
, idx
, on
=1):
4819 '''[de]select an item'''
4820 if on
: state
= wx
.LIST_STATE_SELECTED
4822 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4824 def Focus(self
, idx
):
4825 '''Focus and show the given item'''
4826 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4827 self
.EnsureVisible(idx
)
4829 def GetFocusedItem(self
):
4830 '''get the currently focused item or -1 if none'''
4831 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4833 def GetFirstSelected(self
, *args
):
4834 '''return first selected item, or -1 when none'''
4835 return self
.GetNextSelected(-1)
4837 def GetNextSelected(self
, item
):
4838 '''return subsequent selected items, or -1 when no more'''
4839 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4841 def IsSelected(self
, idx
):
4842 '''return True if the item is selected'''
4843 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
4845 def SetColumnImage(self
, col
, image
):
4846 item
= self
.GetColumn(col
)
4847 # preserve all other attributes too
4848 item
.SetMask( wx
.LIST_MASK_STATE |
4850 wx
.LIST_MASK_IMAGE |
4853 wx
.LIST_MASK_WIDTH |
4854 wx
.LIST_MASK_FORMAT
)
4855 item
.SetImage(image
)
4856 self
.SetColumn(col
, item
)
4858 def ClearColumnImage(self
, col
):
4859 self
.SetColumnImage(col
, -1)
4861 def Append(self
, entry
):
4862 '''Append an item to the list control. The entry parameter should be a
4863 sequence with an item for each column'''
4869 pos
= self
.GetItemCount()
4870 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4871 for i
in range(1, len(entry
)):
4872 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4875 def SortItems(*args
, **kwargs
):
4876 """SortItems(self, PyObject func) -> bool"""
4877 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4879 def GetMainWindow(*args
, **kwargs
):
4880 """GetMainWindow(self) -> Window"""
4881 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4883 def GetClassDefaultAttributes(*args
, **kwargs
):
4885 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4887 Get the default attributes for this class. This is useful if you want
4888 to use the same font or colour in your own control as in a standard
4889 control -- which is a much better idea than hard coding specific
4890 colours or fonts which might look completely out of place on the
4891 user's system, especially if it uses themes.
4893 The variant parameter is only relevant under Mac currently and is
4894 ignore under other platforms. Under Mac, it will change the size of
4895 the returned font. See `wx.Window.SetWindowVariant` for more about
4898 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4900 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4902 class ListCtrlPtr(ListCtrl
):
4903 def __init__(self
, this
):
4905 if not hasattr(self
,"thisown"): self
.thisown
= 0
4906 self
.__class
__ = ListCtrl
4907 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
4909 def PreListCtrl(*args
, **kwargs
):
4910 """PreListCtrl() -> ListCtrl"""
4911 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4915 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4917 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4919 Get the default attributes for this class. This is useful if you want
4920 to use the same font or colour in your own control as in a standard
4921 control -- which is a much better idea than hard coding specific
4922 colours or fonts which might look completely out of place on the
4923 user's system, especially if it uses themes.
4925 The variant parameter is only relevant under Mac currently and is
4926 ignore under other platforms. Under Mac, it will change the size of
4927 the returned font. See `wx.Window.SetWindowVariant` for more about
4930 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4932 #---------------------------------------------------------------------------
4934 class ListView(ListCtrl
):
4935 """Proxy of C++ ListView class"""
4937 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4938 def __init__(self
, *args
, **kwargs
):
4940 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4941 Size size=DefaultSize, long style=LC_REPORT,
4942 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4944 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
4945 self
.this
= newobj
.this
4948 self
._setOORInfo
(self
)
4950 def Create(*args
, **kwargs
):
4952 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4953 Size size=DefaultSize, long style=LC_REPORT,
4954 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4956 Do the 2nd phase and create the GUI control.
4958 return _controls_
.ListView_Create(*args
, **kwargs
)
4960 def Select(*args
, **kwargs
):
4961 """Select(self, long n, bool on=True)"""
4962 return _controls_
.ListView_Select(*args
, **kwargs
)
4964 def Focus(*args
, **kwargs
):
4965 """Focus(self, long index)"""
4966 return _controls_
.ListView_Focus(*args
, **kwargs
)
4968 def GetFocusedItem(*args
, **kwargs
):
4969 """GetFocusedItem(self) -> long"""
4970 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4972 def GetNextSelected(*args
, **kwargs
):
4973 """GetNextSelected(self, long item) -> long"""
4974 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4976 def GetFirstSelected(*args
, **kwargs
):
4977 """GetFirstSelected(self) -> long"""
4978 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4980 def IsSelected(*args
, **kwargs
):
4981 """IsSelected(self, long index) -> bool"""
4982 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4984 def SetColumnImage(*args
, **kwargs
):
4985 """SetColumnImage(self, int col, int image)"""
4986 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4988 def ClearColumnImage(*args
, **kwargs
):
4989 """ClearColumnImage(self, int col)"""
4990 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4993 class ListViewPtr(ListView
):
4994 def __init__(self
, this
):
4996 if not hasattr(self
,"thisown"): self
.thisown
= 0
4997 self
.__class
__ = ListView
4998 _controls_
.ListView_swigregister(ListViewPtr
)
5000 def PreListView(*args
, **kwargs
):
5001 """PreListView() -> ListView"""
5002 val
= _controls_
.new_PreListView(*args
, **kwargs
)
5006 #---------------------------------------------------------------------------
5008 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
5009 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
5010 TR_NO_LINES
= _controls_
.TR_NO_LINES
5011 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
5012 TR_SINGLE
= _controls_
.TR_SINGLE
5013 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
5014 TR_EXTENDED
= _controls_
.TR_EXTENDED
5015 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
5016 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
5017 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
5018 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
5019 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
5020 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
5021 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
5022 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
5023 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
5024 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
5025 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
5026 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
5027 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
5028 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
5029 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
5030 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
5031 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
5032 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
5033 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
5034 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
5035 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
5036 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
5037 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
5038 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
5039 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
5040 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
5041 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
5042 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
5043 #---------------------------------------------------------------------------
5045 class TreeItemId(object):
5046 """Proxy of C++ TreeItemId class"""
5048 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5049 def __init__(self
, *args
, **kwargs
):
5050 """__init__(self) -> TreeItemId"""
5051 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
5052 self
.this
= newobj
.this
5055 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
5058 if self
.thisown
: destroy(self
)
5061 def IsOk(*args
, **kwargs
):
5062 """IsOk(self) -> bool"""
5063 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
5065 def __eq__(*args
, **kwargs
):
5066 """__eq__(self, TreeItemId other) -> bool"""
5067 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
5069 def __ne__(*args
, **kwargs
):
5070 """__ne__(self, TreeItemId other) -> bool"""
5071 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
5073 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
5075 def __nonzero__(self
): return self
.IsOk()
5077 class TreeItemIdPtr(TreeItemId
):
5078 def __init__(self
, this
):
5080 if not hasattr(self
,"thisown"): self
.thisown
= 0
5081 self
.__class
__ = TreeItemId
5082 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
5083 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
5085 class TreeItemData(object):
5086 """Proxy of C++ TreeItemData class"""
5088 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5089 def __init__(self
, *args
, **kwargs
):
5090 """__init__(self, PyObject obj=None) -> TreeItemData"""
5091 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
5092 self
.this
= newobj
.this
5095 def GetData(*args
, **kwargs
):
5096 """GetData(self) -> PyObject"""
5097 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
5099 def SetData(*args
, **kwargs
):
5100 """SetData(self, PyObject obj)"""
5101 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
5103 def GetId(*args
, **kwargs
):
5104 """GetId(self) -> TreeItemId"""
5105 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
5107 def SetId(*args
, **kwargs
):
5108 """SetId(self, TreeItemId id)"""
5109 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
5111 def Destroy(*args
, **kwargs
):
5113 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
5116 class TreeItemDataPtr(TreeItemData
):
5117 def __init__(self
, this
):
5119 if not hasattr(self
,"thisown"): self
.thisown
= 0
5120 self
.__class
__ = TreeItemData
5121 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
5123 #---------------------------------------------------------------------------
5125 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
5126 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
5127 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
5128 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
5129 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
5130 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
5131 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
5132 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
5133 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
5134 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
5135 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
5136 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
5137 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
5138 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
5139 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
5140 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
5141 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
5142 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
5143 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
5144 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
5145 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
5146 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
5147 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
5148 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
5149 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
5150 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
5151 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
5152 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
5153 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
5154 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
5155 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
5156 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
5157 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
5158 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
5159 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
5160 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
5161 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
5162 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
5163 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
5164 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
5165 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
5166 EVT_COMMAND_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
5168 class TreeEvent(_core
.NotifyEvent
):
5169 """Proxy of C++ TreeEvent class"""
5171 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5172 def __init__(self
, *args
, **kwargs
):
5173 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
5174 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
5175 self
.this
= newobj
.this
5178 def GetItem(*args
, **kwargs
):
5179 """GetItem(self) -> TreeItemId"""
5180 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
5182 def SetItem(*args
, **kwargs
):
5183 """SetItem(self, TreeItemId item)"""
5184 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
5186 def GetOldItem(*args
, **kwargs
):
5187 """GetOldItem(self) -> TreeItemId"""
5188 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
5190 def SetOldItem(*args
, **kwargs
):
5191 """SetOldItem(self, TreeItemId item)"""
5192 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
5194 def GetPoint(*args
, **kwargs
):
5195 """GetPoint(self) -> Point"""
5196 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
5198 def SetPoint(*args
, **kwargs
):
5199 """SetPoint(self, Point pt)"""
5200 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
5202 def GetKeyEvent(*args
, **kwargs
):
5203 """GetKeyEvent(self) -> KeyEvent"""
5204 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
5206 def GetKeyCode(*args
, **kwargs
):
5207 """GetKeyCode(self) -> int"""
5208 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
5210 def SetKeyEvent(*args
, **kwargs
):
5211 """SetKeyEvent(self, KeyEvent evt)"""
5212 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
5214 def GetLabel(*args
, **kwargs
):
5215 """GetLabel(self) -> String"""
5216 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
5218 def SetLabel(*args
, **kwargs
):
5219 """SetLabel(self, String label)"""
5220 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
5222 def IsEditCancelled(*args
, **kwargs
):
5223 """IsEditCancelled(self) -> bool"""
5224 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
5226 def SetEditCanceled(*args
, **kwargs
):
5227 """SetEditCanceled(self, bool editCancelled)"""
5228 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
5230 def SetToolTip(*args
, **kwargs
):
5231 """SetToolTip(self, String toolTip)"""
5232 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
5235 class TreeEventPtr(TreeEvent
):
5236 def __init__(self
, this
):
5238 if not hasattr(self
,"thisown"): self
.thisown
= 0
5239 self
.__class
__ = TreeEvent
5240 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
5242 #---------------------------------------------------------------------------
5244 class TreeCtrl(_core
.Control
):
5245 """Proxy of C++ TreeCtrl class"""
5247 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5248 def __init__(self
, *args
, **kwargs
):
5250 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5251 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5252 Validator validator=DefaultValidator,
5253 String name=TreeCtrlNameStr) -> TreeCtrl
5255 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
5256 self
.this
= newobj
.this
5259 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5261 def Create(*args
, **kwargs
):
5263 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5264 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5265 Validator validator=DefaultValidator,
5266 String name=TreeCtrlNameStr) -> bool
5268 Do the 2nd phase and create the GUI control.
5270 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5272 def _setCallbackInfo(*args
, **kwargs
):
5273 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5274 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5276 def GetCount(*args
, **kwargs
):
5277 """GetCount(self) -> size_t"""
5278 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5280 def GetIndent(*args
, **kwargs
):
5281 """GetIndent(self) -> unsigned int"""
5282 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5284 def SetIndent(*args
, **kwargs
):
5285 """SetIndent(self, unsigned int indent)"""
5286 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5288 def GetSpacing(*args
, **kwargs
):
5289 """GetSpacing(self) -> unsigned int"""
5290 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5292 def SetSpacing(*args
, **kwargs
):
5293 """SetSpacing(self, unsigned int spacing)"""
5294 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5296 def GetImageList(*args
, **kwargs
):
5297 """GetImageList(self) -> ImageList"""
5298 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5300 def GetStateImageList(*args
, **kwargs
):
5301 """GetStateImageList(self) -> ImageList"""
5302 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5304 def SetImageList(*args
, **kwargs
):
5305 """SetImageList(self, ImageList imageList)"""
5306 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5308 def SetStateImageList(*args
, **kwargs
):
5309 """SetStateImageList(self, ImageList imageList)"""
5310 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5312 def AssignImageList(*args
, **kwargs
):
5313 """AssignImageList(self, ImageList imageList)"""
5314 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5316 def AssignStateImageList(*args
, **kwargs
):
5317 """AssignStateImageList(self, ImageList imageList)"""
5318 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5320 def GetItemText(*args
, **kwargs
):
5321 """GetItemText(self, TreeItemId item) -> String"""
5322 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5324 def GetItemImage(*args
, **kwargs
):
5325 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5326 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5328 def GetItemData(*args
, **kwargs
):
5329 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5330 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5332 def GetItemPyData(*args
, **kwargs
):
5333 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5334 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5336 GetPyData
= GetItemPyData
5337 def GetItemTextColour(*args
, **kwargs
):
5338 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5339 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5341 def GetItemBackgroundColour(*args
, **kwargs
):
5342 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5343 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5345 def GetItemFont(*args
, **kwargs
):
5346 """GetItemFont(self, TreeItemId item) -> Font"""
5347 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5349 def SetItemText(*args
, **kwargs
):
5350 """SetItemText(self, TreeItemId item, String text)"""
5351 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5353 def SetItemImage(*args
, **kwargs
):
5354 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5355 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5357 def SetItemData(*args
, **kwargs
):
5358 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5359 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5361 def SetItemPyData(*args
, **kwargs
):
5362 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5363 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5365 SetPyData
= SetItemPyData
5366 def SetItemHasChildren(*args
, **kwargs
):
5367 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5368 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5370 def SetItemBold(*args
, **kwargs
):
5371 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5372 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5374 def SetItemDropHighlight(*args
, **kwargs
):
5375 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5376 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5378 def SetItemTextColour(*args
, **kwargs
):
5379 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5380 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5382 def SetItemBackgroundColour(*args
, **kwargs
):
5383 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5384 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5386 def SetItemFont(*args
, **kwargs
):
5387 """SetItemFont(self, TreeItemId item, Font font)"""
5388 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5390 def IsVisible(*args
, **kwargs
):
5391 """IsVisible(self, TreeItemId item) -> bool"""
5392 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5394 def ItemHasChildren(*args
, **kwargs
):
5395 """ItemHasChildren(self, TreeItemId item) -> bool"""
5396 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5398 def IsExpanded(*args
, **kwargs
):
5399 """IsExpanded(self, TreeItemId item) -> bool"""
5400 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5402 def IsSelected(*args
, **kwargs
):
5403 """IsSelected(self, TreeItemId item) -> bool"""
5404 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5406 def IsBold(*args
, **kwargs
):
5407 """IsBold(self, TreeItemId item) -> bool"""
5408 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5410 def GetChildrenCount(*args
, **kwargs
):
5411 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5412 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5414 def GetRootItem(*args
, **kwargs
):
5415 """GetRootItem(self) -> TreeItemId"""
5416 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5418 def GetSelection(*args
, **kwargs
):
5419 """GetSelection(self) -> TreeItemId"""
5420 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5422 def GetSelections(*args
, **kwargs
):
5423 """GetSelections(self) -> PyObject"""
5424 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5426 def GetItemParent(*args
, **kwargs
):
5427 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5428 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5430 def GetFirstChild(*args
, **kwargs
):
5431 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5432 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5434 def GetNextChild(*args
, **kwargs
):
5435 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5436 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5438 def GetLastChild(*args
, **kwargs
):
5439 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5440 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5442 def GetNextSibling(*args
, **kwargs
):
5443 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5444 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5446 def GetPrevSibling(*args
, **kwargs
):
5447 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5448 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5450 def GetFirstVisibleItem(*args
, **kwargs
):
5451 """GetFirstVisibleItem(self) -> TreeItemId"""
5452 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5454 def GetNextVisible(*args
, **kwargs
):
5455 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5456 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5458 def GetPrevVisible(*args
, **kwargs
):
5459 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5460 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5462 def AddRoot(*args
, **kwargs
):
5463 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5464 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5466 def PrependItem(*args
, **kwargs
):
5468 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5469 TreeItemData data=None) -> TreeItemId
5471 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5473 def InsertItem(*args
, **kwargs
):
5475 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5476 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5478 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5480 def InsertItemBefore(*args
, **kwargs
):
5482 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5483 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5485 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5487 def AppendItem(*args
, **kwargs
):
5489 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5490 TreeItemData data=None) -> TreeItemId
5492 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5494 def Delete(*args
, **kwargs
):
5495 """Delete(self, TreeItemId item)"""
5496 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5498 def DeleteChildren(*args
, **kwargs
):
5499 """DeleteChildren(self, TreeItemId item)"""
5500 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5502 def DeleteAllItems(*args
, **kwargs
):
5503 """DeleteAllItems(self)"""
5504 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5506 def Expand(*args
, **kwargs
):
5507 """Expand(self, TreeItemId item)"""
5508 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5510 def Collapse(*args
, **kwargs
):
5511 """Collapse(self, TreeItemId item)"""
5512 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5514 def CollapseAndReset(*args
, **kwargs
):
5515 """CollapseAndReset(self, TreeItemId item)"""
5516 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5518 def Toggle(*args
, **kwargs
):
5519 """Toggle(self, TreeItemId item)"""
5520 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5522 def Unselect(*args
, **kwargs
):
5523 """Unselect(self)"""
5524 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5526 def UnselectItem(*args
, **kwargs
):
5527 """UnselectItem(self, TreeItemId item)"""
5528 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5530 def UnselectAll(*args
, **kwargs
):
5531 """UnselectAll(self)"""
5532 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5534 def SelectItem(*args
, **kwargs
):
5535 """SelectItem(self, TreeItemId item, bool select=True)"""
5536 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5538 def ToggleItemSelection(*args
, **kwargs
):
5539 """ToggleItemSelection(self, TreeItemId item)"""
5540 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5542 def EnsureVisible(*args
, **kwargs
):
5543 """EnsureVisible(self, TreeItemId item)"""
5544 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5546 def ScrollTo(*args
, **kwargs
):
5547 """ScrollTo(self, TreeItemId item)"""
5548 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5550 def EditLabel(*args
, **kwargs
):
5551 """EditLabel(self, TreeItemId item)"""
5552 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5554 def GetEditControl(*args
, **kwargs
):
5555 """GetEditControl(self) -> TextCtrl"""
5556 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5558 def EndEditLabel(*args
, **kwargs
):
5559 """EndEditLabel(self, TreeItemId item, bool discardChanges=False)"""
5560 return _controls_
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
5562 def SortChildren(*args
, **kwargs
):
5563 """SortChildren(self, TreeItemId item)"""
5564 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5566 def HitTest(*args
, **kwargs
):
5568 HitTest(Point point) -> (item, where)
5570 Determine which item (if any) belongs the given point. The coordinates
5571 specified are relative to the client area of tree ctrl and the where return
5572 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5575 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5577 def GetBoundingRect(*args
, **kwargs
):
5578 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5579 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5581 def SetState(*args
, **kwargs
):
5582 """SetState(self, TreeItemId node, int state)"""
5583 return _controls_
.TreeCtrl_SetState(*args
, **kwargs
)
5585 def GetState(*args
, **kwargs
):
5586 """GetState(self, TreeItemId node) -> int"""
5587 return _controls_
.TreeCtrl_GetState(*args
, **kwargs
)
5589 def GetClassDefaultAttributes(*args
, **kwargs
):
5591 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5593 Get the default attributes for this class. This is useful if you want
5594 to use the same font or colour in your own control as in a standard
5595 control -- which is a much better idea than hard coding specific
5596 colours or fonts which might look completely out of place on the
5597 user's system, especially if it uses themes.
5599 The variant parameter is only relevant under Mac currently and is
5600 ignore under other platforms. Under Mac, it will change the size of
5601 the returned font. See `wx.Window.SetWindowVariant` for more about
5604 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5606 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5608 class TreeCtrlPtr(TreeCtrl
):
5609 def __init__(self
, this
):
5611 if not hasattr(self
,"thisown"): self
.thisown
= 0
5612 self
.__class
__ = TreeCtrl
5613 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5615 def PreTreeCtrl(*args
, **kwargs
):
5616 """PreTreeCtrl() -> TreeCtrl"""
5617 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5621 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5623 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5625 Get the default attributes for this class. This is useful if you want
5626 to use the same font or colour in your own control as in a standard
5627 control -- which is a much better idea than hard coding specific
5628 colours or fonts which might look completely out of place on the
5629 user's system, especially if it uses themes.
5631 The variant parameter is only relevant under Mac currently and is
5632 ignore under other platforms. Under Mac, it will change the size of
5633 the returned font. See `wx.Window.SetWindowVariant` for more about
5636 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5638 #---------------------------------------------------------------------------
5640 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5641 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5642 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5643 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5644 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5645 class GenericDirCtrl(_core
.Control
):
5646 """Proxy of C++ GenericDirCtrl class"""
5648 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5649 def __init__(self
, *args
, **kwargs
):
5651 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5652 Point pos=DefaultPosition, Size size=DefaultSize,
5653 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5654 String filter=EmptyString,
5655 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5657 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5658 self
.this
= newobj
.this
5661 self
._setOORInfo
(self
)
5663 def Create(*args
, **kwargs
):
5665 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5666 Point pos=DefaultPosition, Size size=DefaultSize,
5667 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5668 String filter=EmptyString,
5669 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5671 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5673 def ExpandPath(*args
, **kwargs
):
5674 """ExpandPath(self, String path) -> bool"""
5675 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5677 def GetDefaultPath(*args
, **kwargs
):
5678 """GetDefaultPath(self) -> String"""
5679 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5681 def SetDefaultPath(*args
, **kwargs
):
5682 """SetDefaultPath(self, String path)"""
5683 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5685 def GetPath(*args
, **kwargs
):
5686 """GetPath(self) -> String"""
5687 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5689 def GetFilePath(*args
, **kwargs
):
5690 """GetFilePath(self) -> String"""
5691 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5693 def SetPath(*args
, **kwargs
):
5694 """SetPath(self, String path)"""
5695 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5697 def ShowHidden(*args
, **kwargs
):
5698 """ShowHidden(self, bool show)"""
5699 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5701 def GetShowHidden(*args
, **kwargs
):
5702 """GetShowHidden(self) -> bool"""
5703 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5705 def GetFilter(*args
, **kwargs
):
5706 """GetFilter(self) -> String"""
5707 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5709 def SetFilter(*args
, **kwargs
):
5710 """SetFilter(self, String filter)"""
5711 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5713 def GetFilterIndex(*args
, **kwargs
):
5714 """GetFilterIndex(self) -> int"""
5715 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5717 def SetFilterIndex(*args
, **kwargs
):
5718 """SetFilterIndex(self, int n)"""
5719 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5721 def GetRootId(*args
, **kwargs
):
5722 """GetRootId(self) -> TreeItemId"""
5723 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5725 def GetTreeCtrl(*args
, **kwargs
):
5726 """GetTreeCtrl(self) -> TreeCtrl"""
5727 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5729 def GetFilterListCtrl(*args
, **kwargs
):
5730 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5731 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5733 def FindChild(*args
, **kwargs
):
5735 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5737 Find the child that matches the first part of 'path'. E.g. if a child
5738 path is "/usr" and 'path' is "/usr/include" then the child for
5739 /usr is returned. If the path string has been used (we're at the
5740 leaf), done is set to True.
5743 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5745 def DoResize(*args
, **kwargs
):
5746 """DoResize(self)"""
5747 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5749 def ReCreateTree(*args
, **kwargs
):
5750 """ReCreateTree(self)"""
5751 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5754 class GenericDirCtrlPtr(GenericDirCtrl
):
5755 def __init__(self
, this
):
5757 if not hasattr(self
,"thisown"): self
.thisown
= 0
5758 self
.__class
__ = GenericDirCtrl
5759 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5760 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5762 def PreGenericDirCtrl(*args
, **kwargs
):
5763 """PreGenericDirCtrl() -> GenericDirCtrl"""
5764 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5768 class DirFilterListCtrl(Choice
):
5769 """Proxy of C++ DirFilterListCtrl class"""
5771 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5772 def __init__(self
, *args
, **kwargs
):
5774 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5775 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5777 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5778 self
.this
= newobj
.this
5781 self
._setOORInfo
(self
)
5783 def Create(*args
, **kwargs
):
5785 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5786 Size size=DefaultSize, long style=0) -> bool
5788 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5790 def FillFilterList(*args
, **kwargs
):
5791 """FillFilterList(self, String filter, int defaultFilter)"""
5792 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5795 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5796 def __init__(self
, this
):
5798 if not hasattr(self
,"thisown"): self
.thisown
= 0
5799 self
.__class
__ = DirFilterListCtrl
5800 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5802 def PreDirFilterListCtrl(*args
, **kwargs
):
5803 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5804 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5808 #---------------------------------------------------------------------------
5810 class PyControl(_core
.Control
):
5811 """Proxy of C++ PyControl class"""
5813 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5814 def __init__(self
, *args
, **kwargs
):
5816 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5817 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5818 String name=ControlNameStr) -> PyControl
5820 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5821 self
.this
= newobj
.this
5824 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5826 def _setCallbackInfo(*args
, **kwargs
):
5827 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5828 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5830 def SetBestSize(*args
, **kwargs
):
5831 """SetBestSize(self, Size size)"""
5832 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5834 def base_DoMoveWindow(*args
, **kwargs
):
5835 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
5836 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
5838 def base_DoSetSize(*args
, **kwargs
):
5839 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5840 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
5842 def base_DoSetClientSize(*args
, **kwargs
):
5843 """base_DoSetClientSize(self, int width, int height)"""
5844 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
5846 def base_DoSetVirtualSize(*args
, **kwargs
):
5847 """base_DoSetVirtualSize(self, int x, int y)"""
5848 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
5850 def base_DoGetSize(*args
, **kwargs
):
5851 """base_DoGetSize() -> (width, height)"""
5852 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
5854 def base_DoGetClientSize(*args
, **kwargs
):
5855 """base_DoGetClientSize() -> (width, height)"""
5856 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
5858 def base_DoGetPosition(*args
, **kwargs
):
5859 """base_DoGetPosition() -> (x,y)"""
5860 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
5862 def base_DoGetVirtualSize(*args
, **kwargs
):
5863 """base_DoGetVirtualSize(self) -> Size"""
5864 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
5866 def base_DoGetBestSize(*args
, **kwargs
):
5867 """base_DoGetBestSize(self) -> Size"""
5868 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
5870 def base_InitDialog(*args
, **kwargs
):
5871 """base_InitDialog(self)"""
5872 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
5874 def base_TransferDataToWindow(*args
, **kwargs
):
5875 """base_TransferDataToWindow(self) -> bool"""
5876 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
5878 def base_TransferDataFromWindow(*args
, **kwargs
):
5879 """base_TransferDataFromWindow(self) -> bool"""
5880 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
5882 def base_Validate(*args
, **kwargs
):
5883 """base_Validate(self) -> bool"""
5884 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
5886 def base_AcceptsFocus(*args
, **kwargs
):
5887 """base_AcceptsFocus(self) -> bool"""
5888 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
5890 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
5891 """base_AcceptsFocusFromKeyboard(self) -> bool"""
5892 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
5894 def base_GetMaxSize(*args
, **kwargs
):
5895 """base_GetMaxSize(self) -> Size"""
5896 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
5898 def base_AddChild(*args
, **kwargs
):
5899 """base_AddChild(self, Window child)"""
5900 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
5902 def base_RemoveChild(*args
, **kwargs
):
5903 """base_RemoveChild(self, Window child)"""
5904 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
5906 def base_ShouldInheritColours(*args
, **kwargs
):
5907 """base_ShouldInheritColours(self) -> bool"""
5908 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
5910 def base_ApplyParentThemeBackground(*args
, **kwargs
):
5911 """base_ApplyParentThemeBackground(self, Colour c)"""
5912 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
5914 def base_GetDefaultAttributes(*args
, **kwargs
):
5915 """base_GetDefaultAttributes(self) -> VisualAttributes"""
5916 return _controls_
.PyControl_base_GetDefaultAttributes(*args
, **kwargs
)
5919 class PyControlPtr(PyControl
):
5920 def __init__(self
, this
):
5922 if not hasattr(self
,"thisown"): self
.thisown
= 0
5923 self
.__class
__ = PyControl
5924 _controls_
.PyControl_swigregister(PyControlPtr
)
5926 def PrePyControl(*args
, **kwargs
):
5927 """PrePyControl() -> PyControl"""
5928 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5932 #---------------------------------------------------------------------------
5934 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5935 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5936 wxEVT_HELP
= _controls_
.wxEVT_HELP
5937 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5938 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5939 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5940 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5941 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5943 class HelpEvent(_core
.CommandEvent
):
5945 A help event is sent when the user has requested context-sensitive
5946 help. This can either be caused by the application requesting
5947 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5948 the system generating a WM_HELP message when the user pressed F1 or
5949 clicked on the query button in a dialog caption.
5951 A help event is sent to the window that the user clicked on, and is
5952 propagated up the window hierarchy until the event is processed or
5953 there are no more event handlers. The application should call
5954 event.GetId to check the identity of the clicked-on window, and then
5955 either show some suitable help or call event.Skip if the identifier is
5956 unrecognised. Calling Skip is important because it allows wxWindows to
5957 generate further events for ancestors of the clicked-on
5958 window. Otherwise it would be impossible to show help for container
5959 windows, since processing would stop after the first window found.
5962 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5963 def __init__(self
, *args
, **kwargs
):
5964 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5965 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
5966 self
.this
= newobj
.this
5969 def GetPosition(*args
, **kwargs
):
5971 GetPosition(self) -> Point
5973 Returns the left-click position of the mouse, in screen
5974 coordinates. This allows the application to position the help
5977 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5979 def SetPosition(*args
, **kwargs
):
5981 SetPosition(self, Point pos)
5983 Sets the left-click position of the mouse, in screen coordinates.
5985 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5987 def GetLink(*args
, **kwargs
):
5989 GetLink(self) -> String
5991 Get an optional link to further help
5993 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5995 def SetLink(*args
, **kwargs
):
5997 SetLink(self, String link)
5999 Set an optional link to further help
6001 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
6003 def GetTarget(*args
, **kwargs
):
6005 GetTarget(self) -> String
6007 Get an optional target to display help in. E.g. a window specification
6009 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
6011 def SetTarget(*args
, **kwargs
):
6013 SetTarget(self, String target)
6015 Set an optional target to display help in. E.g. a window specification
6017 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
6020 class HelpEventPtr(HelpEvent
):
6021 def __init__(self
, this
):
6023 if not hasattr(self
,"thisown"): self
.thisown
= 0
6024 self
.__class
__ = HelpEvent
6025 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
6027 class ContextHelp(_core
.Object
):
6029 This class changes the cursor to a query and puts the application into
6030 a 'context-sensitive help mode'. When the user left-clicks on a window
6031 within the specified window, a ``EVT_HELP`` event is sent to that
6032 control, and the application may respond to it by popping up some
6035 There are a couple of ways to invoke this behaviour implicitly:
6037 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
6038 (Windows only). This will put a question mark in the titlebar,
6039 and Windows will put the application into context-sensitive help
6040 mode automatically, with further programming.
6042 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
6043 to create a context help object. Normally you will write your
6044 application so that this button is only added to a dialog for
6045 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
6048 :see: `wx.ContextHelpButton`
6052 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6053 def __init__(self
, *args
, **kwargs
):
6055 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
6057 Constructs a context help object, calling BeginContextHelp if doNow is
6060 If window is None, the top window is used.
6062 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
6063 self
.this
= newobj
.this
6066 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
6069 if self
.thisown
: destroy(self
)
6072 def BeginContextHelp(*args
, **kwargs
):
6074 BeginContextHelp(self, Window window=None) -> bool
6076 Puts the application into context-sensitive help mode. window is the
6077 window which will be used to catch events; if NULL, the top window
6080 Returns true if the application was successfully put into
6081 context-sensitive help mode. This function only returns when the event
6084 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
6086 def EndContextHelp(*args
, **kwargs
):
6088 EndContextHelp(self) -> bool
6090 Ends context-sensitive help mode. Not normally called by the
6093 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
6096 class ContextHelpPtr(ContextHelp
):
6097 def __init__(self
, this
):
6099 if not hasattr(self
,"thisown"): self
.thisown
= 0
6100 self
.__class
__ = ContextHelp
6101 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
6103 class ContextHelpButton(BitmapButton
):
6105 Instances of this class may be used to add a question mark button that
6106 when pressed, puts the application into context-help mode. It does
6107 this by creating a wx.ContextHelp object which itself generates a
6108 ``EVT_HELP`` event when the user clicks on a window.
6110 On Windows, you may add a question-mark icon to a dialog by use of the
6111 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
6112 will have to add a button explicitly, usually next to OK, Cancel or
6115 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
6119 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6120 def __init__(self
, *args
, **kwargs
):
6122 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
6123 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
6125 Constructor, creating and showing a context help button.
6127 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
6128 self
.this
= newobj
.this
6131 self
._setOORInfo
(self
)
6134 class ContextHelpButtonPtr(ContextHelpButton
):
6135 def __init__(self
, this
):
6137 if not hasattr(self
,"thisown"): self
.thisown
= 0
6138 self
.__class
__ = ContextHelpButton
6139 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
6141 class HelpProvider(object):
6143 wx.HelpProvider is an abstract class used by a program
6144 implementing context-sensitive help to show the help text for the
6147 The current help provider must be explicitly set by the
6148 application using wx.HelpProvider.Set().
6150 def __init__(self
): raise RuntimeError, "No constructor defined"
6152 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6153 def Set(*args
, **kwargs
):
6155 Set(HelpProvider helpProvider) -> HelpProvider
6157 Sset the current, application-wide help provider. Returns the previous
6158 one. Unlike some other classes, the help provider is not created on
6159 demand. This must be explicitly done by the application.
6161 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6163 Set
= staticmethod(Set
)
6164 def Get(*args
, **kwargs
):
6166 Get() -> HelpProvider
6168 Return the current application-wide help provider.
6170 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6172 Get
= staticmethod(Get
)
6173 def GetHelp(*args
, **kwargs
):
6175 GetHelp(self, Window window) -> String
6177 Gets the help string for this window. Its interpretation is dependent
6178 on the help provider except that empty string always means that no
6179 help is associated with the window.
6181 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
6183 def ShowHelp(*args
, **kwargs
):
6185 ShowHelp(self, Window window) -> bool
6187 Shows help for the given window. Uses GetHelp internally if
6188 applicable. Returns True if it was done, or False if no help was
6189 available for this window.
6191 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
6193 def AddHelp(*args
, **kwargs
):
6195 AddHelp(self, Window window, String text)
6197 Associates the text with the given window.
6199 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
6201 def AddHelpById(*args
, **kwargs
):
6203 AddHelpById(self, int id, String text)
6205 This version associates the given text with all windows with this
6206 id. May be used to set the same help string for all Cancel buttons in
6207 the application, for example.
6209 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
6211 def RemoveHelp(*args
, **kwargs
):
6213 RemoveHelp(self, Window window)
6215 Removes the association between the window pointer and the help
6216 text. This is called by the wx.Window destructor. Without this, the
6217 table of help strings will fill up and when window pointers are
6218 reused, the wrong help string will be found.
6220 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
6222 def Destroy(*args
, **kwargs
):
6224 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
6227 class HelpProviderPtr(HelpProvider
):
6228 def __init__(self
, this
):
6230 if not hasattr(self
,"thisown"): self
.thisown
= 0
6231 self
.__class
__ = HelpProvider
6232 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
6234 def HelpProvider_Set(*args
, **kwargs
):
6236 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
6238 Sset the current, application-wide help provider. Returns the previous
6239 one. Unlike some other classes, the help provider is not created on
6240 demand. This must be explicitly done by the application.
6242 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6244 def HelpProvider_Get(*args
, **kwargs
):
6246 HelpProvider_Get() -> HelpProvider
6248 Return the current application-wide help provider.
6250 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6252 class SimpleHelpProvider(HelpProvider
):
6254 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6255 supports only plain text help strings, and shows the string associated
6256 with the control (if any) in a tooltip.
6259 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6260 def __init__(self
, *args
, **kwargs
):
6262 __init__(self) -> SimpleHelpProvider
6264 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6265 supports only plain text help strings, and shows the string associated
6266 with the control (if any) in a tooltip.
6268 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
6269 self
.this
= newobj
.this
6273 class SimpleHelpProviderPtr(SimpleHelpProvider
):
6274 def __init__(self
, this
):
6276 if not hasattr(self
,"thisown"): self
.thisown
= 0
6277 self
.__class
__ = SimpleHelpProvider
6278 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
6280 #---------------------------------------------------------------------------
6282 class DragImage(_core
.Object
):
6283 """Proxy of C++ DragImage class"""
6285 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6286 def __init__(self
, *args
, **kwargs
):
6287 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6288 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
6289 self
.this
= newobj
.this
6292 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
6295 if self
.thisown
: destroy(self
)
6298 def SetBackingBitmap(*args
, **kwargs
):
6299 """SetBackingBitmap(self, Bitmap bitmap)"""
6300 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6302 def BeginDrag(*args
, **kwargs
):
6304 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6305 Rect rect=None) -> bool
6307 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6309 def BeginDragBounded(*args
, **kwargs
):
6310 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6311 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6313 def EndDrag(*args
, **kwargs
):
6314 """EndDrag(self) -> bool"""
6315 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6317 def Move(*args
, **kwargs
):
6318 """Move(self, Point pt) -> bool"""
6319 return _controls_
.DragImage_Move(*args
, **kwargs
)
6321 def Show(*args
, **kwargs
):
6322 """Show(self) -> bool"""
6323 return _controls_
.DragImage_Show(*args
, **kwargs
)
6325 def Hide(*args
, **kwargs
):
6326 """Hide(self) -> bool"""
6327 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6329 def GetImageRect(*args
, **kwargs
):
6330 """GetImageRect(self, Point pos) -> Rect"""
6331 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6333 def DoDrawImage(*args
, **kwargs
):
6334 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6335 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6337 def UpdateBackingFromWindow(*args
, **kwargs
):
6338 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6339 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6341 def RedrawImage(*args
, **kwargs
):
6342 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6343 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6346 class DragImagePtr(DragImage
):
6347 def __init__(self
, this
):
6349 if not hasattr(self
,"thisown"): self
.thisown
= 0
6350 self
.__class
__ = DragImage
6351 _controls_
.DragImage_swigregister(DragImagePtr
)
6353 def DragIcon(*args
, **kwargs
):
6354 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6355 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6359 def DragString(*args
, **kwargs
):
6360 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6361 val
= _controls_
.new_DragString(*args
, **kwargs
)
6365 def DragTreeItem(*args
, **kwargs
):
6366 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6367 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6371 def DragListItem(*args
, **kwargs
):
6372 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6373 val
= _controls_
.new_DragListItem(*args
, **kwargs
)