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 Button_swigregister
= _controls_
.Button_swigregister
136 Button_swigregister(Button
)
137 cvar
= _controls_
.cvar
138 ButtonNameStr
= cvar
.ButtonNameStr
140 def PreButton(*args
, **kwargs
):
142 PreButton() -> Button
144 Precreate a Button for 2-phase creation.
146 val
= _controls_
.new_PreButton(*args
, **kwargs
)
149 def Button_GetDefaultSize(*args
):
151 Button_GetDefaultSize() -> Size
153 Returns the default button size for this platform.
155 return _controls_
.Button_GetDefaultSize(*args
)
157 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
159 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
161 Get the default attributes for this class. This is useful if you want
162 to use the same font or colour in your own control as in a standard
163 control -- which is a much better idea than hard coding specific
164 colours or fonts which might look completely out of place on the
165 user's system, especially if it uses themes.
167 The variant parameter is only relevant under Mac currently and is
168 ignore under other platforms. Under Mac, it will change the size of
169 the returned font. See `wx.Window.SetWindowVariant` for more about
172 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
174 class BitmapButton(Button
):
176 A Button that contains a bitmap. A bitmap button can be supplied with a
177 single bitmap, and wxWidgets will draw all button states using this bitmap. If
178 the application needs more control, additional bitmaps for the selected state,
179 unpressed focused state, and greyed-out state may be supplied.
181 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
182 __repr__
= _swig_repr
183 def __init__(self
, *args
, **kwargs
):
185 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
186 Point pos=DefaultPosition, Size size=DefaultSize,
187 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
188 String name=ButtonNameStr) -> BitmapButton
190 Create and show a button with a bitmap for the label.
192 _controls_
.BitmapButton_swiginit(self
,_controls_
.new_BitmapButton(*args
, **kwargs
))
193 self
._setOORInfo
(self
)
195 def Create(*args
, **kwargs
):
197 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
198 Point pos=DefaultPosition, Size size=DefaultSize,
199 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
200 String name=ButtonNameStr) -> bool
202 Acutally create the GUI BitmapButton for 2-phase creation.
204 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
206 def GetBitmapLabel(*args
, **kwargs
):
208 GetBitmapLabel(self) -> Bitmap
210 Returns the label bitmap (the one passed to the constructor).
212 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
214 def GetBitmapDisabled(*args
, **kwargs
):
216 GetBitmapDisabled(self) -> Bitmap
218 Returns the bitmap for the disabled state.
220 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
222 def GetBitmapFocus(*args
, **kwargs
):
224 GetBitmapFocus(self) -> Bitmap
226 Returns the bitmap for the focused state.
228 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
230 def GetBitmapSelected(*args
, **kwargs
):
232 GetBitmapSelected(self) -> Bitmap
234 Returns the bitmap for the selected state.
236 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
238 def GetBitmapHover(*args
, **kwargs
):
240 GetBitmapHover(self) -> Bitmap
242 Returns the bitmap used when the mouse is over the button, may be invalid.
244 return _controls_
.BitmapButton_GetBitmapHover(*args
, **kwargs
)
246 def SetBitmapDisabled(*args
, **kwargs
):
248 SetBitmapDisabled(self, Bitmap bitmap)
250 Sets the bitmap for the disabled button appearance.
252 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
254 def SetBitmapFocus(*args
, **kwargs
):
256 SetBitmapFocus(self, Bitmap bitmap)
258 Sets the bitmap for the button appearance when it has the keyboard focus.
260 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
262 def SetBitmapSelected(*args
, **kwargs
):
264 SetBitmapSelected(self, Bitmap bitmap)
266 Sets the bitmap for the selected (depressed) button appearance.
268 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
270 def SetBitmapLabel(*args
, **kwargs
):
272 SetBitmapLabel(self, Bitmap bitmap)
274 Sets the bitmap label for the button. This is the bitmap used for the
275 unselected state, and for all other states if no other bitmaps are provided.
277 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
279 def SetBitmapHover(*args
, **kwargs
):
281 SetBitmapHover(self, Bitmap hover)
283 Sets the bitmap to be shown when the mouse is over the button. This function
284 is new since wxWidgets version 2.7.0 and the hover bitmap is currently only
287 return _controls_
.BitmapButton_SetBitmapHover(*args
, **kwargs
)
289 def SetMargins(*args
, **kwargs
):
290 """SetMargins(self, int x, int y)"""
291 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
293 def GetMarginX(*args
, **kwargs
):
294 """GetMarginX(self) -> int"""
295 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
297 def GetMarginY(*args
, **kwargs
):
298 """GetMarginY(self) -> int"""
299 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
301 BitmapButton_swigregister
= _controls_
.BitmapButton_swigregister
302 BitmapButton_swigregister(BitmapButton
)
304 def PreBitmapButton(*args
, **kwargs
):
306 PreBitmapButton() -> BitmapButton
308 Precreate a BitmapButton for 2-phase creation.
310 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
313 #---------------------------------------------------------------------------
315 CHK_2STATE
= _controls_
.CHK_2STATE
316 CHK_3STATE
= _controls_
.CHK_3STATE
317 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
318 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
319 CHK_CHECKED
= _controls_
.CHK_CHECKED
320 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
321 class CheckBox(_core
.Control
):
323 A checkbox is a labelled box which by default is either on (the
324 checkmark is visible) or off (no checkmark). Optionally (When the
325 wx.CHK_3STATE style flag is set) it can have a third state, called the
326 mixed or undetermined state. Often this is used as a "Does Not
329 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
330 __repr__
= _swig_repr
331 def __init__(self
, *args
, **kwargs
):
333 __init__(self, Window parent, int id=-1, String label=EmptyString,
334 Point pos=DefaultPosition, Size size=DefaultSize,
335 long style=0, Validator validator=DefaultValidator,
336 String name=CheckBoxNameStr) -> CheckBox
338 Creates and shows a CheckBox control
340 _controls_
.CheckBox_swiginit(self
,_controls_
.new_CheckBox(*args
, **kwargs
))
341 self
._setOORInfo
(self
)
343 def Create(*args
, **kwargs
):
345 Create(self, Window parent, int id=-1, String label=EmptyString,
346 Point pos=DefaultPosition, Size size=DefaultSize,
347 long style=0, Validator validator=DefaultValidator,
348 String name=CheckBoxNameStr) -> bool
350 Actually create the GUI CheckBox for 2-phase creation.
352 return _controls_
.CheckBox_Create(*args
, **kwargs
)
354 def GetValue(*args
, **kwargs
):
356 GetValue(self) -> bool
358 Gets the state of a 2-state CheckBox. Returns True if it is checked,
361 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
363 def IsChecked(*args
, **kwargs
):
365 IsChecked(self) -> bool
367 Similar to GetValue, but raises an exception if it is not a 2-state
370 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
372 def SetValue(*args
, **kwargs
):
374 SetValue(self, bool state)
376 Set the state of a 2-state CheckBox. Pass True for checked, False for
379 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
381 def Get3StateValue(*args
, **kwargs
):
383 Get3StateValue(self) -> int
385 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
386 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
387 the undetermined state. Raises an exceptiion when the function is
388 used with a 2-state CheckBox.
390 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
392 def Set3StateValue(*args
, **kwargs
):
394 Set3StateValue(self, int state)
396 Sets the CheckBox to the given state. The state parameter can be one
397 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
398 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
399 exception when the CheckBox is a 2-state checkbox and setting the
400 state to wx.CHK_UNDETERMINED.
402 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
404 def Is3State(*args
, **kwargs
):
406 Is3State(self) -> bool
408 Returns whether or not the CheckBox is a 3-state CheckBox.
410 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
412 def Is3rdStateAllowedForUser(*args
, **kwargs
):
414 Is3rdStateAllowedForUser(self) -> bool
416 Returns whether or not the user can set the CheckBox to the third
419 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
421 def GetClassDefaultAttributes(*args
, **kwargs
):
423 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
425 Get the default attributes for this class. This is useful if you want
426 to use the same font or colour in your own control as in a standard
427 control -- which is a much better idea than hard coding specific
428 colours or fonts which might look completely out of place on the
429 user's system, especially if it uses themes.
431 The variant parameter is only relevant under Mac currently and is
432 ignore under other platforms. Under Mac, it will change the size of
433 the returned font. See `wx.Window.SetWindowVariant` for more about
436 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
438 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
439 CheckBox_swigregister
= _controls_
.CheckBox_swigregister
440 CheckBox_swigregister(CheckBox
)
441 CheckBoxNameStr
= cvar
.CheckBoxNameStr
443 def PreCheckBox(*args
, **kwargs
):
445 PreCheckBox() -> CheckBox
447 Precreate a CheckBox for 2-phase creation.
449 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
452 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
454 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
456 Get the default attributes for this class. This is useful if you want
457 to use the same font or colour in your own control as in a standard
458 control -- which is a much better idea than hard coding specific
459 colours or fonts which might look completely out of place on the
460 user's system, especially if it uses themes.
462 The variant parameter is only relevant under Mac currently and is
463 ignore under other platforms. Under Mac, it will change the size of
464 the returned font. See `wx.Window.SetWindowVariant` for more about
467 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
469 #---------------------------------------------------------------------------
471 class Choice(_core
.ControlWithItems
):
473 A Choice control is used to select one of a list of strings.
474 Unlike a `wx.ListBox`, only the selection is visible until the
475 user pulls down the menu of choices.
477 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
478 __repr__
= _swig_repr
479 def __init__(self
, *args
, **kwargs
):
481 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
482 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
483 String name=ChoiceNameStr) -> Choice
485 Create and show a Choice control
487 _controls_
.Choice_swiginit(self
,_controls_
.new_Choice(*args
, **kwargs
))
488 self
._setOORInfo
(self
)
490 def Create(*args
, **kwargs
):
492 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
493 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
494 String name=ChoiceNameStr) -> bool
496 Actually create the GUI Choice control for 2-phase creation
498 return _controls_
.Choice_Create(*args
, **kwargs
)
500 def GetCurrentSelection(*args
, **kwargs
):
502 GetCurrentSelection(self) -> int
504 Unlike `GetSelection` which only returns the accepted selection value,
505 i.e. the selection in the control once the user closes the dropdown
506 list, this function returns the current selection. That is, while the
507 dropdown list is shown, it returns the currently selected item in
508 it. When it is not shown, its result is the same as for the other
511 return _controls_
.Choice_GetCurrentSelection(*args
, **kwargs
)
513 def GetClassDefaultAttributes(*args
, **kwargs
):
515 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
517 Get the default attributes for this class. This is useful if you want
518 to use the same font or colour in your own control as in a standard
519 control -- which is a much better idea than hard coding specific
520 colours or fonts which might look completely out of place on the
521 user's system, especially if it uses themes.
523 The variant parameter is only relevant under Mac currently and is
524 ignore under other platforms. Under Mac, it will change the size of
525 the returned font. See `wx.Window.SetWindowVariant` for more about
528 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
530 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
531 Choice_swigregister
= _controls_
.Choice_swigregister
532 Choice_swigregister(Choice
)
533 ChoiceNameStr
= cvar
.ChoiceNameStr
535 def PreChoice(*args
, **kwargs
):
537 PreChoice() -> Choice
539 Precreate a Choice control for 2-phase creation.
541 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
544 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
546 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
548 Get the default attributes for this class. This is useful if you want
549 to use the same font or colour in your own control as in a standard
550 control -- which is a much better idea than hard coding specific
551 colours or fonts which might look completely out of place on the
552 user's system, especially if it uses themes.
554 The variant parameter is only relevant under Mac currently and is
555 ignore under other platforms. Under Mac, it will change the size of
556 the returned font. See `wx.Window.SetWindowVariant` for more about
559 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
561 #---------------------------------------------------------------------------
563 class ComboBox(_core
.Control
,_core
.ItemContainer
):
565 A combobox is like a combination of an edit control and a
566 listbox. It can be displayed as static list with editable or
567 read-only text field; or a drop-down list with text field.
569 A combobox permits a single selection only. Combobox items are
572 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
573 __repr__
= _swig_repr
574 def __init__(self
, *args
, **kwargs
):
576 __init__(Window parent, int id, String value=EmptyString,
577 Point pos=DefaultPosition, Size size=DefaultSize,
578 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
579 String name=ComboBoxNameStr) -> ComboBox
581 Constructor, creates and shows a ComboBox control.
583 _controls_
.ComboBox_swiginit(self
,_controls_
.new_ComboBox(*args
, **kwargs
))
584 self
._setOORInfo
(self
)
586 def Create(*args
, **kwargs
):
588 Create(Window parent, int id, String value=EmptyString,
589 Point pos=DefaultPosition, Size size=DefaultSize,
590 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
591 String name=ChoiceNameStr) -> bool
593 Actually create the GUI wxComboBox control for 2-phase creation
595 return _controls_
.ComboBox_Create(*args
, **kwargs
)
597 def GetValue(*args
, **kwargs
):
599 GetValue(self) -> String
601 Returns the current value in the combobox text field.
603 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
605 def SetValue(*args
, **kwargs
):
606 """SetValue(self, String value)"""
607 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
609 def Copy(*args
, **kwargs
):
613 Copies the selected text to the clipboard.
615 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
617 def Cut(*args
, **kwargs
):
621 Copies the selected text to the clipboard and removes the selection.
623 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
625 def Paste(*args
, **kwargs
):
629 Pastes text from the clipboard to the text field.
631 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
633 def SetInsertionPoint(*args
, **kwargs
):
635 SetInsertionPoint(self, long pos)
637 Sets the insertion point in the combobox text field.
639 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
641 def GetInsertionPoint(*args
, **kwargs
):
643 GetInsertionPoint(self) -> long
645 Returns the insertion point for the combobox's text field.
647 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
649 def GetLastPosition(*args
, **kwargs
):
651 GetLastPosition(self) -> long
653 Returns the last position in the combobox text field.
655 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
657 def Replace(*args
, **kwargs
):
659 Replace(self, long from, long to, String value)
661 Replaces the text between two positions with the given text, in the
664 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
666 def SetMark(*args
, **kwargs
):
668 SetMark(self, long from, long to)
670 Selects the text between the two positions in the combobox text field.
672 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
674 def GetMark(*args
, **kwargs
):
676 GetMark(self) -> (from, to)
678 Gets the positions of the begining and ending of the selection mark in
679 the combobox text field.
681 return _controls_
.ComboBox_GetMark(*args
, **kwargs
)
683 def GetCurrentSelection(*args
, **kwargs
):
685 GetCurrentSelection(self) -> int
687 Unlike `GetSelection` which only returns the accepted selection value,
688 i.e. the selection in the control once the user closes the dropdown
689 list, this function returns the current selection. That is, while the
690 dropdown list is shown, it returns the currently selected item in
691 it. When it is not shown, its result is the same as for the other
694 return _controls_
.ComboBox_GetCurrentSelection(*args
, **kwargs
)
696 def SetStringSelection(*args
, **kwargs
):
698 SetStringSelection(self, String string) -> bool
700 Select the item with the specifed string
702 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
704 def SetString(*args
, **kwargs
):
706 SetString(self, int n, String string)
708 Set the label for the n'th item (zero based) in the list.
710 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
712 def SetEditable(*args
, **kwargs
):
713 """SetEditable(self, bool editable)"""
714 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
716 def SetInsertionPointEnd(*args
, **kwargs
):
718 SetInsertionPointEnd(self)
720 Sets the insertion point at the end of the combobox text field.
722 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
724 def Remove(*args
, **kwargs
):
726 Remove(self, long from, long to)
728 Removes the text between the two positions in the combobox text field.
730 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
732 def IsEditable(*args
, **kwargs
):
734 IsEditable(self) -> bool
736 Returns True if the combo is ediatable (not read-only.)
738 return _controls_
.ComboBox_IsEditable(*args
, **kwargs
)
740 def Undo(*args
, **kwargs
):
744 Redoes the last undo in the text field. Windows only.
746 return _controls_
.ComboBox_Undo(*args
, **kwargs
)
748 def Redo(*args
, **kwargs
):
752 Undoes the last edit in the text field. Windows only.
754 return _controls_
.ComboBox_Redo(*args
, **kwargs
)
756 def SelectAll(*args
, **kwargs
):
760 Select all the text in the combo's text field.
762 return _controls_
.ComboBox_SelectAll(*args
, **kwargs
)
764 def CanCopy(*args
, **kwargs
):
766 CanCopy(self) -> bool
768 Returns True if the combobox is editable and there is a text selection
769 to copy to the clipboard. Only available on Windows.
771 return _controls_
.ComboBox_CanCopy(*args
, **kwargs
)
773 def CanCut(*args
, **kwargs
):
777 Returns True if the combobox is editable and there is a text selection
778 to copy to the clipboard. Only available on Windows.
780 return _controls_
.ComboBox_CanCut(*args
, **kwargs
)
782 def CanPaste(*args
, **kwargs
):
784 CanPaste(self) -> bool
786 Returns True if the combobox is editable and there is text on the
787 clipboard that can be pasted into the text field. Only available on
790 return _controls_
.ComboBox_CanPaste(*args
, **kwargs
)
792 def CanUndo(*args
, **kwargs
):
794 CanUndo(self) -> bool
796 Returns True if the combobox is editable and the last edit can be
797 undone. Only available on Windows.
799 return _controls_
.ComboBox_CanUndo(*args
, **kwargs
)
801 def CanRedo(*args
, **kwargs
):
803 CanRedo(self) -> bool
805 Returns True if the combobox is editable and the last undo can be
806 redone. Only available on Windows.
808 return _controls_
.ComboBox_CanRedo(*args
, **kwargs
)
810 def GetClassDefaultAttributes(*args
, **kwargs
):
812 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
814 Get the default attributes for this class. This is useful if you want
815 to use the same font or colour in your own control as in a standard
816 control -- which is a much better idea than hard coding specific
817 colours or fonts which might look completely out of place on the
818 user's system, especially if it uses themes.
820 The variant parameter is only relevant under Mac currently and is
821 ignore under other platforms. Under Mac, it will change the size of
822 the returned font. See `wx.Window.SetWindowVariant` for more about
825 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
827 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
828 ComboBox_swigregister
= _controls_
.ComboBox_swigregister
829 ComboBox_swigregister(ComboBox
)
830 ComboBoxNameStr
= cvar
.ComboBoxNameStr
832 def PreComboBox(*args
, **kwargs
):
834 PreComboBox() -> ComboBox
836 Precreate a ComboBox control for 2-phase creation.
838 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
841 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
843 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
845 Get the default attributes for this class. This is useful if you want
846 to use the same font or colour in your own control as in a standard
847 control -- which is a much better idea than hard coding specific
848 colours or fonts which might look completely out of place on the
849 user's system, especially if it uses themes.
851 The variant parameter is only relevant under Mac currently and is
852 ignore under other platforms. Under Mac, it will change the size of
853 the returned font. See `wx.Window.SetWindowVariant` for more about
856 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
858 #---------------------------------------------------------------------------
860 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
861 GA_VERTICAL
= _controls_
.GA_VERTICAL
862 GA_SMOOTH
= _controls_
.GA_SMOOTH
863 GA_PROGRESSBAR
= 0 # obsolete
864 class Gauge(_core
.Control
):
865 """Proxy of C++ Gauge class"""
866 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
867 __repr__
= _swig_repr
868 def __init__(self
, *args
, **kwargs
):
870 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
871 Size size=DefaultSize, long style=GA_HORIZONTAL,
872 Validator validator=DefaultValidator,
873 String name=GaugeNameStr) -> Gauge
875 _controls_
.Gauge_swiginit(self
,_controls_
.new_Gauge(*args
, **kwargs
))
876 self
._setOORInfo
(self
)
878 def Create(*args
, **kwargs
):
880 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
881 Size size=DefaultSize, long style=GA_HORIZONTAL,
882 Validator validator=DefaultValidator,
883 String name=GaugeNameStr) -> bool
885 return _controls_
.Gauge_Create(*args
, **kwargs
)
887 def SetRange(*args
, **kwargs
):
888 """SetRange(self, int range)"""
889 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
891 def GetRange(*args
, **kwargs
):
892 """GetRange(self) -> int"""
893 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
895 def SetValue(*args
, **kwargs
):
896 """SetValue(self, int pos)"""
897 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
899 def GetValue(*args
, **kwargs
):
900 """GetValue(self) -> int"""
901 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
903 def IsVertical(*args
, **kwargs
):
904 """IsVertical(self) -> bool"""
905 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
907 def SetShadowWidth(*args
, **kwargs
):
908 """SetShadowWidth(self, int w)"""
909 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
911 def GetShadowWidth(*args
, **kwargs
):
912 """GetShadowWidth(self) -> int"""
913 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
915 def SetBezelFace(*args
, **kwargs
):
916 """SetBezelFace(self, int w)"""
917 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
919 def GetBezelFace(*args
, **kwargs
):
920 """GetBezelFace(self) -> int"""
921 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
923 def GetClassDefaultAttributes(*args
, **kwargs
):
925 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
927 Get the default attributes for this class. This is useful if you want
928 to use the same font or colour in your own control as in a standard
929 control -- which is a much better idea than hard coding specific
930 colours or fonts which might look completely out of place on the
931 user's system, especially if it uses themes.
933 The variant parameter is only relevant under Mac currently and is
934 ignore under other platforms. Under Mac, it will change the size of
935 the returned font. See `wx.Window.SetWindowVariant` for more about
938 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
940 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
941 Gauge_swigregister
= _controls_
.Gauge_swigregister
942 Gauge_swigregister(Gauge
)
943 GaugeNameStr
= cvar
.GaugeNameStr
945 def PreGauge(*args
, **kwargs
):
946 """PreGauge() -> Gauge"""
947 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
950 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
952 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
954 Get the default attributes for this class. This is useful if you want
955 to use the same font or colour in your own control as in a standard
956 control -- which is a much better idea than hard coding specific
957 colours or fonts which might look completely out of place on the
958 user's system, especially if it uses themes.
960 The variant parameter is only relevant under Mac currently and is
961 ignore under other platforms. Under Mac, it will change the size of
962 the returned font. See `wx.Window.SetWindowVariant` for more about
965 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
967 #---------------------------------------------------------------------------
969 class StaticBox(_core
.Control
):
970 """Proxy of C++ StaticBox class"""
971 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
972 __repr__
= _swig_repr
973 def __init__(self
, *args
, **kwargs
):
975 __init__(self, Window parent, int id=-1, String label=EmptyString,
976 Point pos=DefaultPosition, Size size=DefaultSize,
977 long style=0, String name=StaticBoxNameStr) -> StaticBox
979 _controls_
.StaticBox_swiginit(self
,_controls_
.new_StaticBox(*args
, **kwargs
))
980 self
._setOORInfo
(self
)
982 def Create(*args
, **kwargs
):
984 Create(self, Window parent, int id=-1, String label=EmptyString,
985 Point pos=DefaultPosition, Size size=DefaultSize,
986 long style=0, String name=StaticBoxNameStr) -> bool
988 return _controls_
.StaticBox_Create(*args
, **kwargs
)
990 def GetClassDefaultAttributes(*args
, **kwargs
):
992 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
994 Get the default attributes for this class. This is useful if you want
995 to use the same font or colour in your own control as in a standard
996 control -- which is a much better idea than hard coding specific
997 colours or fonts which might look completely out of place on the
998 user's system, especially if it uses themes.
1000 The variant parameter is only relevant under Mac currently and is
1001 ignore under other platforms. Under Mac, it will change the size of
1002 the returned font. See `wx.Window.SetWindowVariant` for more about
1005 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1007 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1008 StaticBox_swigregister
= _controls_
.StaticBox_swigregister
1009 StaticBox_swigregister(StaticBox
)
1010 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
1011 StaticBoxNameStr
= cvar
.StaticBoxNameStr
1012 StaticTextNameStr
= cvar
.StaticTextNameStr
1014 def PreStaticBox(*args
, **kwargs
):
1015 """PreStaticBox() -> StaticBox"""
1016 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
1019 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
1021 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1023 Get the default attributes for this class. This is useful if you want
1024 to use the same font or colour in your own control as in a standard
1025 control -- which is a much better idea than hard coding specific
1026 colours or fonts which might look completely out of place on the
1027 user's system, especially if it uses themes.
1029 The variant parameter is only relevant under Mac currently and is
1030 ignore under other platforms. Under Mac, it will change the size of
1031 the returned font. See `wx.Window.SetWindowVariant` for more about
1034 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1036 #---------------------------------------------------------------------------
1038 class StaticLine(_core
.Control
):
1039 """Proxy of C++ StaticLine class"""
1040 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1041 __repr__
= _swig_repr
1042 def __init__(self
, *args
, **kwargs
):
1044 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1045 Size size=DefaultSize, long style=LI_HORIZONTAL,
1046 String name=StaticTextNameStr) -> StaticLine
1048 _controls_
.StaticLine_swiginit(self
,_controls_
.new_StaticLine(*args
, **kwargs
))
1049 self
._setOORInfo
(self
)
1051 def Create(*args
, **kwargs
):
1053 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1054 Size size=DefaultSize, long style=LI_HORIZONTAL,
1055 String name=StaticTextNameStr) -> bool
1057 return _controls_
.StaticLine_Create(*args
, **kwargs
)
1059 def IsVertical(*args
, **kwargs
):
1060 """IsVertical(self) -> bool"""
1061 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
1063 def GetDefaultSize(*args
, **kwargs
):
1064 """GetDefaultSize() -> int"""
1065 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1067 GetDefaultSize
= staticmethod(GetDefaultSize
)
1068 def GetClassDefaultAttributes(*args
, **kwargs
):
1070 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1072 Get the default attributes for this class. This is useful if you want
1073 to use the same font or colour in your own control as in a standard
1074 control -- which is a much better idea than hard coding specific
1075 colours or fonts which might look completely out of place on the
1076 user's system, especially if it uses themes.
1078 The variant parameter is only relevant under Mac currently and is
1079 ignore under other platforms. Under Mac, it will change the size of
1080 the returned font. See `wx.Window.SetWindowVariant` for more about
1083 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1085 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1086 StaticLine_swigregister
= _controls_
.StaticLine_swigregister
1087 StaticLine_swigregister(StaticLine
)
1089 def PreStaticLine(*args
, **kwargs
):
1090 """PreStaticLine() -> StaticLine"""
1091 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1094 def StaticLine_GetDefaultSize(*args
):
1095 """StaticLine_GetDefaultSize() -> int"""
1096 return _controls_
.StaticLine_GetDefaultSize(*args
)
1098 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1100 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1102 Get the default attributes for this class. This is useful if you want
1103 to use the same font or colour in your own control as in a standard
1104 control -- which is a much better idea than hard coding specific
1105 colours or fonts which might look completely out of place on the
1106 user's system, especially if it uses themes.
1108 The variant parameter is only relevant under Mac currently and is
1109 ignore under other platforms. Under Mac, it will change the size of
1110 the returned font. See `wx.Window.SetWindowVariant` for more about
1113 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1115 #---------------------------------------------------------------------------
1117 class StaticText(_core
.Control
):
1118 """Proxy of C++ StaticText class"""
1119 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1120 __repr__
= _swig_repr
1121 def __init__(self
, *args
, **kwargs
):
1123 __init__(self, Window parent, int id=-1, String label=EmptyString,
1124 Point pos=DefaultPosition, Size size=DefaultSize,
1125 long style=0, String name=StaticTextNameStr) -> StaticText
1127 _controls_
.StaticText_swiginit(self
,_controls_
.new_StaticText(*args
, **kwargs
))
1128 self
._setOORInfo
(self
)
1130 def Create(*args
, **kwargs
):
1132 Create(self, Window parent, int id=-1, String label=EmptyString,
1133 Point pos=DefaultPosition, Size size=DefaultSize,
1134 long style=0, String name=StaticTextNameStr) -> bool
1136 return _controls_
.StaticText_Create(*args
, **kwargs
)
1138 def Wrap(*args
, **kwargs
):
1140 Wrap(self, int width)
1142 This functions wraps the control's label so that each of its lines
1143 becomes at most ``width`` pixels wide if possible (the lines are
1144 broken at words boundaries so it might not be the case if words are
1145 too long). If ``width`` is negative, no wrapping is done.
1147 return _controls_
.StaticText_Wrap(*args
, **kwargs
)
1149 def GetClassDefaultAttributes(*args
, **kwargs
):
1151 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1153 Get the default attributes for this class. This is useful if you want
1154 to use the same font or colour in your own control as in a standard
1155 control -- which is a much better idea than hard coding specific
1156 colours or fonts which might look completely out of place on the
1157 user's system, especially if it uses themes.
1159 The variant parameter is only relevant under Mac currently and is
1160 ignore under other platforms. Under Mac, it will change the size of
1161 the returned font. See `wx.Window.SetWindowVariant` for more about
1164 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1166 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1167 StaticText_swigregister
= _controls_
.StaticText_swigregister
1168 StaticText_swigregister(StaticText
)
1170 def PreStaticText(*args
, **kwargs
):
1171 """PreStaticText() -> StaticText"""
1172 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1175 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1177 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1179 Get the default attributes for this class. This is useful if you want
1180 to use the same font or colour in your own control as in a standard
1181 control -- which is a much better idea than hard coding specific
1182 colours or fonts which might look completely out of place on the
1183 user's system, especially if it uses themes.
1185 The variant parameter is only relevant under Mac currently and is
1186 ignore under other platforms. Under Mac, it will change the size of
1187 the returned font. See `wx.Window.SetWindowVariant` for more about
1190 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1192 #---------------------------------------------------------------------------
1194 class StaticBitmap(_core
.Control
):
1195 """Proxy of C++ StaticBitmap class"""
1196 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1197 __repr__
= _swig_repr
1198 def __init__(self
, *args
, **kwargs
):
1200 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1201 Point pos=DefaultPosition, Size size=DefaultSize,
1202 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1204 _controls_
.StaticBitmap_swiginit(self
,_controls_
.new_StaticBitmap(*args
, **kwargs
))
1205 self
._setOORInfo
(self
)
1207 def Create(*args
, **kwargs
):
1209 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1210 Point pos=DefaultPosition, Size size=DefaultSize,
1211 long style=0, String name=StaticBitmapNameStr) -> bool
1213 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1215 def GetBitmap(*args
, **kwargs
):
1216 """GetBitmap(self) -> Bitmap"""
1217 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1219 def SetBitmap(*args
, **kwargs
):
1220 """SetBitmap(self, Bitmap bitmap)"""
1221 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1223 def SetIcon(*args
, **kwargs
):
1224 """SetIcon(self, Icon icon)"""
1225 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1227 def GetClassDefaultAttributes(*args
, **kwargs
):
1229 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1231 Get the default attributes for this class. This is useful if you want
1232 to use the same font or colour in your own control as in a standard
1233 control -- which is a much better idea than hard coding specific
1234 colours or fonts which might look completely out of place on the
1235 user's system, especially if it uses themes.
1237 The variant parameter is only relevant under Mac currently and is
1238 ignore under other platforms. Under Mac, it will change the size of
1239 the returned font. See `wx.Window.SetWindowVariant` for more about
1242 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1244 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1245 StaticBitmap_swigregister
= _controls_
.StaticBitmap_swigregister
1246 StaticBitmap_swigregister(StaticBitmap
)
1248 def PreStaticBitmap(*args
, **kwargs
):
1249 """PreStaticBitmap() -> StaticBitmap"""
1250 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1253 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1255 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1257 Get the default attributes for this class. This is useful if you want
1258 to use the same font or colour in your own control as in a standard
1259 control -- which is a much better idea than hard coding specific
1260 colours or fonts which might look completely out of place on the
1261 user's system, especially if it uses themes.
1263 The variant parameter is only relevant under Mac currently and is
1264 ignore under other platforms. Under Mac, it will change the size of
1265 the returned font. See `wx.Window.SetWindowVariant` for more about
1268 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1270 #---------------------------------------------------------------------------
1272 class ListBox(_core
.ControlWithItems
):
1273 """Proxy of C++ ListBox class"""
1274 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1275 __repr__
= _swig_repr
1276 def __init__(self
, *args
, **kwargs
):
1278 __init__(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) -> ListBox
1283 _controls_
.ListBox_swiginit(self
,_controls_
.new_ListBox(*args
, **kwargs
))
1284 self
._setOORInfo
(self
)
1286 def Create(*args
, **kwargs
):
1288 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1289 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1290 long style=0, Validator validator=DefaultValidator,
1291 String name=ListBoxNameStr) -> bool
1293 return _controls_
.ListBox_Create(*args
, **kwargs
)
1295 def Insert(*args
, **kwargs
):
1297 Insert(self, String item, int pos, PyObject clientData=None)
1299 Insert an item into the control before the item at the ``pos`` index,
1300 optionally associating some data object with the item.
1302 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1304 def InsertItems(*args
, **kwargs
):
1305 """InsertItems(self, wxArrayString items, unsigned int pos)"""
1306 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1308 def Set(*args
, **kwargs
):
1309 """Set(self, wxArrayString items)"""
1310 return _controls_
.ListBox_Set(*args
, **kwargs
)
1312 def IsSelected(*args
, **kwargs
):
1313 """IsSelected(self, int n) -> bool"""
1314 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1316 def SetSelection(*args
, **kwargs
):
1317 """SetSelection(self, int n, bool select=True)"""
1318 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1320 def Select(*args
, **kwargs
):
1324 This is the same as `SetSelection` and exists only because it is
1325 slightly more natural for controls which support multiple selection.
1327 return _controls_
.ListBox_Select(*args
, **kwargs
)
1329 def Deselect(*args
, **kwargs
):
1330 """Deselect(self, int n)"""
1331 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1333 def DeselectAll(*args
, **kwargs
):
1334 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1335 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1337 def SetStringSelection(*args
, **kwargs
):
1338 """SetStringSelection(self, String s, bool select=True) -> bool"""
1339 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1341 def GetSelections(*args
, **kwargs
):
1342 """GetSelections(self) -> PyObject"""
1343 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1345 def SetFirstItem(*args
, **kwargs
):
1346 """SetFirstItem(self, int n)"""
1347 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1349 def SetFirstItemStr(*args
, **kwargs
):
1350 """SetFirstItemStr(self, String s)"""
1351 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1353 def EnsureVisible(*args
, **kwargs
):
1354 """EnsureVisible(self, int n)"""
1355 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1357 def AppendAndEnsureVisible(*args
, **kwargs
):
1358 """AppendAndEnsureVisible(self, String s)"""
1359 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1361 def IsSorted(*args
, **kwargs
):
1362 """IsSorted(self) -> bool"""
1363 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1365 def HitTest(*args
, **kwargs
):
1367 HitTest(self, Point pt) -> int
1369 Test where the given (in client coords) point lies
1371 return _controls_
.ListBox_HitTest(*args
, **kwargs
)
1373 def SetItemForegroundColour(*args
, **kwargs
):
1374 """SetItemForegroundColour(self, int item, Colour c)"""
1375 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1377 def SetItemBackgroundColour(*args
, **kwargs
):
1378 """SetItemBackgroundColour(self, int item, Colour c)"""
1379 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1381 def SetItemFont(*args
, **kwargs
):
1382 """SetItemFont(self, int item, Font f)"""
1383 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1385 def GetClassDefaultAttributes(*args
, **kwargs
):
1387 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1389 Get the default attributes for this class. This is useful if you want
1390 to use the same font or colour in your own control as in a standard
1391 control -- which is a much better idea than hard coding specific
1392 colours or fonts which might look completely out of place on the
1393 user's system, especially if it uses themes.
1395 The variant parameter is only relevant under Mac currently and is
1396 ignore under other platforms. Under Mac, it will change the size of
1397 the returned font. See `wx.Window.SetWindowVariant` for more about
1400 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1402 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1403 ListBox_swigregister
= _controls_
.ListBox_swigregister
1404 ListBox_swigregister(ListBox
)
1405 ListBoxNameStr
= cvar
.ListBoxNameStr
1407 def PreListBox(*args
, **kwargs
):
1408 """PreListBox() -> ListBox"""
1409 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1412 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1414 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1416 Get the default attributes for this class. This is useful if you want
1417 to use the same font or colour in your own control as in a standard
1418 control -- which is a much better idea than hard coding specific
1419 colours or fonts which might look completely out of place on the
1420 user's system, especially if it uses themes.
1422 The variant parameter is only relevant under Mac currently and is
1423 ignore under other platforms. Under Mac, it will change the size of
1424 the returned font. See `wx.Window.SetWindowVariant` for more about
1427 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1429 #---------------------------------------------------------------------------
1431 class CheckListBox(ListBox
):
1432 """Proxy of C++ CheckListBox class"""
1433 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1434 __repr__
= _swig_repr
1435 def __init__(self
, *args
, **kwargs
):
1437 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1438 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1439 long style=0, Validator validator=DefaultValidator,
1440 String name=ListBoxNameStr) -> CheckListBox
1442 _controls_
.CheckListBox_swiginit(self
,_controls_
.new_CheckListBox(*args
, **kwargs
))
1443 self
._setOORInfo
(self
)
1445 def Create(*args
, **kwargs
):
1447 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1448 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1449 long style=0, Validator validator=DefaultValidator,
1450 String name=ListBoxNameStr) -> bool
1452 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1454 def IsChecked(*args
, **kwargs
):
1455 """IsChecked(self, unsigned int index) -> bool"""
1456 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1458 def Check(*args
, **kwargs
):
1459 """Check(self, unsigned int index, int check=True)"""
1460 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1462 def GetItemHeight(*args
, **kwargs
):
1463 """GetItemHeight(self) -> int"""
1464 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1466 CheckListBox_swigregister
= _controls_
.CheckListBox_swigregister
1467 CheckListBox_swigregister(CheckListBox
)
1469 def PreCheckListBox(*args
, **kwargs
):
1470 """PreCheckListBox() -> CheckListBox"""
1471 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1474 #---------------------------------------------------------------------------
1476 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1477 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1478 TE_READONLY
= _controls_
.TE_READONLY
1479 TE_MULTILINE
= _controls_
.TE_MULTILINE
1480 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1481 TE_LEFT
= _controls_
.TE_LEFT
1482 TE_CENTER
= _controls_
.TE_CENTER
1483 TE_RIGHT
= _controls_
.TE_RIGHT
1484 TE_CENTRE
= _controls_
.TE_CENTRE
1485 TE_RICH
= _controls_
.TE_RICH
1486 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1487 TE_PASSWORD
= _controls_
.TE_PASSWORD
1488 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1489 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1490 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1491 TE_CHARWRAP
= _controls_
.TE_CHARWRAP
1492 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1493 TE_BESTWRAP
= _controls_
.TE_BESTWRAP
1494 TE_RICH2
= _controls_
.TE_RICH2
1495 TE_CAPITALIZE
= _controls_
.TE_CAPITALIZE
1496 TE_LINEWRAP
= TE_CHARWRAP
1497 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1498 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1499 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1500 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1501 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1502 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1503 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1504 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1505 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1506 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1507 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1508 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1509 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1510 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1511 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1512 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1513 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1514 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1515 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1516 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1517 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1518 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1519 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1520 OutOfRangeTextCoord
= _controls_
.OutOfRangeTextCoord
1521 InvalidTextCoord
= _controls_
.InvalidTextCoord
1522 class TextAttr(object):
1523 """Proxy of C++ TextAttr class"""
1524 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1525 __repr__
= _swig_repr
1526 def __init__(self
, *args
, **kwargs
):
1528 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1529 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1531 _controls_
.TextAttr_swiginit(self
,_controls_
.new_TextAttr(*args
, **kwargs
))
1532 __swig_destroy__
= _controls_
.delete_TextAttr
1533 __del__
= lambda self
: None;
1534 def Init(*args
, **kwargs
):
1536 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1538 def Merge(*args
, **kwargs
):
1539 """Merge(TextAttr base, TextAttr overlay) -> TextAttr"""
1540 return _controls_
.TextAttr_Merge(*args
, **kwargs
)
1542 Merge
= staticmethod(Merge
)
1543 def SetTextColour(*args
, **kwargs
):
1544 """SetTextColour(self, Colour colText)"""
1545 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1547 def SetBackgroundColour(*args
, **kwargs
):
1548 """SetBackgroundColour(self, Colour colBack)"""
1549 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1551 def SetFont(*args
, **kwargs
):
1552 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1553 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1555 def SetAlignment(*args
, **kwargs
):
1556 """SetAlignment(self, int alignment)"""
1557 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1559 def SetTabs(*args
, **kwargs
):
1560 """SetTabs(self, wxArrayInt tabs)"""
1561 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1563 def SetLeftIndent(*args
, **kwargs
):
1564 """SetLeftIndent(self, int indent, int subIndent=0)"""
1565 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1567 def SetRightIndent(*args
, **kwargs
):
1568 """SetRightIndent(self, int indent)"""
1569 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1571 def SetFlags(*args
, **kwargs
):
1572 """SetFlags(self, long flags)"""
1573 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1575 def HasTextColour(*args
, **kwargs
):
1576 """HasTextColour(self) -> bool"""
1577 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1579 def HasBackgroundColour(*args
, **kwargs
):
1580 """HasBackgroundColour(self) -> bool"""
1581 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1583 def HasFont(*args
, **kwargs
):
1584 """HasFont(self) -> bool"""
1585 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1587 def HasAlignment(*args
, **kwargs
):
1588 """HasAlignment(self) -> bool"""
1589 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1591 def HasTabs(*args
, **kwargs
):
1592 """HasTabs(self) -> bool"""
1593 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1595 def HasLeftIndent(*args
, **kwargs
):
1596 """HasLeftIndent(self) -> bool"""
1597 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1599 def HasRightIndent(*args
, **kwargs
):
1600 """HasRightIndent(self) -> bool"""
1601 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1603 def HasFlag(*args
, **kwargs
):
1604 """HasFlag(self, long flag) -> bool"""
1605 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1607 def GetTextColour(*args
, **kwargs
):
1608 """GetTextColour(self) -> Colour"""
1609 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1611 def GetBackgroundColour(*args
, **kwargs
):
1612 """GetBackgroundColour(self) -> Colour"""
1613 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1615 def GetFont(*args
, **kwargs
):
1616 """GetFont(self) -> Font"""
1617 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1619 def GetAlignment(*args
, **kwargs
):
1620 """GetAlignment(self) -> int"""
1621 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1623 def GetTabs(*args
, **kwargs
):
1624 """GetTabs(self) -> wxArrayInt"""
1625 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1627 def GetLeftIndent(*args
, **kwargs
):
1628 """GetLeftIndent(self) -> long"""
1629 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1631 def GetLeftSubIndent(*args
, **kwargs
):
1632 """GetLeftSubIndent(self) -> long"""
1633 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1635 def GetRightIndent(*args
, **kwargs
):
1636 """GetRightIndent(self) -> long"""
1637 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1639 def GetFlags(*args
, **kwargs
):
1640 """GetFlags(self) -> long"""
1641 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1643 def IsDefault(*args
, **kwargs
):
1644 """IsDefault(self) -> bool"""
1645 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1647 def Combine(*args
, **kwargs
):
1648 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1649 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1651 Combine
= staticmethod(Combine
)
1652 TextAttr_swigregister
= _controls_
.TextAttr_swigregister
1653 TextAttr_swigregister(TextAttr
)
1654 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1656 def TextAttr_Merge(*args
, **kwargs
):
1657 """TextAttr_Merge(TextAttr base, TextAttr overlay) -> TextAttr"""
1658 return _controls_
.TextAttr_Merge(*args
, **kwargs
)
1660 def TextAttr_Combine(*args
, **kwargs
):
1661 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1662 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1664 class TextCtrl(_core
.Control
):
1665 """Proxy of C++ TextCtrl class"""
1666 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1667 __repr__
= _swig_repr
1668 def __init__(self
, *args
, **kwargs
):
1670 __init__(self, Window parent, int id=-1, String value=EmptyString,
1671 Point pos=DefaultPosition, Size size=DefaultSize,
1672 long style=0, Validator validator=DefaultValidator,
1673 String name=TextCtrlNameStr) -> TextCtrl
1675 _controls_
.TextCtrl_swiginit(self
,_controls_
.new_TextCtrl(*args
, **kwargs
))
1676 self
._setOORInfo
(self
)
1678 def Create(*args
, **kwargs
):
1680 Create(self, Window parent, int id=-1, String value=EmptyString,
1681 Point pos=DefaultPosition, Size size=DefaultSize,
1682 long style=0, Validator validator=DefaultValidator,
1683 String name=TextCtrlNameStr) -> bool
1685 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1687 def GetValue(*args
, **kwargs
):
1688 """GetValue(self) -> String"""
1689 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1691 def SetValue(*args
, **kwargs
):
1692 """SetValue(self, String value)"""
1693 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1695 def GetRange(*args
, **kwargs
):
1696 """GetRange(self, long from, long to) -> String"""
1697 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1699 def GetLineLength(*args
, **kwargs
):
1700 """GetLineLength(self, long lineNo) -> int"""
1701 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1703 def GetLineText(*args
, **kwargs
):
1704 """GetLineText(self, long lineNo) -> String"""
1705 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1707 def GetNumberOfLines(*args
, **kwargs
):
1708 """GetNumberOfLines(self) -> int"""
1709 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1711 def IsModified(*args
, **kwargs
):
1712 """IsModified(self) -> bool"""
1713 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1715 def IsEditable(*args
, **kwargs
):
1716 """IsEditable(self) -> bool"""
1717 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1719 def IsSingleLine(*args
, **kwargs
):
1720 """IsSingleLine(self) -> bool"""
1721 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1723 def IsMultiLine(*args
, **kwargs
):
1724 """IsMultiLine(self) -> bool"""
1725 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1727 def GetSelection(*args
, **kwargs
):
1729 GetSelection() -> (from, to)
1731 If the return values from and to are the same, there is no selection.
1733 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1735 def GetStringSelection(*args
, **kwargs
):
1736 """GetStringSelection(self) -> String"""
1737 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1739 def Clear(*args
, **kwargs
):
1741 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1743 def Replace(*args
, **kwargs
):
1744 """Replace(self, long from, long to, String value)"""
1745 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1747 def Remove(*args
, **kwargs
):
1748 """Remove(self, long from, long to)"""
1749 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1751 def LoadFile(*args
, **kwargs
):
1752 """LoadFile(self, String file) -> bool"""
1753 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1755 def SaveFile(*args
, **kwargs
):
1756 """SaveFile(self, String file=EmptyString) -> bool"""
1757 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1759 def MarkDirty(*args
, **kwargs
):
1760 """MarkDirty(self)"""
1761 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1763 def DiscardEdits(*args
, **kwargs
):
1764 """DiscardEdits(self)"""
1765 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1767 def SetMaxLength(*args
, **kwargs
):
1768 """SetMaxLength(self, unsigned long len)"""
1769 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1771 def WriteText(*args
, **kwargs
):
1772 """WriteText(self, String text)"""
1773 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1775 def AppendText(*args
, **kwargs
):
1776 """AppendText(self, String text)"""
1777 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1779 def EmulateKeyPress(*args
, **kwargs
):
1780 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1781 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1783 def SetStyle(*args
, **kwargs
):
1784 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1785 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1787 def GetStyle(*args
, **kwargs
):
1788 """GetStyle(self, long position, TextAttr style) -> bool"""
1789 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1791 def SetDefaultStyle(*args
, **kwargs
):
1792 """SetDefaultStyle(self, TextAttr style) -> bool"""
1793 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1795 def GetDefaultStyle(*args
, **kwargs
):
1796 """GetDefaultStyle(self) -> TextAttr"""
1797 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1799 def XYToPosition(*args
, **kwargs
):
1800 """XYToPosition(self, long x, long y) -> long"""
1801 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1803 def PositionToXY(*args
, **kwargs
):
1804 """PositionToXY(long pos) -> (x, y)"""
1805 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1807 def ShowPosition(*args
, **kwargs
):
1808 """ShowPosition(self, long pos)"""
1809 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1811 def HitTest(*args
, **kwargs
):
1813 HitTest(Point pt) -> (result, col, row)
1815 Find the row, col coresponding to the character at the point given in
1816 pixels. NB: pt is in device coords but is not adjusted for the client
1817 area origin nor scrolling.
1819 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1821 def HitTestPos(*args
, **kwargs
):
1823 HitTestPos(Point pt) -> (result, position)
1825 Find the character position in the text coresponding to the point
1826 given in pixels. NB: pt is in device coords but is not adjusted for
1827 the client area origin nor scrolling.
1829 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1831 def Copy(*args
, **kwargs
):
1833 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1835 def Cut(*args
, **kwargs
):
1837 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1839 def Paste(*args
, **kwargs
):
1841 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1843 def CanCopy(*args
, **kwargs
):
1844 """CanCopy(self) -> bool"""
1845 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1847 def CanCut(*args
, **kwargs
):
1848 """CanCut(self) -> bool"""
1849 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1851 def CanPaste(*args
, **kwargs
):
1852 """CanPaste(self) -> bool"""
1853 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1855 def Undo(*args
, **kwargs
):
1857 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1859 def Redo(*args
, **kwargs
):
1861 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1863 def CanUndo(*args
, **kwargs
):
1864 """CanUndo(self) -> bool"""
1865 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1867 def CanRedo(*args
, **kwargs
):
1868 """CanRedo(self) -> bool"""
1869 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1871 def SetInsertionPoint(*args
, **kwargs
):
1872 """SetInsertionPoint(self, long pos)"""
1873 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1875 def SetInsertionPointEnd(*args
, **kwargs
):
1876 """SetInsertionPointEnd(self)"""
1877 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1879 def GetInsertionPoint(*args
, **kwargs
):
1880 """GetInsertionPoint(self) -> long"""
1881 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1883 def GetLastPosition(*args
, **kwargs
):
1884 """GetLastPosition(self) -> long"""
1885 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1887 def SetSelection(*args
, **kwargs
):
1888 """SetSelection(self, long from, long to)"""
1889 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1891 def SelectAll(*args
, **kwargs
):
1892 """SelectAll(self)"""
1893 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1895 def SetEditable(*args
, **kwargs
):
1896 """SetEditable(self, bool editable)"""
1897 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1899 def write(*args
, **kwargs
):
1900 """write(self, String text)"""
1901 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1903 def GetString(*args
, **kwargs
):
1904 """GetString(self, long from, long to) -> String"""
1905 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1907 def GetClassDefaultAttributes(*args
, **kwargs
):
1909 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1911 Get the default attributes for this class. This is useful if you want
1912 to use the same font or colour in your own control as in a standard
1913 control -- which is a much better idea than hard coding specific
1914 colours or fonts which might look completely out of place on the
1915 user's system, especially if it uses themes.
1917 The variant parameter is only relevant under Mac currently and is
1918 ignore under other platforms. Under Mac, it will change the size of
1919 the returned font. See `wx.Window.SetWindowVariant` for more about
1922 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1924 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1925 TextCtrl_swigregister
= _controls_
.TextCtrl_swigregister
1926 TextCtrl_swigregister(TextCtrl
)
1928 def PreTextCtrl(*args
, **kwargs
):
1929 """PreTextCtrl() -> TextCtrl"""
1930 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1933 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1935 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1937 Get the default attributes for this class. This is useful if you want
1938 to use the same font or colour in your own control as in a standard
1939 control -- which is a much better idea than hard coding specific
1940 colours or fonts which might look completely out of place on the
1941 user's system, especially if it uses themes.
1943 The variant parameter is only relevant under Mac currently and is
1944 ignore under other platforms. Under Mac, it will change the size of
1945 the returned font. See `wx.Window.SetWindowVariant` for more about
1948 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1950 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1951 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1952 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1953 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1954 class TextUrlEvent(_core
.CommandEvent
):
1955 """Proxy of C++ TextUrlEvent class"""
1956 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1957 __repr__
= _swig_repr
1958 def __init__(self
, *args
, **kwargs
):
1959 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1960 _controls_
.TextUrlEvent_swiginit(self
,_controls_
.new_TextUrlEvent(*args
, **kwargs
))
1961 def GetMouseEvent(*args
, **kwargs
):
1962 """GetMouseEvent(self) -> MouseEvent"""
1963 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1965 def GetURLStart(*args
, **kwargs
):
1966 """GetURLStart(self) -> long"""
1967 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1969 def GetURLEnd(*args
, **kwargs
):
1970 """GetURLEnd(self) -> long"""
1971 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1973 TextUrlEvent_swigregister
= _controls_
.TextUrlEvent_swigregister
1974 TextUrlEvent_swigregister(TextUrlEvent
)
1976 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1977 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1978 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1979 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1981 #---------------------------------------------------------------------------
1983 class ScrollBar(_core
.Control
):
1984 """Proxy of C++ ScrollBar class"""
1985 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1986 __repr__
= _swig_repr
1987 def __init__(self
, *args
, **kwargs
):
1989 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1990 Size size=DefaultSize, long style=SB_HORIZONTAL,
1991 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1993 _controls_
.ScrollBar_swiginit(self
,_controls_
.new_ScrollBar(*args
, **kwargs
))
1994 self
._setOORInfo
(self
)
1996 def Create(*args
, **kwargs
):
1998 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1999 Size size=DefaultSize, long style=SB_HORIZONTAL,
2000 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2002 Do the 2nd phase and create the GUI control.
2004 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2006 def GetThumbPosition(*args
, **kwargs
):
2007 """GetThumbPosition(self) -> int"""
2008 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2010 def GetThumbSize(*args
, **kwargs
):
2011 """GetThumbSize(self) -> int"""
2012 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2014 GetThumbLength
= GetThumbSize
2015 def GetPageSize(*args
, **kwargs
):
2016 """GetPageSize(self) -> int"""
2017 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2019 def GetRange(*args
, **kwargs
):
2020 """GetRange(self) -> int"""
2021 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2023 def IsVertical(*args
, **kwargs
):
2024 """IsVertical(self) -> bool"""
2025 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2027 def SetThumbPosition(*args
, **kwargs
):
2028 """SetThumbPosition(self, int viewStart)"""
2029 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2031 def GetClassDefaultAttributes(*args
, **kwargs
):
2033 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2035 Get the default attributes for this class. This is useful if you want
2036 to use the same font or colour in your own control as in a standard
2037 control -- which is a much better idea than hard coding specific
2038 colours or fonts which might look completely out of place on the
2039 user's system, especially if it uses themes.
2041 The variant parameter is only relevant under Mac currently and is
2042 ignore under other platforms. Under Mac, it will change the size of
2043 the returned font. See `wx.Window.SetWindowVariant` for more about
2046 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2048 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2049 ScrollBar_swigregister
= _controls_
.ScrollBar_swigregister
2050 ScrollBar_swigregister(ScrollBar
)
2051 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2053 def PreScrollBar(*args
, **kwargs
):
2054 """PreScrollBar() -> ScrollBar"""
2055 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2058 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2060 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2062 Get the default attributes for this class. This is useful if you want
2063 to use the same font or colour in your own control as in a standard
2064 control -- which is a much better idea than hard coding specific
2065 colours or fonts which might look completely out of place on the
2066 user's system, especially if it uses themes.
2068 The variant parameter is only relevant under Mac currently and is
2069 ignore under other platforms. Under Mac, it will change the size of
2070 the returned font. See `wx.Window.SetWindowVariant` for more about
2073 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2075 #---------------------------------------------------------------------------
2077 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2078 SP_VERTICAL
= _controls_
.SP_VERTICAL
2079 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2080 SP_WRAP
= _controls_
.SP_WRAP
2081 class SpinButton(_core
.Control
):
2082 """Proxy of C++ SpinButton class"""
2083 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2084 __repr__
= _swig_repr
2085 def __init__(self
, *args
, **kwargs
):
2087 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2088 Size size=DefaultSize, long style=SP_HORIZONTAL,
2089 String name=SPIN_BUTTON_NAME) -> SpinButton
2091 _controls_
.SpinButton_swiginit(self
,_controls_
.new_SpinButton(*args
, **kwargs
))
2092 self
._setOORInfo
(self
)
2094 def Create(*args
, **kwargs
):
2096 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2097 Size size=DefaultSize, long style=SP_HORIZONTAL,
2098 String name=SPIN_BUTTON_NAME) -> bool
2100 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2102 def GetValue(*args
, **kwargs
):
2103 """GetValue(self) -> int"""
2104 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2106 def GetMin(*args
, **kwargs
):
2107 """GetMin(self) -> int"""
2108 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2110 def GetMax(*args
, **kwargs
):
2111 """GetMax(self) -> int"""
2112 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2114 def SetValue(*args
, **kwargs
):
2115 """SetValue(self, int val)"""
2116 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2118 def SetMin(*args
, **kwargs
):
2119 """SetMin(self, int minVal)"""
2120 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2122 def SetMax(*args
, **kwargs
):
2123 """SetMax(self, int maxVal)"""
2124 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2126 def SetRange(*args
, **kwargs
):
2127 """SetRange(self, int minVal, int maxVal)"""
2128 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2130 def IsVertical(*args
, **kwargs
):
2131 """IsVertical(self) -> bool"""
2132 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2134 def GetClassDefaultAttributes(*args
, **kwargs
):
2136 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2138 Get the default attributes for this class. This is useful if you want
2139 to use the same font or colour in your own control as in a standard
2140 control -- which is a much better idea than hard coding specific
2141 colours or fonts which might look completely out of place on the
2142 user's system, especially if it uses themes.
2144 The variant parameter is only relevant under Mac currently and is
2145 ignore under other platforms. Under Mac, it will change the size of
2146 the returned font. See `wx.Window.SetWindowVariant` for more about
2149 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2151 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2152 SpinButton_swigregister
= _controls_
.SpinButton_swigregister
2153 SpinButton_swigregister(SpinButton
)
2154 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2155 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2157 def PreSpinButton(*args
, **kwargs
):
2158 """PreSpinButton() -> SpinButton"""
2159 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2162 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2164 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2166 Get the default attributes for this class. This is useful if you want
2167 to use the same font or colour in your own control as in a standard
2168 control -- which is a much better idea than hard coding specific
2169 colours or fonts which might look completely out of place on the
2170 user's system, especially if it uses themes.
2172 The variant parameter is only relevant under Mac currently and is
2173 ignore under other platforms. Under Mac, it will change the size of
2174 the returned font. See `wx.Window.SetWindowVariant` for more about
2177 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2179 class SpinCtrl(_core
.Control
):
2180 """Proxy of C++ SpinCtrl class"""
2181 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2182 __repr__
= _swig_repr
2183 def __init__(self
, *args
, **kwargs
):
2185 __init__(self, Window parent, int id=-1, String value=EmptyString,
2186 Point pos=DefaultPosition, Size size=DefaultSize,
2187 long style=SP_ARROW_KEYS, int min=0, int max=100,
2188 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2190 _controls_
.SpinCtrl_swiginit(self
,_controls_
.new_SpinCtrl(*args
, **kwargs
))
2191 self
._setOORInfo
(self
)
2193 def Create(*args
, **kwargs
):
2195 Create(self, Window parent, int id=-1, String value=EmptyString,
2196 Point pos=DefaultPosition, Size size=DefaultSize,
2197 long style=SP_ARROW_KEYS, int min=0, int max=100,
2198 int initial=0, String name=SpinCtrlNameStr) -> bool
2200 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2202 def GetValue(*args
, **kwargs
):
2203 """GetValue(self) -> int"""
2204 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2206 def SetValue(*args
, **kwargs
):
2207 """SetValue(self, int value)"""
2208 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2210 def SetValueString(*args
, **kwargs
):
2211 """SetValueString(self, String text)"""
2212 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2214 def SetRange(*args
, **kwargs
):
2215 """SetRange(self, int minVal, int maxVal)"""
2216 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2218 def GetMin(*args
, **kwargs
):
2219 """GetMin(self) -> int"""
2220 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2222 def GetMax(*args
, **kwargs
):
2223 """GetMax(self) -> int"""
2224 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2226 def SetSelection(*args
, **kwargs
):
2227 """SetSelection(self, long from, long to)"""
2228 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2230 def GetClassDefaultAttributes(*args
, **kwargs
):
2232 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2234 Get the default attributes for this class. This is useful if you want
2235 to use the same font or colour in your own control as in a standard
2236 control -- which is a much better idea than hard coding specific
2237 colours or fonts which might look completely out of place on the
2238 user's system, especially if it uses themes.
2240 The variant parameter is only relevant under Mac currently and is
2241 ignore under other platforms. Under Mac, it will change the size of
2242 the returned font. See `wx.Window.SetWindowVariant` for more about
2245 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2247 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2248 SpinCtrl_swigregister
= _controls_
.SpinCtrl_swigregister
2249 SpinCtrl_swigregister(SpinCtrl
)
2251 def PreSpinCtrl(*args
, **kwargs
):
2252 """PreSpinCtrl() -> SpinCtrl"""
2253 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2256 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2258 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2260 Get the default attributes for this class. This is useful if you want
2261 to use the same font or colour in your own control as in a standard
2262 control -- which is a much better idea than hard coding specific
2263 colours or fonts which might look completely out of place on the
2264 user's system, especially if it uses themes.
2266 The variant parameter is only relevant under Mac currently and is
2267 ignore under other platforms. Under Mac, it will change the size of
2268 the returned font. See `wx.Window.SetWindowVariant` for more about
2271 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2273 class SpinEvent(_core
.NotifyEvent
):
2274 """Proxy of C++ SpinEvent class"""
2275 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2276 __repr__
= _swig_repr
2277 def __init__(self
, *args
, **kwargs
):
2278 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2279 _controls_
.SpinEvent_swiginit(self
,_controls_
.new_SpinEvent(*args
, **kwargs
))
2280 def GetPosition(*args
, **kwargs
):
2281 """GetPosition(self) -> int"""
2282 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2284 def SetPosition(*args
, **kwargs
):
2285 """SetPosition(self, int pos)"""
2286 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2288 SpinEvent_swigregister
= _controls_
.SpinEvent_swigregister
2289 SpinEvent_swigregister(SpinEvent
)
2291 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2292 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2293 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2294 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2295 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2297 #---------------------------------------------------------------------------
2299 class RadioBox(_core
.Control
):
2300 """Proxy of C++ RadioBox class"""
2301 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2302 __repr__
= _swig_repr
2303 def __init__(self
, *args
, **kwargs
):
2305 __init__(self, Window parent, int id=-1, String label=EmptyString,
2306 Point pos=DefaultPosition, Size size=DefaultSize,
2307 wxArrayString choices=wxPyEmptyStringArray,
2308 int majorDimension=0, long style=RA_HORIZONTAL,
2309 Validator validator=DefaultValidator,
2310 String name=RadioBoxNameStr) -> RadioBox
2312 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2313 _controls_
.RadioBox_swiginit(self
,_controls_
.new_RadioBox(*args
, **kwargs
))
2314 self
._setOORInfo
(self
)
2316 def Create(*args
, **kwargs
):
2318 Create(self, Window parent, int id=-1, String label=EmptyString,
2319 Point pos=DefaultPosition, Size size=DefaultSize,
2320 wxArrayString choices=wxPyEmptyStringArray,
2321 int majorDimension=0, long style=RA_HORIZONTAL,
2322 Validator validator=DefaultValidator,
2323 String name=RadioBoxNameStr) -> bool
2325 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2327 def SetSelection(*args
, **kwargs
):
2328 """SetSelection(self, int n)"""
2329 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2331 def GetSelection(*args
, **kwargs
):
2332 """GetSelection(self) -> int"""
2333 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2335 def GetStringSelection(*args
, **kwargs
):
2336 """GetStringSelection(self) -> String"""
2337 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2339 def SetStringSelection(*args
, **kwargs
):
2340 """SetStringSelection(self, String s) -> bool"""
2341 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2343 def GetCount(*args
, **kwargs
):
2344 """GetCount(self) -> size_t"""
2345 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2347 def FindString(*args
, **kwargs
):
2348 """FindString(self, String s) -> int"""
2349 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2351 def GetString(*args
, **kwargs
):
2352 """GetString(self, int n) -> String"""
2353 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2355 def SetString(*args
, **kwargs
):
2356 """SetString(self, int n, String label)"""
2357 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2359 GetItemLabel
= GetString
2360 SetItemLabel
= SetString
2361 def EnableItem(*args
, **kwargs
):
2362 """EnableItem(self, unsigned int n, bool enable=True)"""
2363 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2365 def ShowItem(*args
, **kwargs
):
2366 """ShowItem(self, unsigned int n, bool show=True)"""
2367 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2369 def IsItemEnabled(*args
, **kwargs
):
2370 """IsItemEnabled(self, unsigned int n) -> bool"""
2371 return _controls_
.RadioBox_IsItemEnabled(*args
, **kwargs
)
2373 def IsItemShown(*args
, **kwargs
):
2374 """IsItemShown(self, unsigned int n) -> bool"""
2375 return _controls_
.RadioBox_IsItemShown(*args
, **kwargs
)
2377 def GetColumnCount(*args
, **kwargs
):
2378 """GetColumnCount(self) -> unsigned int"""
2379 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2381 def GetRowCount(*args
, **kwargs
):
2382 """GetRowCount(self) -> unsigned int"""
2383 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2385 def GetNextItem(*args
, **kwargs
):
2386 """GetNextItem(self, int item, int dir, long style) -> int"""
2387 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2389 def SetItemToolTip(*args
, **kwargs
):
2390 """SetItemToolTip(self, unsigned int item, String text)"""
2391 return _controls_
.RadioBox_SetItemToolTip(*args
, **kwargs
)
2393 def GetItemToolTip(*args
, **kwargs
):
2394 """GetItemToolTip(self, unsigned int item) -> ToolTip"""
2395 return _controls_
.RadioBox_GetItemToolTip(*args
, **kwargs
)
2397 def GetClassDefaultAttributes(*args
, **kwargs
):
2399 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2401 Get the default attributes for this class. This is useful if you want
2402 to use the same font or colour in your own control as in a standard
2403 control -- which is a much better idea than hard coding specific
2404 colours or fonts which might look completely out of place on the
2405 user's system, especially if it uses themes.
2407 The variant parameter is only relevant under Mac currently and is
2408 ignore under other platforms. Under Mac, it will change the size of
2409 the returned font. See `wx.Window.SetWindowVariant` for more about
2412 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2414 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2415 RadioBox_swigregister
= _controls_
.RadioBox_swigregister
2416 RadioBox_swigregister(RadioBox
)
2417 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2418 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2420 def PreRadioBox(*args
, **kwargs
):
2421 """PreRadioBox() -> RadioBox"""
2422 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2425 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2427 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2429 Get the default attributes for this class. This is useful if you want
2430 to use the same font or colour in your own control as in a standard
2431 control -- which is a much better idea than hard coding specific
2432 colours or fonts which might look completely out of place on the
2433 user's system, especially if it uses themes.
2435 The variant parameter is only relevant under Mac currently and is
2436 ignore under other platforms. Under Mac, it will change the size of
2437 the returned font. See `wx.Window.SetWindowVariant` for more about
2440 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2442 #---------------------------------------------------------------------------
2444 class RadioButton(_core
.Control
):
2445 """Proxy of C++ RadioButton class"""
2446 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2447 __repr__
= _swig_repr
2448 def __init__(self
, *args
, **kwargs
):
2450 __init__(self, Window parent, int id=-1, String label=EmptyString,
2451 Point pos=DefaultPosition, Size size=DefaultSize,
2452 long style=0, Validator validator=DefaultValidator,
2453 String name=RadioButtonNameStr) -> RadioButton
2455 _controls_
.RadioButton_swiginit(self
,_controls_
.new_RadioButton(*args
, **kwargs
))
2456 self
._setOORInfo
(self
)
2458 def Create(*args
, **kwargs
):
2460 Create(self, Window parent, int id=-1, String label=EmptyString,
2461 Point pos=DefaultPosition, Size size=DefaultSize,
2462 long style=0, Validator validator=DefaultValidator,
2463 String name=RadioButtonNameStr) -> bool
2465 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2467 def GetValue(*args
, **kwargs
):
2468 """GetValue(self) -> bool"""
2469 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2471 def SetValue(*args
, **kwargs
):
2472 """SetValue(self, bool value)"""
2473 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2475 def GetClassDefaultAttributes(*args
, **kwargs
):
2477 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2479 Get the default attributes for this class. This is useful if you want
2480 to use the same font or colour in your own control as in a standard
2481 control -- which is a much better idea than hard coding specific
2482 colours or fonts which might look completely out of place on the
2483 user's system, especially if it uses themes.
2485 The variant parameter is only relevant under Mac currently and is
2486 ignore under other platforms. Under Mac, it will change the size of
2487 the returned font. See `wx.Window.SetWindowVariant` for more about
2490 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2492 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2493 RadioButton_swigregister
= _controls_
.RadioButton_swigregister
2494 RadioButton_swigregister(RadioButton
)
2496 def PreRadioButton(*args
, **kwargs
):
2497 """PreRadioButton() -> RadioButton"""
2498 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2501 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2503 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2505 Get the default attributes for this class. This is useful if you want
2506 to use the same font or colour in your own control as in a standard
2507 control -- which is a much better idea than hard coding specific
2508 colours or fonts which might look completely out of place on the
2509 user's system, especially if it uses themes.
2511 The variant parameter is only relevant under Mac currently and is
2512 ignore under other platforms. Under Mac, it will change the size of
2513 the returned font. See `wx.Window.SetWindowVariant` for more about
2516 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2518 #---------------------------------------------------------------------------
2520 SL_HORIZONTAL
= _controls_
.SL_HORIZONTAL
2521 SL_VERTICAL
= _controls_
.SL_VERTICAL
2522 SL_TICKS
= _controls_
.SL_TICKS
2523 SL_AUTOTICKS
= _controls_
.SL_AUTOTICKS
2524 SL_LABELS
= _controls_
.SL_LABELS
2525 SL_LEFT
= _controls_
.SL_LEFT
2526 SL_TOP
= _controls_
.SL_TOP
2527 SL_RIGHT
= _controls_
.SL_RIGHT
2528 SL_BOTTOM
= _controls_
.SL_BOTTOM
2529 SL_BOTH
= _controls_
.SL_BOTH
2530 SL_SELRANGE
= _controls_
.SL_SELRANGE
2531 SL_INVERSE
= _controls_
.SL_INVERSE
2532 class Slider(_core
.Control
):
2533 """Proxy of C++ Slider class"""
2534 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2535 __repr__
= _swig_repr
2536 def __init__(self
, *args
, **kwargs
):
2538 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2539 int maxValue=100, Point pos=DefaultPosition,
2540 Size size=DefaultSize, long style=SL_HORIZONTAL,
2541 Validator validator=DefaultValidator,
2542 String name=SliderNameStr) -> Slider
2544 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2545 _controls_
.Slider_swiginit(self
,_controls_
.new_Slider(*args
, **kwargs
))
2546 self
._setOORInfo
(self
)
2548 def Create(*args
, **kwargs
):
2550 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2551 int maxValue=100, Point pos=DefaultPosition,
2552 Size size=DefaultSize, long style=SL_HORIZONTAL,
2553 Validator validator=DefaultValidator,
2554 String name=SliderNameStr) -> bool
2556 return _controls_
.Slider_Create(*args
, **kwargs
)
2558 def GetValue(*args
, **kwargs
):
2559 """GetValue(self) -> int"""
2560 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2562 def SetValue(*args
, **kwargs
):
2563 """SetValue(self, int value)"""
2564 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2566 def SetRange(*args
, **kwargs
):
2567 """SetRange(self, int minValue, int maxValue)"""
2568 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2570 def GetMin(*args
, **kwargs
):
2571 """GetMin(self) -> int"""
2572 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2574 def GetMax(*args
, **kwargs
):
2575 """GetMax(self) -> int"""
2576 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2578 def SetMin(*args
, **kwargs
):
2579 """SetMin(self, int minValue)"""
2580 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2582 def SetMax(*args
, **kwargs
):
2583 """SetMax(self, int maxValue)"""
2584 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2586 def SetLineSize(*args
, **kwargs
):
2587 """SetLineSize(self, int lineSize)"""
2588 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2590 def SetPageSize(*args
, **kwargs
):
2591 """SetPageSize(self, int pageSize)"""
2592 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2594 def GetLineSize(*args
, **kwargs
):
2595 """GetLineSize(self) -> int"""
2596 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2598 def GetPageSize(*args
, **kwargs
):
2599 """GetPageSize(self) -> int"""
2600 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2602 def SetThumbLength(*args
, **kwargs
):
2603 """SetThumbLength(self, int lenPixels)"""
2604 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2606 def GetThumbLength(*args
, **kwargs
):
2607 """GetThumbLength(self) -> int"""
2608 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2610 def SetTickFreq(*args
, **kwargs
):
2611 """SetTickFreq(self, int n, int pos=1)"""
2612 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2614 def GetTickFreq(*args
, **kwargs
):
2615 """GetTickFreq(self) -> int"""
2616 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2618 def ClearTicks(*args
, **kwargs
):
2619 """ClearTicks(self)"""
2620 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2622 def SetTick(*args
, **kwargs
):
2623 """SetTick(self, int tickPos)"""
2624 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2626 def ClearSel(*args
, **kwargs
):
2627 """ClearSel(self)"""
2628 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2630 def GetSelEnd(*args
, **kwargs
):
2631 """GetSelEnd(self) -> int"""
2632 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2634 def GetSelStart(*args
, **kwargs
):
2635 """GetSelStart(self) -> int"""
2636 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2638 def SetSelection(*args
, **kwargs
):
2639 """SetSelection(self, int min, int max)"""
2640 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2642 def GetClassDefaultAttributes(*args
, **kwargs
):
2644 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2646 Get the default attributes for this class. This is useful if you want
2647 to use the same font or colour in your own control as in a standard
2648 control -- which is a much better idea than hard coding specific
2649 colours or fonts which might look completely out of place on the
2650 user's system, especially if it uses themes.
2652 The variant parameter is only relevant under Mac currently and is
2653 ignore under other platforms. Under Mac, it will change the size of
2654 the returned font. See `wx.Window.SetWindowVariant` for more about
2657 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2659 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2660 Slider_swigregister
= _controls_
.Slider_swigregister
2661 Slider_swigregister(Slider
)
2662 SliderNameStr
= cvar
.SliderNameStr
2664 def PreSlider(*args
, **kwargs
):
2665 """PreSlider() -> Slider"""
2666 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2669 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2671 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2673 Get the default attributes for this class. This is useful if you want
2674 to use the same font or colour in your own control as in a standard
2675 control -- which is a much better idea than hard coding specific
2676 colours or fonts which might look completely out of place on the
2677 user's system, especially if it uses themes.
2679 The variant parameter is only relevant under Mac currently and is
2680 ignore under other platforms. Under Mac, it will change the size of
2681 the returned font. See `wx.Window.SetWindowVariant` for more about
2684 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2686 #---------------------------------------------------------------------------
2688 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2689 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2691 class ToggleButton(_core
.Control
):
2692 """Proxy of C++ ToggleButton class"""
2693 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2694 __repr__
= _swig_repr
2695 def __init__(self
, *args
, **kwargs
):
2697 __init__(self, Window parent, int id=-1, String label=EmptyString,
2698 Point pos=DefaultPosition, Size size=DefaultSize,
2699 long style=0, Validator validator=DefaultValidator,
2700 String name=ToggleButtonNameStr) -> ToggleButton
2702 _controls_
.ToggleButton_swiginit(self
,_controls_
.new_ToggleButton(*args
, **kwargs
))
2703 self
._setOORInfo
(self
)
2705 def Create(*args
, **kwargs
):
2707 Create(self, Window parent, int id=-1, String label=EmptyString,
2708 Point pos=DefaultPosition, Size size=DefaultSize,
2709 long style=0, Validator validator=DefaultValidator,
2710 String name=ToggleButtonNameStr) -> bool
2712 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2714 def SetValue(*args
, **kwargs
):
2715 """SetValue(self, bool value)"""
2716 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2718 def GetValue(*args
, **kwargs
):
2719 """GetValue(self) -> bool"""
2720 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2722 def GetClassDefaultAttributes(*args
, **kwargs
):
2724 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2726 Get the default attributes for this class. This is useful if you want
2727 to use the same font or colour in your own control as in a standard
2728 control -- which is a much better idea than hard coding specific
2729 colours or fonts which might look completely out of place on the
2730 user's system, especially if it uses themes.
2732 The variant parameter is only relevant under Mac currently and is
2733 ignore under other platforms. Under Mac, it will change the size of
2734 the returned font. See `wx.Window.SetWindowVariant` for more about
2737 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2739 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2740 ToggleButton_swigregister
= _controls_
.ToggleButton_swigregister
2741 ToggleButton_swigregister(ToggleButton
)
2742 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2744 def PreToggleButton(*args
, **kwargs
):
2745 """PreToggleButton() -> ToggleButton"""
2746 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2749 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2751 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2753 Get the default attributes for this class. This is useful if you want
2754 to use the same font or colour in your own control as in a standard
2755 control -- which is a much better idea than hard coding specific
2756 colours or fonts which might look completely out of place on the
2757 user's system, especially if it uses themes.
2759 The variant parameter is only relevant under Mac currently and is
2760 ignore under other platforms. Under Mac, it will change the size of
2761 the returned font. See `wx.Window.SetWindowVariant` for more about
2764 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2766 #---------------------------------------------------------------------------
2768 BK_DEFAULT
= _controls_
.BK_DEFAULT
2769 BK_TOP
= _controls_
.BK_TOP
2770 BK_BOTTOM
= _controls_
.BK_BOTTOM
2771 BK_LEFT
= _controls_
.BK_LEFT
2772 BK_RIGHT
= _controls_
.BK_RIGHT
2773 BK_ALIGN_MASK
= _controls_
.BK_ALIGN_MASK
2774 BK_BUTTONBAR
= _controls_
.BK_BUTTONBAR
2775 class BookCtrlBase(_core
.Control
):
2776 """Proxy of C++ BookCtrlBase class"""
2777 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2778 def __init__(self
): raise AttributeError, "No constructor defined"
2779 __repr__
= _swig_repr
2780 def GetPageCount(*args
, **kwargs
):
2781 """GetPageCount(self) -> size_t"""
2782 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2784 def GetPage(*args
, **kwargs
):
2785 """GetPage(self, size_t n) -> Window"""
2786 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2788 def GetCurrentPage(*args
, **kwargs
):
2789 """GetCurrentPage(self) -> Window"""
2790 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2792 def GetSelection(*args
, **kwargs
):
2793 """GetSelection(self) -> int"""
2794 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2796 def SetPageText(*args
, **kwargs
):
2797 """SetPageText(self, size_t n, String strText) -> bool"""
2798 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2800 def GetPageText(*args
, **kwargs
):
2801 """GetPageText(self, size_t n) -> String"""
2802 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2804 def SetImageList(*args
, **kwargs
):
2805 """SetImageList(self, ImageList imageList)"""
2806 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2808 def AssignImageList(*args
, **kwargs
):
2809 """AssignImageList(self, ImageList imageList)"""
2810 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2812 def GetImageList(*args
, **kwargs
):
2813 """GetImageList(self) -> ImageList"""
2814 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2816 def GetPageImage(*args
, **kwargs
):
2817 """GetPageImage(self, size_t n) -> int"""
2818 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2820 def SetPageImage(*args
, **kwargs
):
2821 """SetPageImage(self, size_t n, int imageId) -> bool"""
2822 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2824 def SetPageSize(*args
, **kwargs
):
2825 """SetPageSize(self, Size size)"""
2826 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2828 def CalcSizeFromPage(*args
, **kwargs
):
2829 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2830 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2832 def GetInternalBorder(*args
, **kwargs
):
2833 """GetInternalBorder(self) -> unsigned int"""
2834 return _controls_
.BookCtrlBase_GetInternalBorder(*args
, **kwargs
)
2836 def SetInternalBorder(*args
, **kwargs
):
2837 """SetInternalBorder(self, unsigned int internalBorder)"""
2838 return _controls_
.BookCtrlBase_SetInternalBorder(*args
, **kwargs
)
2840 def IsVertical(*args
, **kwargs
):
2841 """IsVertical(self) -> bool"""
2842 return _controls_
.BookCtrlBase_IsVertical(*args
, **kwargs
)
2844 def SetControlMargin(*args
, **kwargs
):
2845 """SetControlMargin(self, int margin)"""
2846 return _controls_
.BookCtrlBase_SetControlMargin(*args
, **kwargs
)
2848 def GetControlMargin(*args
, **kwargs
):
2849 """GetControlMargin(self) -> int"""
2850 return _controls_
.BookCtrlBase_GetControlMargin(*args
, **kwargs
)
2852 def SetFitToCurrentPage(*args
, **kwargs
):
2853 """SetFitToCurrentPage(self, bool fit)"""
2854 return _controls_
.BookCtrlBase_SetFitToCurrentPage(*args
, **kwargs
)
2856 def GetFitToCurrentPage(*args
, **kwargs
):
2857 """GetFitToCurrentPage(self) -> bool"""
2858 return _controls_
.BookCtrlBase_GetFitToCurrentPage(*args
, **kwargs
)
2860 def GetControlSizer(*args
, **kwargs
):
2861 """GetControlSizer(self) -> Sizer"""
2862 return _controls_
.BookCtrlBase_GetControlSizer(*args
, **kwargs
)
2864 def DeletePage(*args
, **kwargs
):
2865 """DeletePage(self, size_t n) -> bool"""
2866 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2868 def RemovePage(*args
, **kwargs
):
2869 """RemovePage(self, size_t n) -> bool"""
2870 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
2872 def DeleteAllPages(*args
, **kwargs
):
2873 """DeleteAllPages(self) -> bool"""
2874 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
2876 def AddPage(*args
, **kwargs
):
2877 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2878 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
2880 def InsertPage(*args
, **kwargs
):
2882 InsertPage(self, size_t n, Window page, String text, bool select=False,
2883 int imageId=-1) -> bool
2885 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
2887 def SetSelection(*args
, **kwargs
):
2888 """SetSelection(self, size_t n) -> int"""
2889 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
2891 def AdvanceSelection(*args
, **kwargs
):
2892 """AdvanceSelection(self, bool forward=True)"""
2893 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
2895 def GetClassDefaultAttributes(*args
, **kwargs
):
2897 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2899 Get the default attributes for this class. This is useful if you want
2900 to use the same font or colour in your own control as in a standard
2901 control -- which is a much better idea than hard coding specific
2902 colours or fonts which might look completely out of place on the
2903 user's system, especially if it uses themes.
2905 The variant parameter is only relevant under Mac currently and is
2906 ignore under other platforms. Under Mac, it will change the size of
2907 the returned font. See `wx.Window.SetWindowVariant` for more about
2910 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2912 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2913 BookCtrlBase_swigregister
= _controls_
.BookCtrlBase_swigregister
2914 BookCtrlBase_swigregister(BookCtrlBase
)
2915 NotebookNameStr
= cvar
.NotebookNameStr
2917 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
2919 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2921 Get the default attributes for this class. This is useful if you want
2922 to use the same font or colour in your own control as in a standard
2923 control -- which is a much better idea than hard coding specific
2924 colours or fonts which might look completely out of place on the
2925 user's system, especially if it uses themes.
2927 The variant parameter is only relevant under Mac currently and is
2928 ignore under other platforms. Under Mac, it will change the size of
2929 the returned font. See `wx.Window.SetWindowVariant` for more about
2932 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2934 class BookCtrlBaseEvent(_core
.NotifyEvent
):
2935 """Proxy of C++ BookCtrlBaseEvent class"""
2936 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2937 __repr__
= _swig_repr
2938 def __init__(self
, *args
, **kwargs
):
2940 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2941 int nOldSel=-1) -> BookCtrlBaseEvent
2943 _controls_
.BookCtrlBaseEvent_swiginit(self
,_controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
))
2944 def GetSelection(*args
, **kwargs
):
2946 GetSelection(self) -> int
2948 Returns item index for a listbox or choice selection event (not valid
2951 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
2953 def SetSelection(*args
, **kwargs
):
2954 """SetSelection(self, int nSel)"""
2955 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
2957 def GetOldSelection(*args
, **kwargs
):
2958 """GetOldSelection(self) -> int"""
2959 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
2961 def SetOldSelection(*args
, **kwargs
):
2962 """SetOldSelection(self, int nOldSel)"""
2963 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
2965 BookCtrlBaseEvent_swigregister
= _controls_
.BookCtrlBaseEvent_swigregister
2966 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 HitTest(*args
, **kwargs
):
3014 HitTest(Point pt) -> (tab, where)
3016 Returns the tab which is hit, and flags indicating where using
3017 wx.NB_HITTEST flags.
3019 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3021 def GetThemeBackgroundColour(*args
, **kwargs
):
3022 """GetThemeBackgroundColour(self) -> Colour"""
3023 return _controls_
.Notebook_GetThemeBackgroundColour(*args
, **kwargs
)
3025 def GetClassDefaultAttributes(*args
, **kwargs
):
3027 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3029 Get the default attributes for this class. This is useful if you want
3030 to use the same font or colour in your own control as in a standard
3031 control -- which is a much better idea than hard coding specific
3032 colours or fonts which might look completely out of place on the
3033 user's system, especially if it uses themes.
3035 The variant parameter is only relevant under Mac currently and is
3036 ignore under other platforms. Under Mac, it will change the size of
3037 the returned font. See `wx.Window.SetWindowVariant` for more about
3040 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3042 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3043 Notebook_swigregister
= _controls_
.Notebook_swigregister
3044 Notebook_swigregister(Notebook
)
3046 def PreNotebook(*args
, **kwargs
):
3047 """PreNotebook() -> Notebook"""
3048 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3051 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3053 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3055 Get the default attributes for this class. This is useful if you want
3056 to use the same font or colour in your own control as in a standard
3057 control -- which is a much better idea than hard coding specific
3058 colours or fonts which might look completely out of place on the
3059 user's system, especially if it uses themes.
3061 The variant parameter is only relevant under Mac currently and is
3062 ignore under other platforms. Under Mac, it will change the size of
3063 the returned font. See `wx.Window.SetWindowVariant` for more about
3066 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3068 class NotebookEvent(BookCtrlBaseEvent
):
3069 """Proxy of C++ NotebookEvent class"""
3070 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3071 __repr__
= _swig_repr
3072 def __init__(self
, *args
, **kwargs
):
3074 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3075 int nOldSel=-1) -> NotebookEvent
3077 _controls_
.NotebookEvent_swiginit(self
,_controls_
.new_NotebookEvent(*args
, **kwargs
))
3078 NotebookEvent_swigregister
= _controls_
.NotebookEvent_swigregister
3079 NotebookEvent_swigregister(NotebookEvent
)
3081 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3082 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3084 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3085 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3087 #----------------------------------------------------------------------------
3089 class NotebookPage(wx
.Panel
):
3091 There is an old (and apparently unsolvable) bug when placing a
3092 window with a nonstandard background colour in a wx.Notebook on
3093 wxGTK1, as the notbooks's background colour would always be used
3094 when the window is refreshed. The solution is to place a panel in
3095 the notbook and the coloured window on the panel, sized to cover
3096 the panel. This simple class does that for you, just put an
3097 instance of this in the notebook and make your regular window a
3098 child of this one and it will handle the resize for you.
3100 def __init__(self
, parent
, id=-1,
3101 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3102 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3103 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3105 self
.Bind(wx
.EVT_SIZE
, self
.OnSize
)
3107 def OnSize(self
, evt
):
3108 if self
.child
is None:
3109 children
= self
.GetChildren()
3111 self
.child
= children
[0]
3113 self
.child
.SetPosition((0,0))
3114 self
.child
.SetSize(self
.GetSize())
3117 #---------------------------------------------------------------------------
3119 LB_DEFAULT
= _controls_
.LB_DEFAULT
3120 LB_TOP
= _controls_
.LB_TOP
3121 LB_BOTTOM
= _controls_
.LB_BOTTOM
3122 LB_LEFT
= _controls_
.LB_LEFT
3123 LB_RIGHT
= _controls_
.LB_RIGHT
3124 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3125 class Listbook(BookCtrlBase
):
3126 """Proxy of C++ Listbook class"""
3127 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3128 __repr__
= _swig_repr
3129 def __init__(self
, *args
, **kwargs
):
3131 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3132 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3134 _controls_
.Listbook_swiginit(self
,_controls_
.new_Listbook(*args
, **kwargs
))
3135 self
._setOORInfo
(self
)
3137 def Create(*args
, **kwargs
):
3139 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3140 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3142 return _controls_
.Listbook_Create(*args
, **kwargs
)
3144 def GetListView(*args
, **kwargs
):
3145 """GetListView(self) -> ListView"""
3146 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3148 Listbook_swigregister
= _controls_
.Listbook_swigregister
3149 Listbook_swigregister(Listbook
)
3151 def PreListbook(*args
, **kwargs
):
3152 """PreListbook() -> Listbook"""
3153 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3156 class ListbookEvent(BookCtrlBaseEvent
):
3157 """Proxy of C++ ListbookEvent class"""
3158 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3159 __repr__
= _swig_repr
3160 def __init__(self
, *args
, **kwargs
):
3162 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3163 int nOldSel=-1) -> ListbookEvent
3165 _controls_
.ListbookEvent_swiginit(self
,_controls_
.new_ListbookEvent(*args
, **kwargs
))
3166 ListbookEvent_swigregister
= _controls_
.ListbookEvent_swigregister
3167 ListbookEvent_swigregister(ListbookEvent
)
3169 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3170 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3171 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3172 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3174 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3175 CHB_TOP
= _controls_
.CHB_TOP
3176 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3177 CHB_LEFT
= _controls_
.CHB_LEFT
3178 CHB_RIGHT
= _controls_
.CHB_RIGHT
3179 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3180 class Choicebook(BookCtrlBase
):
3181 """Proxy of C++ Choicebook class"""
3182 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3183 __repr__
= _swig_repr
3184 def __init__(self
, *args
, **kwargs
):
3186 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3187 long style=0, String name=EmptyString) -> Choicebook
3189 _controls_
.Choicebook_swiginit(self
,_controls_
.new_Choicebook(*args
, **kwargs
))
3190 self
._setOORInfo
(self
)
3192 def Create(*args
, **kwargs
):
3194 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3195 long style=0, String name=EmptyString) -> bool
3197 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3199 def GetChoiceCtrl(*args
, **kwargs
):
3200 """GetChoiceCtrl(self) -> Choice"""
3201 return _controls_
.Choicebook_GetChoiceCtrl(*args
, **kwargs
)
3203 Choicebook_swigregister
= _controls_
.Choicebook_swigregister
3204 Choicebook_swigregister(Choicebook
)
3206 def PreChoicebook(*args
, **kwargs
):
3207 """PreChoicebook() -> Choicebook"""
3208 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3211 class ChoicebookEvent(BookCtrlBaseEvent
):
3212 """Proxy of C++ ChoicebookEvent class"""
3213 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3214 __repr__
= _swig_repr
3215 def __init__(self
, *args
, **kwargs
):
3217 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3218 int nOldSel=-1) -> ChoicebookEvent
3220 _controls_
.ChoicebookEvent_swiginit(self
,_controls_
.new_ChoicebookEvent(*args
, **kwargs
))
3221 ChoicebookEvent_swigregister
= _controls_
.ChoicebookEvent_swigregister
3222 ChoicebookEvent_swigregister(ChoicebookEvent
)
3224 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3225 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3226 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3227 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3229 #---------------------------------------------------------------------------
3231 class Treebook(BookCtrlBase
):
3232 """Proxy of C++ Treebook class"""
3233 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3234 __repr__
= _swig_repr
3235 def __init__(self
, *args
, **kwargs
):
3237 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3238 long style=BK_DEFAULT,
3239 String name=EmptyString) -> Treebook
3241 _controls_
.Treebook_swiginit(self
,_controls_
.new_Treebook(*args
, **kwargs
))
3242 self
._setOORInfo
(self
)
3244 def Create(*args
, **kwargs
):
3246 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3247 long style=BK_DEFAULT,
3248 String name=EmptyString) -> bool
3250 return _controls_
.Treebook_Create(*args
, **kwargs
)
3252 def InsertSubPage(*args
, **kwargs
):
3254 InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
3255 int imageId=NOT_FOUND) -> bool
3257 return _controls_
.Treebook_InsertSubPage(*args
, **kwargs
)
3259 def AddSubPage(*args
, **kwargs
):
3260 """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3261 return _controls_
.Treebook_AddSubPage(*args
, **kwargs
)
3263 def IsNodeExpanded(*args
, **kwargs
):
3264 """IsNodeExpanded(self, size_t pos) -> bool"""
3265 return _controls_
.Treebook_IsNodeExpanded(*args
, **kwargs
)
3267 def ExpandNode(*args
, **kwargs
):
3268 """ExpandNode(self, size_t pos, bool expand=True) -> bool"""
3269 return _controls_
.Treebook_ExpandNode(*args
, **kwargs
)
3271 def CollapseNode(*args
, **kwargs
):
3272 """CollapseNode(self, size_t pos) -> bool"""
3273 return _controls_
.Treebook_CollapseNode(*args
, **kwargs
)
3275 def GetPageParent(*args
, **kwargs
):
3276 """GetPageParent(self, size_t pos) -> int"""
3277 return _controls_
.Treebook_GetPageParent(*args
, **kwargs
)
3279 def GetTreeCtrl(*args
, **kwargs
):
3280 """GetTreeCtrl(self) -> wxTreeCtrl"""
3281 return _controls_
.Treebook_GetTreeCtrl(*args
, **kwargs
)
3283 Treebook_swigregister
= _controls_
.Treebook_swigregister
3284 Treebook_swigregister(Treebook
)
3286 def PreTreebook(*args
, **kwargs
):
3287 """PreTreebook() -> Treebook"""
3288 val
= _controls_
.new_PreTreebook(*args
, **kwargs
)
3291 class TreebookEvent(BookCtrlBaseEvent
):
3292 """Proxy of C++ TreebookEvent class"""
3293 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3294 __repr__
= _swig_repr
3295 def __init__(self
, *args
, **kwargs
):
3297 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3298 int nOldSel=NOT_FOUND) -> TreebookEvent
3300 _controls_
.TreebookEvent_swiginit(self
,_controls_
.new_TreebookEvent(*args
, **kwargs
))
3301 TreebookEvent_swigregister
= _controls_
.TreebookEvent_swigregister
3302 TreebookEvent_swigregister(TreebookEvent
)
3304 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
3305 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
3306 wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
3307 wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
3308 EVT_TREEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
, 1 )
3309 EVT_TREEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
, 1)
3310 EVT_TREEBOOK_NODE_COLLAPSED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
, 1 )
3311 EVT_TREEBOOK_NODE_EXPANDED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
, 1 )
3313 #---------------------------------------------------------------------------
3315 class Toolbook(BookCtrlBase
):
3316 """Proxy of C++ Toolbook class"""
3317 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3318 __repr__
= _swig_repr
3319 def __init__(self
, *args
, **kwargs
):
3321 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3322 long style=BK_DEFAULT,
3323 String name=EmptyString) -> Toolbook
3325 _controls_
.Toolbook_swiginit(self
,_controls_
.new_Toolbook(*args
, **kwargs
))
3326 self
._setOORInfo
(self
)
3328 def Create(*args
, **kwargs
):
3330 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3331 long style=0, String name=wxEmptyString) -> bool
3333 return _controls_
.Toolbook_Create(*args
, **kwargs
)
3335 def GetToolBar(*args
, **kwargs
):
3336 """GetToolBar(self) -> ToolBarBase"""
3337 return _controls_
.Toolbook_GetToolBar(*args
, **kwargs
)
3339 def Realize(*args
, **kwargs
):
3341 return _controls_
.Toolbook_Realize(*args
, **kwargs
)
3343 Toolbook_swigregister
= _controls_
.Toolbook_swigregister
3344 Toolbook_swigregister(Toolbook
)
3346 def PreToolbook(*args
, **kwargs
):
3347 """PreToolbook() -> Toolbook"""
3348 val
= _controls_
.new_PreToolbook(*args
, **kwargs
)
3351 class ToolbookEvent(BookCtrlBaseEvent
):
3352 """Proxy of C++ ToolbookEvent class"""
3353 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3354 __repr__
= _swig_repr
3355 def __init__(self
, *args
, **kwargs
):
3357 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3358 int nOldSel=NOT_FOUND) -> ToolbookEvent
3360 _controls_
.ToolbookEvent_swiginit(self
,_controls_
.new_ToolbookEvent(*args
, **kwargs
))
3361 ToolbookEvent_swigregister
= _controls_
.ToolbookEvent_swigregister
3362 ToolbookEvent_swigregister(ToolbookEvent
)
3364 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
3365 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
3366 EVT_TOOLBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
, 1)
3367 EVT_TOOLBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
, 1)
3369 #---------------------------------------------------------------------------
3371 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3372 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3373 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3374 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3375 TB_VERTICAL
= _controls_
.TB_VERTICAL
3376 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3377 TB_FLAT
= _controls_
.TB_FLAT
3378 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3379 TB_NOICONS
= _controls_
.TB_NOICONS
3380 TB_TEXT
= _controls_
.TB_TEXT
3381 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3382 TB_NOALIGN
= _controls_
.TB_NOALIGN
3383 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3384 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3385 class ToolBarToolBase(_core
.Object
):
3386 """Proxy of C++ ToolBarToolBase class"""
3387 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3388 def __init__(self
): raise AttributeError, "No constructor defined"
3389 __repr__
= _swig_repr
3390 def GetId(*args
, **kwargs
):
3391 """GetId(self) -> int"""
3392 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3394 def GetControl(*args
, **kwargs
):
3395 """GetControl(self) -> Control"""
3396 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3398 def GetToolBar(*args
, **kwargs
):
3399 """GetToolBar(self) -> ToolBarBase"""
3400 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3402 def IsButton(*args
, **kwargs
):
3403 """IsButton(self) -> int"""
3404 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3406 def IsControl(*args
, **kwargs
):
3407 """IsControl(self) -> int"""
3408 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3410 def IsSeparator(*args
, **kwargs
):
3411 """IsSeparator(self) -> int"""
3412 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3414 def GetStyle(*args
, **kwargs
):
3415 """GetStyle(self) -> int"""
3416 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3418 def GetKind(*args
, **kwargs
):
3419 """GetKind(self) -> int"""
3420 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3422 def IsEnabled(*args
, **kwargs
):
3423 """IsEnabled(self) -> bool"""
3424 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3426 def IsToggled(*args
, **kwargs
):
3427 """IsToggled(self) -> bool"""
3428 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3430 def CanBeToggled(*args
, **kwargs
):
3431 """CanBeToggled(self) -> bool"""
3432 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3434 def GetNormalBitmap(*args
, **kwargs
):
3435 """GetNormalBitmap(self) -> Bitmap"""
3436 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3438 def GetDisabledBitmap(*args
, **kwargs
):
3439 """GetDisabledBitmap(self) -> Bitmap"""
3440 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3442 def GetBitmap(*args
, **kwargs
):
3443 """GetBitmap(self) -> Bitmap"""
3444 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3446 def GetLabel(*args
, **kwargs
):
3447 """GetLabel(self) -> String"""
3448 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3450 def GetShortHelp(*args
, **kwargs
):
3451 """GetShortHelp(self) -> String"""
3452 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3454 def GetLongHelp(*args
, **kwargs
):
3455 """GetLongHelp(self) -> String"""
3456 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3458 def Enable(*args
, **kwargs
):
3459 """Enable(self, bool enable) -> bool"""
3460 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3462 def Toggle(*args
, **kwargs
):
3464 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3466 def SetToggle(*args
, **kwargs
):
3467 """SetToggle(self, bool toggle) -> bool"""
3468 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3470 def SetShortHelp(*args
, **kwargs
):
3471 """SetShortHelp(self, String help) -> bool"""
3472 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3474 def SetLongHelp(*args
, **kwargs
):
3475 """SetLongHelp(self, String help) -> bool"""
3476 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3478 def SetNormalBitmap(*args
, **kwargs
):
3479 """SetNormalBitmap(self, Bitmap bmp)"""
3480 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3482 def SetDisabledBitmap(*args
, **kwargs
):
3483 """SetDisabledBitmap(self, Bitmap bmp)"""
3484 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3486 def SetLabel(*args
, **kwargs
):
3487 """SetLabel(self, String label)"""
3488 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3490 def Detach(*args
, **kwargs
):
3492 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3494 def Attach(*args
, **kwargs
):
3495 """Attach(self, ToolBarBase tbar)"""
3496 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3498 def GetClientData(*args
, **kwargs
):
3499 """GetClientData(self) -> PyObject"""
3500 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3502 def SetClientData(*args
, **kwargs
):
3503 """SetClientData(self, PyObject clientData)"""
3504 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3506 GetBitmap1
= GetNormalBitmap
3507 GetBitmap2
= GetDisabledBitmap
3508 SetBitmap1
= SetNormalBitmap
3509 SetBitmap2
= SetDisabledBitmap
3511 ToolBarToolBase_swigregister
= _controls_
.ToolBarToolBase_swigregister
3512 ToolBarToolBase_swigregister(ToolBarToolBase
)
3514 class ToolBarBase(_core
.Control
):
3515 """Proxy of C++ ToolBarBase class"""
3516 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3517 def __init__(self
): raise AttributeError, "No constructor defined"
3518 __repr__
= _swig_repr
3519 def DoAddTool(*args
, **kwargs
):
3521 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3522 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3523 String longHelp=EmptyString,
3524 PyObject clientData=None) -> ToolBarToolBase
3526 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3528 def DoInsertTool(*args
, **kwargs
):
3530 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3531 int kind=ITEM_NORMAL,
3532 String shortHelp=EmptyString, String longHelp=EmptyString,
3533 PyObject clientData=None) -> ToolBarToolBase
3535 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3537 # These match the original Add methods for this class, kept for
3538 # backwards compatibility with versions < 2.3.3.
3541 def AddTool(self
, id, bitmap
,
3542 pushedBitmap
= wx
.NullBitmap
,
3545 shortHelpString
= '',
3546 longHelpString
= '') :
3547 '''Old style method to add a tool to the toolbar.'''
3548 kind
= wx
.ITEM_NORMAL
3549 if isToggle
: kind
= wx
.ITEM_CHECK
3550 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3551 shortHelpString
, longHelpString
, clientData
)
3553 def AddSimpleTool(self
, id, bitmap
,
3554 shortHelpString
= '',
3555 longHelpString
= '',
3557 '''Old style method to add a tool to the toolbar.'''
3558 kind
= wx
.ITEM_NORMAL
3559 if isToggle
: kind
= wx
.ITEM_CHECK
3560 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3561 shortHelpString
, longHelpString
, None)
3563 def InsertTool(self
, pos
, id, bitmap
,
3564 pushedBitmap
= wx
.NullBitmap
,
3567 shortHelpString
= '',
3568 longHelpString
= ''):
3569 '''Old style method to insert a tool in the toolbar.'''
3570 kind
= wx
.ITEM_NORMAL
3571 if isToggle
: kind
= wx
.ITEM_CHECK
3572 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3573 shortHelpString
, longHelpString
, clientData
)
3575 def InsertSimpleTool(self
, pos
, id, bitmap
,
3576 shortHelpString
= '',
3577 longHelpString
= '',
3579 '''Old style method to insert a tool in the toolbar.'''
3580 kind
= wx
.ITEM_NORMAL
3581 if isToggle
: kind
= wx
.ITEM_CHECK
3582 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3583 shortHelpString
, longHelpString
, None)
3586 # The following are the new toolbar Add methods starting with
3587 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3588 # able to keep backwards compatibility with using the above
3589 # methods. Eventually these should migrate to be the methods used
3590 # primarily and lose the 'Label' in the name...
3592 def AddLabelTool(self
, id, label
, bitmap
,
3593 bmpDisabled
= wx
.NullBitmap
,
3594 kind
= wx
.ITEM_NORMAL
,
3595 shortHelp
= '', longHelp
= '',
3598 The full AddTool() function.
3600 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3601 is created and used as the disabled image.
3603 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3604 shortHelp
, longHelp
, clientData
)
3607 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3608 bmpDisabled
= wx
.NullBitmap
,
3609 kind
= wx
.ITEM_NORMAL
,
3610 shortHelp
= '', longHelp
= '',
3613 Insert the new tool at the given position, if pos == GetToolsCount(), it
3614 is equivalent to AddTool()
3616 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3617 shortHelp
, longHelp
, clientData
)
3619 def AddCheckLabelTool(self
, id, label
, bitmap
,
3620 bmpDisabled
= wx
.NullBitmap
,
3621 shortHelp
= '', longHelp
= '',
3623 '''Add a check tool, i.e. a tool which can be toggled'''
3624 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3625 shortHelp
, longHelp
, clientData
)
3627 def AddRadioLabelTool(self
, id, label
, bitmap
,
3628 bmpDisabled
= wx
.NullBitmap
,
3629 shortHelp
= '', longHelp
= '',
3632 Add a radio tool, i.e. a tool which can be toggled and releases any
3633 other toggled radio tools in the same group when it happens
3635 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3636 shortHelp
, longHelp
, clientData
)
3639 # For consistency with the backwards compatible methods above, here are
3640 # some non-'Label' versions of the Check and Radio methods
3642 def AddCheckTool(self
, id, bitmap
,
3643 bmpDisabled
= wx
.NullBitmap
,
3644 shortHelp
= '', longHelp
= '',
3646 '''Add a check tool, i.e. a tool which can be toggled'''
3647 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3648 shortHelp
, longHelp
, clientData
)
3650 def AddRadioTool(self
, id, bitmap
,
3651 bmpDisabled
= wx
.NullBitmap
,
3652 shortHelp
= '', longHelp
= '',
3655 Add a radio tool, i.e. a tool which can be toggled and releases any
3656 other toggled radio tools in the same group when it happens
3658 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3659 shortHelp
, longHelp
, clientData
)
3661 def AddToolItem(*args
, **kwargs
):
3662 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3663 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3665 def InsertToolItem(*args
, **kwargs
):
3666 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3667 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3669 def AddControl(*args
, **kwargs
):
3670 """AddControl(self, Control control) -> ToolBarToolBase"""
3671 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3673 def InsertControl(*args
, **kwargs
):
3674 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3675 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3677 def FindControl(*args
, **kwargs
):
3678 """FindControl(self, int id) -> Control"""
3679 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3681 def AddSeparator(*args
, **kwargs
):
3682 """AddSeparator(self) -> ToolBarToolBase"""
3683 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3685 def InsertSeparator(*args
, **kwargs
):
3686 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3687 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3689 def RemoveTool(*args
, **kwargs
):
3690 """RemoveTool(self, int id) -> ToolBarToolBase"""
3691 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3693 def DeleteToolByPos(*args
, **kwargs
):
3694 """DeleteToolByPos(self, size_t pos) -> bool"""
3695 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3697 def DeleteTool(*args
, **kwargs
):
3698 """DeleteTool(self, int id) -> bool"""
3699 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3701 def ClearTools(*args
, **kwargs
):
3702 """ClearTools(self)"""
3703 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3705 def Realize(*args
, **kwargs
):
3706 """Realize(self) -> bool"""
3707 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3709 def EnableTool(*args
, **kwargs
):
3710 """EnableTool(self, int id, bool enable)"""
3711 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3713 def ToggleTool(*args
, **kwargs
):
3714 """ToggleTool(self, int id, bool toggle)"""
3715 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3717 def SetToggle(*args
, **kwargs
):
3718 """SetToggle(self, int id, bool toggle)"""
3719 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3721 def GetToolClientData(*args
, **kwargs
):
3722 """GetToolClientData(self, int id) -> PyObject"""
3723 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3725 def SetToolClientData(*args
, **kwargs
):
3726 """SetToolClientData(self, int id, PyObject clientData)"""
3727 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3729 def GetToolPos(*args
, **kwargs
):
3730 """GetToolPos(self, int id) -> int"""
3731 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3733 def GetToolState(*args
, **kwargs
):
3734 """GetToolState(self, int id) -> bool"""
3735 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3737 def GetToolEnabled(*args
, **kwargs
):
3738 """GetToolEnabled(self, int id) -> bool"""
3739 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3741 def SetToolShortHelp(*args
, **kwargs
):
3742 """SetToolShortHelp(self, int id, String helpString)"""
3743 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3745 def GetToolShortHelp(*args
, **kwargs
):
3746 """GetToolShortHelp(self, int id) -> String"""
3747 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3749 def SetToolLongHelp(*args
, **kwargs
):
3750 """SetToolLongHelp(self, int id, String helpString)"""
3751 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3753 def GetToolLongHelp(*args
, **kwargs
):
3754 """GetToolLongHelp(self, int id) -> String"""
3755 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3757 def SetMarginsXY(*args
, **kwargs
):
3758 """SetMarginsXY(self, int x, int y)"""
3759 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3761 def SetMargins(*args
, **kwargs
):
3762 """SetMargins(self, Size size)"""
3763 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3765 def SetToolPacking(*args
, **kwargs
):
3766 """SetToolPacking(self, int packing)"""
3767 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3769 def SetToolSeparation(*args
, **kwargs
):
3770 """SetToolSeparation(self, int separation)"""
3771 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3773 def GetToolMargins(*args
, **kwargs
):
3774 """GetToolMargins(self) -> Size"""
3775 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3777 def GetMargins(*args
, **kwargs
):
3778 """GetMargins(self) -> Size"""
3779 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3781 def GetToolPacking(*args
, **kwargs
):
3782 """GetToolPacking(self) -> int"""
3783 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3785 def GetToolSeparation(*args
, **kwargs
):
3786 """GetToolSeparation(self) -> int"""
3787 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3789 def SetRows(*args
, **kwargs
):
3790 """SetRows(self, int nRows)"""
3791 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3793 def SetMaxRowsCols(*args
, **kwargs
):
3794 """SetMaxRowsCols(self, int rows, int cols)"""
3795 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3797 def GetMaxRows(*args
, **kwargs
):
3798 """GetMaxRows(self) -> int"""
3799 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3801 def GetMaxCols(*args
, **kwargs
):
3802 """GetMaxCols(self) -> int"""
3803 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3805 def SetToolBitmapSize(*args
, **kwargs
):
3806 """SetToolBitmapSize(self, Size size)"""
3807 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3809 def GetToolBitmapSize(*args
, **kwargs
):
3810 """GetToolBitmapSize(self) -> Size"""
3811 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3813 def GetToolSize(*args
, **kwargs
):
3814 """GetToolSize(self) -> Size"""
3815 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3817 def FindToolForPosition(*args
, **kwargs
):
3818 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3819 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3821 def FindById(*args
, **kwargs
):
3822 """FindById(self, int toolid) -> ToolBarToolBase"""
3823 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3825 def IsVertical(*args
, **kwargs
):
3826 """IsVertical(self) -> bool"""
3827 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3829 def GetToolsCount(*args
, **kwargs
):
3830 """GetToolsCount(self) -> size_t"""
3831 return _controls_
.ToolBarBase_GetToolsCount(*args
, **kwargs
)
3833 ToolBarBase_swigregister
= _controls_
.ToolBarBase_swigregister
3834 ToolBarBase_swigregister(ToolBarBase
)
3836 class ToolBar(ToolBarBase
):
3837 """Proxy of C++ ToolBar class"""
3838 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3839 __repr__
= _swig_repr
3840 def __init__(self
, *args
, **kwargs
):
3842 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3843 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3844 String name=wxPyToolBarNameStr) -> ToolBar
3846 _controls_
.ToolBar_swiginit(self
,_controls_
.new_ToolBar(*args
, **kwargs
))
3847 self
._setOORInfo
(self
)
3849 def Create(*args
, **kwargs
):
3851 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3852 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3853 String name=wxPyToolBarNameStr) -> bool
3855 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3857 def GetClassDefaultAttributes(*args
, **kwargs
):
3859 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3861 Get the default attributes for this class. This is useful if you want
3862 to use the same font or colour in your own control as in a standard
3863 control -- which is a much better idea than hard coding specific
3864 colours or fonts which might look completely out of place on the
3865 user's system, especially if it uses themes.
3867 The variant parameter is only relevant under Mac currently and is
3868 ignore under other platforms. Under Mac, it will change the size of
3869 the returned font. See `wx.Window.SetWindowVariant` for more about
3872 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3874 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3875 ToolBar_swigregister
= _controls_
.ToolBar_swigregister
3876 ToolBar_swigregister(ToolBar
)
3878 def PreToolBar(*args
, **kwargs
):
3879 """PreToolBar() -> ToolBar"""
3880 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3883 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3885 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3887 Get the default attributes for this class. This is useful if you want
3888 to use the same font or colour in your own control as in a standard
3889 control -- which is a much better idea than hard coding specific
3890 colours or fonts which might look completely out of place on the
3891 user's system, especially if it uses themes.
3893 The variant parameter is only relevant under Mac currently and is
3894 ignore under other platforms. Under Mac, it will change the size of
3895 the returned font. See `wx.Window.SetWindowVariant` for more about
3898 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3900 #---------------------------------------------------------------------------
3902 LC_VRULES
= _controls_
.LC_VRULES
3903 LC_HRULES
= _controls_
.LC_HRULES
3904 LC_ICON
= _controls_
.LC_ICON
3905 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3906 LC_LIST
= _controls_
.LC_LIST
3907 LC_REPORT
= _controls_
.LC_REPORT
3908 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3909 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3910 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3911 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3912 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3913 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3914 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3915 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3916 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3917 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3918 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3919 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3920 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3921 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3922 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3923 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3924 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3925 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3926 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3927 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3928 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3929 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3930 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3931 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3932 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3933 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3934 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3935 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3936 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3937 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3938 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3939 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3940 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3941 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3942 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3943 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3944 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3945 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3946 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3947 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3948 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3949 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3950 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3951 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3952 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3953 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3954 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3955 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3956 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3957 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3958 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3959 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3960 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3961 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3962 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3963 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3964 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3965 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3966 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3967 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3968 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3969 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3970 #---------------------------------------------------------------------------
3972 class ListItemAttr(object):
3973 """Proxy of C++ ListItemAttr class"""
3974 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3975 __repr__
= _swig_repr
3976 def __init__(self
, *args
, **kwargs
):
3978 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3979 Font font=wxNullFont) -> ListItemAttr
3981 _controls_
.ListItemAttr_swiginit(self
,_controls_
.new_ListItemAttr(*args
, **kwargs
))
3982 __swig_destroy__
= _controls_
.delete_ListItemAttr
3983 __del__
= lambda self
: None;
3984 def SetTextColour(*args
, **kwargs
):
3985 """SetTextColour(self, Colour colText)"""
3986 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3988 def SetBackgroundColour(*args
, **kwargs
):
3989 """SetBackgroundColour(self, Colour colBack)"""
3990 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3992 def SetFont(*args
, **kwargs
):
3993 """SetFont(self, Font font)"""
3994 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3996 def HasTextColour(*args
, **kwargs
):
3997 """HasTextColour(self) -> bool"""
3998 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
4000 def HasBackgroundColour(*args
, **kwargs
):
4001 """HasBackgroundColour(self) -> bool"""
4002 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
4004 def HasFont(*args
, **kwargs
):
4005 """HasFont(self) -> bool"""
4006 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4008 def GetTextColour(*args
, **kwargs
):
4009 """GetTextColour(self) -> Colour"""
4010 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4012 def GetBackgroundColour(*args
, **kwargs
):
4013 """GetBackgroundColour(self) -> Colour"""
4014 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4016 def GetFont(*args
, **kwargs
):
4017 """GetFont(self) -> Font"""
4018 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4020 def AssignFrom(*args
, **kwargs
):
4021 """AssignFrom(self, ListItemAttr source)"""
4022 return _controls_
.ListItemAttr_AssignFrom(*args
, **kwargs
)
4024 def Destroy(*args
, **kwargs
):
4026 val
= _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4030 ListItemAttr_swigregister
= _controls_
.ListItemAttr_swigregister
4031 ListItemAttr_swigregister(ListItemAttr
)
4032 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4034 #---------------------------------------------------------------------------
4036 class ListItem(_core
.Object
):
4037 """Proxy of C++ ListItem class"""
4038 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4039 __repr__
= _swig_repr
4040 def __init__(self
, *args
, **kwargs
):
4041 """__init__(self) -> ListItem"""
4042 _controls_
.ListItem_swiginit(self
,_controls_
.new_ListItem(*args
, **kwargs
))
4043 __swig_destroy__
= _controls_
.delete_ListItem
4044 __del__
= lambda self
: None;
4045 def Clear(*args
, **kwargs
):
4047 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4049 def ClearAttributes(*args
, **kwargs
):
4050 """ClearAttributes(self)"""
4051 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4053 def SetMask(*args
, **kwargs
):
4054 """SetMask(self, long mask)"""
4055 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4057 def SetId(*args
, **kwargs
):
4058 """SetId(self, long id)"""
4059 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4061 def SetColumn(*args
, **kwargs
):
4062 """SetColumn(self, int col)"""
4063 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4065 def SetState(*args
, **kwargs
):
4066 """SetState(self, long state)"""
4067 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4069 def SetStateMask(*args
, **kwargs
):
4070 """SetStateMask(self, long stateMask)"""
4071 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4073 def SetText(*args
, **kwargs
):
4074 """SetText(self, String text)"""
4075 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4077 def SetImage(*args
, **kwargs
):
4078 """SetImage(self, int image)"""
4079 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4081 def SetData(*args
, **kwargs
):
4082 """SetData(self, long data)"""
4083 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4085 def SetWidth(*args
, **kwargs
):
4086 """SetWidth(self, int width)"""
4087 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4089 def SetAlign(*args
, **kwargs
):
4090 """SetAlign(self, int align)"""
4091 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4093 def SetTextColour(*args
, **kwargs
):
4094 """SetTextColour(self, Colour colText)"""
4095 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4097 def SetBackgroundColour(*args
, **kwargs
):
4098 """SetBackgroundColour(self, Colour colBack)"""
4099 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4101 def SetFont(*args
, **kwargs
):
4102 """SetFont(self, Font font)"""
4103 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4105 def GetMask(*args
, **kwargs
):
4106 """GetMask(self) -> long"""
4107 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4109 def GetId(*args
, **kwargs
):
4110 """GetId(self) -> long"""
4111 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4113 def GetColumn(*args
, **kwargs
):
4114 """GetColumn(self) -> int"""
4115 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4117 def GetState(*args
, **kwargs
):
4118 """GetState(self) -> long"""
4119 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4121 def GetText(*args
, **kwargs
):
4122 """GetText(self) -> String"""
4123 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4125 def GetImage(*args
, **kwargs
):
4126 """GetImage(self) -> int"""
4127 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4129 def GetData(*args
, **kwargs
):
4130 """GetData(self) -> long"""
4131 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4133 def GetWidth(*args
, **kwargs
):
4134 """GetWidth(self) -> int"""
4135 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4137 def GetAlign(*args
, **kwargs
):
4138 """GetAlign(self) -> int"""
4139 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4141 def GetAttributes(*args
, **kwargs
):
4142 """GetAttributes(self) -> ListItemAttr"""
4143 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4145 def HasAttributes(*args
, **kwargs
):
4146 """HasAttributes(self) -> bool"""
4147 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4149 def GetTextColour(*args
, **kwargs
):
4150 """GetTextColour(self) -> Colour"""
4151 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4153 def GetBackgroundColour(*args
, **kwargs
):
4154 """GetBackgroundColour(self) -> Colour"""
4155 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4157 def GetFont(*args
, **kwargs
):
4158 """GetFont(self) -> Font"""
4159 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4161 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4162 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4163 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4164 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4165 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4166 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4167 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4168 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4169 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4170 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4171 ListItem_swigregister
= _controls_
.ListItem_swigregister
4172 ListItem_swigregister(ListItem
)
4174 #---------------------------------------------------------------------------
4176 class ListEvent(_core
.NotifyEvent
):
4177 """Proxy of C++ ListEvent class"""
4178 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4179 __repr__
= _swig_repr
4180 def __init__(self
, *args
, **kwargs
):
4181 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4182 _controls_
.ListEvent_swiginit(self
,_controls_
.new_ListEvent(*args
, **kwargs
))
4183 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4184 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4185 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4186 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4187 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4188 m_item
= property(_controls_
.ListEvent_m_item_get
)
4189 def GetKeyCode(*args
, **kwargs
):
4190 """GetKeyCode(self) -> int"""
4191 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4193 GetCode
= GetKeyCode
4194 def GetIndex(*args
, **kwargs
):
4195 """GetIndex(self) -> long"""
4196 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4198 def GetColumn(*args
, **kwargs
):
4199 """GetColumn(self) -> int"""
4200 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4202 def GetPoint(*args
, **kwargs
):
4203 """GetPoint(self) -> Point"""
4204 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4206 GetPosition
= GetPoint
4207 def GetLabel(*args
, **kwargs
):
4208 """GetLabel(self) -> String"""
4209 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4211 def GetText(*args
, **kwargs
):
4212 """GetText(self) -> String"""
4213 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4215 def GetImage(*args
, **kwargs
):
4216 """GetImage(self) -> int"""
4217 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4219 def GetData(*args
, **kwargs
):
4220 """GetData(self) -> long"""
4221 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4223 def GetMask(*args
, **kwargs
):
4224 """GetMask(self) -> long"""
4225 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4227 def GetItem(*args
, **kwargs
):
4228 """GetItem(self) -> ListItem"""
4229 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4231 def GetCacheFrom(*args
, **kwargs
):
4232 """GetCacheFrom(self) -> long"""
4233 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4235 def GetCacheTo(*args
, **kwargs
):
4236 """GetCacheTo(self) -> long"""
4237 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4239 def IsEditCancelled(*args
, **kwargs
):
4240 """IsEditCancelled(self) -> bool"""
4241 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4243 def SetEditCanceled(*args
, **kwargs
):
4244 """SetEditCanceled(self, bool editCancelled)"""
4245 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4247 ListEvent_swigregister
= _controls_
.ListEvent_swigregister
4248 ListEvent_swigregister(ListEvent
)
4250 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4251 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4252 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4253 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4254 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4255 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4256 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4257 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4258 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4259 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4260 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4261 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4262 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4263 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4264 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4265 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4266 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4267 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4268 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4269 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4270 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4271 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4272 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4273 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4274 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4275 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4280 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4281 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4282 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4283 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4284 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4285 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4286 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4287 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4288 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4289 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4290 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4291 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4292 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4293 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4299 #---------------------------------------------------------------------------
4301 class ListCtrl(_core
.Control
):
4302 """Proxy of C++ ListCtrl class"""
4303 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4304 __repr__
= _swig_repr
4305 def __init__(self
, *args
, **kwargs
):
4307 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4308 Size size=DefaultSize, long style=LC_ICON,
4309 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4311 _controls_
.ListCtrl_swiginit(self
,_controls_
.new_ListCtrl(*args
, **kwargs
))
4312 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4314 def Create(*args
, **kwargs
):
4316 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4317 Size size=DefaultSize, long style=LC_ICON,
4318 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4320 Do the 2nd phase and create the GUI control.
4322 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4324 def _setCallbackInfo(*args
, **kwargs
):
4325 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4326 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4328 def GetColumn(*args
, **kwargs
):
4329 """GetColumn(self, int col) -> ListItem"""
4330 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4331 if val
is not None: val
.thisown
= 1
4334 def SetColumn(*args
, **kwargs
):
4335 """SetColumn(self, int col, ListItem item) -> bool"""
4336 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4338 def GetColumnWidth(*args
, **kwargs
):
4339 """GetColumnWidth(self, int col) -> int"""
4340 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4342 def SetColumnWidth(*args
, **kwargs
):
4343 """SetColumnWidth(self, int col, int width) -> bool"""
4344 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4346 def GetCountPerPage(*args
, **kwargs
):
4347 """GetCountPerPage(self) -> int"""
4348 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4350 def GetViewRect(*args
, **kwargs
):
4351 """GetViewRect(self) -> Rect"""
4352 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4354 def GetEditControl(*args
, **kwargs
):
4355 """GetEditControl(self) -> TextCtrl"""
4356 return _controls_
.ListCtrl_GetEditControl(*args
, **kwargs
)
4358 def GetItem(*args
, **kwargs
):
4359 """GetItem(self, long itemId, int col=0) -> ListItem"""
4360 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4361 if val
is not None: val
.thisown
= 1
4364 def SetItem(*args
, **kwargs
):
4365 """SetItem(self, ListItem info) -> bool"""
4366 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4368 def SetStringItem(*args
, **kwargs
):
4369 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4370 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4372 def GetItemState(*args
, **kwargs
):
4373 """GetItemState(self, long item, long stateMask) -> int"""
4374 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4376 def SetItemState(*args
, **kwargs
):
4377 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4378 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4380 def SetItemImage(*args
, **kwargs
):
4381 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4382 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4384 def SetItemColumnImage(*args
, **kwargs
):
4385 """SetItemColumnImage(self, long item, long column, int image) -> bool"""
4386 return _controls_
.ListCtrl_SetItemColumnImage(*args
, **kwargs
)
4388 def GetItemText(*args
, **kwargs
):
4389 """GetItemText(self, long item) -> String"""
4390 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4392 def SetItemText(*args
, **kwargs
):
4393 """SetItemText(self, long item, String str)"""
4394 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4396 def GetItemData(*args
, **kwargs
):
4397 """GetItemData(self, long item) -> long"""
4398 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4400 def SetItemData(*args
, **kwargs
):
4401 """SetItemData(self, long item, long data) -> bool"""
4402 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4404 def GetItemPosition(*args
, **kwargs
):
4405 """GetItemPosition(self, long item) -> Point"""
4406 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4408 def GetItemRect(*args
, **kwargs
):
4409 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4410 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4412 def SetItemPosition(*args
, **kwargs
):
4413 """SetItemPosition(self, long item, Point pos) -> bool"""
4414 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4416 def GetItemCount(*args
, **kwargs
):
4417 """GetItemCount(self) -> int"""
4418 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4420 def GetColumnCount(*args
, **kwargs
):
4421 """GetColumnCount(self) -> int"""
4422 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4424 def GetItemSpacing(*args
, **kwargs
):
4425 """GetItemSpacing(self) -> Size"""
4426 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4428 GetItemSpacing
= wx
._deprecated
(GetItemSpacing
)
4429 def SetItemSpacing(*args
, **kwargs
):
4430 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4431 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4433 SetItemSpacing
= wx
._deprecated
(SetItemSpacing
)
4434 def GetSelectedItemCount(*args
, **kwargs
):
4435 """GetSelectedItemCount(self) -> int"""
4436 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4438 def GetTextColour(*args
, **kwargs
):
4439 """GetTextColour(self) -> Colour"""
4440 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4442 def SetTextColour(*args
, **kwargs
):
4443 """SetTextColour(self, Colour col)"""
4444 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4446 def GetTopItem(*args
, **kwargs
):
4447 """GetTopItem(self) -> long"""
4448 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4450 def SetSingleStyle(*args
, **kwargs
):
4451 """SetSingleStyle(self, long style, bool add=True)"""
4452 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4454 def GetNextItem(*args
, **kwargs
):
4455 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4456 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4458 def GetImageList(*args
, **kwargs
):
4459 """GetImageList(self, int which) -> ImageList"""
4460 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4462 def SetImageList(*args
, **kwargs
):
4463 """SetImageList(self, ImageList imageList, int which)"""
4464 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4466 def AssignImageList(*args
, **kwargs
):
4467 """AssignImageList(self, ImageList imageList, int which)"""
4468 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4470 def InReportView(*args
, **kwargs
):
4471 """InReportView(self) -> bool"""
4472 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4474 def IsVirtual(*args
, **kwargs
):
4475 """IsVirtual(self) -> bool"""
4476 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4478 def RefreshItem(*args
, **kwargs
):
4479 """RefreshItem(self, long item)"""
4480 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4482 def RefreshItems(*args
, **kwargs
):
4483 """RefreshItems(self, long itemFrom, long itemTo)"""
4484 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4486 def Arrange(*args
, **kwargs
):
4487 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4488 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4490 def DeleteItem(*args
, **kwargs
):
4491 """DeleteItem(self, long item) -> bool"""
4492 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4494 def DeleteAllItems(*args
, **kwargs
):
4495 """DeleteAllItems(self) -> bool"""
4496 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4498 def DeleteColumn(*args
, **kwargs
):
4499 """DeleteColumn(self, int col) -> bool"""
4500 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4502 def DeleteAllColumns(*args
, **kwargs
):
4503 """DeleteAllColumns(self) -> bool"""
4504 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4506 def ClearAll(*args
, **kwargs
):
4507 """ClearAll(self)"""
4508 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4510 def EditLabel(*args
, **kwargs
):
4511 """EditLabel(self, long item)"""
4512 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4514 def EnsureVisible(*args
, **kwargs
):
4515 """EnsureVisible(self, long item) -> bool"""
4516 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4518 def FindItem(*args
, **kwargs
):
4519 """FindItem(self, long start, String str, bool partial=False) -> long"""
4520 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4522 def FindItemData(*args
, **kwargs
):
4523 """FindItemData(self, long start, long data) -> long"""
4524 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4526 def FindItemAtPos(*args
, **kwargs
):
4527 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4528 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4530 def HitTest(*args
, **kwargs
):
4532 HitTest(Point point) -> (item, where)
4534 Determines which item (if any) is at the specified point, giving
4535 in the second return value (see wx.LIST_HITTEST flags.)
4537 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4539 def InsertItem(*args
, **kwargs
):
4540 """InsertItem(self, ListItem info) -> long"""
4541 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4543 def InsertStringItem(*args
, **kwargs
):
4544 """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long"""
4545 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4547 def InsertImageItem(*args
, **kwargs
):
4548 """InsertImageItem(self, long index, int imageIndex) -> long"""
4549 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4551 def InsertImageStringItem(*args
, **kwargs
):
4552 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4553 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4555 def InsertColumnItem(*args
, **kwargs
):
4556 """InsertColumnItem(self, long col, ListItem info) -> long"""
4557 return _controls_
.ListCtrl_InsertColumnItem(*args
, **kwargs
)
4559 InsertColumnInfo
= InsertColumnItem
4560 def InsertColumn(*args
, **kwargs
):
4562 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4563 int width=-1) -> long
4565 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4567 def SetItemCount(*args
, **kwargs
):
4568 """SetItemCount(self, long count)"""
4569 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4571 def ScrollList(*args
, **kwargs
):
4572 """ScrollList(self, int dx, int dy) -> bool"""
4573 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4575 def SetItemTextColour(*args
, **kwargs
):
4576 """SetItemTextColour(self, long item, Colour col)"""
4577 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4579 def GetItemTextColour(*args
, **kwargs
):
4580 """GetItemTextColour(self, long item) -> Colour"""
4581 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4583 def SetItemBackgroundColour(*args
, **kwargs
):
4584 """SetItemBackgroundColour(self, long item, Colour col)"""
4585 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4587 def GetItemBackgroundColour(*args
, **kwargs
):
4588 """GetItemBackgroundColour(self, long item) -> Colour"""
4589 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4591 def SetItemFont(*args
, **kwargs
):
4592 """SetItemFont(self, long item, Font f)"""
4593 return _controls_
.ListCtrl_SetItemFont(*args
, **kwargs
)
4595 def GetItemFont(*args
, **kwargs
):
4596 """GetItemFont(self, long item) -> Font"""
4597 return _controls_
.ListCtrl_GetItemFont(*args
, **kwargs
)
4601 def Select(self
, idx
, on
=1):
4602 '''[de]select an item'''
4603 if on
: state
= wx
.LIST_STATE_SELECTED
4605 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4607 def Focus(self
, idx
):
4608 '''Focus and show the given item'''
4609 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4610 self
.EnsureVisible(idx
)
4612 def GetFocusedItem(self
):
4613 '''get the currently focused item or -1 if none'''
4614 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4616 def GetFirstSelected(self
, *args
):
4617 '''return first selected item, or -1 when none'''
4618 return self
.GetNextSelected(-1)
4620 def GetNextSelected(self
, item
):
4621 '''return subsequent selected items, or -1 when no more'''
4622 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4624 def IsSelected(self
, idx
):
4625 '''return True if the item is selected'''
4626 return (self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) & wx
.LIST_STATE_SELECTED
) != 0
4628 def SetColumnImage(self
, col
, image
):
4629 item
= self
.GetColumn(col
)
4630 # preserve all other attributes too
4631 item
.SetMask( wx
.LIST_MASK_STATE |
4633 wx
.LIST_MASK_IMAGE |
4636 wx
.LIST_MASK_WIDTH |
4637 wx
.LIST_MASK_FORMAT
)
4638 item
.SetImage(image
)
4639 self
.SetColumn(col
, item
)
4641 def ClearColumnImage(self
, col
):
4642 self
.SetColumnImage(col
, -1)
4644 def Append(self
, entry
):
4645 '''Append an item to the list control. The entry parameter should be a
4646 sequence with an item for each column'''
4652 pos
= self
.GetItemCount()
4653 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4654 for i
in range(1, len(entry
)):
4655 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4658 def SortItems(*args
, **kwargs
):
4659 """SortItems(self, PyObject func) -> bool"""
4660 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4662 def GetMainWindow(*args
, **kwargs
):
4663 """GetMainWindow(self) -> Window"""
4664 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4666 def GetClassDefaultAttributes(*args
, **kwargs
):
4668 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4670 Get the default attributes for this class. This is useful if you want
4671 to use the same font or colour in your own control as in a standard
4672 control -- which is a much better idea than hard coding specific
4673 colours or fonts which might look completely out of place on the
4674 user's system, especially if it uses themes.
4676 The variant parameter is only relevant under Mac currently and is
4677 ignore under other platforms. Under Mac, it will change the size of
4678 the returned font. See `wx.Window.SetWindowVariant` for more about
4681 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4683 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4684 ListCtrl_swigregister
= _controls_
.ListCtrl_swigregister
4685 ListCtrl_swigregister(ListCtrl
)
4687 def PreListCtrl(*args
, **kwargs
):
4688 """PreListCtrl() -> ListCtrl"""
4689 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4692 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4694 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4696 Get the default attributes for this class. This is useful if you want
4697 to use the same font or colour in your own control as in a standard
4698 control -- which is a much better idea than hard coding specific
4699 colours or fonts which might look completely out of place on the
4700 user's system, especially if it uses themes.
4702 The variant parameter is only relevant under Mac currently and is
4703 ignore under other platforms. Under Mac, it will change the size of
4704 the returned font. See `wx.Window.SetWindowVariant` for more about
4707 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4709 #---------------------------------------------------------------------------
4711 class ListView(ListCtrl
):
4712 """Proxy of C++ ListView class"""
4713 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4714 __repr__
= _swig_repr
4715 def __init__(self
, *args
, **kwargs
):
4717 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4718 Size size=DefaultSize, long style=LC_REPORT,
4719 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4721 _controls_
.ListView_swiginit(self
,_controls_
.new_ListView(*args
, **kwargs
))
4722 self
._setOORInfo
(self
)
4724 def Create(*args
, **kwargs
):
4726 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4727 Size size=DefaultSize, long style=LC_REPORT,
4728 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4730 Do the 2nd phase and create the GUI control.
4732 return _controls_
.ListView_Create(*args
, **kwargs
)
4734 def Select(*args
, **kwargs
):
4735 """Select(self, long n, bool on=True)"""
4736 return _controls_
.ListView_Select(*args
, **kwargs
)
4738 def Focus(*args
, **kwargs
):
4739 """Focus(self, long index)"""
4740 return _controls_
.ListView_Focus(*args
, **kwargs
)
4742 def GetFocusedItem(*args
, **kwargs
):
4743 """GetFocusedItem(self) -> long"""
4744 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4746 def GetNextSelected(*args
, **kwargs
):
4747 """GetNextSelected(self, long item) -> long"""
4748 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4750 def GetFirstSelected(*args
, **kwargs
):
4751 """GetFirstSelected(self) -> long"""
4752 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4754 def IsSelected(*args
, **kwargs
):
4755 """IsSelected(self, long index) -> bool"""
4756 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4758 def SetColumnImage(*args
, **kwargs
):
4759 """SetColumnImage(self, int col, int image)"""
4760 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4762 def ClearColumnImage(*args
, **kwargs
):
4763 """ClearColumnImage(self, int col)"""
4764 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4766 ListView_swigregister
= _controls_
.ListView_swigregister
4767 ListView_swigregister(ListView
)
4769 def PreListView(*args
, **kwargs
):
4770 """PreListView() -> ListView"""
4771 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4774 #---------------------------------------------------------------------------
4776 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4777 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4778 TR_NO_LINES
= _controls_
.TR_NO_LINES
4779 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4780 TR_SINGLE
= _controls_
.TR_SINGLE
4781 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4782 TR_EXTENDED
= _controls_
.TR_EXTENDED
4783 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4784 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4785 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4786 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4787 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4788 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4789 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4792 wxTR_AQUA_BUTTONS
= 0
4794 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4795 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4796 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4797 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4798 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4799 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4800 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4801 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4802 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4803 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4804 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4805 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4806 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4807 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4808 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4809 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4810 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4811 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4812 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4813 #---------------------------------------------------------------------------
4815 class TreeItemId(object):
4816 """Proxy of C++ TreeItemId class"""
4817 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4818 __repr__
= _swig_repr
4819 def __init__(self
, *args
, **kwargs
):
4820 """__init__(self) -> TreeItemId"""
4821 _controls_
.TreeItemId_swiginit(self
,_controls_
.new_TreeItemId(*args
, **kwargs
))
4822 __swig_destroy__
= _controls_
.delete_TreeItemId
4823 __del__
= lambda self
: None;
4824 def IsOk(*args
, **kwargs
):
4825 """IsOk(self) -> bool"""
4826 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4828 def __eq__(*args
, **kwargs
):
4829 """__eq__(self, TreeItemId other) -> bool"""
4830 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4832 def __ne__(*args
, **kwargs
):
4833 """__ne__(self, TreeItemId other) -> bool"""
4834 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4836 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4838 def __nonzero__(self
): return self
.IsOk()
4839 TreeItemId_swigregister
= _controls_
.TreeItemId_swigregister
4840 TreeItemId_swigregister(TreeItemId
)
4841 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4843 class TreeItemData(object):
4844 """Proxy of C++ TreeItemData class"""
4845 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4846 __repr__
= _swig_repr
4847 def __init__(self
, *args
, **kwargs
):
4848 """__init__(self, PyObject obj=None) -> TreeItemData"""
4849 _controls_
.TreeItemData_swiginit(self
,_controls_
.new_TreeItemData(*args
, **kwargs
))
4850 __swig_destroy__
= _controls_
.delete_TreeItemData
4851 __del__
= lambda self
: None;
4852 def GetData(*args
, **kwargs
):
4853 """GetData(self) -> PyObject"""
4854 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4856 def SetData(*args
, **kwargs
):
4857 """SetData(self, PyObject obj)"""
4858 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4860 def GetId(*args
, **kwargs
):
4861 """GetId(self) -> TreeItemId"""
4862 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4864 def SetId(*args
, **kwargs
):
4865 """SetId(self, TreeItemId id)"""
4866 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4868 def Destroy(*args
, **kwargs
):
4870 val
= _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4874 TreeItemData_swigregister
= _controls_
.TreeItemData_swigregister
4875 TreeItemData_swigregister(TreeItemData
)
4877 #---------------------------------------------------------------------------
4879 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4880 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4881 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4882 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4883 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4884 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4885 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4886 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4887 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4888 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4889 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4890 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4891 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4892 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4893 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4894 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4895 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4896 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4897 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4898 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4899 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
4900 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4901 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4902 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4903 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4904 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4905 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4906 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4907 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4908 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4909 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4910 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4911 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4912 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4913 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4914 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4915 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4916 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4917 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4918 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4919 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4920 EVT_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
4922 class TreeEvent(_core
.NotifyEvent
):
4923 """Proxy of C++ TreeEvent class"""
4924 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4925 __repr__
= _swig_repr
4926 def __init__(self
, *args
, **kwargs
):
4927 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4928 _controls_
.TreeEvent_swiginit(self
,_controls_
.new_TreeEvent(*args
, **kwargs
))
4929 def GetItem(*args
, **kwargs
):
4930 """GetItem(self) -> TreeItemId"""
4931 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4933 def SetItem(*args
, **kwargs
):
4934 """SetItem(self, TreeItemId item)"""
4935 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4937 def GetOldItem(*args
, **kwargs
):
4938 """GetOldItem(self) -> TreeItemId"""
4939 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4941 def SetOldItem(*args
, **kwargs
):
4942 """SetOldItem(self, TreeItemId item)"""
4943 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4945 def GetPoint(*args
, **kwargs
):
4946 """GetPoint(self) -> Point"""
4947 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4949 def SetPoint(*args
, **kwargs
):
4950 """SetPoint(self, Point pt)"""
4951 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4953 def GetKeyEvent(*args
, **kwargs
):
4954 """GetKeyEvent(self) -> KeyEvent"""
4955 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4957 def GetKeyCode(*args
, **kwargs
):
4958 """GetKeyCode(self) -> int"""
4959 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4961 def SetKeyEvent(*args
, **kwargs
):
4962 """SetKeyEvent(self, KeyEvent evt)"""
4963 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4965 def GetLabel(*args
, **kwargs
):
4966 """GetLabel(self) -> String"""
4967 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4969 def SetLabel(*args
, **kwargs
):
4970 """SetLabel(self, String label)"""
4971 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4973 def IsEditCancelled(*args
, **kwargs
):
4974 """IsEditCancelled(self) -> bool"""
4975 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4977 def SetEditCanceled(*args
, **kwargs
):
4978 """SetEditCanceled(self, bool editCancelled)"""
4979 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4981 def SetToolTip(*args
, **kwargs
):
4982 """SetToolTip(self, String toolTip)"""
4983 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4985 def GetToolTip(*args
, **kwargs
):
4986 """GetToolTip(self) -> String"""
4987 return _controls_
.TreeEvent_GetToolTip(*args
, **kwargs
)
4989 TreeEvent_swigregister
= _controls_
.TreeEvent_swigregister
4990 TreeEvent_swigregister(TreeEvent
)
4992 #---------------------------------------------------------------------------
4994 class TreeCtrl(_core
.Control
):
4995 """Proxy of C++ TreeCtrl class"""
4996 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4997 __repr__
= _swig_repr
4998 def __init__(self
, *args
, **kwargs
):
5000 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5001 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5002 Validator validator=DefaultValidator,
5003 String name=TreeCtrlNameStr) -> TreeCtrl
5005 _controls_
.TreeCtrl_swiginit(self
,_controls_
.new_TreeCtrl(*args
, **kwargs
))
5006 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5008 def Create(*args
, **kwargs
):
5010 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5011 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5012 Validator validator=DefaultValidator,
5013 String name=TreeCtrlNameStr) -> bool
5015 Do the 2nd phase and create the GUI control.
5017 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5019 def _setCallbackInfo(*args
, **kwargs
):
5020 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5021 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5023 def GetCount(*args
, **kwargs
):
5024 """GetCount(self) -> unsigned int"""
5025 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5027 def GetIndent(*args
, **kwargs
):
5028 """GetIndent(self) -> unsigned int"""
5029 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5031 def SetIndent(*args
, **kwargs
):
5032 """SetIndent(self, unsigned int indent)"""
5033 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5035 def GetSpacing(*args
, **kwargs
):
5036 """GetSpacing(self) -> unsigned int"""
5037 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5039 def SetSpacing(*args
, **kwargs
):
5040 """SetSpacing(self, unsigned int spacing)"""
5041 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5043 def GetImageList(*args
, **kwargs
):
5044 """GetImageList(self) -> ImageList"""
5045 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5047 def GetStateImageList(*args
, **kwargs
):
5048 """GetStateImageList(self) -> ImageList"""
5049 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5051 def SetImageList(*args
, **kwargs
):
5052 """SetImageList(self, ImageList imageList)"""
5053 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5055 def SetStateImageList(*args
, **kwargs
):
5056 """SetStateImageList(self, ImageList imageList)"""
5057 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5059 def AssignImageList(*args
, **kwargs
):
5060 """AssignImageList(self, ImageList imageList)"""
5061 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5063 def AssignStateImageList(*args
, **kwargs
):
5064 """AssignStateImageList(self, ImageList imageList)"""
5065 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5067 def GetItemText(*args
, **kwargs
):
5068 """GetItemText(self, TreeItemId item) -> String"""
5069 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5071 def GetItemImage(*args
, **kwargs
):
5072 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5073 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5075 def GetItemData(*args
, **kwargs
):
5076 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5077 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5079 def GetItemPyData(*args
, **kwargs
):
5080 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5081 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5083 GetPyData
= GetItemPyData
5084 def GetItemTextColour(*args
, **kwargs
):
5085 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5086 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5088 def GetItemBackgroundColour(*args
, **kwargs
):
5089 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5090 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5092 def GetItemFont(*args
, **kwargs
):
5093 """GetItemFont(self, TreeItemId item) -> Font"""
5094 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5096 def SetItemText(*args
, **kwargs
):
5097 """SetItemText(self, TreeItemId item, String text)"""
5098 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5100 def SetItemImage(*args
, **kwargs
):
5101 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5102 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5104 def SetItemData(*args
, **kwargs
):
5105 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5106 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5108 def SetItemPyData(*args
, **kwargs
):
5109 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5110 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5112 SetPyData
= SetItemPyData
5113 def SetItemHasChildren(*args
, **kwargs
):
5114 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5115 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5117 def SetItemBold(*args
, **kwargs
):
5118 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5119 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5121 def SetItemDropHighlight(*args
, **kwargs
):
5122 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5123 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5125 def SetItemTextColour(*args
, **kwargs
):
5126 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5127 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5129 def SetItemBackgroundColour(*args
, **kwargs
):
5130 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5131 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5133 def SetItemFont(*args
, **kwargs
):
5134 """SetItemFont(self, TreeItemId item, Font font)"""
5135 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5137 def IsVisible(*args
, **kwargs
):
5138 """IsVisible(self, TreeItemId item) -> bool"""
5139 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5141 def ItemHasChildren(*args
, **kwargs
):
5142 """ItemHasChildren(self, TreeItemId item) -> bool"""
5143 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5145 def IsExpanded(*args
, **kwargs
):
5146 """IsExpanded(self, TreeItemId item) -> bool"""
5147 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5149 def IsSelected(*args
, **kwargs
):
5150 """IsSelected(self, TreeItemId item) -> bool"""
5151 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5153 def IsBold(*args
, **kwargs
):
5154 """IsBold(self, TreeItemId item) -> bool"""
5155 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5157 def GetChildrenCount(*args
, **kwargs
):
5158 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5159 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5161 def GetRootItem(*args
, **kwargs
):
5162 """GetRootItem(self) -> TreeItemId"""
5163 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5165 def GetSelection(*args
, **kwargs
):
5166 """GetSelection(self) -> TreeItemId"""
5167 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5169 def GetSelections(*args
, **kwargs
):
5170 """GetSelections(self) -> PyObject"""
5171 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5173 def GetItemParent(*args
, **kwargs
):
5174 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5175 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5177 def GetFirstChild(*args
, **kwargs
):
5178 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5179 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5181 def GetNextChild(*args
, **kwargs
):
5182 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5183 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5185 def GetLastChild(*args
, **kwargs
):
5186 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5187 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5189 def GetNextSibling(*args
, **kwargs
):
5190 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5191 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5193 def GetPrevSibling(*args
, **kwargs
):
5194 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5195 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5197 def GetFirstVisibleItem(*args
, **kwargs
):
5198 """GetFirstVisibleItem(self) -> TreeItemId"""
5199 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5201 def GetNextVisible(*args
, **kwargs
):
5202 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5203 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5205 def GetPrevVisible(*args
, **kwargs
):
5206 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5207 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5209 def AddRoot(*args
, **kwargs
):
5210 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5211 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5213 def PrependItem(*args
, **kwargs
):
5215 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5216 TreeItemData data=None) -> TreeItemId
5218 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5220 def InsertItem(*args
, **kwargs
):
5222 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5223 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5225 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5227 def InsertItemBefore(*args
, **kwargs
):
5229 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5230 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5232 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5234 def AppendItem(*args
, **kwargs
):
5236 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5237 TreeItemData data=None) -> TreeItemId
5239 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5241 def Delete(*args
, **kwargs
):
5242 """Delete(self, TreeItemId item)"""
5243 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5245 def DeleteChildren(*args
, **kwargs
):
5246 """DeleteChildren(self, TreeItemId item)"""
5247 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5249 def DeleteAllItems(*args
, **kwargs
):
5250 """DeleteAllItems(self)"""
5251 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5253 def Expand(*args
, **kwargs
):
5254 """Expand(self, TreeItemId item)"""
5255 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5257 def Collapse(*args
, **kwargs
):
5258 """Collapse(self, TreeItemId item)"""
5259 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5261 def CollapseAndReset(*args
, **kwargs
):
5262 """CollapseAndReset(self, TreeItemId item)"""
5263 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5265 def Toggle(*args
, **kwargs
):
5266 """Toggle(self, TreeItemId item)"""
5267 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5269 def Unselect(*args
, **kwargs
):
5270 """Unselect(self)"""
5271 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5273 def UnselectItem(*args
, **kwargs
):
5274 """UnselectItem(self, TreeItemId item)"""
5275 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5277 def UnselectAll(*args
, **kwargs
):
5278 """UnselectAll(self)"""
5279 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5281 def SelectItem(*args
, **kwargs
):
5282 """SelectItem(self, TreeItemId item, bool select=True)"""
5283 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5285 def ToggleItemSelection(*args
, **kwargs
):
5286 """ToggleItemSelection(self, TreeItemId item)"""
5287 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5289 def EnsureVisible(*args
, **kwargs
):
5290 """EnsureVisible(self, TreeItemId item)"""
5291 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5293 def ScrollTo(*args
, **kwargs
):
5294 """ScrollTo(self, TreeItemId item)"""
5295 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5297 def EditLabel(*args
, **kwargs
):
5298 """EditLabel(self, TreeItemId item)"""
5299 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5301 def GetEditControl(*args
, **kwargs
):
5302 """GetEditControl(self) -> TextCtrl"""
5303 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5305 def SortChildren(*args
, **kwargs
):
5306 """SortChildren(self, TreeItemId item)"""
5307 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5309 def HitTest(*args
, **kwargs
):
5311 HitTest(Point point) -> (item, where)
5313 Determine which item (if any) belongs the given point. The coordinates
5314 specified are relative to the client area of tree ctrl and the where return
5315 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5318 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5320 def GetBoundingRect(*args
, **kwargs
):
5321 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5322 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5324 def GetClassDefaultAttributes(*args
, **kwargs
):
5326 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5328 Get the default attributes for this class. This is useful if you want
5329 to use the same font or colour in your own control as in a standard
5330 control -- which is a much better idea than hard coding specific
5331 colours or fonts which might look completely out of place on the
5332 user's system, especially if it uses themes.
5334 The variant parameter is only relevant under Mac currently and is
5335 ignore under other platforms. Under Mac, it will change the size of
5336 the returned font. See `wx.Window.SetWindowVariant` for more about
5339 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5341 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5342 TreeCtrl_swigregister
= _controls_
.TreeCtrl_swigregister
5343 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 GetDefaultPath(*args
, **kwargs
):
5404 """GetDefaultPath(self) -> String"""
5405 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5407 def SetDefaultPath(*args
, **kwargs
):
5408 """SetDefaultPath(self, String path)"""
5409 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5411 def GetPath(*args
, **kwargs
):
5412 """GetPath(self) -> String"""
5413 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5415 def GetFilePath(*args
, **kwargs
):
5416 """GetFilePath(self) -> String"""
5417 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5419 def SetPath(*args
, **kwargs
):
5420 """SetPath(self, String path)"""
5421 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5423 def ShowHidden(*args
, **kwargs
):
5424 """ShowHidden(self, bool show)"""
5425 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5427 def GetShowHidden(*args
, **kwargs
):
5428 """GetShowHidden(self) -> bool"""
5429 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5431 def GetFilter(*args
, **kwargs
):
5432 """GetFilter(self) -> String"""
5433 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5435 def SetFilter(*args
, **kwargs
):
5436 """SetFilter(self, String filter)"""
5437 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5439 def GetFilterIndex(*args
, **kwargs
):
5440 """GetFilterIndex(self) -> int"""
5441 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5443 def SetFilterIndex(*args
, **kwargs
):
5444 """SetFilterIndex(self, int n)"""
5445 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5447 def GetRootId(*args
, **kwargs
):
5448 """GetRootId(self) -> TreeItemId"""
5449 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5451 def GetTreeCtrl(*args
, **kwargs
):
5452 """GetTreeCtrl(self) -> TreeCtrl"""
5453 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5455 def GetFilterListCtrl(*args
, **kwargs
):
5456 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5457 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5459 def FindChild(*args
, **kwargs
):
5461 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5463 Find the child that matches the first part of 'path'. E.g. if a child
5464 path is "/usr" and 'path' is "/usr/include" then the child for
5465 /usr is returned. If the path string has been used (we're at the
5466 leaf), done is set to True.
5469 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5471 def DoResize(*args
, **kwargs
):
5472 """DoResize(self)"""
5473 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5475 def ReCreateTree(*args
, **kwargs
):
5476 """ReCreateTree(self)"""
5477 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5479 GenericDirCtrl_swigregister
= _controls_
.GenericDirCtrl_swigregister
5480 GenericDirCtrl_swigregister(GenericDirCtrl
)
5481 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5483 def PreGenericDirCtrl(*args
, **kwargs
):
5484 """PreGenericDirCtrl() -> GenericDirCtrl"""
5485 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5488 class DirFilterListCtrl(Choice
):
5489 """Proxy of C++ DirFilterListCtrl class"""
5490 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5491 __repr__
= _swig_repr
5492 def __init__(self
, *args
, **kwargs
):
5494 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5495 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5497 _controls_
.DirFilterListCtrl_swiginit(self
,_controls_
.new_DirFilterListCtrl(*args
, **kwargs
))
5498 self
._setOORInfo
(self
)
5500 def Create(*args
, **kwargs
):
5502 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5503 Size size=DefaultSize, long style=0) -> bool
5505 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5507 def FillFilterList(*args
, **kwargs
):
5508 """FillFilterList(self, String filter, int defaultFilter)"""
5509 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5511 DirFilterListCtrl_swigregister
= _controls_
.DirFilterListCtrl_swigregister
5512 DirFilterListCtrl_swigregister(DirFilterListCtrl
)
5514 def PreDirFilterListCtrl(*args
, **kwargs
):
5515 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5516 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5519 #---------------------------------------------------------------------------
5521 class PyControl(_core
.Control
):
5522 """Proxy of C++ PyControl class"""
5523 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5524 __repr__
= _swig_repr
5525 def __init__(self
, *args
, **kwargs
):
5527 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5528 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5529 String name=ControlNameStr) -> PyControl
5531 _controls_
.PyControl_swiginit(self
,_controls_
.new_PyControl(*args
, **kwargs
))
5532 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5534 def _setCallbackInfo(*args
, **kwargs
):
5535 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5536 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5538 def SetBestSize(*args
, **kwargs
):
5539 """SetBestSize(self, Size size)"""
5540 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5542 def DoEraseBackground(*args
, **kwargs
):
5543 """DoEraseBackground(self, DC dc) -> bool"""
5544 return _controls_
.PyControl_DoEraseBackground(*args
, **kwargs
)
5546 def DoMoveWindow(*args
, **kwargs
):
5547 """DoMoveWindow(self, int x, int y, int width, int height)"""
5548 return _controls_
.PyControl_DoMoveWindow(*args
, **kwargs
)
5550 def DoSetSize(*args
, **kwargs
):
5551 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5552 return _controls_
.PyControl_DoSetSize(*args
, **kwargs
)
5554 def DoSetClientSize(*args
, **kwargs
):
5555 """DoSetClientSize(self, int width, int height)"""
5556 return _controls_
.PyControl_DoSetClientSize(*args
, **kwargs
)
5558 def DoSetVirtualSize(*args
, **kwargs
):
5559 """DoSetVirtualSize(self, int x, int y)"""
5560 return _controls_
.PyControl_DoSetVirtualSize(*args
, **kwargs
)
5562 def DoGetSize(*args
, **kwargs
):
5563 """DoGetSize() -> (width, height)"""
5564 return _controls_
.PyControl_DoGetSize(*args
, **kwargs
)
5566 def DoGetClientSize(*args
, **kwargs
):
5567 """DoGetClientSize() -> (width, height)"""
5568 return _controls_
.PyControl_DoGetClientSize(*args
, **kwargs
)
5570 def DoGetPosition(*args
, **kwargs
):
5571 """DoGetPosition() -> (x,y)"""
5572 return _controls_
.PyControl_DoGetPosition(*args
, **kwargs
)
5574 def DoGetVirtualSize(*args
, **kwargs
):
5575 """DoGetVirtualSize(self) -> Size"""
5576 return _controls_
.PyControl_DoGetVirtualSize(*args
, **kwargs
)
5578 def DoGetBestSize(*args
, **kwargs
):
5579 """DoGetBestSize(self) -> Size"""
5580 return _controls_
.PyControl_DoGetBestSize(*args
, **kwargs
)
5582 def GetDefaultAttributes(*args
, **kwargs
):
5583 """GetDefaultAttributes(self) -> VisualAttributes"""
5584 return _controls_
.PyControl_GetDefaultAttributes(*args
, **kwargs
)
5586 def OnInternalIdle(*args
, **kwargs
):
5587 """OnInternalIdle(self)"""
5588 return _controls_
.PyControl_OnInternalIdle(*args
, **kwargs
)
5590 def base_DoMoveWindow(*args
, **kw
):
5591 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
5592 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
5593 "Please use PyScrolledWindow.DoMoveWindow instead.")
5595 def base_DoSetSize(*args
, **kw
):
5596 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
5597 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
5598 "Please use PyScrolledWindow.DoSetSize instead.")
5600 def base_DoSetClientSize(*args
, **kw
):
5601 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
5602 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
5603 "Please use PyScrolledWindow.DoSetClientSize instead.")
5605 def base_DoSetVirtualSize(*args
, **kw
):
5606 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
5607 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
5608 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
5610 def base_DoGetSize(*args
, **kw
):
5611 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
5612 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
5613 "Please use PyScrolledWindow.DoGetSize instead.")
5615 def base_DoGetClientSize(*args
, **kw
):
5616 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
5617 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
5618 "Please use PyScrolledWindow.DoGetClientSize instead.")
5620 def base_DoGetPosition(*args
, **kw
):
5621 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
5622 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
5623 "Please use PyScrolledWindow.DoGetPosition instead.")
5625 def base_DoGetVirtualSize(*args
, **kw
):
5626 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
5627 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
5628 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
5630 def base_DoGetBestSize(*args
, **kw
):
5631 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
5632 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
5633 "Please use PyScrolledWindow.DoGetBestSize instead.")
5635 def base_InitDialog(*args
, **kw
):
5636 return PyScrolledWindow
.InitDialog(*args
, **kw
)
5637 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
5638 "Please use PyScrolledWindow.InitDialog instead.")
5640 def base_TransferDataToWindow(*args
, **kw
):
5641 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
5642 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
5643 "Please use PyScrolledWindow.TransferDataToWindow instead.")
5645 def base_TransferDataFromWindow(*args
, **kw
):
5646 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
5647 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
5648 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
5650 def base_Validate(*args
, **kw
):
5651 return PyScrolledWindow
.Validate(*args
, **kw
)
5652 base_Validate
= wx
._deprecated
(base_Validate
,
5653 "Please use PyScrolledWindow.Validate instead.")
5655 def base_AcceptsFocus(*args
, **kw
):
5656 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
5657 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
5658 "Please use PyScrolledWindow.AcceptsFocus instead.")
5660 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
5661 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
5662 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
5663 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
5665 def base_GetMaxSize(*args
, **kw
):
5666 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
5667 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
5668 "Please use PyScrolledWindow.GetMaxSize instead.")
5670 def base_AddChild(*args
, **kw
):
5671 return PyScrolledWindow
.AddChild(*args
, **kw
)
5672 base_AddChild
= wx
._deprecated
(base_AddChild
,
5673 "Please use PyScrolledWindow.AddChild instead.")
5675 def base_RemoveChild(*args
, **kw
):
5676 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
5677 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
5678 "Please use PyScrolledWindow.RemoveChild instead.")
5680 def base_ShouldInheritColours(*args
, **kw
):
5681 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
5682 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
5683 "Please use PyScrolledWindow.ShouldInheritColours instead.")
5685 def base_GetDefaultAttributes(*args
, **kw
):
5686 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
5687 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
5688 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
5690 def base_OnInternalIdle(*args
, **kw
):
5691 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
5692 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
5693 "Please use PyScrolledWindow.OnInternalIdle instead.")
5695 PyControl_swigregister
= _controls_
.PyControl_swigregister
5696 PyControl_swigregister(PyControl
)
5698 def PrePyControl(*args
, **kwargs
):
5699 """PrePyControl() -> PyControl"""
5700 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5703 #---------------------------------------------------------------------------
5705 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5706 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5707 wxEVT_HELP
= _controls_
.wxEVT_HELP
5708 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5709 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5710 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5711 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5712 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5714 class HelpEvent(_core
.CommandEvent
):
5716 A help event is sent when the user has requested context-sensitive
5717 help. This can either be caused by the application requesting
5718 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5719 the system generating a WM_HELP message when the user pressed F1 or
5720 clicked on the query button in a dialog caption.
5722 A help event is sent to the window that the user clicked on, and is
5723 propagated up the window hierarchy until the event is processed or
5724 there are no more event handlers. The application should call
5725 event.GetId to check the identity of the clicked-on window, and then
5726 either show some suitable help or call event.Skip if the identifier is
5727 unrecognised. Calling Skip is important because it allows wxWindows to
5728 generate further events for ancestors of the clicked-on
5729 window. Otherwise it would be impossible to show help for container
5730 windows, since processing would stop after the first window found.
5732 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5733 __repr__
= _swig_repr
5734 def __init__(self
, *args
, **kwargs
):
5735 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5736 _controls_
.HelpEvent_swiginit(self
,_controls_
.new_HelpEvent(*args
, **kwargs
))
5737 def GetPosition(*args
, **kwargs
):
5739 GetPosition(self) -> Point
5741 Returns the left-click position of the mouse, in screen
5742 coordinates. This allows the application to position the help
5745 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5747 def SetPosition(*args
, **kwargs
):
5749 SetPosition(self, Point pos)
5751 Sets the left-click position of the mouse, in screen coordinates.
5753 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5755 def GetLink(*args
, **kwargs
):
5757 GetLink(self) -> String
5759 Get an optional link to further help
5761 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5763 def SetLink(*args
, **kwargs
):
5765 SetLink(self, String link)
5767 Set an optional link to further help
5769 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5771 def GetTarget(*args
, **kwargs
):
5773 GetTarget(self) -> String
5775 Get an optional target to display help in. E.g. a window specification
5777 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5779 def SetTarget(*args
, **kwargs
):
5781 SetTarget(self, String target)
5783 Set an optional target to display help in. E.g. a window specification
5785 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5787 HelpEvent_swigregister
= _controls_
.HelpEvent_swigregister
5788 HelpEvent_swigregister(HelpEvent
)
5790 class ContextHelp(_core
.Object
):
5792 This class changes the cursor to a query and puts the application into
5793 a 'context-sensitive help mode'. When the user left-clicks on a window
5794 within the specified window, a ``EVT_HELP`` event is sent to that
5795 control, and the application may respond to it by popping up some
5798 There are a couple of ways to invoke this behaviour implicitly:
5800 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5801 (Windows only). This will put a question mark in the titlebar,
5802 and Windows will put the application into context-sensitive help
5803 mode automatically, with further programming.
5805 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5806 to create a context help object. Normally you will write your
5807 application so that this button is only added to a dialog for
5808 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5811 :see: `wx.ContextHelpButton`
5814 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5815 __repr__
= _swig_repr
5816 def __init__(self
, *args
, **kwargs
):
5818 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5820 Constructs a context help object, calling BeginContextHelp if doNow is
5823 If window is None, the top window is used.
5825 _controls_
.ContextHelp_swiginit(self
,_controls_
.new_ContextHelp(*args
, **kwargs
))
5826 __swig_destroy__
= _controls_
.delete_ContextHelp
5827 __del__
= lambda self
: None;
5828 def BeginContextHelp(*args
, **kwargs
):
5830 BeginContextHelp(self, Window window=None) -> bool
5832 Puts the application into context-sensitive help mode. window is the
5833 window which will be used to catch events; if NULL, the top window
5836 Returns true if the application was successfully put into
5837 context-sensitive help mode. This function only returns when the event
5840 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5842 def EndContextHelp(*args
, **kwargs
):
5844 EndContextHelp(self) -> bool
5846 Ends context-sensitive help mode. Not normally called by the
5849 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5851 ContextHelp_swigregister
= _controls_
.ContextHelp_swigregister
5852 ContextHelp_swigregister(ContextHelp
)
5854 class ContextHelpButton(BitmapButton
):
5856 Instances of this class may be used to add a question mark button that
5857 when pressed, puts the application into context-help mode. It does
5858 this by creating a wx.ContextHelp object which itself generates a
5859 ``EVT_HELP`` event when the user clicks on a window.
5861 On Windows, you may add a question-mark icon to a dialog by use of the
5862 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5863 will have to add a button explicitly, usually next to OK, Cancel or
5866 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5869 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5870 __repr__
= _swig_repr
5871 def __init__(self
, *args
, **kwargs
):
5873 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5874 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5876 Constructor, creating and showing a context help button.
5878 _controls_
.ContextHelpButton_swiginit(self
,_controls_
.new_ContextHelpButton(*args
, **kwargs
))
5879 self
._setOORInfo
(self
)
5881 ContextHelpButton_swigregister
= _controls_
.ContextHelpButton_swigregister
5882 ContextHelpButton_swigregister(ContextHelpButton
)
5884 class HelpProvider(object):
5886 wx.HelpProvider is an abstract class used by a program
5887 implementing context-sensitive help to show the help text for the
5890 The current help provider must be explicitly set by the
5891 application using wx.HelpProvider.Set().
5893 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5894 def __init__(self
): raise AttributeError, "No constructor defined"
5895 __repr__
= _swig_repr
5896 __swig_destroy__
= _controls_
.delete_HelpProvider
5897 __del__
= lambda self
: None;
5898 def Set(*args
, **kwargs
):
5900 Set(HelpProvider helpProvider) -> HelpProvider
5902 Sset the current, application-wide help provider. Returns the previous
5903 one. Unlike some other classes, the help provider is not created on
5904 demand. This must be explicitly done by the application.
5906 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5908 Set
= staticmethod(Set
)
5909 def Get(*args
, **kwargs
):
5911 Get() -> HelpProvider
5913 Return the current application-wide help provider.
5915 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5917 Get
= staticmethod(Get
)
5918 def GetHelp(*args
, **kwargs
):
5920 GetHelp(self, Window window) -> String
5922 Gets the help string for this window. Its interpretation is dependent
5923 on the help provider except that empty string always means that no
5924 help is associated with the window.
5926 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5928 def ShowHelp(*args
, **kwargs
):
5930 ShowHelp(self, Window window) -> bool
5932 Shows help for the given window. Uses GetHelp internally if
5933 applicable. Returns True if it was done, or False if no help was
5934 available for this window.
5936 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5938 def AddHelp(*args
, **kwargs
):
5940 AddHelp(self, Window window, String text)
5942 Associates the text with the given window.
5944 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5946 def AddHelpById(*args
, **kwargs
):
5948 AddHelpById(self, int id, String text)
5950 This version associates the given text with all windows with this
5951 id. May be used to set the same help string for all Cancel buttons in
5952 the application, for example.
5954 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5956 def RemoveHelp(*args
, **kwargs
):
5958 RemoveHelp(self, Window window)
5960 Removes the association between the window pointer and the help
5961 text. This is called by the wx.Window destructor. Without this, the
5962 table of help strings will fill up and when window pointers are
5963 reused, the wrong help string will be found.
5965 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5967 def Destroy(*args
, **kwargs
):
5969 val
= _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5973 HelpProvider_swigregister
= _controls_
.HelpProvider_swigregister
5974 HelpProvider_swigregister(HelpProvider
)
5976 def HelpProvider_Set(*args
, **kwargs
):
5978 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5980 Sset the current, application-wide help provider. Returns the previous
5981 one. Unlike some other classes, the help provider is not created on
5982 demand. This must be explicitly done by the application.
5984 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5986 def HelpProvider_Get(*args
):
5988 HelpProvider_Get() -> HelpProvider
5990 Return the current application-wide help provider.
5992 return _controls_
.HelpProvider_Get(*args
)
5994 class SimpleHelpProvider(HelpProvider
):
5996 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5997 supports only plain text help strings, and shows the string associated
5998 with the control (if any) in a tooltip.
6000 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6001 __repr__
= _swig_repr
6002 def __init__(self
, *args
, **kwargs
):
6004 __init__(self) -> SimpleHelpProvider
6006 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6007 supports only plain text help strings, and shows the string associated
6008 with the control (if any) in a tooltip.
6010 _controls_
.SimpleHelpProvider_swiginit(self
,_controls_
.new_SimpleHelpProvider(*args
, **kwargs
))
6011 SimpleHelpProvider_swigregister
= _controls_
.SimpleHelpProvider_swigregister
6012 SimpleHelpProvider_swigregister(SimpleHelpProvider
)
6014 #---------------------------------------------------------------------------
6016 class DragImage(_core
.Object
):
6017 """Proxy of C++ DragImage class"""
6018 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6019 __repr__
= _swig_repr
6020 def __init__(self
, *args
, **kwargs
):
6021 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6022 _controls_
.DragImage_swiginit(self
,_controls_
.new_DragImage(*args
, **kwargs
))
6023 __swig_destroy__
= _controls_
.delete_DragImage
6024 __del__
= lambda self
: None;
6025 def SetBackingBitmap(*args
, **kwargs
):
6026 """SetBackingBitmap(self, Bitmap bitmap)"""
6027 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6029 def BeginDrag(*args
, **kwargs
):
6031 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6032 Rect rect=None) -> bool
6034 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6036 def BeginDragBounded(*args
, **kwargs
):
6037 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6038 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6040 def EndDrag(*args
, **kwargs
):
6041 """EndDrag(self) -> bool"""
6042 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6044 def Move(*args
, **kwargs
):
6045 """Move(self, Point pt) -> bool"""
6046 return _controls_
.DragImage_Move(*args
, **kwargs
)
6048 def Show(*args
, **kwargs
):
6049 """Show(self) -> bool"""
6050 return _controls_
.DragImage_Show(*args
, **kwargs
)
6052 def Hide(*args
, **kwargs
):
6053 """Hide(self) -> bool"""
6054 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6056 def GetImageRect(*args
, **kwargs
):
6057 """GetImageRect(self, Point pos) -> Rect"""
6058 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6060 def DoDrawImage(*args
, **kwargs
):
6061 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6062 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6064 def UpdateBackingFromWindow(*args
, **kwargs
):
6065 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6066 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6068 def RedrawImage(*args
, **kwargs
):
6069 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6070 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6072 DragImage_swigregister
= _controls_
.DragImage_swigregister
6073 DragImage_swigregister(DragImage
)
6075 def DragIcon(*args
, **kwargs
):
6076 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6077 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6080 def DragString(*args
, **kwargs
):
6081 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6082 val
= _controls_
.new_DragString(*args
, **kwargs
)
6085 def DragTreeItem(*args
, **kwargs
):
6086 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6087 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6090 def DragListItem(*args
, **kwargs
):
6091 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6092 val
= _controls_
.new_DragListItem(*args
, **kwargs
)
6095 #---------------------------------------------------------------------------
6097 DP_DEFAULT
= _controls_
.DP_DEFAULT
6098 DP_SPIN
= _controls_
.DP_SPIN
6099 DP_DROPDOWN
= _controls_
.DP_DROPDOWN
6100 DP_SHOWCENTURY
= _controls_
.DP_SHOWCENTURY
6101 DP_ALLOWNONE
= _controls_
.DP_ALLOWNONE
6102 class DatePickerCtrl(_core
.Control
):
6104 This control allows the user to select a date. Unlike
6105 `wx.calendar.CalendarCtrl`, which is a relatively big control,
6106 `wx.DatePickerCtrl` is implemented as a small window showing the
6107 currently selected date. The control can be edited using the keyboard,
6108 and can also display a popup window for more user-friendly date
6109 selection, depending on the styles used and the platform.
6111 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6112 __repr__
= _swig_repr
6113 def __init__(self
, *args
, **kwargs
):
6115 __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6116 Point pos=DefaultPosition, Size size=DefaultSize,
6117 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6118 Validator validator=DefaultValidator,
6119 String name=DatePickerCtrlNameStr) -> DatePickerCtrl
6121 Create a new DatePickerCtrl.
6123 _controls_
.DatePickerCtrl_swiginit(self
,_controls_
.new_DatePickerCtrl(*args
, **kwargs
))
6124 self
._setOORInfo
(self
)
6126 def Create(*args
, **kwargs
):
6128 Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6129 Point pos=DefaultPosition, Size size=DefaultSize,
6130 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6131 Validator validator=DefaultValidator,
6132 String name=DatePickerCtrlNameStr) -> bool
6134 Create the GUI parts of the DatePickerCtrl, for use in 2-phase
6137 return _controls_
.DatePickerCtrl_Create(*args
, **kwargs
)
6139 def SetValue(*args
, **kwargs
):
6141 SetValue(self, DateTime dt)
6143 Changes the current value of the control. The date should be valid and
6144 included in the currently selected range, if any.
6146 Calling this method does not result in a date change event.
6148 return _controls_
.DatePickerCtrl_SetValue(*args
, **kwargs
)
6150 def GetValue(*args
, **kwargs
):
6152 GetValue(self) -> DateTime
6154 Returns the currently selected date. If there is no selection or the
6155 selection is outside of the current range, an invalid `wx.DateTime`
6158 return _controls_
.DatePickerCtrl_GetValue(*args
, **kwargs
)
6160 def SetRange(*args
, **kwargs
):
6162 SetRange(self, DateTime dt1, DateTime dt2)
6164 Sets the valid range for the date selection. If dt1 is valid, it
6165 becomes the earliest date (inclusive) accepted by the control. If dt2
6166 is valid, it becomes the latest possible date.
6168 If the current value of the control is outside of the newly set range
6169 bounds, the behaviour is undefined.
6171 return _controls_
.DatePickerCtrl_SetRange(*args
, **kwargs
)
6173 def GetLowerLimit(*args
, **kwargs
):
6175 GetLowerLimit(self) -> DateTime
6177 Get the lower limit of the valid range for the date selection, if any.
6178 If there is no range or there is no lower limit, then the
6179 `wx.DateTime` value returned will be invalid.
6181 return _controls_
.DatePickerCtrl_GetLowerLimit(*args
, **kwargs
)
6183 def GetUpperLimit(*args
, **kwargs
):
6185 GetUpperLimit(self) -> DateTime
6187 Get the upper limit of the valid range for the date selection, if any.
6188 If there is no range or there is no upper limit, then the
6189 `wx.DateTime` value returned will be invalid.
6191 return _controls_
.DatePickerCtrl_GetUpperLimit(*args
, **kwargs
)
6193 DatePickerCtrl_swigregister
= _controls_
.DatePickerCtrl_swigregister
6194 DatePickerCtrl_swigregister(DatePickerCtrl
)
6195 DatePickerCtrlNameStr
= cvar
.DatePickerCtrlNameStr
6197 def PreDatePickerCtrl(*args
, **kwargs
):
6199 PreDatePickerCtrl() -> DatePickerCtrl
6201 Precreate a DatePickerCtrl for use in 2-phase creation.
6203 val
= _controls_
.new_PreDatePickerCtrl(*args
, **kwargs
)