1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
):
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 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
58 BU_LEFT
= _controls_
.BU_LEFT
59 BU_TOP
= _controls_
.BU_TOP
60 BU_RIGHT
= _controls_
.BU_RIGHT
61 BU_BOTTOM
= _controls_
.BU_BOTTOM
62 BU_ALIGN_MASK
= _controls_
.BU_ALIGN_MASK
63 BU_EXACTFIT
= _controls_
.BU_EXACTFIT
64 BU_AUTODRAW
= _controls_
.BU_AUTODRAW
65 class Button(_core
.Control
):
67 A button is a control that contains a text string, and is one of the most
68 common elements of a GUI. It may be placed on a dialog box or panel, or
69 indeed almost any other window.
71 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
73 def __init__(self
, *args
, **kwargs
):
75 __init__(self, Window parent, int id=-1, String label=EmptyString,
76 Point pos=DefaultPosition, Size size=DefaultSize,
77 long style=0, Validator validator=DefaultValidator,
78 String name=ButtonNameStr) -> Button
80 Create and show a button. The preferred way to create standard
81 buttons is to use a standard ID and an empty label. In this case
82 wxWigets will automatically use a stock label that coresponds to the
83 ID given. In additon, the button will be decorated with stock icons
86 _controls_
.Button_swiginit(self
,_controls_
.new_Button(*args
, **kwargs
))
87 self
._setOORInfo
(self
)
89 def Create(*args
, **kwargs
):
91 Create(self, Window parent, int id=-1, String label=EmptyString,
92 Point pos=DefaultPosition, Size size=DefaultSize,
93 long style=0, Validator validator=DefaultValidator,
94 String name=ButtonNameStr) -> bool
96 Acutally create the GUI Button for 2-phase creation.
98 return _controls_
.Button_Create(*args
, **kwargs
)
100 def SetDefault(*args
, **kwargs
):
104 This sets the button to be the default item for the panel or dialog box.
106 return _controls_
.Button_SetDefault(*args
, **kwargs
)
108 def GetDefaultSize(*args
, **kwargs
):
110 GetDefaultSize() -> Size
112 Returns the default button size for this platform.
114 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
116 GetDefaultSize
= staticmethod(GetDefaultSize
)
117 def GetClassDefaultAttributes(*args
, **kwargs
):
119 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
121 Get the default attributes for this class. This is useful if you want
122 to use the same font or colour in your own control as in a standard
123 control -- which is a much better idea than hard coding specific
124 colours or fonts which might look completely out of place on the
125 user's system, especially if it uses themes.
127 The variant parameter is only relevant under Mac currently and is
128 ignore under other platforms. Under Mac, it will change the size of
129 the returned font. See `wx.Window.SetWindowVariant` for more about
132 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
134 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
135 _controls_
.Button_swigregister(Button
)
136 cvar
= _controls_
.cvar
137 ButtonNameStr
= cvar
.ButtonNameStr
139 def PreButton(*args
, **kwargs
):
141 PreButton() -> Button
143 Precreate a Button for 2-phase creation.
145 val
= _controls_
.new_PreButton(*args
, **kwargs
)
148 def Button_GetDefaultSize(*args
):
150 Button_GetDefaultSize() -> Size
152 Returns the default button size for this platform.
154 return _controls_
.Button_GetDefaultSize(*args
)
156 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
158 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
160 Get the default attributes for this class. This is useful if you want
161 to use the same font or colour in your own control as in a standard
162 control -- which is a much better idea than hard coding specific
163 colours or fonts which might look completely out of place on the
164 user's system, especially if it uses themes.
166 The variant parameter is only relevant under Mac currently and is
167 ignore under other platforms. Under Mac, it will change the size of
168 the returned font. See `wx.Window.SetWindowVariant` for more about
171 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
173 class BitmapButton(Button
):
175 A Button that contains a bitmap. A bitmap button can be supplied with a
176 single bitmap, and wxWidgets will draw all button states using this bitmap. If
177 the application needs more control, additional bitmaps for the selected state,
178 unpressed focused state, and greyed-out state may be supplied.
180 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
181 __repr__
= _swig_repr
182 def __init__(self
, *args
, **kwargs
):
184 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
185 Point pos=DefaultPosition, Size size=DefaultSize,
186 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
187 String name=ButtonNameStr) -> BitmapButton
189 Create and show a button with a bitmap for the label.
191 _controls_
.BitmapButton_swiginit(self
,_controls_
.new_BitmapButton(*args
, **kwargs
))
192 self
._setOORInfo
(self
)
194 def Create(*args
, **kwargs
):
196 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
197 Point pos=DefaultPosition, Size size=DefaultSize,
198 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
199 String name=ButtonNameStr) -> bool
201 Acutally create the GUI BitmapButton for 2-phase creation.
203 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
205 def GetBitmapLabel(*args
, **kwargs
):
207 GetBitmapLabel(self) -> Bitmap
209 Returns the label bitmap (the one passed to the constructor).
211 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
213 def GetBitmapDisabled(*args
, **kwargs
):
215 GetBitmapDisabled(self) -> Bitmap
217 Returns the bitmap for the disabled state.
219 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
221 def GetBitmapFocus(*args
, **kwargs
):
223 GetBitmapFocus(self) -> Bitmap
225 Returns the bitmap for the focused state.
227 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
229 def GetBitmapSelected(*args
, **kwargs
):
231 GetBitmapSelected(self) -> Bitmap
233 Returns the bitmap for the selected state.
235 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
237 def GetBitmapHover(*args
, **kwargs
):
239 GetBitmapHover(self) -> Bitmap
241 Returns the bitmap used when the mouse is over the button, may be invalid.
243 return _controls_
.BitmapButton_GetBitmapHover(*args
, **kwargs
)
245 def SetBitmapDisabled(*args
, **kwargs
):
247 SetBitmapDisabled(self, Bitmap bitmap)
249 Sets the bitmap for the disabled button appearance.
251 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
253 def SetBitmapFocus(*args
, **kwargs
):
255 SetBitmapFocus(self, Bitmap bitmap)
257 Sets the bitmap for the button appearance when it has the keyboard focus.
259 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
261 def SetBitmapSelected(*args
, **kwargs
):
263 SetBitmapSelected(self, Bitmap bitmap)
265 Sets the bitmap for the selected (depressed) button appearance.
267 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
269 def SetBitmapLabel(*args
, **kwargs
):
271 SetBitmapLabel(self, Bitmap bitmap)
273 Sets the bitmap label for the button. This is the bitmap used for the
274 unselected state, and for all other states if no other bitmaps are provided.
276 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
278 def SetBitmapHover(*args
, **kwargs
):
280 SetBitmapHover(self, Bitmap hover)
282 Sets the bitmap to be shown when the mouse is over the button. This function
283 is new since wxWidgets version 2.7.0 and the hover bitmap is currently only
286 return _controls_
.BitmapButton_SetBitmapHover(*args
, **kwargs
)
288 def SetMargins(*args
, **kwargs
):
289 """SetMargins(self, int x, int y)"""
290 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
292 def GetMarginX(*args
, **kwargs
):
293 """GetMarginX(self) -> int"""
294 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
296 def GetMarginY(*args
, **kwargs
):
297 """GetMarginY(self) -> int"""
298 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
300 _controls_
.BitmapButton_swigregister(BitmapButton
)
302 def PreBitmapButton(*args
, **kwargs
):
304 PreBitmapButton() -> BitmapButton
306 Precreate a BitmapButton for 2-phase creation.
308 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
311 #---------------------------------------------------------------------------
313 CHK_2STATE
= _controls_
.CHK_2STATE
314 CHK_3STATE
= _controls_
.CHK_3STATE
315 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
316 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
317 CHK_CHECKED
= _controls_
.CHK_CHECKED
318 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
319 class CheckBox(_core
.Control
):
321 A checkbox is a labelled box which by default is either on (the
322 checkmark is visible) or off (no checkmark). Optionally (When the
323 wx.CHK_3STATE style flag is set) it can have a third state, called the
324 mixed or undetermined state. Often this is used as a "Does Not
327 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
328 __repr__
= _swig_repr
329 def __init__(self
, *args
, **kwargs
):
331 __init__(self, Window parent, int id=-1, String label=EmptyString,
332 Point pos=DefaultPosition, Size size=DefaultSize,
333 long style=0, Validator validator=DefaultValidator,
334 String name=CheckBoxNameStr) -> CheckBox
336 Creates and shows a CheckBox control
338 _controls_
.CheckBox_swiginit(self
,_controls_
.new_CheckBox(*args
, **kwargs
))
339 self
._setOORInfo
(self
)
341 def Create(*args
, **kwargs
):
343 Create(self, Window parent, int id=-1, String label=EmptyString,
344 Point pos=DefaultPosition, Size size=DefaultSize,
345 long style=0, Validator validator=DefaultValidator,
346 String name=CheckBoxNameStr) -> bool
348 Actually create the GUI CheckBox for 2-phase creation.
350 return _controls_
.CheckBox_Create(*args
, **kwargs
)
352 def GetValue(*args
, **kwargs
):
354 GetValue(self) -> bool
356 Gets the state of a 2-state CheckBox. Returns True if it is checked,
359 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
361 def IsChecked(*args
, **kwargs
):
363 IsChecked(self) -> bool
365 Similar to GetValue, but raises an exception if it is not a 2-state
368 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
370 def SetValue(*args
, **kwargs
):
372 SetValue(self, bool state)
374 Set the state of a 2-state CheckBox. Pass True for checked, False for
377 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
379 def Get3StateValue(*args
, **kwargs
):
381 Get3StateValue(self) -> int
383 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
384 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
385 the undetermined state. Raises an exceptiion when the function is
386 used with a 2-state CheckBox.
388 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
390 def Set3StateValue(*args
, **kwargs
):
392 Set3StateValue(self, int state)
394 Sets the CheckBox to the given state. The state parameter can be one
395 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
396 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
397 exception when the CheckBox is a 2-state checkbox and setting the
398 state to wx.CHK_UNDETERMINED.
400 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
402 def Is3State(*args
, **kwargs
):
404 Is3State(self) -> bool
406 Returns whether or not the CheckBox is a 3-state CheckBox.
408 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
410 def Is3rdStateAllowedForUser(*args
, **kwargs
):
412 Is3rdStateAllowedForUser(self) -> bool
414 Returns whether or not the user can set the CheckBox to the third
417 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
419 def GetClassDefaultAttributes(*args
, **kwargs
):
421 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
423 Get the default attributes for this class. This is useful if you want
424 to use the same font or colour in your own control as in a standard
425 control -- which is a much better idea than hard coding specific
426 colours or fonts which might look completely out of place on the
427 user's system, especially if it uses themes.
429 The variant parameter is only relevant under Mac currently and is
430 ignore under other platforms. Under Mac, it will change the size of
431 the returned font. See `wx.Window.SetWindowVariant` for more about
434 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
436 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
437 _controls_
.CheckBox_swigregister(CheckBox
)
438 CheckBoxNameStr
= cvar
.CheckBoxNameStr
440 def PreCheckBox(*args
, **kwargs
):
442 PreCheckBox() -> CheckBox
444 Precreate a CheckBox for 2-phase creation.
446 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
449 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
451 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
453 Get the default attributes for this class. This is useful if you want
454 to use the same font or colour in your own control as in a standard
455 control -- which is a much better idea than hard coding specific
456 colours or fonts which might look completely out of place on the
457 user's system, especially if it uses themes.
459 The variant parameter is only relevant under Mac currently and is
460 ignore under other platforms. Under Mac, it will change the size of
461 the returned font. See `wx.Window.SetWindowVariant` for more about
464 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
466 #---------------------------------------------------------------------------
468 class Choice(_core
.ControlWithItems
):
470 A Choice control is used to select one of a list of strings.
471 Unlike a `wx.ListBox`, only the selection is visible until the
472 user pulls down the menu of choices.
474 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
475 __repr__
= _swig_repr
476 def __init__(self
, *args
, **kwargs
):
478 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
479 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
480 String name=ChoiceNameStr) -> Choice
482 Create and show a Choice control
484 _controls_
.Choice_swiginit(self
,_controls_
.new_Choice(*args
, **kwargs
))
485 self
._setOORInfo
(self
)
487 def Create(*args
, **kwargs
):
489 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
490 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
491 String name=ChoiceNameStr) -> bool
493 Actually create the GUI Choice control for 2-phase creation
495 return _controls_
.Choice_Create(*args
, **kwargs
)
497 def GetCurrentSelection(*args
, **kwargs
):
499 GetCurrentSelection(self) -> int
501 Unlike `GetSelection` which only returns the accepted selection value,
502 i.e. the selection in the control once the user closes the dropdown
503 list, this function returns the current selection. That is, while the
504 dropdown list is shown, it returns the currently selected item in
505 it. When it is not shown, its result is the same as for the other
508 return _controls_
.Choice_GetCurrentSelection(*args
, **kwargs
)
510 def GetClassDefaultAttributes(*args
, **kwargs
):
512 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
514 Get the default attributes for this class. This is useful if you want
515 to use the same font or colour in your own control as in a standard
516 control -- which is a much better idea than hard coding specific
517 colours or fonts which might look completely out of place on the
518 user's system, especially if it uses themes.
520 The variant parameter is only relevant under Mac currently and is
521 ignore under other platforms. Under Mac, it will change the size of
522 the returned font. See `wx.Window.SetWindowVariant` for more about
525 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
527 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
528 _controls_
.Choice_swigregister(Choice
)
529 ChoiceNameStr
= cvar
.ChoiceNameStr
531 def PreChoice(*args
, **kwargs
):
533 PreChoice() -> Choice
535 Precreate a Choice control for 2-phase creation.
537 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
540 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
542 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
544 Get the default attributes for this class. This is useful if you want
545 to use the same font or colour in your own control as in a standard
546 control -- which is a much better idea than hard coding specific
547 colours or fonts which might look completely out of place on the
548 user's system, especially if it uses themes.
550 The variant parameter is only relevant under Mac currently and is
551 ignore under other platforms. Under Mac, it will change the size of
552 the returned font. See `wx.Window.SetWindowVariant` for more about
555 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
557 #---------------------------------------------------------------------------
559 class ComboBox(Choice
):
561 A combobox is like a combination of an edit control and a
562 listbox. It can be displayed as static list with editable or
563 read-only text field; or a drop-down list with text field.
565 A combobox permits a single selection only. Combobox items are
568 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
569 __repr__
= _swig_repr
570 def __init__(self
, *args
, **kwargs
):
572 __init__(Window parent, int id, String value=EmptyString,
573 Point pos=DefaultPosition, Size size=DefaultSize,
574 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
575 String name=ComboBoxNameStr) -> ComboBox
577 Constructor, creates and shows a ComboBox control.
579 _controls_
.ComboBox_swiginit(self
,_controls_
.new_ComboBox(*args
, **kwargs
))
580 self
._setOORInfo
(self
)
582 def Create(*args
, **kwargs
):
584 Create(Window parent, int id, String value=EmptyString,
585 Point pos=DefaultPosition, Size size=DefaultSize,
586 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
587 String name=ChoiceNameStr) -> bool
589 Actually create the GUI wxComboBox control for 2-phase creation
591 return _controls_
.ComboBox_Create(*args
, **kwargs
)
593 def GetValue(*args
, **kwargs
):
595 GetValue(self) -> String
597 Returns the current value in the combobox text field.
599 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
601 def SetValue(*args
, **kwargs
):
602 """SetValue(self, String value)"""
603 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
605 def Copy(*args
, **kwargs
):
609 Copies the selected text to the clipboard.
611 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
613 def Cut(*args
, **kwargs
):
617 Copies the selected text to the clipboard and removes the selection.
619 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
621 def Paste(*args
, **kwargs
):
625 Pastes text from the clipboard to the text field.
627 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
629 def SetInsertionPoint(*args
, **kwargs
):
631 SetInsertionPoint(self, long pos)
633 Sets the insertion point in the combobox text field.
635 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
637 def GetInsertionPoint(*args
, **kwargs
):
639 GetInsertionPoint(self) -> long
641 Returns the insertion point for the combobox's text field.
643 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
645 def GetLastPosition(*args
, **kwargs
):
647 GetLastPosition(self) -> long
649 Returns the last position in the combobox text field.
651 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
653 def Replace(*args
, **kwargs
):
655 Replace(self, long from, long to, String value)
657 Replaces the text between two positions with the given text, in the
660 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
662 def SetMark(*args
, **kwargs
):
664 SetMark(self, long from, long to)
666 Selects the text between the two positions in the combobox text field.
668 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
670 def GetMark(*args
, **kwargs
):
672 GetMark(self) -> (from, to)
674 Gets the positions of the begining and ending of the selection mark in
675 the combobox text field.
677 return _controls_
.ComboBox_GetMark(*args
, **kwargs
)
679 def GetCurrentSelection(*args
, **kwargs
):
681 GetCurrentSelection(self) -> int
683 Unlike `GetSelection` which only returns the accepted selection value,
684 i.e. the selection in the control once the user closes the dropdown
685 list, this function returns the current selection. That is, while the
686 dropdown list is shown, it returns the currently selected item in
687 it. When it is not shown, its result is the same as for the other
690 return _controls_
.ComboBox_GetCurrentSelection(*args
, **kwargs
)
692 def SetStringSelection(*args
, **kwargs
):
694 SetStringSelection(self, String string) -> bool
696 Select the item with the specifed string
698 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
700 def SetString(*args
, **kwargs
):
702 SetString(self, int n, String string)
704 Set the label for the n'th item (zero based) in the list.
706 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
708 def SetEditable(*args
, **kwargs
):
709 """SetEditable(self, bool editable)"""
710 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
712 def SetInsertionPointEnd(*args
, **kwargs
):
714 SetInsertionPointEnd(self)
716 Sets the insertion point at the end of the combobox text field.
718 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
720 def Remove(*args
, **kwargs
):
722 Remove(self, long from, long to)
724 Removes the text between the two positions in the combobox text field.
726 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
728 def IsEditable(*args
, **kwargs
):
730 IsEditable(self) -> bool
732 Returns True if the combo is ediatable (not read-only.)
734 return _controls_
.ComboBox_IsEditable(*args
, **kwargs
)
736 def Undo(*args
, **kwargs
):
740 Redoes the last undo in the text field. Windows only.
742 return _controls_
.ComboBox_Undo(*args
, **kwargs
)
744 def Redo(*args
, **kwargs
):
748 Undoes the last edit in the text field. Windows only.
750 return _controls_
.ComboBox_Redo(*args
, **kwargs
)
752 def SelectAll(*args
, **kwargs
):
756 Select all the text in the combo's text field.
758 return _controls_
.ComboBox_SelectAll(*args
, **kwargs
)
760 def CanCopy(*args
, **kwargs
):
762 CanCopy(self) -> bool
764 Returns True if the combobox is editable and there is a text selection
765 to copy to the clipboard. Only available on Windows.
767 return _controls_
.ComboBox_CanCopy(*args
, **kwargs
)
769 def CanCut(*args
, **kwargs
):
773 Returns True if the combobox is editable and there is a text selection
774 to copy to the clipboard. Only available on Windows.
776 return _controls_
.ComboBox_CanCut(*args
, **kwargs
)
778 def CanPaste(*args
, **kwargs
):
780 CanPaste(self) -> bool
782 Returns True if the combobox is editable and there is text on the
783 clipboard that can be pasted into the text field. Only available on
786 return _controls_
.ComboBox_CanPaste(*args
, **kwargs
)
788 def CanUndo(*args
, **kwargs
):
790 CanUndo(self) -> bool
792 Returns True if the combobox is editable and the last edit can be
793 undone. Only available on Windows.
795 return _controls_
.ComboBox_CanUndo(*args
, **kwargs
)
797 def CanRedo(*args
, **kwargs
):
799 CanRedo(self) -> bool
801 Returns True if the combobox is editable and the last undo can be
802 redone. Only available on Windows.
804 return _controls_
.ComboBox_CanRedo(*args
, **kwargs
)
806 def GetClassDefaultAttributes(*args
, **kwargs
):
808 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
810 Get the default attributes for this class. This is useful if you want
811 to use the same font or colour in your own control as in a standard
812 control -- which is a much better idea than hard coding specific
813 colours or fonts which might look completely out of place on the
814 user's system, especially if it uses themes.
816 The variant parameter is only relevant under Mac currently and is
817 ignore under other platforms. Under Mac, it will change the size of
818 the returned font. See `wx.Window.SetWindowVariant` for more about
821 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
823 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
824 _controls_
.ComboBox_swigregister(ComboBox
)
825 ComboBoxNameStr
= cvar
.ComboBoxNameStr
827 def PreComboBox(*args
, **kwargs
):
829 PreComboBox() -> ComboBox
831 Precreate a ComboBox control for 2-phase creation.
833 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
836 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
838 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
840 Get the default attributes for this class. This is useful if you want
841 to use the same font or colour in your own control as in a standard
842 control -- which is a much better idea than hard coding specific
843 colours or fonts which might look completely out of place on the
844 user's system, especially if it uses themes.
846 The variant parameter is only relevant under Mac currently and is
847 ignore under other platforms. Under Mac, it will change the size of
848 the returned font. See `wx.Window.SetWindowVariant` for more about
851 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
853 #---------------------------------------------------------------------------
855 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
856 GA_VERTICAL
= _controls_
.GA_VERTICAL
857 GA_SMOOTH
= _controls_
.GA_SMOOTH
858 GA_PROGRESSBAR
= 0 # obsolete
859 class Gauge(_core
.Control
):
860 """Proxy of C++ Gauge class"""
861 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
862 __repr__
= _swig_repr
863 def __init__(self
, *args
, **kwargs
):
865 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
866 Size size=DefaultSize, long style=GA_HORIZONTAL,
867 Validator validator=DefaultValidator,
868 String name=GaugeNameStr) -> Gauge
870 _controls_
.Gauge_swiginit(self
,_controls_
.new_Gauge(*args
, **kwargs
))
871 self
._setOORInfo
(self
)
873 def Create(*args
, **kwargs
):
875 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
876 Size size=DefaultSize, long style=GA_HORIZONTAL,
877 Validator validator=DefaultValidator,
878 String name=GaugeNameStr) -> bool
880 return _controls_
.Gauge_Create(*args
, **kwargs
)
882 def SetRange(*args
, **kwargs
):
883 """SetRange(self, int range)"""
884 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
886 def GetRange(*args
, **kwargs
):
887 """GetRange(self) -> int"""
888 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
890 def SetValue(*args
, **kwargs
):
891 """SetValue(self, int pos)"""
892 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
894 def GetValue(*args
, **kwargs
):
895 """GetValue(self) -> int"""
896 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
898 def IsVertical(*args
, **kwargs
):
899 """IsVertical(self) -> bool"""
900 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
902 def SetShadowWidth(*args
, **kwargs
):
903 """SetShadowWidth(self, int w)"""
904 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
906 def GetShadowWidth(*args
, **kwargs
):
907 """GetShadowWidth(self) -> int"""
908 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
910 def SetBezelFace(*args
, **kwargs
):
911 """SetBezelFace(self, int w)"""
912 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
914 def GetBezelFace(*args
, **kwargs
):
915 """GetBezelFace(self) -> int"""
916 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
918 def GetClassDefaultAttributes(*args
, **kwargs
):
920 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
922 Get the default attributes for this class. This is useful if you want
923 to use the same font or colour in your own control as in a standard
924 control -- which is a much better idea than hard coding specific
925 colours or fonts which might look completely out of place on the
926 user's system, especially if it uses themes.
928 The variant parameter is only relevant under Mac currently and is
929 ignore under other platforms. Under Mac, it will change the size of
930 the returned font. See `wx.Window.SetWindowVariant` for more about
933 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
935 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
936 _controls_
.Gauge_swigregister(Gauge
)
937 GaugeNameStr
= cvar
.GaugeNameStr
939 def PreGauge(*args
, **kwargs
):
940 """PreGauge() -> Gauge"""
941 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
944 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
946 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
948 Get the default attributes for this class. This is useful if you want
949 to use the same font or colour in your own control as in a standard
950 control -- which is a much better idea than hard coding specific
951 colours or fonts which might look completely out of place on the
952 user's system, especially if it uses themes.
954 The variant parameter is only relevant under Mac currently and is
955 ignore under other platforms. Under Mac, it will change the size of
956 the returned font. See `wx.Window.SetWindowVariant` for more about
959 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
961 #---------------------------------------------------------------------------
963 class StaticBox(_core
.Control
):
964 """Proxy of C++ StaticBox class"""
965 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
966 __repr__
= _swig_repr
967 def __init__(self
, *args
, **kwargs
):
969 __init__(self, Window parent, int id=-1, String label=EmptyString,
970 Point pos=DefaultPosition, Size size=DefaultSize,
971 long style=0, String name=StaticBoxNameStr) -> StaticBox
973 _controls_
.StaticBox_swiginit(self
,_controls_
.new_StaticBox(*args
, **kwargs
))
974 self
._setOORInfo
(self
)
976 def Create(*args
, **kwargs
):
978 Create(self, Window parent, int id=-1, String label=EmptyString,
979 Point pos=DefaultPosition, Size size=DefaultSize,
980 long style=0, String name=StaticBoxNameStr) -> bool
982 return _controls_
.StaticBox_Create(*args
, **kwargs
)
984 def GetClassDefaultAttributes(*args
, **kwargs
):
986 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
988 Get the default attributes for this class. This is useful if you want
989 to use the same font or colour in your own control as in a standard
990 control -- which is a much better idea than hard coding specific
991 colours or fonts which might look completely out of place on the
992 user's system, especially if it uses themes.
994 The variant parameter is only relevant under Mac currently and is
995 ignore under other platforms. Under Mac, it will change the size of
996 the returned font. See `wx.Window.SetWindowVariant` for more about
999 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1001 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1002 _controls_
.StaticBox_swigregister(StaticBox
)
1003 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
1004 StaticBoxNameStr
= cvar
.StaticBoxNameStr
1005 StaticTextNameStr
= cvar
.StaticTextNameStr
1007 def PreStaticBox(*args
, **kwargs
):
1008 """PreStaticBox() -> StaticBox"""
1009 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
1012 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
1014 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1016 Get the default attributes for this class. This is useful if you want
1017 to use the same font or colour in your own control as in a standard
1018 control -- which is a much better idea than hard coding specific
1019 colours or fonts which might look completely out of place on the
1020 user's system, especially if it uses themes.
1022 The variant parameter is only relevant under Mac currently and is
1023 ignore under other platforms. Under Mac, it will change the size of
1024 the returned font. See `wx.Window.SetWindowVariant` for more about
1027 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1029 #---------------------------------------------------------------------------
1031 class StaticLine(_core
.Control
):
1032 """Proxy of C++ StaticLine class"""
1033 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1034 __repr__
= _swig_repr
1035 def __init__(self
, *args
, **kwargs
):
1037 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1038 Size size=DefaultSize, long style=LI_HORIZONTAL,
1039 String name=StaticTextNameStr) -> StaticLine
1041 _controls_
.StaticLine_swiginit(self
,_controls_
.new_StaticLine(*args
, **kwargs
))
1042 self
._setOORInfo
(self
)
1044 def Create(*args
, **kwargs
):
1046 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1047 Size size=DefaultSize, long style=LI_HORIZONTAL,
1048 String name=StaticTextNameStr) -> bool
1050 return _controls_
.StaticLine_Create(*args
, **kwargs
)
1052 def IsVertical(*args
, **kwargs
):
1053 """IsVertical(self) -> bool"""
1054 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
1056 def GetDefaultSize(*args
, **kwargs
):
1057 """GetDefaultSize() -> int"""
1058 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1060 GetDefaultSize
= staticmethod(GetDefaultSize
)
1061 def GetClassDefaultAttributes(*args
, **kwargs
):
1063 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1065 Get the default attributes for this class. This is useful if you want
1066 to use the same font or colour in your own control as in a standard
1067 control -- which is a much better idea than hard coding specific
1068 colours or fonts which might look completely out of place on the
1069 user's system, especially if it uses themes.
1071 The variant parameter is only relevant under Mac currently and is
1072 ignore under other platforms. Under Mac, it will change the size of
1073 the returned font. See `wx.Window.SetWindowVariant` for more about
1076 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1078 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1079 _controls_
.StaticLine_swigregister(StaticLine
)
1081 def PreStaticLine(*args
, **kwargs
):
1082 """PreStaticLine() -> StaticLine"""
1083 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1086 def StaticLine_GetDefaultSize(*args
):
1087 """StaticLine_GetDefaultSize() -> int"""
1088 return _controls_
.StaticLine_GetDefaultSize(*args
)
1090 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1092 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1094 Get the default attributes for this class. This is useful if you want
1095 to use the same font or colour in your own control as in a standard
1096 control -- which is a much better idea than hard coding specific
1097 colours or fonts which might look completely out of place on the
1098 user's system, especially if it uses themes.
1100 The variant parameter is only relevant under Mac currently and is
1101 ignore under other platforms. Under Mac, it will change the size of
1102 the returned font. See `wx.Window.SetWindowVariant` for more about
1105 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1107 #---------------------------------------------------------------------------
1109 class StaticText(_core
.Control
):
1110 """Proxy of C++ StaticText class"""
1111 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1112 __repr__
= _swig_repr
1113 def __init__(self
, *args
, **kwargs
):
1115 __init__(self, Window parent, int id=-1, String label=EmptyString,
1116 Point pos=DefaultPosition, Size size=DefaultSize,
1117 long style=0, String name=StaticTextNameStr) -> StaticText
1119 _controls_
.StaticText_swiginit(self
,_controls_
.new_StaticText(*args
, **kwargs
))
1120 self
._setOORInfo
(self
)
1122 def Create(*args
, **kwargs
):
1124 Create(self, Window parent, int id=-1, String label=EmptyString,
1125 Point pos=DefaultPosition, Size size=DefaultSize,
1126 long style=0, String name=StaticTextNameStr) -> bool
1128 return _controls_
.StaticText_Create(*args
, **kwargs
)
1130 def Wrap(*args
, **kwargs
):
1132 Wrap(self, int width)
1134 This functions wraps the control's label so that each of its lines
1135 becomes at most ``width`` pixels wide if possible (the lines are
1136 broken at words boundaries so it might not be the case if words are
1137 too long). If ``width`` is negative, no wrapping is done.
1139 return _controls_
.StaticText_Wrap(*args
, **kwargs
)
1141 def GetClassDefaultAttributes(*args
, **kwargs
):
1143 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1145 Get the default attributes for this class. This is useful if you want
1146 to use the same font or colour in your own control as in a standard
1147 control -- which is a much better idea than hard coding specific
1148 colours or fonts which might look completely out of place on the
1149 user's system, especially if it uses themes.
1151 The variant parameter is only relevant under Mac currently and is
1152 ignore under other platforms. Under Mac, it will change the size of
1153 the returned font. See `wx.Window.SetWindowVariant` for more about
1156 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1158 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1159 _controls_
.StaticText_swigregister(StaticText
)
1161 def PreStaticText(*args
, **kwargs
):
1162 """PreStaticText() -> StaticText"""
1163 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1166 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1168 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1170 Get the default attributes for this class. This is useful if you want
1171 to use the same font or colour in your own control as in a standard
1172 control -- which is a much better idea than hard coding specific
1173 colours or fonts which might look completely out of place on the
1174 user's system, especially if it uses themes.
1176 The variant parameter is only relevant under Mac currently and is
1177 ignore under other platforms. Under Mac, it will change the size of
1178 the returned font. See `wx.Window.SetWindowVariant` for more about
1181 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1183 #---------------------------------------------------------------------------
1185 class StaticBitmap(_core
.Control
):
1186 """Proxy of C++ StaticBitmap class"""
1187 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1188 __repr__
= _swig_repr
1189 def __init__(self
, *args
, **kwargs
):
1191 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1192 Point pos=DefaultPosition, Size size=DefaultSize,
1193 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1195 _controls_
.StaticBitmap_swiginit(self
,_controls_
.new_StaticBitmap(*args
, **kwargs
))
1196 self
._setOORInfo
(self
)
1198 def Create(*args
, **kwargs
):
1200 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1201 Point pos=DefaultPosition, Size size=DefaultSize,
1202 long style=0, String name=StaticBitmapNameStr) -> bool
1204 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1206 def GetBitmap(*args
, **kwargs
):
1207 """GetBitmap(self) -> Bitmap"""
1208 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1210 def SetBitmap(*args
, **kwargs
):
1211 """SetBitmap(self, Bitmap bitmap)"""
1212 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1214 def SetIcon(*args
, **kwargs
):
1215 """SetIcon(self, Icon icon)"""
1216 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1218 def GetClassDefaultAttributes(*args
, **kwargs
):
1220 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1222 Get the default attributes for this class. This is useful if you want
1223 to use the same font or colour in your own control as in a standard
1224 control -- which is a much better idea than hard coding specific
1225 colours or fonts which might look completely out of place on the
1226 user's system, especially if it uses themes.
1228 The variant parameter is only relevant under Mac currently and is
1229 ignore under other platforms. Under Mac, it will change the size of
1230 the returned font. See `wx.Window.SetWindowVariant` for more about
1233 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1235 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1236 _controls_
.StaticBitmap_swigregister(StaticBitmap
)
1238 def PreStaticBitmap(*args
, **kwargs
):
1239 """PreStaticBitmap() -> StaticBitmap"""
1240 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1243 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1245 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1247 Get the default attributes for this class. This is useful if you want
1248 to use the same font or colour in your own control as in a standard
1249 control -- which is a much better idea than hard coding specific
1250 colours or fonts which might look completely out of place on the
1251 user's system, especially if it uses themes.
1253 The variant parameter is only relevant under Mac currently and is
1254 ignore under other platforms. Under Mac, it will change the size of
1255 the returned font. See `wx.Window.SetWindowVariant` for more about
1258 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1260 #---------------------------------------------------------------------------
1262 class ListBox(_core
.ControlWithItems
):
1263 """Proxy of C++ ListBox class"""
1264 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1265 __repr__
= _swig_repr
1266 def __init__(self
, *args
, **kwargs
):
1268 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1269 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1270 long style=0, Validator validator=DefaultValidator,
1271 String name=ListBoxNameStr) -> ListBox
1273 _controls_
.ListBox_swiginit(self
,_controls_
.new_ListBox(*args
, **kwargs
))
1274 self
._setOORInfo
(self
)
1276 def Create(*args
, **kwargs
):
1278 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1279 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1280 long style=0, Validator validator=DefaultValidator,
1281 String name=ListBoxNameStr) -> bool
1283 return _controls_
.ListBox_Create(*args
, **kwargs
)
1285 def Insert(*args
, **kwargs
):
1287 Insert(self, String item, int pos, PyObject clientData=None)
1289 Insert an item into the control before the item at the ``pos`` index,
1290 optionally associating some data object with the item.
1292 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1294 def InsertItems(*args
, **kwargs
):
1295 """InsertItems(self, wxArrayString items, unsigned int pos)"""
1296 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1298 def Set(*args
, **kwargs
):
1299 """Set(self, wxArrayString items)"""
1300 return _controls_
.ListBox_Set(*args
, **kwargs
)
1302 def IsSelected(*args
, **kwargs
):
1303 """IsSelected(self, int n) -> bool"""
1304 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1306 def SetSelection(*args
, **kwargs
):
1307 """SetSelection(self, int n, bool select=True)"""
1308 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1310 def Select(*args
, **kwargs
):
1314 This is the same as `SetSelection` and exists only because it is
1315 slightly more natural for controls which support multiple selection.
1317 return _controls_
.ListBox_Select(*args
, **kwargs
)
1319 def Deselect(*args
, **kwargs
):
1320 """Deselect(self, int n)"""
1321 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1323 def DeselectAll(*args
, **kwargs
):
1324 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1325 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1327 def SetStringSelection(*args
, **kwargs
):
1328 """SetStringSelection(self, String s, bool select=True) -> bool"""
1329 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1331 def GetSelections(*args
, **kwargs
):
1332 """GetSelections(self) -> PyObject"""
1333 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1335 def SetFirstItem(*args
, **kwargs
):
1336 """SetFirstItem(self, int n)"""
1337 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1339 def SetFirstItemStr(*args
, **kwargs
):
1340 """SetFirstItemStr(self, String s)"""
1341 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1343 def EnsureVisible(*args
, **kwargs
):
1344 """EnsureVisible(self, int n)"""
1345 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1347 def AppendAndEnsureVisible(*args
, **kwargs
):
1348 """AppendAndEnsureVisible(self, String s)"""
1349 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1351 def IsSorted(*args
, **kwargs
):
1352 """IsSorted(self) -> bool"""
1353 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1355 def HitTest(*args
, **kwargs
):
1357 HitTest(self, Point pt) -> int
1359 Test where the given (in client coords) point lies
1361 return _controls_
.ListBox_HitTest(*args
, **kwargs
)
1363 def SetItemForegroundColour(*args
, **kwargs
):
1364 """SetItemForegroundColour(self, int item, Colour c)"""
1365 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1367 def SetItemBackgroundColour(*args
, **kwargs
):
1368 """SetItemBackgroundColour(self, int item, Colour c)"""
1369 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1371 def SetItemFont(*args
, **kwargs
):
1372 """SetItemFont(self, int item, Font f)"""
1373 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1375 def GetClassDefaultAttributes(*args
, **kwargs
):
1377 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1379 Get the default attributes for this class. This is useful if you want
1380 to use the same font or colour in your own control as in a standard
1381 control -- which is a much better idea than hard coding specific
1382 colours or fonts which might look completely out of place on the
1383 user's system, especially if it uses themes.
1385 The variant parameter is only relevant under Mac currently and is
1386 ignore under other platforms. Under Mac, it will change the size of
1387 the returned font. See `wx.Window.SetWindowVariant` for more about
1390 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1392 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1393 _controls_
.ListBox_swigregister(ListBox
)
1394 ListBoxNameStr
= cvar
.ListBoxNameStr
1396 def PreListBox(*args
, **kwargs
):
1397 """PreListBox() -> ListBox"""
1398 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1401 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1403 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1405 Get the default attributes for this class. This is useful if you want
1406 to use the same font or colour in your own control as in a standard
1407 control -- which is a much better idea than hard coding specific
1408 colours or fonts which might look completely out of place on the
1409 user's system, especially if it uses themes.
1411 The variant parameter is only relevant under Mac currently and is
1412 ignore under other platforms. Under Mac, it will change the size of
1413 the returned font. See `wx.Window.SetWindowVariant` for more about
1416 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1418 #---------------------------------------------------------------------------
1420 class CheckListBox(ListBox
):
1421 """Proxy of C++ CheckListBox class"""
1422 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1423 __repr__
= _swig_repr
1424 def __init__(self
, *args
, **kwargs
):
1426 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1427 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1428 long style=0, Validator validator=DefaultValidator,
1429 String name=ListBoxNameStr) -> CheckListBox
1431 _controls_
.CheckListBox_swiginit(self
,_controls_
.new_CheckListBox(*args
, **kwargs
))
1432 self
._setOORInfo
(self
)
1434 def Create(*args
, **kwargs
):
1436 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1437 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1438 long style=0, Validator validator=DefaultValidator,
1439 String name=ListBoxNameStr) -> bool
1441 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1443 def IsChecked(*args
, **kwargs
):
1444 """IsChecked(self, unsigned int index) -> bool"""
1445 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1447 def Check(*args
, **kwargs
):
1448 """Check(self, unsigned int index, int check=True)"""
1449 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1451 def GetItemHeight(*args
, **kwargs
):
1452 """GetItemHeight(self) -> int"""
1453 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1455 _controls_
.CheckListBox_swigregister(CheckListBox
)
1457 def PreCheckListBox(*args
, **kwargs
):
1458 """PreCheckListBox() -> CheckListBox"""
1459 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1462 #---------------------------------------------------------------------------
1464 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1465 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1466 TE_READONLY
= _controls_
.TE_READONLY
1467 TE_MULTILINE
= _controls_
.TE_MULTILINE
1468 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1469 TE_LEFT
= _controls_
.TE_LEFT
1470 TE_CENTER
= _controls_
.TE_CENTER
1471 TE_RIGHT
= _controls_
.TE_RIGHT
1472 TE_CENTRE
= _controls_
.TE_CENTRE
1473 TE_RICH
= _controls_
.TE_RICH
1474 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1475 TE_PASSWORD
= _controls_
.TE_PASSWORD
1476 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1477 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1478 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1479 TE_CHARWRAP
= _controls_
.TE_CHARWRAP
1480 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1481 TE_BESTWRAP
= _controls_
.TE_BESTWRAP
1482 TE_RICH2
= _controls_
.TE_RICH2
1483 TE_CAPITALIZE
= _controls_
.TE_CAPITALIZE
1484 TE_LINEWRAP
= TE_CHARWRAP
1485 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1486 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1487 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1488 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1489 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1490 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1491 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1492 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1493 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1494 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1495 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1496 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1497 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1498 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1499 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1500 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1501 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1502 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1503 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1504 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1505 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1506 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1507 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1508 OutOfRangeTextCoord
= _controls_
.OutOfRangeTextCoord
1509 InvalidTextCoord
= _controls_
.InvalidTextCoord
1510 class TextAttr(object):
1511 """Proxy of C++ TextAttr class"""
1512 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1513 __repr__
= _swig_repr
1514 def __init__(self
, *args
, **kwargs
):
1516 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1517 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1519 _controls_
.TextAttr_swiginit(self
,_controls_
.new_TextAttr(*args
, **kwargs
))
1520 __swig_destroy__
= _controls_
.delete_TextAttr
1521 __del__
= lambda self
: None;
1522 def Init(*args
, **kwargs
):
1524 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1526 def Merge(*args
, **kwargs
):
1527 """Merge(TextAttr base, TextAttr overlay) -> TextAttr"""
1528 return _controls_
.TextAttr_Merge(*args
, **kwargs
)
1530 Merge
= staticmethod(Merge
)
1531 def SetTextColour(*args
, **kwargs
):
1532 """SetTextColour(self, Colour colText)"""
1533 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1535 def SetBackgroundColour(*args
, **kwargs
):
1536 """SetBackgroundColour(self, Colour colBack)"""
1537 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1539 def SetFont(*args
, **kwargs
):
1540 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1541 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1543 def SetAlignment(*args
, **kwargs
):
1544 """SetAlignment(self, int alignment)"""
1545 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1547 def SetTabs(*args
, **kwargs
):
1548 """SetTabs(self, wxArrayInt tabs)"""
1549 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1551 def SetLeftIndent(*args
, **kwargs
):
1552 """SetLeftIndent(self, int indent, int subIndent=0)"""
1553 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1555 def SetRightIndent(*args
, **kwargs
):
1556 """SetRightIndent(self, int indent)"""
1557 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1559 def SetFlags(*args
, **kwargs
):
1560 """SetFlags(self, long flags)"""
1561 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1563 def HasTextColour(*args
, **kwargs
):
1564 """HasTextColour(self) -> bool"""
1565 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1567 def HasBackgroundColour(*args
, **kwargs
):
1568 """HasBackgroundColour(self) -> bool"""
1569 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1571 def HasFont(*args
, **kwargs
):
1572 """HasFont(self) -> bool"""
1573 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1575 def HasAlignment(*args
, **kwargs
):
1576 """HasAlignment(self) -> bool"""
1577 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1579 def HasTabs(*args
, **kwargs
):
1580 """HasTabs(self) -> bool"""
1581 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1583 def HasLeftIndent(*args
, **kwargs
):
1584 """HasLeftIndent(self) -> bool"""
1585 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1587 def HasRightIndent(*args
, **kwargs
):
1588 """HasRightIndent(self) -> bool"""
1589 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1591 def HasFlag(*args
, **kwargs
):
1592 """HasFlag(self, long flag) -> bool"""
1593 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1595 def GetTextColour(*args
, **kwargs
):
1596 """GetTextColour(self) -> Colour"""
1597 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1599 def GetBackgroundColour(*args
, **kwargs
):
1600 """GetBackgroundColour(self) -> Colour"""
1601 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1603 def GetFont(*args
, **kwargs
):
1604 """GetFont(self) -> Font"""
1605 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1607 def GetAlignment(*args
, **kwargs
):
1608 """GetAlignment(self) -> int"""
1609 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1611 def GetTabs(*args
, **kwargs
):
1612 """GetTabs(self) -> wxArrayInt"""
1613 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1615 def GetLeftIndent(*args
, **kwargs
):
1616 """GetLeftIndent(self) -> long"""
1617 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1619 def GetLeftSubIndent(*args
, **kwargs
):
1620 """GetLeftSubIndent(self) -> long"""
1621 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1623 def GetRightIndent(*args
, **kwargs
):
1624 """GetRightIndent(self) -> long"""
1625 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1627 def GetFlags(*args
, **kwargs
):
1628 """GetFlags(self) -> long"""
1629 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1631 def IsDefault(*args
, **kwargs
):
1632 """IsDefault(self) -> bool"""
1633 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1635 def Combine(*args
, **kwargs
):
1636 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1637 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1639 Combine
= staticmethod(Combine
)
1640 _controls_
.TextAttr_swigregister(TextAttr
)
1641 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1643 def TextAttr_Merge(*args
, **kwargs
):
1644 """TextAttr_Merge(TextAttr base, TextAttr overlay) -> TextAttr"""
1645 return _controls_
.TextAttr_Merge(*args
, **kwargs
)
1647 def TextAttr_Combine(*args
, **kwargs
):
1648 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1649 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1651 class TextCtrl(_core
.Control
):
1652 """Proxy of C++ TextCtrl class"""
1653 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1654 __repr__
= _swig_repr
1655 def __init__(self
, *args
, **kwargs
):
1657 __init__(self, Window parent, int id=-1, String value=EmptyString,
1658 Point pos=DefaultPosition, Size size=DefaultSize,
1659 long style=0, Validator validator=DefaultValidator,
1660 String name=TextCtrlNameStr) -> TextCtrl
1662 _controls_
.TextCtrl_swiginit(self
,_controls_
.new_TextCtrl(*args
, **kwargs
))
1663 self
._setOORInfo
(self
)
1665 def Create(*args
, **kwargs
):
1667 Create(self, Window parent, int id=-1, String value=EmptyString,
1668 Point pos=DefaultPosition, Size size=DefaultSize,
1669 long style=0, Validator validator=DefaultValidator,
1670 String name=TextCtrlNameStr) -> bool
1672 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1674 def GetValue(*args
, **kwargs
):
1675 """GetValue(self) -> String"""
1676 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1678 def SetValue(*args
, **kwargs
):
1679 """SetValue(self, String value)"""
1680 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1682 def GetRange(*args
, **kwargs
):
1683 """GetRange(self, long from, long to) -> String"""
1684 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1686 def GetLineLength(*args
, **kwargs
):
1687 """GetLineLength(self, long lineNo) -> int"""
1688 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1690 def GetLineText(*args
, **kwargs
):
1691 """GetLineText(self, long lineNo) -> String"""
1692 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1694 def GetNumberOfLines(*args
, **kwargs
):
1695 """GetNumberOfLines(self) -> int"""
1696 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1698 def IsModified(*args
, **kwargs
):
1699 """IsModified(self) -> bool"""
1700 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1702 def IsEditable(*args
, **kwargs
):
1703 """IsEditable(self) -> bool"""
1704 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1706 def IsSingleLine(*args
, **kwargs
):
1707 """IsSingleLine(self) -> bool"""
1708 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1710 def IsMultiLine(*args
, **kwargs
):
1711 """IsMultiLine(self) -> bool"""
1712 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1714 def GetSelection(*args
, **kwargs
):
1716 GetSelection() -> (from, to)
1718 If the return values from and to are the same, there is no selection.
1720 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1722 def GetStringSelection(*args
, **kwargs
):
1723 """GetStringSelection(self) -> String"""
1724 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1726 def Clear(*args
, **kwargs
):
1728 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1730 def Replace(*args
, **kwargs
):
1731 """Replace(self, long from, long to, String value)"""
1732 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1734 def Remove(*args
, **kwargs
):
1735 """Remove(self, long from, long to)"""
1736 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1738 def LoadFile(*args
, **kwargs
):
1739 """LoadFile(self, String file) -> bool"""
1740 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1742 def SaveFile(*args
, **kwargs
):
1743 """SaveFile(self, String file=EmptyString) -> bool"""
1744 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1746 def MarkDirty(*args
, **kwargs
):
1747 """MarkDirty(self)"""
1748 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1750 def DiscardEdits(*args
, **kwargs
):
1751 """DiscardEdits(self)"""
1752 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1754 def SetMaxLength(*args
, **kwargs
):
1755 """SetMaxLength(self, unsigned long len)"""
1756 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1758 def WriteText(*args
, **kwargs
):
1759 """WriteText(self, String text)"""
1760 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1762 def AppendText(*args
, **kwargs
):
1763 """AppendText(self, String text)"""
1764 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1766 def EmulateKeyPress(*args
, **kwargs
):
1767 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1768 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1770 def SetStyle(*args
, **kwargs
):
1771 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1772 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1774 def GetStyle(*args
, **kwargs
):
1775 """GetStyle(self, long position, TextAttr style) -> bool"""
1776 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1778 def SetDefaultStyle(*args
, **kwargs
):
1779 """SetDefaultStyle(self, TextAttr style) -> bool"""
1780 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1782 def GetDefaultStyle(*args
, **kwargs
):
1783 """GetDefaultStyle(self) -> TextAttr"""
1784 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1786 def XYToPosition(*args
, **kwargs
):
1787 """XYToPosition(self, long x, long y) -> long"""
1788 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1790 def PositionToXY(*args
, **kwargs
):
1791 """PositionToXY(long pos) -> (x, y)"""
1792 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1794 def ShowPosition(*args
, **kwargs
):
1795 """ShowPosition(self, long pos)"""
1796 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1798 def HitTest(*args
, **kwargs
):
1800 HitTest(Point pt) -> (result, col, row)
1802 Find the row, col coresponding to the character at the point given in
1803 pixels. NB: pt is in device coords but is not adjusted for the client
1804 area origin nor scrolling.
1806 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1808 def HitTestPos(*args
, **kwargs
):
1810 HitTestPos(Point pt) -> (result, position)
1812 Find the character position in the text coresponding to the point
1813 given in pixels. NB: pt is in device coords but is not adjusted for
1814 the client area origin nor scrolling.
1816 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1818 def Copy(*args
, **kwargs
):
1820 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1822 def Cut(*args
, **kwargs
):
1824 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1826 def Paste(*args
, **kwargs
):
1828 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1830 def CanCopy(*args
, **kwargs
):
1831 """CanCopy(self) -> bool"""
1832 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1834 def CanCut(*args
, **kwargs
):
1835 """CanCut(self) -> bool"""
1836 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1838 def CanPaste(*args
, **kwargs
):
1839 """CanPaste(self) -> bool"""
1840 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1842 def Undo(*args
, **kwargs
):
1844 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1846 def Redo(*args
, **kwargs
):
1848 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1850 def CanUndo(*args
, **kwargs
):
1851 """CanUndo(self) -> bool"""
1852 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1854 def CanRedo(*args
, **kwargs
):
1855 """CanRedo(self) -> bool"""
1856 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1858 def SetInsertionPoint(*args
, **kwargs
):
1859 """SetInsertionPoint(self, long pos)"""
1860 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1862 def SetInsertionPointEnd(*args
, **kwargs
):
1863 """SetInsertionPointEnd(self)"""
1864 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1866 def GetInsertionPoint(*args
, **kwargs
):
1867 """GetInsertionPoint(self) -> long"""
1868 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1870 def GetLastPosition(*args
, **kwargs
):
1871 """GetLastPosition(self) -> long"""
1872 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1874 def SetSelection(*args
, **kwargs
):
1875 """SetSelection(self, long from, long to)"""
1876 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1878 def SelectAll(*args
, **kwargs
):
1879 """SelectAll(self)"""
1880 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1882 def SetEditable(*args
, **kwargs
):
1883 """SetEditable(self, bool editable)"""
1884 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1886 def ShowNativeCaret(*args
, **kwargs
):
1887 """ShowNativeCaret(self, bool show=True) -> bool"""
1888 return _controls_
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1890 def HideNativeCaret(*args
, **kwargs
):
1891 """HideNativeCaret(self) -> bool"""
1892 return _controls_
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1894 def write(*args
, **kwargs
):
1895 """write(self, String text)"""
1896 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1898 def GetString(*args
, **kwargs
):
1899 """GetString(self, long from, long to) -> String"""
1900 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1902 def GetClassDefaultAttributes(*args
, **kwargs
):
1904 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1906 Get the default attributes for this class. This is useful if you want
1907 to use the same font or colour in your own control as in a standard
1908 control -- which is a much better idea than hard coding specific
1909 colours or fonts which might look completely out of place on the
1910 user's system, especially if it uses themes.
1912 The variant parameter is only relevant under Mac currently and is
1913 ignore under other platforms. Under Mac, it will change the size of
1914 the returned font. See `wx.Window.SetWindowVariant` for more about
1917 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1919 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1920 _controls_
.TextCtrl_swigregister(TextCtrl
)
1922 def PreTextCtrl(*args
, **kwargs
):
1923 """PreTextCtrl() -> TextCtrl"""
1924 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1927 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1929 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1931 Get the default attributes for this class. This is useful if you want
1932 to use the same font or colour in your own control as in a standard
1933 control -- which is a much better idea than hard coding specific
1934 colours or fonts which might look completely out of place on the
1935 user's system, especially if it uses themes.
1937 The variant parameter is only relevant under Mac currently and is
1938 ignore under other platforms. Under Mac, it will change the size of
1939 the returned font. See `wx.Window.SetWindowVariant` for more about
1942 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1944 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1945 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1946 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1947 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1948 class TextUrlEvent(_core
.CommandEvent
):
1949 """Proxy of C++ TextUrlEvent class"""
1950 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1951 __repr__
= _swig_repr
1952 def __init__(self
, *args
, **kwargs
):
1953 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1954 _controls_
.TextUrlEvent_swiginit(self
,_controls_
.new_TextUrlEvent(*args
, **kwargs
))
1955 def GetMouseEvent(*args
, **kwargs
):
1956 """GetMouseEvent(self) -> MouseEvent"""
1957 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1959 def GetURLStart(*args
, **kwargs
):
1960 """GetURLStart(self) -> long"""
1961 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1963 def GetURLEnd(*args
, **kwargs
):
1964 """GetURLEnd(self) -> long"""
1965 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1967 _controls_
.TextUrlEvent_swigregister(TextUrlEvent
)
1969 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1970 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1971 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1972 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1974 #---------------------------------------------------------------------------
1976 class ScrollBar(_core
.Control
):
1977 """Proxy of C++ ScrollBar class"""
1978 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1979 __repr__
= _swig_repr
1980 def __init__(self
, *args
, **kwargs
):
1982 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1983 Size size=DefaultSize, long style=SB_HORIZONTAL,
1984 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1986 _controls_
.ScrollBar_swiginit(self
,_controls_
.new_ScrollBar(*args
, **kwargs
))
1987 self
._setOORInfo
(self
)
1989 def Create(*args
, **kwargs
):
1991 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1992 Size size=DefaultSize, long style=SB_HORIZONTAL,
1993 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1995 Do the 2nd phase and create the GUI control.
1997 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1999 def GetThumbPosition(*args
, **kwargs
):
2000 """GetThumbPosition(self) -> int"""
2001 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2003 def GetThumbSize(*args
, **kwargs
):
2004 """GetThumbSize(self) -> int"""
2005 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2007 GetThumbLength
= GetThumbSize
2008 def GetPageSize(*args
, **kwargs
):
2009 """GetPageSize(self) -> int"""
2010 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2012 def GetRange(*args
, **kwargs
):
2013 """GetRange(self) -> int"""
2014 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2016 def IsVertical(*args
, **kwargs
):
2017 """IsVertical(self) -> bool"""
2018 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2020 def SetThumbPosition(*args
, **kwargs
):
2021 """SetThumbPosition(self, int viewStart)"""
2022 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2024 def GetClassDefaultAttributes(*args
, **kwargs
):
2026 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2028 Get the default attributes for this class. This is useful if you want
2029 to use the same font or colour in your own control as in a standard
2030 control -- which is a much better idea than hard coding specific
2031 colours or fonts which might look completely out of place on the
2032 user's system, especially if it uses themes.
2034 The variant parameter is only relevant under Mac currently and is
2035 ignore under other platforms. Under Mac, it will change the size of
2036 the returned font. See `wx.Window.SetWindowVariant` for more about
2039 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2041 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2042 _controls_
.ScrollBar_swigregister(ScrollBar
)
2043 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2045 def PreScrollBar(*args
, **kwargs
):
2046 """PreScrollBar() -> ScrollBar"""
2047 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2050 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2052 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2054 Get the default attributes for this class. This is useful if you want
2055 to use the same font or colour in your own control as in a standard
2056 control -- which is a much better idea than hard coding specific
2057 colours or fonts which might look completely out of place on the
2058 user's system, especially if it uses themes.
2060 The variant parameter is only relevant under Mac currently and is
2061 ignore under other platforms. Under Mac, it will change the size of
2062 the returned font. See `wx.Window.SetWindowVariant` for more about
2065 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2067 #---------------------------------------------------------------------------
2069 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2070 SP_VERTICAL
= _controls_
.SP_VERTICAL
2071 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2072 SP_WRAP
= _controls_
.SP_WRAP
2073 class SpinButton(_core
.Control
):
2074 """Proxy of C++ SpinButton class"""
2075 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2076 __repr__
= _swig_repr
2077 def __init__(self
, *args
, **kwargs
):
2079 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2080 Size size=DefaultSize, long style=SP_HORIZONTAL,
2081 String name=SPIN_BUTTON_NAME) -> SpinButton
2083 _controls_
.SpinButton_swiginit(self
,_controls_
.new_SpinButton(*args
, **kwargs
))
2084 self
._setOORInfo
(self
)
2086 def Create(*args
, **kwargs
):
2088 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2089 Size size=DefaultSize, long style=SP_HORIZONTAL,
2090 String name=SPIN_BUTTON_NAME) -> bool
2092 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2094 def GetValue(*args
, **kwargs
):
2095 """GetValue(self) -> int"""
2096 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2098 def GetMin(*args
, **kwargs
):
2099 """GetMin(self) -> int"""
2100 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2102 def GetMax(*args
, **kwargs
):
2103 """GetMax(self) -> int"""
2104 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2106 def SetValue(*args
, **kwargs
):
2107 """SetValue(self, int val)"""
2108 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2110 def SetMin(*args
, **kwargs
):
2111 """SetMin(self, int minVal)"""
2112 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2114 def SetMax(*args
, **kwargs
):
2115 """SetMax(self, int maxVal)"""
2116 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2118 def SetRange(*args
, **kwargs
):
2119 """SetRange(self, int minVal, int maxVal)"""
2120 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2122 def IsVertical(*args
, **kwargs
):
2123 """IsVertical(self) -> bool"""
2124 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2126 def GetClassDefaultAttributes(*args
, **kwargs
):
2128 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2130 Get the default attributes for this class. This is useful if you want
2131 to use the same font or colour in your own control as in a standard
2132 control -- which is a much better idea than hard coding specific
2133 colours or fonts which might look completely out of place on the
2134 user's system, especially if it uses themes.
2136 The variant parameter is only relevant under Mac currently and is
2137 ignore under other platforms. Under Mac, it will change the size of
2138 the returned font. See `wx.Window.SetWindowVariant` for more about
2141 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2143 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2144 _controls_
.SpinButton_swigregister(SpinButton
)
2145 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2146 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2148 def PreSpinButton(*args
, **kwargs
):
2149 """PreSpinButton() -> SpinButton"""
2150 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2153 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2155 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2157 Get the default attributes for this class. This is useful if you want
2158 to use the same font or colour in your own control as in a standard
2159 control -- which is a much better idea than hard coding specific
2160 colours or fonts which might look completely out of place on the
2161 user's system, especially if it uses themes.
2163 The variant parameter is only relevant under Mac currently and is
2164 ignore under other platforms. Under Mac, it will change the size of
2165 the returned font. See `wx.Window.SetWindowVariant` for more about
2168 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2170 class SpinCtrl(_core
.Control
):
2171 """Proxy of C++ SpinCtrl class"""
2172 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2173 __repr__
= _swig_repr
2174 def __init__(self
, *args
, **kwargs
):
2176 __init__(self, Window parent, int id=-1, String value=EmptyString,
2177 Point pos=DefaultPosition, Size size=DefaultSize,
2178 long style=SP_ARROW_KEYS, int min=0, int max=100,
2179 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2181 _controls_
.SpinCtrl_swiginit(self
,_controls_
.new_SpinCtrl(*args
, **kwargs
))
2182 self
._setOORInfo
(self
)
2184 def Create(*args
, **kwargs
):
2186 Create(self, Window parent, int id=-1, String value=EmptyString,
2187 Point pos=DefaultPosition, Size size=DefaultSize,
2188 long style=SP_ARROW_KEYS, int min=0, int max=100,
2189 int initial=0, String name=SpinCtrlNameStr) -> bool
2191 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2193 def GetValue(*args
, **kwargs
):
2194 """GetValue(self) -> int"""
2195 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2197 def SetValue(*args
, **kwargs
):
2198 """SetValue(self, int value)"""
2199 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2201 def SetValueString(*args
, **kwargs
):
2202 """SetValueString(self, String text)"""
2203 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2205 def SetRange(*args
, **kwargs
):
2206 """SetRange(self, int minVal, int maxVal)"""
2207 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2209 def GetMin(*args
, **kwargs
):
2210 """GetMin(self) -> int"""
2211 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2213 def GetMax(*args
, **kwargs
):
2214 """GetMax(self) -> int"""
2215 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2217 def SetSelection(*args
, **kwargs
):
2218 """SetSelection(self, long from, long to)"""
2219 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2221 def GetClassDefaultAttributes(*args
, **kwargs
):
2223 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2225 Get the default attributes for this class. This is useful if you want
2226 to use the same font or colour in your own control as in a standard
2227 control -- which is a much better idea than hard coding specific
2228 colours or fonts which might look completely out of place on the
2229 user's system, especially if it uses themes.
2231 The variant parameter is only relevant under Mac currently and is
2232 ignore under other platforms. Under Mac, it will change the size of
2233 the returned font. See `wx.Window.SetWindowVariant` for more about
2236 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2238 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2239 _controls_
.SpinCtrl_swigregister(SpinCtrl
)
2241 def PreSpinCtrl(*args
, **kwargs
):
2242 """PreSpinCtrl() -> SpinCtrl"""
2243 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2246 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2248 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2250 Get the default attributes for this class. This is useful if you want
2251 to use the same font or colour in your own control as in a standard
2252 control -- which is a much better idea than hard coding specific
2253 colours or fonts which might look completely out of place on the
2254 user's system, especially if it uses themes.
2256 The variant parameter is only relevant under Mac currently and is
2257 ignore under other platforms. Under Mac, it will change the size of
2258 the returned font. See `wx.Window.SetWindowVariant` for more about
2261 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2263 class SpinEvent(_core
.NotifyEvent
):
2264 """Proxy of C++ SpinEvent class"""
2265 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2266 __repr__
= _swig_repr
2267 def __init__(self
, *args
, **kwargs
):
2268 """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2269 _controls_
.SpinEvent_swiginit(self
,_controls_
.new_SpinEvent(*args
, **kwargs
))
2270 def GetPosition(*args
, **kwargs
):
2271 """GetPosition(self) -> int"""
2272 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2274 def SetPosition(*args
, **kwargs
):
2275 """SetPosition(self, int pos)"""
2276 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2278 _controls_
.SpinEvent_swigregister(SpinEvent
)
2280 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2281 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2282 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2283 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2284 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2286 #---------------------------------------------------------------------------
2288 class RadioBox(_core
.Control
):
2289 """Proxy of C++ RadioBox class"""
2290 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2291 __repr__
= _swig_repr
2292 def __init__(self
, *args
, **kwargs
):
2294 __init__(self, Window parent, int id=-1, String label=EmptyString,
2295 Point pos=DefaultPosition, Size size=DefaultSize,
2296 wxArrayString choices=wxPyEmptyStringArray,
2297 int majorDimension=0, long style=RA_HORIZONTAL,
2298 Validator validator=DefaultValidator,
2299 String name=RadioBoxNameStr) -> RadioBox
2301 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2302 _controls_
.RadioBox_swiginit(self
,_controls_
.new_RadioBox(*args
, **kwargs
))
2303 self
._setOORInfo
(self
)
2305 def Create(*args
, **kwargs
):
2307 Create(self, Window parent, int id=-1, String label=EmptyString,
2308 Point pos=DefaultPosition, Size size=DefaultSize,
2309 wxArrayString choices=wxPyEmptyStringArray,
2310 int majorDimension=0, long style=RA_HORIZONTAL,
2311 Validator validator=DefaultValidator,
2312 String name=RadioBoxNameStr) -> bool
2314 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2316 def SetSelection(*args
, **kwargs
):
2317 """SetSelection(self, int n)"""
2318 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2320 def GetSelection(*args
, **kwargs
):
2321 """GetSelection(self) -> int"""
2322 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2324 def GetStringSelection(*args
, **kwargs
):
2325 """GetStringSelection(self) -> String"""
2326 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2328 def SetStringSelection(*args
, **kwargs
):
2329 """SetStringSelection(self, String s) -> bool"""
2330 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2332 def GetCount(*args
, **kwargs
):
2333 """GetCount(self) -> size_t"""
2334 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2336 def FindString(*args
, **kwargs
):
2337 """FindString(self, String s) -> int"""
2338 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2340 def GetString(*args
, **kwargs
):
2341 """GetString(self, int n) -> String"""
2342 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2344 def SetString(*args
, **kwargs
):
2345 """SetString(self, int n, String label)"""
2346 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2348 GetItemLabel
= GetString
2349 SetItemLabel
= SetString
2350 def EnableItem(*args
, **kwargs
):
2351 """EnableItem(self, unsigned int n, bool enable=True)"""
2352 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2354 def ShowItem(*args
, **kwargs
):
2355 """ShowItem(self, unsigned int n, bool show=True)"""
2356 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2358 def IsItemEnabled(*args
, **kwargs
):
2359 """IsItemEnabled(self, unsigned int n) -> bool"""
2360 return _controls_
.RadioBox_IsItemEnabled(*args
, **kwargs
)
2362 def IsItemShown(*args
, **kwargs
):
2363 """IsItemShown(self, unsigned int n) -> bool"""
2364 return _controls_
.RadioBox_IsItemShown(*args
, **kwargs
)
2366 def GetColumnCount(*args
, **kwargs
):
2367 """GetColumnCount(self) -> unsigned int"""
2368 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2370 def GetRowCount(*args
, **kwargs
):
2371 """GetRowCount(self) -> unsigned int"""
2372 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2374 def GetNextItem(*args
, **kwargs
):
2375 """GetNextItem(self, int item, int dir, long style) -> int"""
2376 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2378 def SetItemToolTip(*args
, **kwargs
):
2379 """SetItemToolTip(self, unsigned int item, String text)"""
2380 return _controls_
.RadioBox_SetItemToolTip(*args
, **kwargs
)
2382 def GetItemToolTip(*args
, **kwargs
):
2383 """GetItemToolTip(self, unsigned int item) -> ToolTip"""
2384 return _controls_
.RadioBox_GetItemToolTip(*args
, **kwargs
)
2386 def SetItemHelpText(*args
, **kwargs
):
2387 """SetItemHelpText(self, unsigned int n, String helpText)"""
2388 return _controls_
.RadioBox_SetItemHelpText(*args
, **kwargs
)
2390 def GetItemHelpText(*args
, **kwargs
):
2391 """GetItemHelpText(self, unsigned int n) -> String"""
2392 return _controls_
.RadioBox_GetItemHelpText(*args
, **kwargs
)
2394 def GetClassDefaultAttributes(*args
, **kwargs
):
2396 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2398 Get the default attributes for this class. This is useful if you want
2399 to use the same font or colour in your own control as in a standard
2400 control -- which is a much better idea than hard coding specific
2401 colours or fonts which might look completely out of place on the
2402 user's system, especially if it uses themes.
2404 The variant parameter is only relevant under Mac currently and is
2405 ignore under other platforms. Under Mac, it will change the size of
2406 the returned font. See `wx.Window.SetWindowVariant` for more about
2409 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2411 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2412 _controls_
.RadioBox_swigregister(RadioBox
)
2413 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2414 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2416 def PreRadioBox(*args
, **kwargs
):
2417 """PreRadioBox() -> RadioBox"""
2418 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2421 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2423 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2425 Get the default attributes for this class. This is useful if you want
2426 to use the same font or colour in your own control as in a standard
2427 control -- which is a much better idea than hard coding specific
2428 colours or fonts which might look completely out of place on the
2429 user's system, especially if it uses themes.
2431 The variant parameter is only relevant under Mac currently and is
2432 ignore under other platforms. Under Mac, it will change the size of
2433 the returned font. See `wx.Window.SetWindowVariant` for more about
2436 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2438 #---------------------------------------------------------------------------
2440 class RadioButton(_core
.Control
):
2441 """Proxy of C++ RadioButton class"""
2442 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2443 __repr__
= _swig_repr
2444 def __init__(self
, *args
, **kwargs
):
2446 __init__(self, Window parent, int id=-1, String label=EmptyString,
2447 Point pos=DefaultPosition, Size size=DefaultSize,
2448 long style=0, Validator validator=DefaultValidator,
2449 String name=RadioButtonNameStr) -> RadioButton
2451 _controls_
.RadioButton_swiginit(self
,_controls_
.new_RadioButton(*args
, **kwargs
))
2452 self
._setOORInfo
(self
)
2454 def Create(*args
, **kwargs
):
2456 Create(self, Window parent, int id=-1, String label=EmptyString,
2457 Point pos=DefaultPosition, Size size=DefaultSize,
2458 long style=0, Validator validator=DefaultValidator,
2459 String name=RadioButtonNameStr) -> bool
2461 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2463 def GetValue(*args
, **kwargs
):
2464 """GetValue(self) -> bool"""
2465 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2467 def SetValue(*args
, **kwargs
):
2468 """SetValue(self, bool value)"""
2469 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2471 def GetClassDefaultAttributes(*args
, **kwargs
):
2473 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2475 Get the default attributes for this class. This is useful if you want
2476 to use the same font or colour in your own control as in a standard
2477 control -- which is a much better idea than hard coding specific
2478 colours or fonts which might look completely out of place on the
2479 user's system, especially if it uses themes.
2481 The variant parameter is only relevant under Mac currently and is
2482 ignore under other platforms. Under Mac, it will change the size of
2483 the returned font. See `wx.Window.SetWindowVariant` for more about
2486 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2488 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2489 _controls_
.RadioButton_swigregister(RadioButton
)
2491 def PreRadioButton(*args
, **kwargs
):
2492 """PreRadioButton() -> RadioButton"""
2493 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2496 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2498 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2500 Get the default attributes for this class. This is useful if you want
2501 to use the same font or colour in your own control as in a standard
2502 control -- which is a much better idea than hard coding specific
2503 colours or fonts which might look completely out of place on the
2504 user's system, especially if it uses themes.
2506 The variant parameter is only relevant under Mac currently and is
2507 ignore under other platforms. Under Mac, it will change the size of
2508 the returned font. See `wx.Window.SetWindowVariant` for more about
2511 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2513 #---------------------------------------------------------------------------
2515 SL_HORIZONTAL
= _controls_
.SL_HORIZONTAL
2516 SL_VERTICAL
= _controls_
.SL_VERTICAL
2517 SL_TICKS
= _controls_
.SL_TICKS
2518 SL_AUTOTICKS
= _controls_
.SL_AUTOTICKS
2519 SL_LABELS
= _controls_
.SL_LABELS
2520 SL_LEFT
= _controls_
.SL_LEFT
2521 SL_TOP
= _controls_
.SL_TOP
2522 SL_RIGHT
= _controls_
.SL_RIGHT
2523 SL_BOTTOM
= _controls_
.SL_BOTTOM
2524 SL_BOTH
= _controls_
.SL_BOTH
2525 SL_SELRANGE
= _controls_
.SL_SELRANGE
2526 SL_INVERSE
= _controls_
.SL_INVERSE
2527 class Slider(_core
.Control
):
2528 """Proxy of C++ Slider class"""
2529 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2530 __repr__
= _swig_repr
2531 def __init__(self
, *args
, **kwargs
):
2533 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2534 int maxValue=100, Point pos=DefaultPosition,
2535 Size size=DefaultSize, long style=SL_HORIZONTAL,
2536 Validator validator=DefaultValidator,
2537 String name=SliderNameStr) -> Slider
2539 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2540 _controls_
.Slider_swiginit(self
,_controls_
.new_Slider(*args
, **kwargs
))
2541 self
._setOORInfo
(self
)
2543 def Create(*args
, **kwargs
):
2545 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2546 int maxValue=100, Point pos=DefaultPosition,
2547 Size size=DefaultSize, long style=SL_HORIZONTAL,
2548 Validator validator=DefaultValidator,
2549 String name=SliderNameStr) -> bool
2551 return _controls_
.Slider_Create(*args
, **kwargs
)
2553 def GetValue(*args
, **kwargs
):
2554 """GetValue(self) -> int"""
2555 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2557 def SetValue(*args
, **kwargs
):
2558 """SetValue(self, int value)"""
2559 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2561 def SetRange(*args
, **kwargs
):
2562 """SetRange(self, int minValue, int maxValue)"""
2563 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2565 def GetMin(*args
, **kwargs
):
2566 """GetMin(self) -> int"""
2567 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2569 def GetMax(*args
, **kwargs
):
2570 """GetMax(self) -> int"""
2571 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2573 def SetMin(*args
, **kwargs
):
2574 """SetMin(self, int minValue)"""
2575 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2577 def SetMax(*args
, **kwargs
):
2578 """SetMax(self, int maxValue)"""
2579 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2581 def SetLineSize(*args
, **kwargs
):
2582 """SetLineSize(self, int lineSize)"""
2583 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2585 def SetPageSize(*args
, **kwargs
):
2586 """SetPageSize(self, int pageSize)"""
2587 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2589 def GetLineSize(*args
, **kwargs
):
2590 """GetLineSize(self) -> int"""
2591 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2593 def GetPageSize(*args
, **kwargs
):
2594 """GetPageSize(self) -> int"""
2595 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2597 def SetThumbLength(*args
, **kwargs
):
2598 """SetThumbLength(self, int lenPixels)"""
2599 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2601 def GetThumbLength(*args
, **kwargs
):
2602 """GetThumbLength(self) -> int"""
2603 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2605 def SetTickFreq(*args
, **kwargs
):
2606 """SetTickFreq(self, int n, int pos=1)"""
2607 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2609 def GetTickFreq(*args
, **kwargs
):
2610 """GetTickFreq(self) -> int"""
2611 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2613 def ClearTicks(*args
, **kwargs
):
2614 """ClearTicks(self)"""
2615 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2617 def SetTick(*args
, **kwargs
):
2618 """SetTick(self, int tickPos)"""
2619 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2621 def ClearSel(*args
, **kwargs
):
2622 """ClearSel(self)"""
2623 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2625 def GetSelEnd(*args
, **kwargs
):
2626 """GetSelEnd(self) -> int"""
2627 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2629 def GetSelStart(*args
, **kwargs
):
2630 """GetSelStart(self) -> int"""
2631 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2633 def SetSelection(*args
, **kwargs
):
2634 """SetSelection(self, int min, int max)"""
2635 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2637 def GetClassDefaultAttributes(*args
, **kwargs
):
2639 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2641 Get the default attributes for this class. This is useful if you want
2642 to use the same font or colour in your own control as in a standard
2643 control -- which is a much better idea than hard coding specific
2644 colours or fonts which might look completely out of place on the
2645 user's system, especially if it uses themes.
2647 The variant parameter is only relevant under Mac currently and is
2648 ignore under other platforms. Under Mac, it will change the size of
2649 the returned font. See `wx.Window.SetWindowVariant` for more about
2652 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2654 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2655 _controls_
.Slider_swigregister(Slider
)
2656 SliderNameStr
= cvar
.SliderNameStr
2658 def PreSlider(*args
, **kwargs
):
2659 """PreSlider() -> Slider"""
2660 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2663 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2665 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2667 Get the default attributes for this class. This is useful if you want
2668 to use the same font or colour in your own control as in a standard
2669 control -- which is a much better idea than hard coding specific
2670 colours or fonts which might look completely out of place on the
2671 user's system, especially if it uses themes.
2673 The variant parameter is only relevant under Mac currently and is
2674 ignore under other platforms. Under Mac, it will change the size of
2675 the returned font. See `wx.Window.SetWindowVariant` for more about
2678 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2680 #---------------------------------------------------------------------------
2682 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2683 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2685 class ToggleButton(_core
.Control
):
2686 """Proxy of C++ ToggleButton class"""
2687 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2688 __repr__
= _swig_repr
2689 def __init__(self
, *args
, **kwargs
):
2691 __init__(self, Window parent, int id=-1, String label=EmptyString,
2692 Point pos=DefaultPosition, Size size=DefaultSize,
2693 long style=0, Validator validator=DefaultValidator,
2694 String name=ToggleButtonNameStr) -> ToggleButton
2696 _controls_
.ToggleButton_swiginit(self
,_controls_
.new_ToggleButton(*args
, **kwargs
))
2697 self
._setOORInfo
(self
)
2699 def Create(*args
, **kwargs
):
2701 Create(self, Window parent, int id=-1, String label=EmptyString,
2702 Point pos=DefaultPosition, Size size=DefaultSize,
2703 long style=0, Validator validator=DefaultValidator,
2704 String name=ToggleButtonNameStr) -> bool
2706 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2708 def SetValue(*args
, **kwargs
):
2709 """SetValue(self, bool value)"""
2710 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2712 def GetValue(*args
, **kwargs
):
2713 """GetValue(self) -> bool"""
2714 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2716 def GetClassDefaultAttributes(*args
, **kwargs
):
2718 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2720 Get the default attributes for this class. This is useful if you want
2721 to use the same font or colour in your own control as in a standard
2722 control -- which is a much better idea than hard coding specific
2723 colours or fonts which might look completely out of place on the
2724 user's system, especially if it uses themes.
2726 The variant parameter is only relevant under Mac currently and is
2727 ignore under other platforms. Under Mac, it will change the size of
2728 the returned font. See `wx.Window.SetWindowVariant` for more about
2731 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2733 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2734 _controls_
.ToggleButton_swigregister(ToggleButton
)
2735 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2737 def PreToggleButton(*args
, **kwargs
):
2738 """PreToggleButton() -> ToggleButton"""
2739 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2742 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2744 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2746 Get the default attributes for this class. This is useful if you want
2747 to use the same font or colour in your own control as in a standard
2748 control -- which is a much better idea than hard coding specific
2749 colours or fonts which might look completely out of place on the
2750 user's system, especially if it uses themes.
2752 The variant parameter is only relevant under Mac currently and is
2753 ignore under other platforms. Under Mac, it will change the size of
2754 the returned font. See `wx.Window.SetWindowVariant` for more about
2757 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2759 #---------------------------------------------------------------------------
2761 BK_DEFAULT
= _controls_
.BK_DEFAULT
2762 BK_TOP
= _controls_
.BK_TOP
2763 BK_BOTTOM
= _controls_
.BK_BOTTOM
2764 BK_LEFT
= _controls_
.BK_LEFT
2765 BK_RIGHT
= _controls_
.BK_RIGHT
2766 BK_ALIGN_MASK
= _controls_
.BK_ALIGN_MASK
2767 BK_BUTTONBAR
= _controls_
.BK_BUTTONBAR
2768 class BookCtrlBase(_core
.Control
):
2769 """Proxy of C++ BookCtrlBase class"""
2770 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2771 def __init__(self
): raise AttributeError, "No constructor defined"
2772 __repr__
= _swig_repr
2773 def GetPageCount(*args
, **kwargs
):
2774 """GetPageCount(self) -> size_t"""
2775 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2777 def GetPage(*args
, **kwargs
):
2778 """GetPage(self, size_t n) -> Window"""
2779 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2781 def GetCurrentPage(*args
, **kwargs
):
2782 """GetCurrentPage(self) -> Window"""
2783 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2785 def GetSelection(*args
, **kwargs
):
2786 """GetSelection(self) -> int"""
2787 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2789 def SetPageText(*args
, **kwargs
):
2790 """SetPageText(self, size_t n, String strText) -> bool"""
2791 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2793 def GetPageText(*args
, **kwargs
):
2794 """GetPageText(self, size_t n) -> String"""
2795 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2797 def SetImageList(*args
, **kwargs
):
2798 """SetImageList(self, ImageList imageList)"""
2799 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2801 def AssignImageList(*args
, **kwargs
):
2802 """AssignImageList(self, ImageList imageList)"""
2803 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2805 def GetImageList(*args
, **kwargs
):
2806 """GetImageList(self) -> ImageList"""
2807 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2809 def GetPageImage(*args
, **kwargs
):
2810 """GetPageImage(self, size_t n) -> int"""
2811 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2813 def SetPageImage(*args
, **kwargs
):
2814 """SetPageImage(self, size_t n, int imageId) -> bool"""
2815 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2817 def SetPageSize(*args
, **kwargs
):
2818 """SetPageSize(self, Size size)"""
2819 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2821 def CalcSizeFromPage(*args
, **kwargs
):
2822 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2823 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2825 def GetInternalBorder(*args
, **kwargs
):
2826 """GetInternalBorder(self) -> unsigned int"""
2827 return _controls_
.BookCtrlBase_GetInternalBorder(*args
, **kwargs
)
2829 def SetInternalBorder(*args
, **kwargs
):
2830 """SetInternalBorder(self, unsigned int internalBorder)"""
2831 return _controls_
.BookCtrlBase_SetInternalBorder(*args
, **kwargs
)
2833 def IsVertical(*args
, **kwargs
):
2834 """IsVertical(self) -> bool"""
2835 return _controls_
.BookCtrlBase_IsVertical(*args
, **kwargs
)
2837 def SetControlMargin(*args
, **kwargs
):
2838 """SetControlMargin(self, int margin)"""
2839 return _controls_
.BookCtrlBase_SetControlMargin(*args
, **kwargs
)
2841 def GetControlMargin(*args
, **kwargs
):
2842 """GetControlMargin(self) -> int"""
2843 return _controls_
.BookCtrlBase_GetControlMargin(*args
, **kwargs
)
2845 def SetFitToCurrentPage(*args
, **kwargs
):
2846 """SetFitToCurrentPage(self, bool fit)"""
2847 return _controls_
.BookCtrlBase_SetFitToCurrentPage(*args
, **kwargs
)
2849 def GetFitToCurrentPage(*args
, **kwargs
):
2850 """GetFitToCurrentPage(self) -> bool"""
2851 return _controls_
.BookCtrlBase_GetFitToCurrentPage(*args
, **kwargs
)
2853 def GetControlSizer(*args
, **kwargs
):
2854 """GetControlSizer(self) -> Sizer"""
2855 return _controls_
.BookCtrlBase_GetControlSizer(*args
, **kwargs
)
2857 def DeletePage(*args
, **kwargs
):
2858 """DeletePage(self, size_t n) -> bool"""
2859 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2861 def RemovePage(*args
, **kwargs
):
2862 """RemovePage(self, size_t n) -> bool"""
2863 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
2865 def DeleteAllPages(*args
, **kwargs
):
2866 """DeleteAllPages(self) -> bool"""
2867 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
2869 def AddPage(*args
, **kwargs
):
2870 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2871 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
2873 def InsertPage(*args
, **kwargs
):
2875 InsertPage(self, size_t n, Window page, String text, bool select=False,
2876 int imageId=-1) -> bool
2878 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
2880 def SetSelection(*args
, **kwargs
):
2881 """SetSelection(self, size_t n) -> int"""
2882 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
2884 def AdvanceSelection(*args
, **kwargs
):
2885 """AdvanceSelection(self, bool forward=True)"""
2886 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
2888 def HitTest(*args
, **kwargs
):
2890 HitTest(Point pt) -> (tab, where)
2892 Returns the page/tab which is hit, and flags indicating where using
2893 wx.NB_HITTEST flags.
2895 return _controls_
.BookCtrlBase_HitTest(*args
, **kwargs
)
2897 def GetClassDefaultAttributes(*args
, **kwargs
):
2899 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2901 Get the default attributes for this class. This is useful if you want
2902 to use the same font or colour in your own control as in a standard
2903 control -- which is a much better idea than hard coding specific
2904 colours or fonts which might look completely out of place on the
2905 user's system, especially if it uses themes.
2907 The variant parameter is only relevant under Mac currently and is
2908 ignore under other platforms. Under Mac, it will change the size of
2909 the returned font. See `wx.Window.SetWindowVariant` for more about
2912 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2914 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2915 _controls_
.BookCtrlBase_swigregister(BookCtrlBase
)
2916 NotebookNameStr
= cvar
.NotebookNameStr
2918 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
2920 BookCtrlBase_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_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2935 class BookCtrlBaseEvent(_core
.NotifyEvent
):
2936 """Proxy of C++ BookCtrlBaseEvent class"""
2937 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2938 __repr__
= _swig_repr
2939 def __init__(self
, *args
, **kwargs
):
2941 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2942 int nOldSel=-1) -> BookCtrlBaseEvent
2944 _controls_
.BookCtrlBaseEvent_swiginit(self
,_controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
))
2945 def GetSelection(*args
, **kwargs
):
2947 GetSelection(self) -> int
2949 Returns item index for a listbox or choice selection event (not valid
2952 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
2954 def SetSelection(*args
, **kwargs
):
2955 """SetSelection(self, int nSel)"""
2956 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
2958 def GetOldSelection(*args
, **kwargs
):
2959 """GetOldSelection(self) -> int"""
2960 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
2962 def SetOldSelection(*args
, **kwargs
):
2963 """SetOldSelection(self, int nOldSel)"""
2964 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
2966 _controls_
.BookCtrlBaseEvent_swigregister(BookCtrlBaseEvent
)
2968 #---------------------------------------------------------------------------
2970 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2971 NB_TOP
= _controls_
.NB_TOP
2972 NB_LEFT
= _controls_
.NB_LEFT
2973 NB_RIGHT
= _controls_
.NB_RIGHT
2974 NB_BOTTOM
= _controls_
.NB_BOTTOM
2975 NB_MULTILINE
= _controls_
.NB_MULTILINE
2976 NB_NOPAGETHEME
= _controls_
.NB_NOPAGETHEME
2977 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2978 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2979 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2980 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2981 class Notebook(BookCtrlBase
):
2982 """Proxy of C++ Notebook class"""
2983 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2984 __repr__
= _swig_repr
2985 def __init__(self
, *args
, **kwargs
):
2987 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2988 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
2990 _controls_
.Notebook_swiginit(self
,_controls_
.new_Notebook(*args
, **kwargs
))
2991 self
._setOORInfo
(self
)
2993 def Create(*args
, **kwargs
):
2995 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2996 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
2998 return _controls_
.Notebook_Create(*args
, **kwargs
)
3000 def GetRowCount(*args
, **kwargs
):
3001 """GetRowCount(self) -> int"""
3002 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3004 def SetPadding(*args
, **kwargs
):
3005 """SetPadding(self, Size padding)"""
3006 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3008 def SetTabSize(*args
, **kwargs
):
3009 """SetTabSize(self, Size sz)"""
3010 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3012 def GetThemeBackgroundColour(*args
, **kwargs
):
3013 """GetThemeBackgroundColour(self) -> Colour"""
3014 return _controls_
.Notebook_GetThemeBackgroundColour(*args
, **kwargs
)
3016 def GetClassDefaultAttributes(*args
, **kwargs
):
3018 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3020 Get the default attributes for this class. This is useful if you want
3021 to use the same font or colour in your own control as in a standard
3022 control -- which is a much better idea than hard coding specific
3023 colours or fonts which might look completely out of place on the
3024 user's system, especially if it uses themes.
3026 The variant parameter is only relevant under Mac currently and is
3027 ignore under other platforms. Under Mac, it will change the size of
3028 the returned font. See `wx.Window.SetWindowVariant` for more about
3031 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3033 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3034 _controls_
.Notebook_swigregister(Notebook
)
3036 def PreNotebook(*args
, **kwargs
):
3037 """PreNotebook() -> Notebook"""
3038 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3041 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3043 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3045 Get the default attributes for this class. This is useful if you want
3046 to use the same font or colour in your own control as in a standard
3047 control -- which is a much better idea than hard coding specific
3048 colours or fonts which might look completely out of place on the
3049 user's system, especially if it uses themes.
3051 The variant parameter is only relevant under Mac currently and is
3052 ignore under other platforms. Under Mac, it will change the size of
3053 the returned font. See `wx.Window.SetWindowVariant` for more about
3056 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3058 class NotebookEvent(BookCtrlBaseEvent
):
3059 """Proxy of C++ NotebookEvent class"""
3060 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3061 __repr__
= _swig_repr
3062 def __init__(self
, *args
, **kwargs
):
3064 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3065 int nOldSel=-1) -> NotebookEvent
3067 _controls_
.NotebookEvent_swiginit(self
,_controls_
.new_NotebookEvent(*args
, **kwargs
))
3068 _controls_
.NotebookEvent_swigregister(NotebookEvent
)
3070 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3071 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3073 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3074 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3076 #----------------------------------------------------------------------------
3078 class NotebookPage(wx
.Panel
):
3080 There is an old (and apparently unsolvable) bug when placing a
3081 window with a nonstandard background colour in a wx.Notebook on
3082 wxGTK1, as the notbooks's background colour would always be used
3083 when the window is refreshed. The solution is to place a panel in
3084 the notbook and the coloured window on the panel, sized to cover
3085 the panel. This simple class does that for you, just put an
3086 instance of this in the notebook and make your regular window a
3087 child of this one and it will handle the resize for you.
3089 def __init__(self
, parent
, id=-1,
3090 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3091 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3092 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3094 self
.Bind(wx
.EVT_SIZE
, self
.OnSize
)
3096 def OnSize(self
, evt
):
3097 if self
.child
is None:
3098 children
= self
.GetChildren()
3100 self
.child
= children
[0]
3102 self
.child
.SetPosition((0,0))
3103 self
.child
.SetSize(self
.GetSize())
3106 #---------------------------------------------------------------------------
3108 LB_DEFAULT
= _controls_
.LB_DEFAULT
3109 LB_TOP
= _controls_
.LB_TOP
3110 LB_BOTTOM
= _controls_
.LB_BOTTOM
3111 LB_LEFT
= _controls_
.LB_LEFT
3112 LB_RIGHT
= _controls_
.LB_RIGHT
3113 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3114 class Listbook(BookCtrlBase
):
3115 """Proxy of C++ Listbook class"""
3116 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3117 __repr__
= _swig_repr
3118 def __init__(self
, *args
, **kwargs
):
3120 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3121 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3123 _controls_
.Listbook_swiginit(self
,_controls_
.new_Listbook(*args
, **kwargs
))
3124 self
._setOORInfo
(self
)
3126 def Create(*args
, **kwargs
):
3128 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3129 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3131 return _controls_
.Listbook_Create(*args
, **kwargs
)
3133 def GetListView(*args
, **kwargs
):
3134 """GetListView(self) -> ListView"""
3135 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3137 _controls_
.Listbook_swigregister(Listbook
)
3139 def PreListbook(*args
, **kwargs
):
3140 """PreListbook() -> Listbook"""
3141 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3144 class ListbookEvent(BookCtrlBaseEvent
):
3145 """Proxy of C++ ListbookEvent class"""
3146 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3147 __repr__
= _swig_repr
3148 def __init__(self
, *args
, **kwargs
):
3150 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3151 int nOldSel=-1) -> ListbookEvent
3153 _controls_
.ListbookEvent_swiginit(self
,_controls_
.new_ListbookEvent(*args
, **kwargs
))
3154 _controls_
.ListbookEvent_swigregister(ListbookEvent
)
3156 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3157 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3158 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3159 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3161 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3162 CHB_TOP
= _controls_
.CHB_TOP
3163 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3164 CHB_LEFT
= _controls_
.CHB_LEFT
3165 CHB_RIGHT
= _controls_
.CHB_RIGHT
3166 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3167 class Choicebook(BookCtrlBase
):
3168 """Proxy of C++ Choicebook class"""
3169 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3170 __repr__
= _swig_repr
3171 def __init__(self
, *args
, **kwargs
):
3173 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3174 long style=0, String name=EmptyString) -> Choicebook
3176 _controls_
.Choicebook_swiginit(self
,_controls_
.new_Choicebook(*args
, **kwargs
))
3177 self
._setOORInfo
(self
)
3179 def Create(*args
, **kwargs
):
3181 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3182 long style=0, String name=EmptyString) -> bool
3184 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3186 def GetChoiceCtrl(*args
, **kwargs
):
3187 """GetChoiceCtrl(self) -> Choice"""
3188 return _controls_
.Choicebook_GetChoiceCtrl(*args
, **kwargs
)
3190 _controls_
.Choicebook_swigregister(Choicebook
)
3192 def PreChoicebook(*args
, **kwargs
):
3193 """PreChoicebook() -> Choicebook"""
3194 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3197 class ChoicebookEvent(BookCtrlBaseEvent
):
3198 """Proxy of C++ ChoicebookEvent class"""
3199 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3200 __repr__
= _swig_repr
3201 def __init__(self
, *args
, **kwargs
):
3203 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3204 int nOldSel=-1) -> ChoicebookEvent
3206 _controls_
.ChoicebookEvent_swiginit(self
,_controls_
.new_ChoicebookEvent(*args
, **kwargs
))
3207 _controls_
.ChoicebookEvent_swigregister(ChoicebookEvent
)
3209 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3210 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3211 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3212 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3214 #---------------------------------------------------------------------------
3216 class Treebook(BookCtrlBase
):
3217 """Proxy of C++ Treebook class"""
3218 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3219 __repr__
= _swig_repr
3220 def __init__(self
, *args
, **kwargs
):
3222 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3223 long style=BK_DEFAULT,
3224 String name=EmptyString) -> Treebook
3226 _controls_
.Treebook_swiginit(self
,_controls_
.new_Treebook(*args
, **kwargs
))
3227 self
._setOORInfo
(self
)
3229 def Create(*args
, **kwargs
):
3231 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3232 long style=BK_DEFAULT,
3233 String name=EmptyString) -> bool
3235 return _controls_
.Treebook_Create(*args
, **kwargs
)
3237 def InsertSubPage(*args
, **kwargs
):
3239 InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
3240 int imageId=NOT_FOUND) -> bool
3242 return _controls_
.Treebook_InsertSubPage(*args
, **kwargs
)
3244 def AddSubPage(*args
, **kwargs
):
3245 """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3246 return _controls_
.Treebook_AddSubPage(*args
, **kwargs
)
3248 def IsNodeExpanded(*args
, **kwargs
):
3249 """IsNodeExpanded(self, size_t pos) -> bool"""
3250 return _controls_
.Treebook_IsNodeExpanded(*args
, **kwargs
)
3252 def ExpandNode(*args
, **kwargs
):
3253 """ExpandNode(self, size_t pos, bool expand=True) -> bool"""
3254 return _controls_
.Treebook_ExpandNode(*args
, **kwargs
)
3256 def CollapseNode(*args
, **kwargs
):
3257 """CollapseNode(self, size_t pos) -> bool"""
3258 return _controls_
.Treebook_CollapseNode(*args
, **kwargs
)
3260 def GetPageParent(*args
, **kwargs
):
3261 """GetPageParent(self, size_t pos) -> int"""
3262 return _controls_
.Treebook_GetPageParent(*args
, **kwargs
)
3264 def GetTreeCtrl(*args
, **kwargs
):
3265 """GetTreeCtrl(self) -> wxTreeCtrl"""
3266 return _controls_
.Treebook_GetTreeCtrl(*args
, **kwargs
)
3268 _controls_
.Treebook_swigregister(Treebook
)
3270 def PreTreebook(*args
, **kwargs
):
3271 """PreTreebook() -> Treebook"""
3272 val
= _controls_
.new_PreTreebook(*args
, **kwargs
)
3275 class TreebookEvent(BookCtrlBaseEvent
):
3276 """Proxy of C++ TreebookEvent class"""
3277 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3278 __repr__
= _swig_repr
3279 def __init__(self
, *args
, **kwargs
):
3281 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3282 int nOldSel=NOT_FOUND) -> TreebookEvent
3284 _controls_
.TreebookEvent_swiginit(self
,_controls_
.new_TreebookEvent(*args
, **kwargs
))
3285 _controls_
.TreebookEvent_swigregister(TreebookEvent
)
3287 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
3288 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
3289 wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
3290 wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
3291 EVT_TREEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
, 1 )
3292 EVT_TREEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
, 1)
3293 EVT_TREEBOOK_NODE_COLLAPSED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
, 1 )
3294 EVT_TREEBOOK_NODE_EXPANDED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
, 1 )
3296 #---------------------------------------------------------------------------
3298 class Toolbook(BookCtrlBase
):
3299 """Proxy of C++ Toolbook class"""
3300 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3301 __repr__
= _swig_repr
3302 def __init__(self
, *args
, **kwargs
):
3304 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3305 long style=BK_DEFAULT,
3306 String name=EmptyString) -> Toolbook
3308 _controls_
.Toolbook_swiginit(self
,_controls_
.new_Toolbook(*args
, **kwargs
))
3309 self
._setOORInfo
(self
)
3311 def Create(*args
, **kwargs
):
3313 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3314 long style=0, String name=wxEmptyString) -> bool
3316 return _controls_
.Toolbook_Create(*args
, **kwargs
)
3318 def GetToolBar(*args
, **kwargs
):
3319 """GetToolBar(self) -> ToolBarBase"""
3320 return _controls_
.Toolbook_GetToolBar(*args
, **kwargs
)
3322 def Realize(*args
, **kwargs
):
3324 return _controls_
.Toolbook_Realize(*args
, **kwargs
)
3326 _controls_
.Toolbook_swigregister(Toolbook
)
3328 def PreToolbook(*args
, **kwargs
):
3329 """PreToolbook() -> Toolbook"""
3330 val
= _controls_
.new_PreToolbook(*args
, **kwargs
)
3333 class ToolbookEvent(BookCtrlBaseEvent
):
3334 """Proxy of C++ ToolbookEvent class"""
3335 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3336 __repr__
= _swig_repr
3337 def __init__(self
, *args
, **kwargs
):
3339 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3340 int nOldSel=NOT_FOUND) -> ToolbookEvent
3342 _controls_
.ToolbookEvent_swiginit(self
,_controls_
.new_ToolbookEvent(*args
, **kwargs
))
3343 _controls_
.ToolbookEvent_swigregister(ToolbookEvent
)
3345 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
3346 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
3347 EVT_TOOLBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
, 1)
3348 EVT_TOOLBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
, 1)
3350 #---------------------------------------------------------------------------
3352 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3353 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3354 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3355 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3356 TB_VERTICAL
= _controls_
.TB_VERTICAL
3357 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3358 TB_FLAT
= _controls_
.TB_FLAT
3359 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3360 TB_NOICONS
= _controls_
.TB_NOICONS
3361 TB_TEXT
= _controls_
.TB_TEXT
3362 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3363 TB_NOALIGN
= _controls_
.TB_NOALIGN
3364 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3365 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3366 TB_NO_TOOLTIPS
= _controls_
.TB_NO_TOOLTIPS
3367 class ToolBarToolBase(_core
.Object
):
3368 """Proxy of C++ ToolBarToolBase class"""
3369 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3370 def __init__(self
): raise AttributeError, "No constructor defined"
3371 __repr__
= _swig_repr
3372 def GetId(*args
, **kwargs
):
3373 """GetId(self) -> int"""
3374 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3376 def GetControl(*args
, **kwargs
):
3377 """GetControl(self) -> Control"""
3378 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3380 def GetToolBar(*args
, **kwargs
):
3381 """GetToolBar(self) -> ToolBarBase"""
3382 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3384 def IsButton(*args
, **kwargs
):
3385 """IsButton(self) -> int"""
3386 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3388 def IsControl(*args
, **kwargs
):
3389 """IsControl(self) -> int"""
3390 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3392 def IsSeparator(*args
, **kwargs
):
3393 """IsSeparator(self) -> int"""
3394 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3396 def GetStyle(*args
, **kwargs
):
3397 """GetStyle(self) -> int"""
3398 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3400 def GetKind(*args
, **kwargs
):
3401 """GetKind(self) -> int"""
3402 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3404 def IsEnabled(*args
, **kwargs
):
3405 """IsEnabled(self) -> bool"""
3406 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3408 def IsToggled(*args
, **kwargs
):
3409 """IsToggled(self) -> bool"""
3410 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3412 def CanBeToggled(*args
, **kwargs
):
3413 """CanBeToggled(self) -> bool"""
3414 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3416 def GetNormalBitmap(*args
, **kwargs
):
3417 """GetNormalBitmap(self) -> Bitmap"""
3418 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3420 def GetDisabledBitmap(*args
, **kwargs
):
3421 """GetDisabledBitmap(self) -> Bitmap"""
3422 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3424 def GetBitmap(*args
, **kwargs
):
3425 """GetBitmap(self) -> Bitmap"""
3426 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3428 def GetLabel(*args
, **kwargs
):
3429 """GetLabel(self) -> String"""
3430 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3432 def GetShortHelp(*args
, **kwargs
):
3433 """GetShortHelp(self) -> String"""
3434 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3436 def GetLongHelp(*args
, **kwargs
):
3437 """GetLongHelp(self) -> String"""
3438 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3440 def Enable(*args
, **kwargs
):
3441 """Enable(self, bool enable) -> bool"""
3442 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3444 def Toggle(*args
, **kwargs
):
3446 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3448 def SetToggle(*args
, **kwargs
):
3449 """SetToggle(self, bool toggle) -> bool"""
3450 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3452 def SetShortHelp(*args
, **kwargs
):
3453 """SetShortHelp(self, String help) -> bool"""
3454 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3456 def SetLongHelp(*args
, **kwargs
):
3457 """SetLongHelp(self, String help) -> bool"""
3458 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3460 def SetNormalBitmap(*args
, **kwargs
):
3461 """SetNormalBitmap(self, Bitmap bmp)"""
3462 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3464 def SetDisabledBitmap(*args
, **kwargs
):
3465 """SetDisabledBitmap(self, Bitmap bmp)"""
3466 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3468 def SetLabel(*args
, **kwargs
):
3469 """SetLabel(self, String label)"""
3470 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3472 def Detach(*args
, **kwargs
):
3474 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3476 def Attach(*args
, **kwargs
):
3477 """Attach(self, ToolBarBase tbar)"""
3478 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3480 def GetClientData(*args
, **kwargs
):
3481 """GetClientData(self) -> PyObject"""
3482 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3484 def SetClientData(*args
, **kwargs
):
3485 """SetClientData(self, PyObject clientData)"""
3486 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3488 GetBitmap1
= GetNormalBitmap
3489 GetBitmap2
= GetDisabledBitmap
3490 SetBitmap1
= SetNormalBitmap
3491 SetBitmap2
= SetDisabledBitmap
3493 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBase
)
3495 class ToolBarBase(_core
.Control
):
3496 """Proxy of C++ ToolBarBase class"""
3497 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3498 def __init__(self
): raise AttributeError, "No constructor defined"
3499 __repr__
= _swig_repr
3500 def DoAddTool(*args
, **kwargs
):
3502 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3503 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3504 String longHelp=EmptyString,
3505 PyObject clientData=None) -> ToolBarToolBase
3507 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3509 def DoInsertTool(*args
, **kwargs
):
3511 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3512 int kind=ITEM_NORMAL,
3513 String shortHelp=EmptyString, String longHelp=EmptyString,
3514 PyObject clientData=None) -> ToolBarToolBase
3516 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3518 # These match the original Add methods for this class, kept for
3519 # backwards compatibility with versions < 2.3.3.
3522 def AddTool(self
, id, bitmap
,
3523 pushedBitmap
= wx
.NullBitmap
,
3526 shortHelpString
= '',
3527 longHelpString
= '') :
3528 '''Old style method to add a tool to the toolbar.'''
3529 kind
= wx
.ITEM_NORMAL
3530 if isToggle
: kind
= wx
.ITEM_CHECK
3531 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3532 shortHelpString
, longHelpString
, clientData
)
3534 def AddSimpleTool(self
, id, bitmap
,
3535 shortHelpString
= '',
3536 longHelpString
= '',
3538 '''Old style method to add a tool to the toolbar.'''
3539 kind
= wx
.ITEM_NORMAL
3540 if isToggle
: kind
= wx
.ITEM_CHECK
3541 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3542 shortHelpString
, longHelpString
, None)
3544 def InsertTool(self
, pos
, id, bitmap
,
3545 pushedBitmap
= wx
.NullBitmap
,
3548 shortHelpString
= '',
3549 longHelpString
= ''):
3550 '''Old style method to insert a tool in the toolbar.'''
3551 kind
= wx
.ITEM_NORMAL
3552 if isToggle
: kind
= wx
.ITEM_CHECK
3553 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3554 shortHelpString
, longHelpString
, clientData
)
3556 def InsertSimpleTool(self
, pos
, id, bitmap
,
3557 shortHelpString
= '',
3558 longHelpString
= '',
3560 '''Old style method to insert a tool in the toolbar.'''
3561 kind
= wx
.ITEM_NORMAL
3562 if isToggle
: kind
= wx
.ITEM_CHECK
3563 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3564 shortHelpString
, longHelpString
, None)
3567 # The following are the new toolbar Add methods starting with
3568 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3569 # able to keep backwards compatibility with using the above
3570 # methods. Eventually these should migrate to be the methods used
3571 # primarily and lose the 'Label' in the name...
3573 def AddLabelTool(self
, id, label
, bitmap
,
3574 bmpDisabled
= wx
.NullBitmap
,
3575 kind
= wx
.ITEM_NORMAL
,
3576 shortHelp
= '', longHelp
= '',
3579 The full AddTool() function.
3581 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3582 is created and used as the disabled image.
3584 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3585 shortHelp
, longHelp
, clientData
)
3588 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3589 bmpDisabled
= wx
.NullBitmap
,
3590 kind
= wx
.ITEM_NORMAL
,
3591 shortHelp
= '', longHelp
= '',
3594 Insert the new tool at the given position, if pos == GetToolsCount(), it
3595 is equivalent to AddTool()
3597 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3598 shortHelp
, longHelp
, clientData
)
3600 def AddCheckLabelTool(self
, id, label
, bitmap
,
3601 bmpDisabled
= wx
.NullBitmap
,
3602 shortHelp
= '', longHelp
= '',
3604 '''Add a check tool, i.e. a tool which can be toggled'''
3605 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3606 shortHelp
, longHelp
, clientData
)
3608 def AddRadioLabelTool(self
, id, label
, bitmap
,
3609 bmpDisabled
= wx
.NullBitmap
,
3610 shortHelp
= '', longHelp
= '',
3613 Add a radio tool, i.e. a tool which can be toggled and releases any
3614 other toggled radio tools in the same group when it happens
3616 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3617 shortHelp
, longHelp
, clientData
)
3620 # For consistency with the backwards compatible methods above, here are
3621 # some non-'Label' versions of the Check and Radio methods
3623 def AddCheckTool(self
, id, bitmap
,
3624 bmpDisabled
= wx
.NullBitmap
,
3625 shortHelp
= '', longHelp
= '',
3627 '''Add a check tool, i.e. a tool which can be toggled'''
3628 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3629 shortHelp
, longHelp
, clientData
)
3631 def AddRadioTool(self
, id, bitmap
,
3632 bmpDisabled
= wx
.NullBitmap
,
3633 shortHelp
= '', longHelp
= '',
3636 Add a radio tool, i.e. a tool which can be toggled and releases any
3637 other toggled radio tools in the same group when it happens
3639 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3640 shortHelp
, longHelp
, clientData
)
3642 def AddToolItem(*args
, **kwargs
):
3643 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3644 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3646 def InsertToolItem(*args
, **kwargs
):
3647 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3648 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3650 def AddControl(*args
, **kwargs
):
3651 """AddControl(self, Control control) -> ToolBarToolBase"""
3652 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3654 def InsertControl(*args
, **kwargs
):
3655 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3656 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3658 def FindControl(*args
, **kwargs
):
3659 """FindControl(self, int id) -> Control"""
3660 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3662 def AddSeparator(*args
, **kwargs
):
3663 """AddSeparator(self) -> ToolBarToolBase"""
3664 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3666 def InsertSeparator(*args
, **kwargs
):
3667 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3668 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3670 def RemoveTool(*args
, **kwargs
):
3671 """RemoveTool(self, int id) -> ToolBarToolBase"""
3672 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3674 def DeleteToolByPos(*args
, **kwargs
):
3675 """DeleteToolByPos(self, size_t pos) -> bool"""
3676 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3678 def DeleteTool(*args
, **kwargs
):
3679 """DeleteTool(self, int id) -> bool"""
3680 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3682 def ClearTools(*args
, **kwargs
):
3683 """ClearTools(self)"""
3684 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3686 def Realize(*args
, **kwargs
):
3687 """Realize(self) -> bool"""
3688 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3690 def EnableTool(*args
, **kwargs
):
3691 """EnableTool(self, int id, bool enable)"""
3692 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3694 def ToggleTool(*args
, **kwargs
):
3695 """ToggleTool(self, int id, bool toggle)"""
3696 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3698 def SetToggle(*args
, **kwargs
):
3699 """SetToggle(self, int id, bool toggle)"""
3700 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3702 def GetToolClientData(*args
, **kwargs
):
3703 """GetToolClientData(self, int id) -> PyObject"""
3704 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3706 def SetToolClientData(*args
, **kwargs
):
3707 """SetToolClientData(self, int id, PyObject clientData)"""
3708 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3710 def GetToolPos(*args
, **kwargs
):
3711 """GetToolPos(self, int id) -> int"""
3712 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3714 def GetToolState(*args
, **kwargs
):
3715 """GetToolState(self, int id) -> bool"""
3716 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3718 def GetToolEnabled(*args
, **kwargs
):
3719 """GetToolEnabled(self, int id) -> bool"""
3720 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3722 def SetToolShortHelp(*args
, **kwargs
):
3723 """SetToolShortHelp(self, int id, String helpString)"""
3724 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3726 def GetToolShortHelp(*args
, **kwargs
):
3727 """GetToolShortHelp(self, int id) -> String"""
3728 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3730 def SetToolLongHelp(*args
, **kwargs
):
3731 """SetToolLongHelp(self, int id, String helpString)"""
3732 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3734 def GetToolLongHelp(*args
, **kwargs
):
3735 """GetToolLongHelp(self, int id) -> String"""
3736 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3738 def SetMarginsXY(*args
, **kwargs
):
3739 """SetMarginsXY(self, int x, int y)"""
3740 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3742 def SetMargins(*args
, **kwargs
):
3743 """SetMargins(self, Size size)"""
3744 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3746 def SetToolPacking(*args
, **kwargs
):
3747 """SetToolPacking(self, int packing)"""
3748 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3750 def SetToolSeparation(*args
, **kwargs
):
3751 """SetToolSeparation(self, int separation)"""
3752 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3754 def GetToolMargins(*args
, **kwargs
):
3755 """GetToolMargins(self) -> Size"""
3756 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3758 def GetMargins(*args
, **kwargs
):
3759 """GetMargins(self) -> Size"""
3760 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3762 def GetToolPacking(*args
, **kwargs
):
3763 """GetToolPacking(self) -> int"""
3764 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3766 def GetToolSeparation(*args
, **kwargs
):
3767 """GetToolSeparation(self) -> int"""
3768 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3770 def SetRows(*args
, **kwargs
):
3771 """SetRows(self, int nRows)"""
3772 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3774 def SetMaxRowsCols(*args
, **kwargs
):
3775 """SetMaxRowsCols(self, int rows, int cols)"""
3776 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3778 def GetMaxRows(*args
, **kwargs
):
3779 """GetMaxRows(self) -> int"""
3780 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3782 def GetMaxCols(*args
, **kwargs
):
3783 """GetMaxCols(self) -> int"""
3784 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3786 def SetToolBitmapSize(*args
, **kwargs
):
3787 """SetToolBitmapSize(self, Size size)"""
3788 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3790 def GetToolBitmapSize(*args
, **kwargs
):
3791 """GetToolBitmapSize(self) -> Size"""
3792 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3794 def GetToolSize(*args
, **kwargs
):
3795 """GetToolSize(self) -> Size"""
3796 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3798 def FindToolForPosition(*args
, **kwargs
):
3799 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3800 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3802 def FindById(*args
, **kwargs
):
3803 """FindById(self, int toolid) -> ToolBarToolBase"""
3804 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3806 def IsVertical(*args
, **kwargs
):
3807 """IsVertical(self) -> bool"""
3808 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3810 def GetToolsCount(*args
, **kwargs
):
3811 """GetToolsCount(self) -> size_t"""
3812 return _controls_
.ToolBarBase_GetToolsCount(*args
, **kwargs
)
3814 _controls_
.ToolBarBase_swigregister(ToolBarBase
)
3816 class ToolBar(ToolBarBase
):
3817 """Proxy of C++ ToolBar class"""
3818 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3819 __repr__
= _swig_repr
3820 def __init__(self
, *args
, **kwargs
):
3822 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3823 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3824 String name=wxPyToolBarNameStr) -> ToolBar
3826 _controls_
.ToolBar_swiginit(self
,_controls_
.new_ToolBar(*args
, **kwargs
))
3827 self
._setOORInfo
(self
)
3829 def Create(*args
, **kwargs
):
3831 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3832 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3833 String name=wxPyToolBarNameStr) -> bool
3835 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3837 def GetClassDefaultAttributes(*args
, **kwargs
):
3839 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3841 Get the default attributes for this class. This is useful if you want
3842 to use the same font or colour in your own control as in a standard
3843 control -- which is a much better idea than hard coding specific
3844 colours or fonts which might look completely out of place on the
3845 user's system, especially if it uses themes.
3847 The variant parameter is only relevant under Mac currently and is
3848 ignore under other platforms. Under Mac, it will change the size of
3849 the returned font. See `wx.Window.SetWindowVariant` for more about
3852 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3854 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3855 _controls_
.ToolBar_swigregister(ToolBar
)
3857 def PreToolBar(*args
, **kwargs
):
3858 """PreToolBar() -> ToolBar"""
3859 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3862 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3864 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3866 Get the default attributes for this class. This is useful if you want
3867 to use the same font or colour in your own control as in a standard
3868 control -- which is a much better idea than hard coding specific
3869 colours or fonts which might look completely out of place on the
3870 user's system, especially if it uses themes.
3872 The variant parameter is only relevant under Mac currently and is
3873 ignore under other platforms. Under Mac, it will change the size of
3874 the returned font. See `wx.Window.SetWindowVariant` for more about
3877 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3879 #---------------------------------------------------------------------------
3881 LC_VRULES
= _controls_
.LC_VRULES
3882 LC_HRULES
= _controls_
.LC_HRULES
3883 LC_ICON
= _controls_
.LC_ICON
3884 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3885 LC_LIST
= _controls_
.LC_LIST
3886 LC_REPORT
= _controls_
.LC_REPORT
3887 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3888 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3889 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3890 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3891 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3892 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3893 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3894 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3895 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3896 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3897 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3898 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3899 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3900 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3901 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3902 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3903 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3904 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3905 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3906 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3907 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3908 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3909 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3910 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3911 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3912 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3913 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3914 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3915 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3916 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3917 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3918 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3919 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3920 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3921 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3922 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3923 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3924 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3925 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3926 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3927 LIST_GETSUBITEMRECT_WHOLEITEM
= _controls_
.LIST_GETSUBITEMRECT_WHOLEITEM
3928 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3929 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3930 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3931 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3932 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3933 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3934 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3935 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3936 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3937 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3938 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3939 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3940 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3941 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3942 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3943 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3944 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3945 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3946 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3947 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3948 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3949 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3950 #---------------------------------------------------------------------------
3952 class ListItemAttr(object):
3953 """Proxy of C++ ListItemAttr class"""
3954 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3955 __repr__
= _swig_repr
3956 def __init__(self
, *args
, **kwargs
):
3958 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3959 Font font=wxNullFont) -> ListItemAttr
3961 _controls_
.ListItemAttr_swiginit(self
,_controls_
.new_ListItemAttr(*args
, **kwargs
))
3962 __swig_destroy__
= _controls_
.delete_ListItemAttr
3963 __del__
= lambda self
: None;
3964 def SetTextColour(*args
, **kwargs
):
3965 """SetTextColour(self, Colour colText)"""
3966 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3968 def SetBackgroundColour(*args
, **kwargs
):
3969 """SetBackgroundColour(self, Colour colBack)"""
3970 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3972 def SetFont(*args
, **kwargs
):
3973 """SetFont(self, Font font)"""
3974 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3976 def HasTextColour(*args
, **kwargs
):
3977 """HasTextColour(self) -> bool"""
3978 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3980 def HasBackgroundColour(*args
, **kwargs
):
3981 """HasBackgroundColour(self) -> bool"""
3982 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3984 def HasFont(*args
, **kwargs
):
3985 """HasFont(self) -> bool"""
3986 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3988 def GetTextColour(*args
, **kwargs
):
3989 """GetTextColour(self) -> Colour"""
3990 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3992 def GetBackgroundColour(*args
, **kwargs
):
3993 """GetBackgroundColour(self) -> Colour"""
3994 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3996 def GetFont(*args
, **kwargs
):
3997 """GetFont(self) -> Font"""
3998 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4000 def AssignFrom(*args
, **kwargs
):
4001 """AssignFrom(self, ListItemAttr source)"""
4002 return _controls_
.ListItemAttr_AssignFrom(*args
, **kwargs
)
4004 def Destroy(*args
, **kwargs
):
4006 val
= _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4010 _controls_
.ListItemAttr_swigregister(ListItemAttr
)
4011 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4013 #---------------------------------------------------------------------------
4015 class ListItem(_core
.Object
):
4016 """Proxy of C++ ListItem class"""
4017 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4018 __repr__
= _swig_repr
4019 def __init__(self
, *args
, **kwargs
):
4020 """__init__(self) -> ListItem"""
4021 _controls_
.ListItem_swiginit(self
,_controls_
.new_ListItem(*args
, **kwargs
))
4022 __swig_destroy__
= _controls_
.delete_ListItem
4023 __del__
= lambda self
: None;
4024 def Clear(*args
, **kwargs
):
4026 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4028 def ClearAttributes(*args
, **kwargs
):
4029 """ClearAttributes(self)"""
4030 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4032 def SetMask(*args
, **kwargs
):
4033 """SetMask(self, long mask)"""
4034 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4036 def SetId(*args
, **kwargs
):
4037 """SetId(self, long id)"""
4038 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4040 def SetColumn(*args
, **kwargs
):
4041 """SetColumn(self, int col)"""
4042 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4044 def SetState(*args
, **kwargs
):
4045 """SetState(self, long state)"""
4046 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4048 def SetStateMask(*args
, **kwargs
):
4049 """SetStateMask(self, long stateMask)"""
4050 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4052 def SetText(*args
, **kwargs
):
4053 """SetText(self, String text)"""
4054 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4056 def SetImage(*args
, **kwargs
):
4057 """SetImage(self, int image)"""
4058 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4060 def SetData(*args
, **kwargs
):
4061 """SetData(self, long data)"""
4062 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4064 def SetWidth(*args
, **kwargs
):
4065 """SetWidth(self, int width)"""
4066 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4068 def SetAlign(*args
, **kwargs
):
4069 """SetAlign(self, int align)"""
4070 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4072 def SetTextColour(*args
, **kwargs
):
4073 """SetTextColour(self, Colour colText)"""
4074 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4076 def SetBackgroundColour(*args
, **kwargs
):
4077 """SetBackgroundColour(self, Colour colBack)"""
4078 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4080 def SetFont(*args
, **kwargs
):
4081 """SetFont(self, Font font)"""
4082 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4084 def GetMask(*args
, **kwargs
):
4085 """GetMask(self) -> long"""
4086 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4088 def GetId(*args
, **kwargs
):
4089 """GetId(self) -> long"""
4090 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4092 def GetColumn(*args
, **kwargs
):
4093 """GetColumn(self) -> int"""
4094 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4096 def GetState(*args
, **kwargs
):
4097 """GetState(self) -> long"""
4098 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4100 def GetText(*args
, **kwargs
):
4101 """GetText(self) -> String"""
4102 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4104 def GetImage(*args
, **kwargs
):
4105 """GetImage(self) -> int"""
4106 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4108 def GetData(*args
, **kwargs
):
4109 """GetData(self) -> long"""
4110 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4112 def GetWidth(*args
, **kwargs
):
4113 """GetWidth(self) -> int"""
4114 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4116 def GetAlign(*args
, **kwargs
):
4117 """GetAlign(self) -> int"""
4118 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4120 def GetAttributes(*args
, **kwargs
):
4121 """GetAttributes(self) -> ListItemAttr"""
4122 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4124 def HasAttributes(*args
, **kwargs
):
4125 """HasAttributes(self) -> bool"""
4126 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4128 def GetTextColour(*args
, **kwargs
):
4129 """GetTextColour(self) -> Colour"""
4130 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4132 def GetBackgroundColour(*args
, **kwargs
):
4133 """GetBackgroundColour(self) -> Colour"""
4134 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4136 def GetFont(*args
, **kwargs
):
4137 """GetFont(self) -> Font"""
4138 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4140 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4141 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4142 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4143 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4144 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4145 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4146 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4147 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4148 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4149 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4150 _controls_
.ListItem_swigregister(ListItem
)
4152 #---------------------------------------------------------------------------
4154 class ListEvent(_core
.NotifyEvent
):
4155 """Proxy of C++ ListEvent class"""
4156 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4157 __repr__
= _swig_repr
4158 def __init__(self
, *args
, **kwargs
):
4159 """__init__(self, EventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4160 _controls_
.ListEvent_swiginit(self
,_controls_
.new_ListEvent(*args
, **kwargs
))
4161 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4162 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4163 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4164 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4165 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4166 m_item
= property(_controls_
.ListEvent_m_item_get
)
4167 def GetKeyCode(*args
, **kwargs
):
4168 """GetKeyCode(self) -> int"""
4169 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4171 GetCode
= GetKeyCode
4172 def GetIndex(*args
, **kwargs
):
4173 """GetIndex(self) -> long"""
4174 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4176 def GetColumn(*args
, **kwargs
):
4177 """GetColumn(self) -> int"""
4178 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4180 def GetPoint(*args
, **kwargs
):
4181 """GetPoint(self) -> Point"""
4182 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4184 GetPosition
= GetPoint
4185 def GetLabel(*args
, **kwargs
):
4186 """GetLabel(self) -> String"""
4187 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4189 def GetText(*args
, **kwargs
):
4190 """GetText(self) -> String"""
4191 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4193 def GetImage(*args
, **kwargs
):
4194 """GetImage(self) -> int"""
4195 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4197 def GetData(*args
, **kwargs
):
4198 """GetData(self) -> long"""
4199 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4201 def GetMask(*args
, **kwargs
):
4202 """GetMask(self) -> long"""
4203 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4205 def GetItem(*args
, **kwargs
):
4206 """GetItem(self) -> ListItem"""
4207 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4209 def GetCacheFrom(*args
, **kwargs
):
4210 """GetCacheFrom(self) -> long"""
4211 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4213 def GetCacheTo(*args
, **kwargs
):
4214 """GetCacheTo(self) -> long"""
4215 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4217 def IsEditCancelled(*args
, **kwargs
):
4218 """IsEditCancelled(self) -> bool"""
4219 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4221 def SetEditCanceled(*args
, **kwargs
):
4222 """SetEditCanceled(self, bool editCancelled)"""
4223 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4225 _controls_
.ListEvent_swigregister(ListEvent
)
4227 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4228 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4229 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4230 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4231 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4232 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4233 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4234 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4235 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4236 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4237 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4238 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4239 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4240 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4241 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4242 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4243 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4244 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4245 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4246 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4247 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4248 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4249 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4250 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4251 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4252 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4257 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4258 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4259 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4260 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4261 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4262 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4263 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4264 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4265 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4266 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4267 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4268 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4269 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4270 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4276 #---------------------------------------------------------------------------
4278 class ListCtrl(_core
.Control
):
4279 """Proxy of C++ ListCtrl class"""
4280 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4281 __repr__
= _swig_repr
4282 def __init__(self
, *args
, **kwargs
):
4284 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4285 Size size=DefaultSize, long style=LC_ICON,
4286 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4288 _controls_
.ListCtrl_swiginit(self
,_controls_
.new_ListCtrl(*args
, **kwargs
))
4289 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4291 def Create(*args
, **kwargs
):
4293 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4294 Size size=DefaultSize, long style=LC_ICON,
4295 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4297 Do the 2nd phase and create the GUI control.
4299 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4301 def _setCallbackInfo(*args
, **kwargs
):
4302 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4303 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4305 def GetColumn(*args
, **kwargs
):
4306 """GetColumn(self, int col) -> ListItem"""
4307 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4308 if val
is not None: val
.thisown
= 1
4311 def SetColumn(*args
, **kwargs
):
4312 """SetColumn(self, int col, ListItem item) -> bool"""
4313 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4315 def GetColumnWidth(*args
, **kwargs
):
4316 """GetColumnWidth(self, int col) -> int"""
4317 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4319 def SetColumnWidth(*args
, **kwargs
):
4320 """SetColumnWidth(self, int col, int width) -> bool"""
4321 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4323 def GetCountPerPage(*args
, **kwargs
):
4324 """GetCountPerPage(self) -> int"""
4325 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4327 def GetViewRect(*args
, **kwargs
):
4328 """GetViewRect(self) -> Rect"""
4329 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4331 def GetEditControl(*args
, **kwargs
):
4332 """GetEditControl(self) -> TextCtrl"""
4333 return _controls_
.ListCtrl_GetEditControl(*args
, **kwargs
)
4335 def GetItem(*args
, **kwargs
):
4336 """GetItem(self, long itemId, int col=0) -> ListItem"""
4337 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4338 if val
is not None: val
.thisown
= 1
4341 def SetItem(*args
, **kwargs
):
4342 """SetItem(self, ListItem info) -> bool"""
4343 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4345 def SetStringItem(*args
, **kwargs
):
4346 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4347 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4349 def GetItemState(*args
, **kwargs
):
4350 """GetItemState(self, long item, long stateMask) -> int"""
4351 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4353 def SetItemState(*args
, **kwargs
):
4354 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4355 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4357 def SetItemImage(*args
, **kwargs
):
4358 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4359 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4361 def SetItemColumnImage(*args
, **kwargs
):
4362 """SetItemColumnImage(self, long item, long column, int image) -> bool"""
4363 return _controls_
.ListCtrl_SetItemColumnImage(*args
, **kwargs
)
4365 def GetItemText(*args
, **kwargs
):
4366 """GetItemText(self, long item) -> String"""
4367 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4369 def SetItemText(*args
, **kwargs
):
4370 """SetItemText(self, long item, String str)"""
4371 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4373 def GetItemData(*args
, **kwargs
):
4374 """GetItemData(self, long item) -> long"""
4375 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4377 def SetItemData(*args
, **kwargs
):
4378 """SetItemData(self, long item, long data) -> bool"""
4379 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4381 def GetItemPosition(*args
, **kwargs
):
4382 """GetItemPosition(self, long item) -> Point"""
4383 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4385 def GetItemRect(*args
, **kwargs
):
4386 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4387 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4389 def SetItemPosition(*args
, **kwargs
):
4390 """SetItemPosition(self, long item, Point pos) -> bool"""
4391 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4393 def GetItemCount(*args
, **kwargs
):
4394 """GetItemCount(self) -> int"""
4395 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4397 def GetColumnCount(*args
, **kwargs
):
4398 """GetColumnCount(self) -> int"""
4399 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4401 def GetItemSpacing(*args
, **kwargs
):
4402 """GetItemSpacing(self) -> Size"""
4403 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4405 GetItemSpacing
= wx
._deprecated
(GetItemSpacing
)
4406 def GetSelectedItemCount(*args
, **kwargs
):
4407 """GetSelectedItemCount(self) -> int"""
4408 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4410 def GetTextColour(*args
, **kwargs
):
4411 """GetTextColour(self) -> Colour"""
4412 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4414 def SetTextColour(*args
, **kwargs
):
4415 """SetTextColour(self, Colour col)"""
4416 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4418 def GetTopItem(*args
, **kwargs
):
4419 """GetTopItem(self) -> long"""
4420 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4422 def SetSingleStyle(*args
, **kwargs
):
4423 """SetSingleStyle(self, long style, bool add=True)"""
4424 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4426 def GetNextItem(*args
, **kwargs
):
4427 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4428 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4430 def GetImageList(*args
, **kwargs
):
4431 """GetImageList(self, int which) -> ImageList"""
4432 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4434 def SetImageList(*args
, **kwargs
):
4435 """SetImageList(self, ImageList imageList, int which)"""
4436 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4438 def AssignImageList(*args
, **kwargs
):
4439 """AssignImageList(self, ImageList imageList, int which)"""
4440 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4442 def InReportView(*args
, **kwargs
):
4443 """InReportView(self) -> bool"""
4444 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4446 def IsVirtual(*args
, **kwargs
):
4447 """IsVirtual(self) -> bool"""
4448 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4450 def RefreshItem(*args
, **kwargs
):
4451 """RefreshItem(self, long item)"""
4452 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4454 def RefreshItems(*args
, **kwargs
):
4455 """RefreshItems(self, long itemFrom, long itemTo)"""
4456 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4458 def Arrange(*args
, **kwargs
):
4459 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4460 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4462 def DeleteItem(*args
, **kwargs
):
4463 """DeleteItem(self, long item) -> bool"""
4464 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4466 def DeleteAllItems(*args
, **kwargs
):
4467 """DeleteAllItems(self) -> bool"""
4468 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4470 def DeleteColumn(*args
, **kwargs
):
4471 """DeleteColumn(self, int col) -> bool"""
4472 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4474 def DeleteAllColumns(*args
, **kwargs
):
4475 """DeleteAllColumns(self) -> bool"""
4476 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4478 def ClearAll(*args
, **kwargs
):
4479 """ClearAll(self)"""
4480 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4482 def EditLabel(*args
, **kwargs
):
4483 """EditLabel(self, long item) -> TextCtrl"""
4484 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4486 def EndEditLabel(*args
, **kwargs
):
4487 """EndEditLabel(self, bool cancel) -> bool"""
4488 return _controls_
.ListCtrl_EndEditLabel(*args
, **kwargs
)
4490 def EnsureVisible(*args
, **kwargs
):
4491 """EnsureVisible(self, long item) -> bool"""
4492 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4494 def FindItem(*args
, **kwargs
):
4495 """FindItem(self, long start, String str, bool partial=False) -> long"""
4496 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4498 def FindItemData(*args
, **kwargs
):
4499 """FindItemData(self, long start, long data) -> long"""
4500 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4502 def FindItemAtPos(*args
, **kwargs
):
4503 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4504 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4506 def HitTest(*args
, **kwargs
):
4508 HitTest(Point point) -> (item, where)
4510 Determines which item (if any) is at the specified point, giving
4511 in the second return value (see wx.LIST_HITTEST flags.)
4513 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4515 def HitTestSubItem(*args
, **kwargs
):
4517 HitTestSubItem(Point point) -> (item, where, subItem)
4519 Determines which item (if any) is at the specified point, giving in
4520 the second return value (see wx.LIST_HITTEST flags) and also the subItem, if
4523 return _controls_
.ListCtrl_HitTestSubItem(*args
, **kwargs
)
4525 def InsertItem(*args
, **kwargs
):
4526 """InsertItem(self, ListItem info) -> long"""
4527 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4529 def InsertStringItem(*args
, **kwargs
):
4530 """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long"""
4531 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4533 def InsertImageItem(*args
, **kwargs
):
4534 """InsertImageItem(self, long index, int imageIndex) -> long"""
4535 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4537 def InsertImageStringItem(*args
, **kwargs
):
4538 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4539 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4541 def InsertColumnItem(*args
, **kwargs
):
4542 """InsertColumnItem(self, long col, ListItem info) -> long"""
4543 return _controls_
.ListCtrl_InsertColumnItem(*args
, **kwargs
)
4545 InsertColumnInfo
= InsertColumnItem
4546 def InsertColumn(*args
, **kwargs
):
4548 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4549 int width=-1) -> long
4551 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4553 def SetItemCount(*args
, **kwargs
):
4554 """SetItemCount(self, long count)"""
4555 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4557 def ScrollList(*args
, **kwargs
):
4558 """ScrollList(self, int dx, int dy) -> bool"""
4559 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4561 def SetItemTextColour(*args
, **kwargs
):
4562 """SetItemTextColour(self, long item, Colour col)"""
4563 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4565 def GetItemTextColour(*args
, **kwargs
):
4566 """GetItemTextColour(self, long item) -> Colour"""
4567 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4569 def SetItemBackgroundColour(*args
, **kwargs
):
4570 """SetItemBackgroundColour(self, long item, Colour col)"""
4571 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4573 def GetItemBackgroundColour(*args
, **kwargs
):
4574 """GetItemBackgroundColour(self, long item) -> Colour"""
4575 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4577 def SetItemFont(*args
, **kwargs
):
4578 """SetItemFont(self, long item, Font f)"""
4579 return _controls_
.ListCtrl_SetItemFont(*args
, **kwargs
)
4581 def GetItemFont(*args
, **kwargs
):
4582 """GetItemFont(self, long item) -> Font"""
4583 return _controls_
.ListCtrl_GetItemFont(*args
, **kwargs
)
4587 def Select(self
, idx
, on
=1):
4588 '''[de]select an item'''
4589 if on
: state
= wx
.LIST_STATE_SELECTED
4591 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4593 def Focus(self
, idx
):
4594 '''Focus and show the given item'''
4595 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4596 self
.EnsureVisible(idx
)
4598 def GetFocusedItem(self
):
4599 '''get the currently focused item or -1 if none'''
4600 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4602 def GetFirstSelected(self
, *args
):
4603 '''return first selected item, or -1 when none'''
4604 return self
.GetNextSelected(-1)
4606 def GetNextSelected(self
, item
):
4607 '''return subsequent selected items, or -1 when no more'''
4608 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4610 def IsSelected(self
, idx
):
4611 '''return True if the item is selected'''
4612 return (self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) & wx
.LIST_STATE_SELECTED
) != 0
4614 def SetColumnImage(self
, col
, image
):
4615 item
= self
.GetColumn(col
)
4616 # preserve all other attributes too
4617 item
.SetMask( wx
.LIST_MASK_STATE |
4619 wx
.LIST_MASK_IMAGE |
4622 wx
.LIST_MASK_WIDTH |
4623 wx
.LIST_MASK_FORMAT
)
4624 item
.SetImage(image
)
4625 self
.SetColumn(col
, item
)
4627 def ClearColumnImage(self
, col
):
4628 self
.SetColumnImage(col
, -1)
4630 def Append(self
, entry
):
4631 '''Append an item to the list control. The entry parameter should be a
4632 sequence with an item for each column'''
4638 pos
= self
.GetItemCount()
4639 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4640 for i
in range(1, len(entry
)):
4641 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4644 def SortItems(*args
, **kwargs
):
4645 """SortItems(self, PyObject func) -> bool"""
4646 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4648 def GetMainWindow(*args
, **kwargs
):
4649 """GetMainWindow(self) -> Window"""
4650 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4652 def GetClassDefaultAttributes(*args
, **kwargs
):
4654 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4656 Get the default attributes for this class. This is useful if you want
4657 to use the same font or colour in your own control as in a standard
4658 control -- which is a much better idea than hard coding specific
4659 colours or fonts which might look completely out of place on the
4660 user's system, especially if it uses themes.
4662 The variant parameter is only relevant under Mac currently and is
4663 ignore under other platforms. Under Mac, it will change the size of
4664 the returned font. See `wx.Window.SetWindowVariant` for more about
4667 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4669 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4670 _controls_
.ListCtrl_swigregister(ListCtrl
)
4672 def PreListCtrl(*args
, **kwargs
):
4673 """PreListCtrl() -> ListCtrl"""
4674 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4677 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4679 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4681 Get the default attributes for this class. This is useful if you want
4682 to use the same font or colour in your own control as in a standard
4683 control -- which is a much better idea than hard coding specific
4684 colours or fonts which might look completely out of place on the
4685 user's system, especially if it uses themes.
4687 The variant parameter is only relevant under Mac currently and is
4688 ignore under other platforms. Under Mac, it will change the size of
4689 the returned font. See `wx.Window.SetWindowVariant` for more about
4692 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4694 #---------------------------------------------------------------------------
4696 class ListView(ListCtrl
):
4697 """Proxy of C++ ListView class"""
4698 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4699 __repr__
= _swig_repr
4700 def __init__(self
, *args
, **kwargs
):
4702 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4703 Size size=DefaultSize, long style=LC_REPORT,
4704 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4706 _controls_
.ListView_swiginit(self
,_controls_
.new_ListView(*args
, **kwargs
))
4707 self
._setOORInfo
(self
)
4709 def Create(*args
, **kwargs
):
4711 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4712 Size size=DefaultSize, long style=LC_REPORT,
4713 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4715 Do the 2nd phase and create the GUI control.
4717 return _controls_
.ListView_Create(*args
, **kwargs
)
4719 def Select(*args
, **kwargs
):
4720 """Select(self, long n, bool on=True)"""
4721 return _controls_
.ListView_Select(*args
, **kwargs
)
4723 def Focus(*args
, **kwargs
):
4724 """Focus(self, long index)"""
4725 return _controls_
.ListView_Focus(*args
, **kwargs
)
4727 def GetFocusedItem(*args
, **kwargs
):
4728 """GetFocusedItem(self) -> long"""
4729 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4731 def GetNextSelected(*args
, **kwargs
):
4732 """GetNextSelected(self, long item) -> long"""
4733 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4735 def GetFirstSelected(*args
, **kwargs
):
4736 """GetFirstSelected(self) -> long"""
4737 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4739 def IsSelected(*args
, **kwargs
):
4740 """IsSelected(self, long index) -> bool"""
4741 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4743 def SetColumnImage(*args
, **kwargs
):
4744 """SetColumnImage(self, int col, int image)"""
4745 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4747 def ClearColumnImage(*args
, **kwargs
):
4748 """ClearColumnImage(self, int col)"""
4749 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4751 _controls_
.ListView_swigregister(ListView
)
4753 def PreListView(*args
, **kwargs
):
4754 """PreListView() -> ListView"""
4755 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4758 #---------------------------------------------------------------------------
4760 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4761 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4762 TR_NO_LINES
= _controls_
.TR_NO_LINES
4763 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4764 TR_SINGLE
= _controls_
.TR_SINGLE
4765 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4766 TR_EXTENDED
= _controls_
.TR_EXTENDED
4767 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4768 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4769 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4770 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4771 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4772 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4773 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4776 wxTR_AQUA_BUTTONS
= 0
4778 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4779 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4780 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4781 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4782 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4783 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4784 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4785 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4786 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4787 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4788 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4789 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4790 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4791 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4792 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4793 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4794 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4795 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4796 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4797 #---------------------------------------------------------------------------
4799 class TreeItemId(object):
4800 """Proxy of C++ TreeItemId class"""
4801 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4802 __repr__
= _swig_repr
4803 def __init__(self
, *args
, **kwargs
):
4804 """__init__(self) -> TreeItemId"""
4805 _controls_
.TreeItemId_swiginit(self
,_controls_
.new_TreeItemId(*args
, **kwargs
))
4806 __swig_destroy__
= _controls_
.delete_TreeItemId
4807 __del__
= lambda self
: None;
4808 def IsOk(*args
, **kwargs
):
4809 """IsOk(self) -> bool"""
4810 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4812 def __eq__(*args
, **kwargs
):
4813 """__eq__(self, TreeItemId other) -> bool"""
4814 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4816 def __ne__(*args
, **kwargs
):
4817 """__ne__(self, TreeItemId other) -> bool"""
4818 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4820 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4822 def __nonzero__(self
): return self
.IsOk()
4823 _controls_
.TreeItemId_swigregister(TreeItemId
)
4824 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4826 class TreeItemData(object):
4827 """Proxy of C++ TreeItemData class"""
4828 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4829 __repr__
= _swig_repr
4830 def __init__(self
, *args
, **kwargs
):
4831 """__init__(self, PyObject obj=None) -> TreeItemData"""
4832 _controls_
.TreeItemData_swiginit(self
,_controls_
.new_TreeItemData(*args
, **kwargs
))
4833 __swig_destroy__
= _controls_
.delete_TreeItemData
4834 __del__
= lambda self
: None;
4835 def GetData(*args
, **kwargs
):
4836 """GetData(self) -> PyObject"""
4837 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4839 def SetData(*args
, **kwargs
):
4840 """SetData(self, PyObject obj)"""
4841 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4843 def GetId(*args
, **kwargs
):
4844 """GetId(self) -> TreeItemId"""
4845 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4847 def SetId(*args
, **kwargs
):
4848 """SetId(self, TreeItemId id)"""
4849 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4851 def Destroy(*args
, **kwargs
):
4853 val
= _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4857 _controls_
.TreeItemData_swigregister(TreeItemData
)
4859 #---------------------------------------------------------------------------
4861 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4862 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4863 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4864 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4865 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4866 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4867 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4868 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4869 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4870 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4871 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4872 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4873 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4874 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4875 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4876 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4877 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4878 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4879 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4880 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4881 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
4882 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4883 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4884 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4885 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4886 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4887 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4888 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4889 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4890 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4891 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4892 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4893 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4894 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4895 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4896 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4897 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4898 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4899 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4900 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4901 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4902 EVT_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
4904 class TreeEvent(_core
.NotifyEvent
):
4905 """Proxy of C++ TreeEvent class"""
4906 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4907 __repr__
= _swig_repr
4908 def __init__(self
, *args
, **kwargs
):
4909 """__init__(self, EventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4910 _controls_
.TreeEvent_swiginit(self
,_controls_
.new_TreeEvent(*args
, **kwargs
))
4911 def GetItem(*args
, **kwargs
):
4912 """GetItem(self) -> TreeItemId"""
4913 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4915 def SetItem(*args
, **kwargs
):
4916 """SetItem(self, TreeItemId item)"""
4917 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4919 def GetOldItem(*args
, **kwargs
):
4920 """GetOldItem(self) -> TreeItemId"""
4921 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4923 def SetOldItem(*args
, **kwargs
):
4924 """SetOldItem(self, TreeItemId item)"""
4925 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4927 def GetPoint(*args
, **kwargs
):
4928 """GetPoint(self) -> Point"""
4929 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4931 def SetPoint(*args
, **kwargs
):
4932 """SetPoint(self, Point pt)"""
4933 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4935 def GetKeyEvent(*args
, **kwargs
):
4936 """GetKeyEvent(self) -> KeyEvent"""
4937 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4939 def GetKeyCode(*args
, **kwargs
):
4940 """GetKeyCode(self) -> int"""
4941 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4943 def SetKeyEvent(*args
, **kwargs
):
4944 """SetKeyEvent(self, KeyEvent evt)"""
4945 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4947 def GetLabel(*args
, **kwargs
):
4948 """GetLabel(self) -> String"""
4949 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4951 def SetLabel(*args
, **kwargs
):
4952 """SetLabel(self, String label)"""
4953 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4955 def IsEditCancelled(*args
, **kwargs
):
4956 """IsEditCancelled(self) -> bool"""
4957 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4959 def SetEditCanceled(*args
, **kwargs
):
4960 """SetEditCanceled(self, bool editCancelled)"""
4961 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4963 def SetToolTip(*args
, **kwargs
):
4964 """SetToolTip(self, String toolTip)"""
4965 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4967 def GetToolTip(*args
, **kwargs
):
4968 """GetToolTip(self) -> String"""
4969 return _controls_
.TreeEvent_GetToolTip(*args
, **kwargs
)
4971 _controls_
.TreeEvent_swigregister(TreeEvent
)
4973 #---------------------------------------------------------------------------
4975 class TreeCtrl(_core
.Control
):
4976 """Proxy of C++ TreeCtrl class"""
4977 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4978 __repr__
= _swig_repr
4979 def __init__(self
, *args
, **kwargs
):
4981 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4982 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4983 Validator validator=DefaultValidator,
4984 String name=TreeCtrlNameStr) -> TreeCtrl
4986 _controls_
.TreeCtrl_swiginit(self
,_controls_
.new_TreeCtrl(*args
, **kwargs
))
4987 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4989 def Create(*args
, **kwargs
):
4991 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4992 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4993 Validator validator=DefaultValidator,
4994 String name=TreeCtrlNameStr) -> bool
4996 Do the 2nd phase and create the GUI control.
4998 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5000 def _setCallbackInfo(*args
, **kwargs
):
5001 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5002 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5004 def GetCount(*args
, **kwargs
):
5005 """GetCount(self) -> unsigned int"""
5006 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5008 def GetIndent(*args
, **kwargs
):
5009 """GetIndent(self) -> unsigned int"""
5010 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5012 def SetIndent(*args
, **kwargs
):
5013 """SetIndent(self, unsigned int indent)"""
5014 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5016 def GetSpacing(*args
, **kwargs
):
5017 """GetSpacing(self) -> unsigned int"""
5018 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5020 def SetSpacing(*args
, **kwargs
):
5021 """SetSpacing(self, unsigned int spacing)"""
5022 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5024 def GetImageList(*args
, **kwargs
):
5025 """GetImageList(self) -> ImageList"""
5026 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5028 def GetStateImageList(*args
, **kwargs
):
5029 """GetStateImageList(self) -> ImageList"""
5030 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5032 def SetImageList(*args
, **kwargs
):
5033 """SetImageList(self, ImageList imageList)"""
5034 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5036 def SetStateImageList(*args
, **kwargs
):
5037 """SetStateImageList(self, ImageList imageList)"""
5038 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5040 def AssignImageList(*args
, **kwargs
):
5041 """AssignImageList(self, ImageList imageList)"""
5042 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5044 def AssignStateImageList(*args
, **kwargs
):
5045 """AssignStateImageList(self, ImageList imageList)"""
5046 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5048 def GetItemText(*args
, **kwargs
):
5049 """GetItemText(self, TreeItemId item) -> String"""
5050 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5052 def GetItemImage(*args
, **kwargs
):
5053 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5054 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5056 def GetItemData(*args
, **kwargs
):
5057 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5058 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5060 def GetItemPyData(*args
, **kwargs
):
5061 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5062 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5064 GetPyData
= GetItemPyData
5065 def GetItemTextColour(*args
, **kwargs
):
5066 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5067 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5069 def GetItemBackgroundColour(*args
, **kwargs
):
5070 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5071 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5073 def GetItemFont(*args
, **kwargs
):
5074 """GetItemFont(self, TreeItemId item) -> Font"""
5075 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5077 def SetItemText(*args
, **kwargs
):
5078 """SetItemText(self, TreeItemId item, String text)"""
5079 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5081 def SetItemImage(*args
, **kwargs
):
5082 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5083 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5085 def SetItemData(*args
, **kwargs
):
5086 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5087 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5089 def SetItemPyData(*args
, **kwargs
):
5090 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5091 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5093 SetPyData
= SetItemPyData
5094 def SetItemHasChildren(*args
, **kwargs
):
5095 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5096 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5098 def SetItemBold(*args
, **kwargs
):
5099 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5100 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5102 def SetItemDropHighlight(*args
, **kwargs
):
5103 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5104 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5106 def SetItemTextColour(*args
, **kwargs
):
5107 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5108 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5110 def SetItemBackgroundColour(*args
, **kwargs
):
5111 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5112 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5114 def SetItemFont(*args
, **kwargs
):
5115 """SetItemFont(self, TreeItemId item, Font font)"""
5116 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5118 def IsVisible(*args
, **kwargs
):
5119 """IsVisible(self, TreeItemId item) -> bool"""
5120 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5122 def ItemHasChildren(*args
, **kwargs
):
5123 """ItemHasChildren(self, TreeItemId item) -> bool"""
5124 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5126 def IsExpanded(*args
, **kwargs
):
5127 """IsExpanded(self, TreeItemId item) -> bool"""
5128 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5130 def IsSelected(*args
, **kwargs
):
5131 """IsSelected(self, TreeItemId item) -> bool"""
5132 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5134 def IsBold(*args
, **kwargs
):
5135 """IsBold(self, TreeItemId item) -> bool"""
5136 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5138 def GetChildrenCount(*args
, **kwargs
):
5139 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5140 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5142 def GetRootItem(*args
, **kwargs
):
5143 """GetRootItem(self) -> TreeItemId"""
5144 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5146 def GetSelection(*args
, **kwargs
):
5147 """GetSelection(self) -> TreeItemId"""
5148 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5150 def GetSelections(*args
, **kwargs
):
5151 """GetSelections(self) -> PyObject"""
5152 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5154 def GetItemParent(*args
, **kwargs
):
5155 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5156 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5158 def GetFirstChild(*args
, **kwargs
):
5159 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5160 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5162 def GetNextChild(*args
, **kwargs
):
5163 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5164 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5166 def GetLastChild(*args
, **kwargs
):
5167 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5168 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5170 def GetNextSibling(*args
, **kwargs
):
5171 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5172 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5174 def GetPrevSibling(*args
, **kwargs
):
5175 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5176 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5178 def GetFirstVisibleItem(*args
, **kwargs
):
5179 """GetFirstVisibleItem(self) -> TreeItemId"""
5180 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5182 def GetNextVisible(*args
, **kwargs
):
5183 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5184 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5186 def GetPrevVisible(*args
, **kwargs
):
5187 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5188 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5190 def AddRoot(*args
, **kwargs
):
5191 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5192 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5194 def PrependItem(*args
, **kwargs
):
5196 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5197 TreeItemData data=None) -> TreeItemId
5199 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5201 def InsertItem(*args
, **kwargs
):
5203 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5204 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5206 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5208 def InsertItemBefore(*args
, **kwargs
):
5210 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5211 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5213 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5215 def AppendItem(*args
, **kwargs
):
5217 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5218 TreeItemData data=None) -> TreeItemId
5220 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5222 def Delete(*args
, **kwargs
):
5223 """Delete(self, TreeItemId item)"""
5224 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5226 def DeleteChildren(*args
, **kwargs
):
5227 """DeleteChildren(self, TreeItemId item)"""
5228 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5230 def DeleteAllItems(*args
, **kwargs
):
5231 """DeleteAllItems(self)"""
5232 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5234 def Expand(*args
, **kwargs
):
5235 """Expand(self, TreeItemId item)"""
5236 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5238 def Collapse(*args
, **kwargs
):
5239 """Collapse(self, TreeItemId item)"""
5240 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5242 def CollapseAndReset(*args
, **kwargs
):
5243 """CollapseAndReset(self, TreeItemId item)"""
5244 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5246 def Toggle(*args
, **kwargs
):
5247 """Toggle(self, TreeItemId item)"""
5248 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5250 def Unselect(*args
, **kwargs
):
5251 """Unselect(self)"""
5252 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5254 def UnselectItem(*args
, **kwargs
):
5255 """UnselectItem(self, TreeItemId item)"""
5256 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5258 def UnselectAll(*args
, **kwargs
):
5259 """UnselectAll(self)"""
5260 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5262 def SelectItem(*args
, **kwargs
):
5263 """SelectItem(self, TreeItemId item, bool select=True)"""
5264 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5266 def ToggleItemSelection(*args
, **kwargs
):
5267 """ToggleItemSelection(self, TreeItemId item)"""
5268 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5270 def EnsureVisible(*args
, **kwargs
):
5271 """EnsureVisible(self, TreeItemId item)"""
5272 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5274 def ScrollTo(*args
, **kwargs
):
5275 """ScrollTo(self, TreeItemId item)"""
5276 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5278 def EditLabel(*args
, **kwargs
):
5279 """EditLabel(self, TreeItemId item)"""
5280 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5282 def GetEditControl(*args
, **kwargs
):
5283 """GetEditControl(self) -> TextCtrl"""
5284 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5286 def EndEditLabel(*args
, **kwargs
):
5287 """EndEditLabel(self, TreeItemId item, bool discardChanges=False)"""
5288 return _controls_
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
5290 def SortChildren(*args
, **kwargs
):
5291 """SortChildren(self, TreeItemId item)"""
5292 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5294 def HitTest(*args
, **kwargs
):
5296 HitTest(Point point) -> (item, where)
5298 Determine which item (if any) belongs the given point. The coordinates
5299 specified are relative to the client area of tree ctrl and the where return
5300 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5303 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5305 def GetBoundingRect(*args
, **kwargs
):
5306 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5307 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5309 def SetState(*args
, **kwargs
):
5310 """SetState(self, TreeItemId node, int state)"""
5311 return _controls_
.TreeCtrl_SetState(*args
, **kwargs
)
5313 def GetState(*args
, **kwargs
):
5314 """GetState(self, TreeItemId node) -> int"""
5315 return _controls_
.TreeCtrl_GetState(*args
, **kwargs
)
5317 def GetClassDefaultAttributes(*args
, **kwargs
):
5319 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5321 Get the default attributes for this class. This is useful if you want
5322 to use the same font or colour in your own control as in a standard
5323 control -- which is a much better idea than hard coding specific
5324 colours or fonts which might look completely out of place on the
5325 user's system, especially if it uses themes.
5327 The variant parameter is only relevant under Mac currently and is
5328 ignore under other platforms. Under Mac, it will change the size of
5329 the returned font. See `wx.Window.SetWindowVariant` for more about
5332 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5334 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5335 def SetQuickBestSize(*args
, **kwargs
):
5336 """SetQuickBestSize(self, bool q)"""
5337 return _controls_
.TreeCtrl_SetQuickBestSize(*args
, **kwargs
)
5339 def GetQuickBestSize(*args
, **kwargs
):
5340 """GetQuickBestSize(self) -> bool"""
5341 return _controls_
.TreeCtrl_GetQuickBestSize(*args
, **kwargs
)
5343 _controls_
.TreeCtrl_swigregister(TreeCtrl
)
5345 def PreTreeCtrl(*args
, **kwargs
):
5346 """PreTreeCtrl() -> TreeCtrl"""
5347 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5350 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5352 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5354 Get the default attributes for this class. This is useful if you want
5355 to use the same font or colour in your own control as in a standard
5356 control -- which is a much better idea than hard coding specific
5357 colours or fonts which might look completely out of place on the
5358 user's system, especially if it uses themes.
5360 The variant parameter is only relevant under Mac currently and is
5361 ignore under other platforms. Under Mac, it will change the size of
5362 the returned font. See `wx.Window.SetWindowVariant` for more about
5365 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5367 #---------------------------------------------------------------------------
5369 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5370 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5371 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5372 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5373 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5374 class GenericDirCtrl(_core
.Control
):
5375 """Proxy of C++ GenericDirCtrl class"""
5376 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5377 __repr__
= _swig_repr
5378 def __init__(self
, *args
, **kwargs
):
5380 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5381 Point pos=DefaultPosition, Size size=DefaultSize,
5382 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5383 String filter=EmptyString,
5384 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5386 _controls_
.GenericDirCtrl_swiginit(self
,_controls_
.new_GenericDirCtrl(*args
, **kwargs
))
5387 self
._setOORInfo
(self
)
5389 def Create(*args
, **kwargs
):
5391 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5392 Point pos=DefaultPosition, Size size=DefaultSize,
5393 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5394 String filter=EmptyString,
5395 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5397 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5399 def ExpandPath(*args
, **kwargs
):
5400 """ExpandPath(self, String path) -> bool"""
5401 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5403 def CollapsePath(*args
, **kwargs
):
5404 """CollapsePath(self, String path) -> bool"""
5405 return _controls_
.GenericDirCtrl_CollapsePath(*args
, **kwargs
)
5407 def GetDefaultPath(*args
, **kwargs
):
5408 """GetDefaultPath(self) -> String"""
5409 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5411 def SetDefaultPath(*args
, **kwargs
):
5412 """SetDefaultPath(self, String path)"""
5413 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5415 def GetPath(*args
, **kwargs
):
5416 """GetPath(self) -> String"""
5417 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5419 def GetFilePath(*args
, **kwargs
):
5420 """GetFilePath(self) -> String"""
5421 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5423 def SetPath(*args
, **kwargs
):
5424 """SetPath(self, String path)"""
5425 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5427 def ShowHidden(*args
, **kwargs
):
5428 """ShowHidden(self, bool show)"""
5429 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5431 def GetShowHidden(*args
, **kwargs
):
5432 """GetShowHidden(self) -> bool"""
5433 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5435 def GetFilter(*args
, **kwargs
):
5436 """GetFilter(self) -> String"""
5437 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5439 def SetFilter(*args
, **kwargs
):
5440 """SetFilter(self, String filter)"""
5441 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5443 def GetFilterIndex(*args
, **kwargs
):
5444 """GetFilterIndex(self) -> int"""
5445 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5447 def SetFilterIndex(*args
, **kwargs
):
5448 """SetFilterIndex(self, int n)"""
5449 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5451 def GetRootId(*args
, **kwargs
):
5452 """GetRootId(self) -> TreeItemId"""
5453 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5455 def GetTreeCtrl(*args
, **kwargs
):
5456 """GetTreeCtrl(self) -> TreeCtrl"""
5457 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5459 def GetFilterListCtrl(*args
, **kwargs
):
5460 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5461 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5463 def FindChild(*args
, **kwargs
):
5465 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5467 Find the child that matches the first part of 'path'. E.g. if a child
5468 path is "/usr" and 'path' is "/usr/include" then the child for
5469 /usr is returned. If the path string has been used (we're at the
5470 leaf), done is set to True.
5473 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5475 def DoResize(*args
, **kwargs
):
5476 """DoResize(self)"""
5477 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5479 def ReCreateTree(*args
, **kwargs
):
5480 """ReCreateTree(self)"""
5481 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5483 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrl
)
5484 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5486 def PreGenericDirCtrl(*args
, **kwargs
):
5487 """PreGenericDirCtrl() -> GenericDirCtrl"""
5488 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5491 class DirFilterListCtrl(Choice
):
5492 """Proxy of C++ DirFilterListCtrl class"""
5493 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5494 __repr__
= _swig_repr
5495 def __init__(self
, *args
, **kwargs
):
5497 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5498 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5500 _controls_
.DirFilterListCtrl_swiginit(self
,_controls_
.new_DirFilterListCtrl(*args
, **kwargs
))
5501 self
._setOORInfo
(self
)
5503 def Create(*args
, **kwargs
):
5505 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5506 Size size=DefaultSize, long style=0) -> bool
5508 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5510 def FillFilterList(*args
, **kwargs
):
5511 """FillFilterList(self, String filter, int defaultFilter)"""
5512 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5514 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrl
)
5516 def PreDirFilterListCtrl(*args
, **kwargs
):
5517 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5518 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5521 #---------------------------------------------------------------------------
5523 class PyControl(_core
.Control
):
5524 """Proxy of C++ PyControl class"""
5525 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5526 __repr__
= _swig_repr
5527 def __init__(self
, *args
, **kwargs
):
5529 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5530 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5531 String name=ControlNameStr) -> PyControl
5533 _controls_
.PyControl_swiginit(self
,_controls_
.new_PyControl(*args
, **kwargs
))
5534 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5536 def _setCallbackInfo(*args
, **kwargs
):
5537 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5538 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5540 def SetBestSize(*args
, **kwargs
):
5541 """SetBestSize(self, Size size)"""
5542 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5544 def DoEraseBackground(*args
, **kwargs
):
5545 """DoEraseBackground(self, DC dc) -> bool"""
5546 return _controls_
.PyControl_DoEraseBackground(*args
, **kwargs
)
5548 def DoMoveWindow(*args
, **kwargs
):
5549 """DoMoveWindow(self, int x, int y, int width, int height)"""
5550 return _controls_
.PyControl_DoMoveWindow(*args
, **kwargs
)
5552 def DoSetSize(*args
, **kwargs
):
5553 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5554 return _controls_
.PyControl_DoSetSize(*args
, **kwargs
)
5556 def DoSetClientSize(*args
, **kwargs
):
5557 """DoSetClientSize(self, int width, int height)"""
5558 return _controls_
.PyControl_DoSetClientSize(*args
, **kwargs
)
5560 def DoSetVirtualSize(*args
, **kwargs
):
5561 """DoSetVirtualSize(self, int x, int y)"""
5562 return _controls_
.PyControl_DoSetVirtualSize(*args
, **kwargs
)
5564 def DoGetSize(*args
, **kwargs
):
5565 """DoGetSize() -> (width, height)"""
5566 return _controls_
.PyControl_DoGetSize(*args
, **kwargs
)
5568 def DoGetClientSize(*args
, **kwargs
):
5569 """DoGetClientSize() -> (width, height)"""
5570 return _controls_
.PyControl_DoGetClientSize(*args
, **kwargs
)
5572 def DoGetPosition(*args
, **kwargs
):
5573 """DoGetPosition() -> (x,y)"""
5574 return _controls_
.PyControl_DoGetPosition(*args
, **kwargs
)
5576 def DoGetVirtualSize(*args
, **kwargs
):
5577 """DoGetVirtualSize(self) -> Size"""
5578 return _controls_
.PyControl_DoGetVirtualSize(*args
, **kwargs
)
5580 def DoGetBestSize(*args
, **kwargs
):
5581 """DoGetBestSize(self) -> Size"""
5582 return _controls_
.PyControl_DoGetBestSize(*args
, **kwargs
)
5584 def GetDefaultAttributes(*args
, **kwargs
):
5585 """GetDefaultAttributes(self) -> VisualAttributes"""
5586 return _controls_
.PyControl_GetDefaultAttributes(*args
, **kwargs
)
5588 def OnInternalIdle(*args
, **kwargs
):
5589 """OnInternalIdle(self)"""
5590 return _controls_
.PyControl_OnInternalIdle(*args
, **kwargs
)
5592 def base_DoMoveWindow(*args
, **kw
):
5593 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
5594 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
5595 "Please use PyScrolledWindow.DoMoveWindow instead.")
5597 def base_DoSetSize(*args
, **kw
):
5598 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
5599 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
5600 "Please use PyScrolledWindow.DoSetSize instead.")
5602 def base_DoSetClientSize(*args
, **kw
):
5603 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
5604 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
5605 "Please use PyScrolledWindow.DoSetClientSize instead.")
5607 def base_DoSetVirtualSize(*args
, **kw
):
5608 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
5609 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
5610 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
5612 def base_DoGetSize(*args
, **kw
):
5613 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
5614 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
5615 "Please use PyScrolledWindow.DoGetSize instead.")
5617 def base_DoGetClientSize(*args
, **kw
):
5618 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
5619 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
5620 "Please use PyScrolledWindow.DoGetClientSize instead.")
5622 def base_DoGetPosition(*args
, **kw
):
5623 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
5624 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
5625 "Please use PyScrolledWindow.DoGetPosition instead.")
5627 def base_DoGetVirtualSize(*args
, **kw
):
5628 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
5629 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
5630 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
5632 def base_DoGetBestSize(*args
, **kw
):
5633 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
5634 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
5635 "Please use PyScrolledWindow.DoGetBestSize instead.")
5637 def base_InitDialog(*args
, **kw
):
5638 return PyScrolledWindow
.InitDialog(*args
, **kw
)
5639 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
5640 "Please use PyScrolledWindow.InitDialog instead.")
5642 def base_TransferDataToWindow(*args
, **kw
):
5643 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
5644 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
5645 "Please use PyScrolledWindow.TransferDataToWindow instead.")
5647 def base_TransferDataFromWindow(*args
, **kw
):
5648 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
5649 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
5650 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
5652 def base_Validate(*args
, **kw
):
5653 return PyScrolledWindow
.Validate(*args
, **kw
)
5654 base_Validate
= wx
._deprecated
(base_Validate
,
5655 "Please use PyScrolledWindow.Validate instead.")
5657 def base_AcceptsFocus(*args
, **kw
):
5658 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
5659 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
5660 "Please use PyScrolledWindow.AcceptsFocus instead.")
5662 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
5663 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
5664 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
5665 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
5667 def base_GetMaxSize(*args
, **kw
):
5668 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
5669 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
5670 "Please use PyScrolledWindow.GetMaxSize instead.")
5672 def base_AddChild(*args
, **kw
):
5673 return PyScrolledWindow
.AddChild(*args
, **kw
)
5674 base_AddChild
= wx
._deprecated
(base_AddChild
,
5675 "Please use PyScrolledWindow.AddChild instead.")
5677 def base_RemoveChild(*args
, **kw
):
5678 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
5679 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
5680 "Please use PyScrolledWindow.RemoveChild instead.")
5682 def base_ShouldInheritColours(*args
, **kw
):
5683 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
5684 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
5685 "Please use PyScrolledWindow.ShouldInheritColours instead.")
5687 def base_GetDefaultAttributes(*args
, **kw
):
5688 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
5689 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
5690 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
5692 def base_OnInternalIdle(*args
, **kw
):
5693 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
5694 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
5695 "Please use PyScrolledWindow.OnInternalIdle instead.")
5697 _controls_
.PyControl_swigregister(PyControl
)
5699 def PrePyControl(*args
, **kwargs
):
5700 """PrePyControl() -> PyControl"""
5701 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5704 #---------------------------------------------------------------------------
5706 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5707 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5708 wxEVT_HELP
= _controls_
.wxEVT_HELP
5709 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5710 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5711 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5712 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5713 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5715 class HelpEvent(_core
.CommandEvent
):
5717 A help event is sent when the user has requested context-sensitive
5718 help. This can either be caused by the application requesting
5719 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5720 the system generating a WM_HELP message when the user pressed F1 or
5721 clicked on the query button in a dialog caption.
5723 A help event is sent to the window that the user clicked on, and is
5724 propagated up the window hierarchy until the event is processed or
5725 there are no more event handlers. The application should call
5726 event.GetId to check the identity of the clicked-on window, and then
5727 either show some suitable help or call event.Skip if the identifier is
5728 unrecognised. Calling Skip is important because it allows wxWindows to
5729 generate further events for ancestors of the clicked-on
5730 window. Otherwise it would be impossible to show help for container
5731 windows, since processing would stop after the first window found.
5733 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5734 __repr__
= _swig_repr
5735 Origin_Unknown
= _controls_
.HelpEvent_Origin_Unknown
5736 Origin_Keyboard
= _controls_
.HelpEvent_Origin_Keyboard
5737 Origin_HelpButton
= _controls_
.HelpEvent_Origin_HelpButton
5738 def __init__(self
, *args
, **kwargs
):
5740 __init__(self, EventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition,
5741 int origin=Origin_Unknown) -> HelpEvent
5743 _controls_
.HelpEvent_swiginit(self
,_controls_
.new_HelpEvent(*args
, **kwargs
))
5744 def GetPosition(*args
, **kwargs
):
5746 GetPosition(self) -> Point
5748 Returns the left-click position of the mouse, in screen
5749 coordinates. This allows the application to position the help
5752 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5754 def SetPosition(*args
, **kwargs
):
5756 SetPosition(self, Point pos)
5758 Sets the left-click position of the mouse, in screen coordinates.
5760 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5762 def GetLink(*args
, **kwargs
):
5764 GetLink(self) -> String
5766 Get an optional link to further help
5768 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5770 def SetLink(*args
, **kwargs
):
5772 SetLink(self, String link)
5774 Set an optional link to further help
5776 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5778 def GetTarget(*args
, **kwargs
):
5780 GetTarget(self) -> String
5782 Get an optional target to display help in. E.g. a window specification
5784 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5786 def SetTarget(*args
, **kwargs
):
5788 SetTarget(self, String target)
5790 Set an optional target to display help in. E.g. a window specification
5792 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5794 def GetOrigin(*args
, **kwargs
):
5796 GetOrigin(self) -> int
5798 Optiononal indication of the source of the event.
5800 return _controls_
.HelpEvent_GetOrigin(*args
, **kwargs
)
5802 def SetOrigin(*args
, **kwargs
):
5803 """SetOrigin(self, int origin)"""
5804 return _controls_
.HelpEvent_SetOrigin(*args
, **kwargs
)
5806 _controls_
.HelpEvent_swigregister(HelpEvent
)
5808 class ContextHelp(_core
.Object
):
5810 This class changes the cursor to a query and puts the application into
5811 a 'context-sensitive help mode'. When the user left-clicks on a window
5812 within the specified window, a ``EVT_HELP`` event is sent to that
5813 control, and the application may respond to it by popping up some
5816 There are a couple of ways to invoke this behaviour implicitly:
5818 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5819 (Windows only). This will put a question mark in the titlebar,
5820 and Windows will put the application into context-sensitive help
5821 mode automatically, with further programming.
5823 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5824 to create a context help object. Normally you will write your
5825 application so that this button is only added to a dialog for
5826 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5829 :see: `wx.ContextHelpButton`
5832 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5833 __repr__
= _swig_repr
5834 def __init__(self
, *args
, **kwargs
):
5836 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5838 Constructs a context help object, calling BeginContextHelp if doNow is
5841 If window is None, the top window is used.
5843 _controls_
.ContextHelp_swiginit(self
,_controls_
.new_ContextHelp(*args
, **kwargs
))
5844 __swig_destroy__
= _controls_
.delete_ContextHelp
5845 __del__
= lambda self
: None;
5846 def BeginContextHelp(*args
, **kwargs
):
5848 BeginContextHelp(self, Window window=None) -> bool
5850 Puts the application into context-sensitive help mode. window is the
5851 window which will be used to catch events; if NULL, the top window
5854 Returns true if the application was successfully put into
5855 context-sensitive help mode. This function only returns when the event
5858 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5860 def EndContextHelp(*args
, **kwargs
):
5862 EndContextHelp(self) -> bool
5864 Ends context-sensitive help mode. Not normally called by the
5867 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5869 _controls_
.ContextHelp_swigregister(ContextHelp
)
5871 class ContextHelpButton(BitmapButton
):
5873 Instances of this class may be used to add a question mark button that
5874 when pressed, puts the application into context-help mode. It does
5875 this by creating a wx.ContextHelp object which itself generates a
5876 ``EVT_HELP`` event when the user clicks on a window.
5878 On Windows, you may add a question-mark icon to a dialog by use of the
5879 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5880 will have to add a button explicitly, usually next to OK, Cancel or
5883 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5886 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5887 __repr__
= _swig_repr
5888 def __init__(self
, *args
, **kwargs
):
5890 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5891 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5893 Constructor, creating and showing a context help button.
5895 _controls_
.ContextHelpButton_swiginit(self
,_controls_
.new_ContextHelpButton(*args
, **kwargs
))
5896 self
._setOORInfo
(self
)
5898 _controls_
.ContextHelpButton_swigregister(ContextHelpButton
)
5900 class HelpProvider(object):
5902 wx.HelpProvider is an abstract class used by a program
5903 implementing context-sensitive help to show the help text for the
5906 The current help provider must be explicitly set by the
5907 application using wx.HelpProvider.Set().
5909 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5910 def __init__(self
): raise AttributeError, "No constructor defined"
5911 __repr__
= _swig_repr
5912 __swig_destroy__
= _controls_
.delete_HelpProvider
5913 __del__
= lambda self
: None;
5914 def Set(*args
, **kwargs
):
5916 Set(HelpProvider helpProvider) -> HelpProvider
5918 Sset the current, application-wide help provider. Returns the previous
5919 one. Unlike some other classes, the help provider is not created on
5920 demand. This must be explicitly done by the application.
5922 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5924 Set
= staticmethod(Set
)
5925 def Get(*args
, **kwargs
):
5927 Get() -> HelpProvider
5929 Return the current application-wide help provider.
5931 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5933 Get
= staticmethod(Get
)
5934 def GetHelp(*args
, **kwargs
):
5936 GetHelp(self, Window window) -> String
5938 Gets the help string for this window. Its interpretation is dependent
5939 on the help provider except that empty string always means that no
5940 help is associated with the window.
5942 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5944 def ShowHelp(*args
, **kwargs
):
5946 ShowHelp(self, Window window) -> bool
5948 Shows help for the given window. Uses GetHelp internally if
5949 applicable. Returns True if it was done, or False if no help was
5950 available for this window.
5952 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5954 def ShowHelpAtPoint(*args
, **kwargs
):
5956 ShowHelpAtPoint(self, wxWindowBase window, Point pt, int origin) -> bool
5958 Show help for the given window (uses window.GetHelpAtPoint()
5959 internally if applicable), return true if it was done or false if no
5960 help available for this window.
5962 return _controls_
.HelpProvider_ShowHelpAtPoint(*args
, **kwargs
)
5964 def AddHelp(*args
, **kwargs
):
5966 AddHelp(self, Window window, String text)
5968 Associates the text with the given window.
5970 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5972 def AddHelpById(*args
, **kwargs
):
5974 AddHelpById(self, int id, String text)
5976 This version associates the given text with all windows with this
5977 id. May be used to set the same help string for all Cancel buttons in
5978 the application, for example.
5980 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5982 def RemoveHelp(*args
, **kwargs
):
5984 RemoveHelp(self, Window window)
5986 Removes the association between the window pointer and the help
5987 text. This is called by the wx.Window destructor. Without this, the
5988 table of help strings will fill up and when window pointers are
5989 reused, the wrong help string will be found.
5991 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5993 def Destroy(*args
, **kwargs
):
5995 val
= _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5999 _controls_
.HelpProvider_swigregister(HelpProvider
)
6001 def HelpProvider_Set(*args
, **kwargs
):
6003 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
6005 Sset the current, application-wide help provider. Returns the previous
6006 one. Unlike some other classes, the help provider is not created on
6007 demand. This must be explicitly done by the application.
6009 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6011 def HelpProvider_Get(*args
):
6013 HelpProvider_Get() -> HelpProvider
6015 Return the current application-wide help provider.
6017 return _controls_
.HelpProvider_Get(*args
)
6019 class SimpleHelpProvider(HelpProvider
):
6021 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6022 supports only plain text help strings, and shows the string associated
6023 with the control (if any) in a tooltip.
6025 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6026 __repr__
= _swig_repr
6027 def __init__(self
, *args
, **kwargs
):
6029 __init__(self) -> SimpleHelpProvider
6031 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6032 supports only plain text help strings, and shows the string associated
6033 with the control (if any) in a tooltip.
6035 _controls_
.SimpleHelpProvider_swiginit(self
,_controls_
.new_SimpleHelpProvider(*args
, **kwargs
))
6036 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProvider
)
6038 #---------------------------------------------------------------------------
6040 class DragImage(_core
.Object
):
6041 """Proxy of C++ DragImage class"""
6042 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6043 __repr__
= _swig_repr
6044 def __init__(self
, *args
, **kwargs
):
6045 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6046 _controls_
.DragImage_swiginit(self
,_controls_
.new_DragImage(*args
, **kwargs
))
6047 __swig_destroy__
= _controls_
.delete_DragImage
6048 __del__
= lambda self
: None;
6049 def SetBackingBitmap(*args
, **kwargs
):
6050 """SetBackingBitmap(self, Bitmap bitmap)"""
6051 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6053 def BeginDrag(*args
, **kwargs
):
6055 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6056 Rect rect=None) -> bool
6058 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6060 def BeginDragBounded(*args
, **kwargs
):
6061 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6062 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6064 def EndDrag(*args
, **kwargs
):
6065 """EndDrag(self) -> bool"""
6066 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6068 def Move(*args
, **kwargs
):
6069 """Move(self, Point pt) -> bool"""
6070 return _controls_
.DragImage_Move(*args
, **kwargs
)
6072 def Show(*args
, **kwargs
):
6073 """Show(self) -> bool"""
6074 return _controls_
.DragImage_Show(*args
, **kwargs
)
6076 def Hide(*args
, **kwargs
):
6077 """Hide(self) -> bool"""
6078 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6080 def GetImageRect(*args
, **kwargs
):
6081 """GetImageRect(self, Point pos) -> Rect"""
6082 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6084 def DoDrawImage(*args
, **kwargs
):
6085 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6086 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6088 def UpdateBackingFromWindow(*args
, **kwargs
):
6089 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6090 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6092 def RedrawImage(*args
, **kwargs
):
6093 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6094 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6096 _controls_
.DragImage_swigregister(DragImage
)
6098 def DragIcon(*args
, **kwargs
):
6099 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6100 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6103 def DragString(*args
, **kwargs
):
6104 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6105 val
= _controls_
.new_DragString(*args
, **kwargs
)
6108 def DragTreeItem(*args
, **kwargs
):
6109 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6110 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6113 def DragListItem(*args
, **kwargs
):
6114 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6115 val
= _controls_
.new_DragListItem(*args
, **kwargs
)
6118 #---------------------------------------------------------------------------
6120 DP_DEFAULT
= _controls_
.DP_DEFAULT
6121 DP_SPIN
= _controls_
.DP_SPIN
6122 DP_DROPDOWN
= _controls_
.DP_DROPDOWN
6123 DP_SHOWCENTURY
= _controls_
.DP_SHOWCENTURY
6124 DP_ALLOWNONE
= _controls_
.DP_ALLOWNONE
6125 class DatePickerCtrl(_core
.Control
):
6127 This control allows the user to select a date. Unlike
6128 `wx.calendar.CalendarCtrl`, which is a relatively big control,
6129 `wx.DatePickerCtrl` is implemented as a small window showing the
6130 currently selected date. The control can be edited using the keyboard,
6131 and can also display a popup window for more user-friendly date
6132 selection, depending on the styles used and the platform.
6134 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6135 __repr__
= _swig_repr
6136 def __init__(self
, *args
, **kwargs
):
6138 __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6139 Point pos=DefaultPosition, Size size=DefaultSize,
6140 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6141 Validator validator=DefaultValidator,
6142 String name=DatePickerCtrlNameStr) -> DatePickerCtrl
6144 Create a new DatePickerCtrl.
6146 _controls_
.DatePickerCtrl_swiginit(self
,_controls_
.new_DatePickerCtrl(*args
, **kwargs
))
6147 self
._setOORInfo
(self
)
6149 def Create(*args
, **kwargs
):
6151 Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6152 Point pos=DefaultPosition, Size size=DefaultSize,
6153 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6154 Validator validator=DefaultValidator,
6155 String name=DatePickerCtrlNameStr) -> bool
6157 Create the GUI parts of the DatePickerCtrl, for use in 2-phase
6160 return _controls_
.DatePickerCtrl_Create(*args
, **kwargs
)
6162 def SetValue(*args
, **kwargs
):
6164 SetValue(self, DateTime dt)
6166 Changes the current value of the control. The date should be valid and
6167 included in the currently selected range, if any.
6169 Calling this method does not result in a date change event.
6171 return _controls_
.DatePickerCtrl_SetValue(*args
, **kwargs
)
6173 def GetValue(*args
, **kwargs
):
6175 GetValue(self) -> DateTime
6177 Returns the currently selected date. If there is no selection or the
6178 selection is outside of the current range, an invalid `wx.DateTime`
6181 return _controls_
.DatePickerCtrl_GetValue(*args
, **kwargs
)
6183 def SetRange(*args
, **kwargs
):
6185 SetRange(self, DateTime dt1, DateTime dt2)
6187 Sets the valid range for the date selection. If dt1 is valid, it
6188 becomes the earliest date (inclusive) accepted by the control. If dt2
6189 is valid, it becomes the latest possible date.
6191 If the current value of the control is outside of the newly set range
6192 bounds, the behaviour is undefined.
6194 return _controls_
.DatePickerCtrl_SetRange(*args
, **kwargs
)
6196 def GetLowerLimit(*args
, **kwargs
):
6198 GetLowerLimit(self) -> DateTime
6200 Get the lower limit of the valid range for the date selection, if any.
6201 If there is no range or there is no lower limit, then the
6202 `wx.DateTime` value returned will be invalid.
6204 return _controls_
.DatePickerCtrl_GetLowerLimit(*args
, **kwargs
)
6206 def GetUpperLimit(*args
, **kwargs
):
6208 GetUpperLimit(self) -> DateTime
6210 Get the upper limit of the valid range for the date selection, if any.
6211 If there is no range or there is no upper limit, then the
6212 `wx.DateTime` value returned will be invalid.
6214 return _controls_
.DatePickerCtrl_GetUpperLimit(*args
, **kwargs
)
6216 _controls_
.DatePickerCtrl_swigregister(DatePickerCtrl
)
6217 DatePickerCtrlNameStr
= cvar
.DatePickerCtrlNameStr
6219 def PreDatePickerCtrl(*args
, **kwargs
):
6221 PreDatePickerCtrl() -> DatePickerCtrl
6223 Precreate a DatePickerCtrl for use in 2-phase creation.
6225 val
= _controls_
.new_PreDatePickerCtrl(*args
, **kwargs
)
6228 HL_CONTEXTMENU
= _controls_
.HL_CONTEXTMENU
6229 HL_DEFAULT_STYLE
= _controls_
.HL_DEFAULT_STYLE
6230 #---------------------------------------------------------------------------
6232 class HyperlinkCtrl(_core
.Control
):
6234 A static text control that emulates a hyperlink. The link is displayed
6235 in an appropriate text style, derived from the control's normal font.
6236 When the mouse rolls over the link, the cursor changes to a hand and
6237 the link's color changes to the active color.
6239 Clicking on the link does not launch a web browser; instead, a
6240 wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link
6244 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6245 __repr__
= _swig_repr
6246 def __init__(self
, *args
, **kwargs
):
6248 __init__(self, Window parent, int id, String label, String url, Point pos=DefaultPosition,
6249 Size size=DefaultSize,
6250 long style=HL_DEFAULT_STYLE, String name=HyperlinkCtrlNameStr) -> HyperlinkCtrl
6252 A static text control that emulates a hyperlink. The link is displayed
6253 in an appropriate text style, derived from the control's normal font.
6254 When the mouse rolls over the link, the cursor changes to a hand and
6255 the link's color changes to the active color.
6257 Clicking on the link does not launch a web browser; instead, a
6258 wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link
6262 _controls_
.HyperlinkCtrl_swiginit(self
,_controls_
.new_HyperlinkCtrl(*args
, **kwargs
))
6263 self
._setOORInfo
(self
)
6265 def Create(*args
, **kwargs
):
6267 Create(self, Window parent, int id, String label, String url, Point pos=DefaultPosition,
6268 Size size=DefaultSize,
6269 long style=HL_DEFAULT_STYLE, String name=HyperlinkCtrlNameStr) -> bool
6271 return _controls_
.HyperlinkCtrl_Create(*args
, **kwargs
)
6273 def GetHoverColour(*args
, **kwargs
):
6274 """GetHoverColour(self) -> Colour"""
6275 return _controls_
.HyperlinkCtrl_GetHoverColour(*args
, **kwargs
)
6277 def SetHoverColour(*args
, **kwargs
):
6278 """SetHoverColour(self, Colour colour)"""
6279 return _controls_
.HyperlinkCtrl_SetHoverColour(*args
, **kwargs
)
6281 def GetNormalColour(*args
, **kwargs
):
6282 """GetNormalColour(self) -> Colour"""
6283 return _controls_
.HyperlinkCtrl_GetNormalColour(*args
, **kwargs
)
6285 def SetNormalColour(*args
, **kwargs
):
6286 """SetNormalColour(self, Colour colour)"""
6287 return _controls_
.HyperlinkCtrl_SetNormalColour(*args
, **kwargs
)
6289 def GetVisitedColour(*args
, **kwargs
):
6290 """GetVisitedColour(self) -> Colour"""
6291 return _controls_
.HyperlinkCtrl_GetVisitedColour(*args
, **kwargs
)
6293 def SetVisitedColour(*args
, **kwargs
):
6294 """SetVisitedColour(self, Colour colour)"""
6295 return _controls_
.HyperlinkCtrl_SetVisitedColour(*args
, **kwargs
)
6297 def GetURL(*args
, **kwargs
):
6298 """GetURL(self) -> String"""
6299 return _controls_
.HyperlinkCtrl_GetURL(*args
, **kwargs
)
6301 def SetURL(*args
, **kwargs
):
6302 """SetURL(self, String url)"""
6303 return _controls_
.HyperlinkCtrl_SetURL(*args
, **kwargs
)
6305 def SetVisited(*args
, **kwargs
):
6306 """SetVisited(self, bool visited=True)"""
6307 return _controls_
.HyperlinkCtrl_SetVisited(*args
, **kwargs
)
6309 def GetVisited(*args
, **kwargs
):
6310 """GetVisited(self) -> bool"""
6311 return _controls_
.HyperlinkCtrl_GetVisited(*args
, **kwargs
)
6313 _controls_
.HyperlinkCtrl_swigregister(HyperlinkCtrl
)
6314 HyperlinkCtrlNameStr
= cvar
.HyperlinkCtrlNameStr
6316 def PreHyperlinkCtrl(*args
, **kwargs
):
6318 PreHyperlinkCtrl() -> HyperlinkCtrl
6320 A static text control that emulates a hyperlink. The link is displayed
6321 in an appropriate text style, derived from the control's normal font.
6322 When the mouse rolls over the link, the cursor changes to a hand and
6323 the link's color changes to the active color.
6325 Clicking on the link does not launch a web browser; instead, a
6326 wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link
6330 val
= _controls_
.new_PreHyperlinkCtrl(*args
, **kwargs
)
6333 wxEVT_COMMAND_HYPERLINK
= _controls_
.wxEVT_COMMAND_HYPERLINK
6334 class HyperlinkEvent(_core
.CommandEvent
):
6335 """Proxy of C++ HyperlinkEvent class"""
6336 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6337 __repr__
= _swig_repr
6338 def __init__(self
, *args
, **kwargs
):
6339 """__init__(self, Object generator, int id, String url) -> HyperlinkEvent"""
6340 _controls_
.HyperlinkEvent_swiginit(self
,_controls_
.new_HyperlinkEvent(*args
, **kwargs
))
6341 def GetURL(*args
, **kwargs
):
6342 """GetURL(self) -> String"""
6343 return _controls_
.HyperlinkEvent_GetURL(*args
, **kwargs
)
6345 def SetURL(*args
, **kwargs
):
6346 """SetURL(self, String url)"""
6347 return _controls_
.HyperlinkEvent_SetURL(*args
, **kwargs
)
6349 _controls_
.HyperlinkEvent_swigregister(HyperlinkEvent
)
6351 EVT_HYPERLINK
= wx
.PyEventBinder( wxEVT_COMMAND_HYPERLINK
, 1 )
6353 #---------------------------------------------------------------------------
6355 PB_USE_TEXTCTRL
= _controls_
.PB_USE_TEXTCTRL
6356 class PickerBase(_core
.Control
):
6358 Base abstract class for all pickers which support an auxiliary text
6359 control. This class handles all positioning and sizing of the text
6360 control like a an horizontal `wx.BoxSizer` would do, with the text
6361 control on the left of the picker button and the proportion of the
6362 picker fixed to value 1.
6364 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6365 def __init__(self
): raise AttributeError, "No constructor defined"
6366 __repr__
= _swig_repr
6367 def CreateBase(*args
, **kwargs
):
6369 CreateBase(self, Window parent, int id, String text=wxEmptyString, Point pos=DefaultPosition,
6370 Size size=DefaultSize,
6371 long style=0, Validator validator=DefaultValidator,
6372 String name=wxButtonNameStr) -> bool
6374 return _controls_
.PickerBase_CreateBase(*args
, **kwargs
)
6376 def SetInternalMargin(*args
, **kwargs
):
6378 SetInternalMargin(self, int newmargin)
6380 Sets the margin (in pixels) between the picker and the text control.
6382 return _controls_
.PickerBase_SetInternalMargin(*args
, **kwargs
)
6384 def GetInternalMargin(*args
, **kwargs
):
6386 GetInternalMargin(self) -> int
6388 Returns the margin (in pixels) between the picker and the text
6391 return _controls_
.PickerBase_GetInternalMargin(*args
, **kwargs
)
6393 def SetTextCtrlProportion(*args
, **kwargs
):
6395 SetTextCtrlProportion(self, int prop)
6397 Sets the proportion between the text control and the picker button.
6398 This is used to set relative sizes of the text contorl and the picker.
6399 The value passed to this function must be >= 1.
6401 return _controls_
.PickerBase_SetTextCtrlProportion(*args
, **kwargs
)
6403 def GetTextCtrlProportion(*args
, **kwargs
):
6405 GetTextCtrlProportion(self) -> int
6407 Returns the proportion between the text control and the picker.
6409 return _controls_
.PickerBase_GetTextCtrlProportion(*args
, **kwargs
)
6411 def HasTextCtrl(*args
, **kwargs
):
6413 HasTextCtrl(self) -> bool
6415 Returns true if this class has a valid text control (i.e. if the
6416 wx.PB_USE_TEXTCTRL style was given when creating this control).
6418 return _controls_
.PickerBase_HasTextCtrl(*args
, **kwargs
)
6420 def GetTextCtrl(*args
, **kwargs
):
6422 GetTextCtrl(self) -> TextCtrl
6424 Returns a pointer to the text control handled by this class or None if
6425 the wx.PB_USE_TEXTCTRL style was not specified when this control was
6428 Very important: the contents of the text control could be containing
6429 an invalid representation of the entity which can be chosen through
6430 the picker (e.g. the user entered an invalid colour syntax because of
6431 a typo). Thus you should never parse the content of the textctrl to
6432 get the user's input; rather use the derived-class getter
6433 (e.g. `wx.ColourPickerCtrl.GetColour`, `wx.FilePickerCtrl.GetPath`,
6436 return _controls_
.PickerBase_GetTextCtrl(*args
, **kwargs
)
6438 def GetPickerCtrl(*args
, **kwargs
):
6439 """GetPickerCtrl(self) -> Control"""
6440 return _controls_
.PickerBase_GetPickerCtrl(*args
, **kwargs
)
6442 _controls_
.PickerBase_swigregister(PickerBase
)
6444 #---------------------------------------------------------------------------
6446 CLRP_SHOW_LABEL
= _controls_
.CLRP_SHOW_LABEL
6447 CLRP_USE_TEXTCTRL
= _controls_
.CLRP_USE_TEXTCTRL
6448 CLRP_DEFAULT_STYLE
= _controls_
.CLRP_DEFAULT_STYLE
6449 class ColourPickerCtrl(PickerBase
):
6451 This control allows the user to select a colour. The generic
6452 implementation is a button which brings up a `wx.ColourDialog` when
6453 clicked. Native implementations may differ but this is usually a
6454 (small) widget which give access to the colour-chooser dialog.
6456 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6457 __repr__
= _swig_repr
6458 def __init__(self
, *args
, **kwargs
):
6460 __init__(self, Window parent, int id=-1, Colour col=*wxBLACK, Point pos=DefaultPosition,
6461 Size size=DefaultSize,
6462 long style=CLRP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6463 String name=ColourPickerCtrlNameStr) -> ColourPickerCtrl
6465 This control allows the user to select a colour. The generic
6466 implementation is a button which brings up a `wx.ColourDialog` when
6467 clicked. Native implementations may differ but this is usually a
6468 (small) widget which give access to the colour-chooser dialog.
6470 _controls_
.ColourPickerCtrl_swiginit(self
,_controls_
.new_ColourPickerCtrl(*args
, **kwargs
))
6471 self
._setOORInfo
(self
)
6473 def Create(*args
, **kwargs
):
6475 Create(self, Window parent, int id, Colour col=*wxBLACK, Point pos=DefaultPosition,
6476 Size size=DefaultSize, long style=CLRP_DEFAULT_STYLE,
6477 Validator validator=DefaultValidator,
6478 String name=ColourPickerCtrlNameStr) -> bool
6480 return _controls_
.ColourPickerCtrl_Create(*args
, **kwargs
)
6482 def GetColour(*args
, **kwargs
):
6484 GetColour(self) -> Colour
6486 Returns the currently selected colour.
6488 return _controls_
.ColourPickerCtrl_GetColour(*args
, **kwargs
)
6490 def SetColour(*args
, **kwargs
):
6492 SetColour(self, Colour col)
6494 Set the displayed colour.
6496 return _controls_
.ColourPickerCtrl_SetColour(*args
, **kwargs
)
6498 _controls_
.ColourPickerCtrl_swigregister(ColourPickerCtrl
)
6499 ColourPickerCtrlNameStr
= cvar
.ColourPickerCtrlNameStr
6501 def PreColourPickerCtrl(*args
, **kwargs
):
6503 PreColourPickerCtrl() -> ColourPickerCtrl
6505 This control allows the user to select a colour. The generic
6506 implementation is a button which brings up a `wx.ColourDialog` when
6507 clicked. Native implementations may differ but this is usually a
6508 (small) widget which give access to the colour-chooser dialog.
6510 val
= _controls_
.new_PreColourPickerCtrl(*args
, **kwargs
)
6513 wxEVT_COMMAND_COLOURPICKER_CHANGED
= _controls_
.wxEVT_COMMAND_COLOURPICKER_CHANGED
6514 EVT_COLOURPICKER_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_COLOURPICKER_CHANGED
, 1 )
6516 class ColourPickerEvent(_core
.CommandEvent
):
6517 """Proxy of C++ ColourPickerEvent class"""
6518 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6519 __repr__
= _swig_repr
6520 def __init__(self
, *args
, **kwargs
):
6521 """__init__(self, Object generator, int id, Colour col) -> ColourPickerEvent"""
6522 _controls_
.ColourPickerEvent_swiginit(self
,_controls_
.new_ColourPickerEvent(*args
, **kwargs
))
6523 def GetColour(*args
, **kwargs
):
6524 """GetColour(self) -> Colour"""
6525 return _controls_
.ColourPickerEvent_GetColour(*args
, **kwargs
)
6527 def SetColour(*args
, **kwargs
):
6528 """SetColour(self, Colour c)"""
6529 return _controls_
.ColourPickerEvent_SetColour(*args
, **kwargs
)
6531 _controls_
.ColourPickerEvent_swigregister(ColourPickerEvent
)
6533 #---------------------------------------------------------------------------
6535 FLP_OPEN
= _controls_
.FLP_OPEN
6536 FLP_SAVE
= _controls_
.FLP_SAVE
6537 FLP_OVERWRITE_PROMPT
= _controls_
.FLP_OVERWRITE_PROMPT
6538 FLP_FILE_MUST_EXIST
= _controls_
.FLP_FILE_MUST_EXIST
6539 FLP_CHANGE_DIR
= _controls_
.FLP_CHANGE_DIR
6540 DIRP_DIR_MUST_EXIST
= _controls_
.DIRP_DIR_MUST_EXIST
6541 DIRP_CHANGE_DIR
= _controls_
.DIRP_CHANGE_DIR
6542 FLP_USE_TEXTCTRL
= _controls_
.FLP_USE_TEXTCTRL
6543 FLP_DEFAULT_STYLE
= _controls_
.FLP_DEFAULT_STYLE
6544 DIRP_USE_TEXTCTRL
= _controls_
.DIRP_USE_TEXTCTRL
6545 DIRP_DEFAULT_STYLE
= _controls_
.DIRP_DEFAULT_STYLE
6546 class FilePickerCtrl(PickerBase
):
6547 """Proxy of C++ FilePickerCtrl class"""
6548 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6549 __repr__
= _swig_repr
6550 def __init__(self
, *args
, **kwargs
):
6552 __init__(self, Window parent, int id=-1, String path=EmptyString,
6553 String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
6554 Point pos=DefaultPosition,
6555 Size size=DefaultSize,
6556 long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6557 String name=FilePickerCtrlNameStr) -> FilePickerCtrl
6559 _controls_
.FilePickerCtrl_swiginit(self
,_controls_
.new_FilePickerCtrl(*args
, **kwargs
))
6560 self
._setOORInfo
(self
)
6562 def Create(*args
, **kwargs
):
6564 Create(self, Window parent, int id=-1, String path=EmptyString,
6565 String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
6566 Point pos=DefaultPosition,
6567 Size size=DefaultSize,
6568 long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6569 String name=FilePickerCtrlNameStr) -> bool
6571 return _controls_
.FilePickerCtrl_Create(*args
, **kwargs
)
6573 def GetPath(*args
, **kwargs
):
6574 """GetPath(self) -> String"""
6575 return _controls_
.FilePickerCtrl_GetPath(*args
, **kwargs
)
6577 def SetPath(*args
, **kwargs
):
6578 """SetPath(self, String str)"""
6579 return _controls_
.FilePickerCtrl_SetPath(*args
, **kwargs
)
6581 _controls_
.FilePickerCtrl_swigregister(FilePickerCtrl
)
6582 FilePickerCtrlNameStr
= cvar
.FilePickerCtrlNameStr
6583 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
6584 DirPickerCtrlNameStr
= cvar
.DirPickerCtrlNameStr
6585 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
6586 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
6588 def PreFilePickerCtrl(*args
, **kwargs
):
6589 """PreFilePickerCtrl() -> FilePickerCtrl"""
6590 val
= _controls_
.new_PreFilePickerCtrl(*args
, **kwargs
)
6593 class DirPickerCtrl(PickerBase
):
6594 """Proxy of C++ DirPickerCtrl class"""
6595 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6596 __repr__
= _swig_repr
6597 def __init__(self
, *args
, **kwargs
):
6599 __init__(self, Window parent, int id=-1, String path=EmptyString,
6600 String message=DirSelectorPromptStr, Point pos=DefaultPosition,
6601 Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
6602 Validator validator=DefaultValidator,
6603 String name=DirPickerCtrlNameStr) -> DirPickerCtrl
6605 _controls_
.DirPickerCtrl_swiginit(self
,_controls_
.new_DirPickerCtrl(*args
, **kwargs
))
6606 self
._setOORInfo
(self
)
6608 def Create(*args
, **kwargs
):
6610 Create(self, Window parent, int id=-1, String path=EmptyString,
6611 String message=DirSelectorPromptStr, Point pos=DefaultPosition,
6612 Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
6613 Validator validator=DefaultValidator,
6614 String name=DirPickerCtrlNameStr) -> bool
6616 return _controls_
.DirPickerCtrl_Create(*args
, **kwargs
)
6618 def GetPath(*args
, **kwargs
):
6619 """GetPath(self) -> String"""
6620 return _controls_
.DirPickerCtrl_GetPath(*args
, **kwargs
)
6622 def SetPath(*args
, **kwargs
):
6623 """SetPath(self, String str)"""
6624 return _controls_
.DirPickerCtrl_SetPath(*args
, **kwargs
)
6626 _controls_
.DirPickerCtrl_swigregister(DirPickerCtrl
)
6628 def PreDirPickerCtrl(*args
, **kwargs
):
6629 """PreDirPickerCtrl() -> DirPickerCtrl"""
6630 val
= _controls_
.new_PreDirPickerCtrl(*args
, **kwargs
)
6633 wxEVT_COMMAND_FILEPICKER_CHANGED
= _controls_
.wxEVT_COMMAND_FILEPICKER_CHANGED
6634 wxEVT_COMMAND_DIRPICKER_CHANGED
= _controls_
.wxEVT_COMMAND_DIRPICKER_CHANGED
6635 EVT_FILEPICKER_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_FILEPICKER_CHANGED
, 1 )
6636 EVT_DIRPICKER_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_DIRPICKER_CHANGED
, 1 )
6638 class FileDirPickerEvent(_core
.CommandEvent
):
6639 """Proxy of C++ FileDirPickerEvent class"""
6640 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6641 __repr__
= _swig_repr
6642 def __init__(self
, *args
, **kwargs
):
6643 """__init__(self, EventType type, Object generator, int id, String path) -> FileDirPickerEvent"""
6644 _controls_
.FileDirPickerEvent_swiginit(self
,_controls_
.new_FileDirPickerEvent(*args
, **kwargs
))
6645 def GetPath(*args
, **kwargs
):
6646 """GetPath(self) -> String"""
6647 return _controls_
.FileDirPickerEvent_GetPath(*args
, **kwargs
)
6649 def SetPath(*args
, **kwargs
):
6650 """SetPath(self, String p)"""
6651 return _controls_
.FileDirPickerEvent_SetPath(*args
, **kwargs
)
6653 _controls_
.FileDirPickerEvent_swigregister(FileDirPickerEvent
)
6655 #---------------------------------------------------------------------------
6657 FNTP_FONTDESC_AS_LABEL
= _controls_
.FNTP_FONTDESC_AS_LABEL
6658 FNTP_USEFONT_FOR_LABEL
= _controls_
.FNTP_USEFONT_FOR_LABEL
6659 FNTP_USE_TEXTCTRL
= _controls_
.FNTP_USE_TEXTCTRL
6660 FNTP_DEFAULT_STYLE
= _controls_
.FNTP_DEFAULT_STYLE
6661 class FontPickerCtrl(PickerBase
):
6662 """Proxy of C++ FontPickerCtrl class"""
6663 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6664 __repr__
= _swig_repr
6665 def __init__(self
, *args
, **kwargs
):
6667 __init__(self, Window parent, int id=-1, Font initial=*wxNORMAL_FONT,
6668 Point pos=DefaultPosition, Size size=DefaultSize,
6669 long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6670 String name=FontPickerCtrlNameStr) -> FontPickerCtrl
6672 _controls_
.FontPickerCtrl_swiginit(self
,_controls_
.new_FontPickerCtrl(*args
, **kwargs
))
6673 self
._setOORInfo
(self
)
6675 def Create(*args
, **kwargs
):
6677 Create(self, Window parent, int id=-1, Font initial=*wxNORMAL_FONT,
6678 Point pos=DefaultPosition, Size size=DefaultSize,
6679 long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6680 String name=FontPickerCtrlNameStr) -> bool
6682 return _controls_
.FontPickerCtrl_Create(*args
, **kwargs
)
6684 def GetSelectedFont(*args
, **kwargs
):
6685 """GetSelectedFont(self) -> Font"""
6686 return _controls_
.FontPickerCtrl_GetSelectedFont(*args
, **kwargs
)
6688 def SetSelectedFont(*args
, **kwargs
):
6689 """SetSelectedFont(self, Font f)"""
6690 return _controls_
.FontPickerCtrl_SetSelectedFont(*args
, **kwargs
)
6692 def SetMaxPointSize(*args
, **kwargs
):
6693 """SetMaxPointSize(self, unsigned int max)"""
6694 return _controls_
.FontPickerCtrl_SetMaxPointSize(*args
, **kwargs
)
6696 def GetMaxPointSize(*args
, **kwargs
):
6697 """GetMaxPointSize(self) -> unsigned int"""
6698 return _controls_
.FontPickerCtrl_GetMaxPointSize(*args
, **kwargs
)
6700 _controls_
.FontPickerCtrl_swigregister(FontPickerCtrl
)
6701 FontPickerCtrlNameStr
= cvar
.FontPickerCtrlNameStr
6703 def PreFontPickerCtrl(*args
, **kwargs
):
6704 """PreFontPickerCtrl() -> FontPickerCtrl"""
6705 val
= _controls_
.new_PreFontPickerCtrl(*args
, **kwargs
)
6708 wxEVT_COMMAND_FONTPICKER_CHANGED
= _controls_
.wxEVT_COMMAND_FONTPICKER_CHANGED
6709 EVT_FONTPICKER_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_FONTPICKER_CHANGED
, 1 )
6711 class FontPickerEvent(_core
.CommandEvent
):
6712 """Proxy of C++ FontPickerEvent class"""
6713 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6714 __repr__
= _swig_repr
6715 def __init__(self
, *args
, **kwargs
):
6716 """__init__(self, Object generator, int id, Font f) -> FontPickerEvent"""
6717 _controls_
.FontPickerEvent_swiginit(self
,_controls_
.new_FontPickerEvent(*args
, **kwargs
))
6718 def GetFont(*args
, **kwargs
):
6719 """GetFont(self) -> Font"""
6720 return _controls_
.FontPickerEvent_GetFont(*args
, **kwargs
)
6722 def SetFont(*args
, **kwargs
):
6723 """SetFont(self, Font c)"""
6724 return _controls_
.FontPickerEvent_SetFont(*args
, **kwargs
)
6726 _controls_
.FontPickerEvent_swigregister(FontPickerEvent
)