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(Choice
):
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 ShowNativeCaret(*args
, **kwargs
):
1900 """ShowNativeCaret(self, bool show=True) -> bool"""
1901 return _controls_
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1903 def HideNativeCaret(*args
, **kwargs
):
1904 """HideNativeCaret(self) -> bool"""
1905 return _controls_
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1907 def write(*args
, **kwargs
):
1908 """write(self, String text)"""
1909 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1911 def GetString(*args
, **kwargs
):
1912 """GetString(self, long from, long to) -> String"""
1913 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1915 def GetClassDefaultAttributes(*args
, **kwargs
):
1917 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1919 Get the default attributes for this class. This is useful if you want
1920 to use the same font or colour in your own control as in a standard
1921 control -- which is a much better idea than hard coding specific
1922 colours or fonts which might look completely out of place on the
1923 user's system, especially if it uses themes.
1925 The variant parameter is only relevant under Mac currently and is
1926 ignore under other platforms. Under Mac, it will change the size of
1927 the returned font. See `wx.Window.SetWindowVariant` for more about
1930 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1932 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1933 TextCtrl_swigregister
= _controls_
.TextCtrl_swigregister
1934 TextCtrl_swigregister(TextCtrl
)
1936 def PreTextCtrl(*args
, **kwargs
):
1937 """PreTextCtrl() -> TextCtrl"""
1938 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1941 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1943 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1945 Get the default attributes for this class. This is useful if you want
1946 to use the same font or colour in your own control as in a standard
1947 control -- which is a much better idea than hard coding specific
1948 colours or fonts which might look completely out of place on the
1949 user's system, especially if it uses themes.
1951 The variant parameter is only relevant under Mac currently and is
1952 ignore under other platforms. Under Mac, it will change the size of
1953 the returned font. See `wx.Window.SetWindowVariant` for more about
1956 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1958 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1959 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1960 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1961 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1962 class TextUrlEvent(_core
.CommandEvent
):
1963 """Proxy of C++ TextUrlEvent class"""
1964 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1965 __repr__
= _swig_repr
1966 def __init__(self
, *args
, **kwargs
):
1967 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1968 _controls_
.TextUrlEvent_swiginit(self
,_controls_
.new_TextUrlEvent(*args
, **kwargs
))
1969 def GetMouseEvent(*args
, **kwargs
):
1970 """GetMouseEvent(self) -> MouseEvent"""
1971 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1973 def GetURLStart(*args
, **kwargs
):
1974 """GetURLStart(self) -> long"""
1975 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1977 def GetURLEnd(*args
, **kwargs
):
1978 """GetURLEnd(self) -> long"""
1979 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1981 TextUrlEvent_swigregister
= _controls_
.TextUrlEvent_swigregister
1982 TextUrlEvent_swigregister(TextUrlEvent
)
1984 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1985 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1986 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1987 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1989 #---------------------------------------------------------------------------
1991 class ScrollBar(_core
.Control
):
1992 """Proxy of C++ ScrollBar class"""
1993 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1994 __repr__
= _swig_repr
1995 def __init__(self
, *args
, **kwargs
):
1997 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1998 Size size=DefaultSize, long style=SB_HORIZONTAL,
1999 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
2001 _controls_
.ScrollBar_swiginit(self
,_controls_
.new_ScrollBar(*args
, **kwargs
))
2002 self
._setOORInfo
(self
)
2004 def Create(*args
, **kwargs
):
2006 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2007 Size size=DefaultSize, long style=SB_HORIZONTAL,
2008 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2010 Do the 2nd phase and create the GUI control.
2012 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2014 def GetThumbPosition(*args
, **kwargs
):
2015 """GetThumbPosition(self) -> int"""
2016 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2018 def GetThumbSize(*args
, **kwargs
):
2019 """GetThumbSize(self) -> int"""
2020 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2022 GetThumbLength
= GetThumbSize
2023 def GetPageSize(*args
, **kwargs
):
2024 """GetPageSize(self) -> int"""
2025 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2027 def GetRange(*args
, **kwargs
):
2028 """GetRange(self) -> int"""
2029 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2031 def IsVertical(*args
, **kwargs
):
2032 """IsVertical(self) -> bool"""
2033 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2035 def SetThumbPosition(*args
, **kwargs
):
2036 """SetThumbPosition(self, int viewStart)"""
2037 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2039 def GetClassDefaultAttributes(*args
, **kwargs
):
2041 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2043 Get the default attributes for this class. This is useful if you want
2044 to use the same font or colour in your own control as in a standard
2045 control -- which is a much better idea than hard coding specific
2046 colours or fonts which might look completely out of place on the
2047 user's system, especially if it uses themes.
2049 The variant parameter is only relevant under Mac currently and is
2050 ignore under other platforms. Under Mac, it will change the size of
2051 the returned font. See `wx.Window.SetWindowVariant` for more about
2054 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2056 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2057 ScrollBar_swigregister
= _controls_
.ScrollBar_swigregister
2058 ScrollBar_swigregister(ScrollBar
)
2059 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2061 def PreScrollBar(*args
, **kwargs
):
2062 """PreScrollBar() -> ScrollBar"""
2063 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2066 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2068 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2070 Get the default attributes for this class. This is useful if you want
2071 to use the same font or colour in your own control as in a standard
2072 control -- which is a much better idea than hard coding specific
2073 colours or fonts which might look completely out of place on the
2074 user's system, especially if it uses themes.
2076 The variant parameter is only relevant under Mac currently and is
2077 ignore under other platforms. Under Mac, it will change the size of
2078 the returned font. See `wx.Window.SetWindowVariant` for more about
2081 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2083 #---------------------------------------------------------------------------
2085 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2086 SP_VERTICAL
= _controls_
.SP_VERTICAL
2087 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2088 SP_WRAP
= _controls_
.SP_WRAP
2089 class SpinButton(_core
.Control
):
2090 """Proxy of C++ SpinButton class"""
2091 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2092 __repr__
= _swig_repr
2093 def __init__(self
, *args
, **kwargs
):
2095 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2096 Size size=DefaultSize, long style=SP_HORIZONTAL,
2097 String name=SPIN_BUTTON_NAME) -> SpinButton
2099 _controls_
.SpinButton_swiginit(self
,_controls_
.new_SpinButton(*args
, **kwargs
))
2100 self
._setOORInfo
(self
)
2102 def Create(*args
, **kwargs
):
2104 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2105 Size size=DefaultSize, long style=SP_HORIZONTAL,
2106 String name=SPIN_BUTTON_NAME) -> bool
2108 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2110 def GetValue(*args
, **kwargs
):
2111 """GetValue(self) -> int"""
2112 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2114 def GetMin(*args
, **kwargs
):
2115 """GetMin(self) -> int"""
2116 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2118 def GetMax(*args
, **kwargs
):
2119 """GetMax(self) -> int"""
2120 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2122 def SetValue(*args
, **kwargs
):
2123 """SetValue(self, int val)"""
2124 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2126 def SetMin(*args
, **kwargs
):
2127 """SetMin(self, int minVal)"""
2128 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2130 def SetMax(*args
, **kwargs
):
2131 """SetMax(self, int maxVal)"""
2132 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2134 def SetRange(*args
, **kwargs
):
2135 """SetRange(self, int minVal, int maxVal)"""
2136 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2138 def IsVertical(*args
, **kwargs
):
2139 """IsVertical(self) -> bool"""
2140 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2142 def GetClassDefaultAttributes(*args
, **kwargs
):
2144 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2146 Get the default attributes for this class. This is useful if you want
2147 to use the same font or colour in your own control as in a standard
2148 control -- which is a much better idea than hard coding specific
2149 colours or fonts which might look completely out of place on the
2150 user's system, especially if it uses themes.
2152 The variant parameter is only relevant under Mac currently and is
2153 ignore under other platforms. Under Mac, it will change the size of
2154 the returned font. See `wx.Window.SetWindowVariant` for more about
2157 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2159 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2160 SpinButton_swigregister
= _controls_
.SpinButton_swigregister
2161 SpinButton_swigregister(SpinButton
)
2162 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2163 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2165 def PreSpinButton(*args
, **kwargs
):
2166 """PreSpinButton() -> SpinButton"""
2167 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2170 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2172 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2174 Get the default attributes for this class. This is useful if you want
2175 to use the same font or colour in your own control as in a standard
2176 control -- which is a much better idea than hard coding specific
2177 colours or fonts which might look completely out of place on the
2178 user's system, especially if it uses themes.
2180 The variant parameter is only relevant under Mac currently and is
2181 ignore under other platforms. Under Mac, it will change the size of
2182 the returned font. See `wx.Window.SetWindowVariant` for more about
2185 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2187 class SpinCtrl(_core
.Control
):
2188 """Proxy of C++ SpinCtrl class"""
2189 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2190 __repr__
= _swig_repr
2191 def __init__(self
, *args
, **kwargs
):
2193 __init__(self, Window parent, int id=-1, String value=EmptyString,
2194 Point pos=DefaultPosition, Size size=DefaultSize,
2195 long style=SP_ARROW_KEYS, int min=0, int max=100,
2196 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2198 _controls_
.SpinCtrl_swiginit(self
,_controls_
.new_SpinCtrl(*args
, **kwargs
))
2199 self
._setOORInfo
(self
)
2201 def Create(*args
, **kwargs
):
2203 Create(self, Window parent, int id=-1, String value=EmptyString,
2204 Point pos=DefaultPosition, Size size=DefaultSize,
2205 long style=SP_ARROW_KEYS, int min=0, int max=100,
2206 int initial=0, String name=SpinCtrlNameStr) -> bool
2208 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2210 def GetValue(*args
, **kwargs
):
2211 """GetValue(self) -> int"""
2212 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2214 def SetValue(*args
, **kwargs
):
2215 """SetValue(self, int value)"""
2216 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2218 def SetValueString(*args
, **kwargs
):
2219 """SetValueString(self, String text)"""
2220 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2222 def SetRange(*args
, **kwargs
):
2223 """SetRange(self, int minVal, int maxVal)"""
2224 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2226 def GetMin(*args
, **kwargs
):
2227 """GetMin(self) -> int"""
2228 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2230 def GetMax(*args
, **kwargs
):
2231 """GetMax(self) -> int"""
2232 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2234 def SetSelection(*args
, **kwargs
):
2235 """SetSelection(self, long from, long to)"""
2236 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2238 def GetClassDefaultAttributes(*args
, **kwargs
):
2240 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2242 Get the default attributes for this class. This is useful if you want
2243 to use the same font or colour in your own control as in a standard
2244 control -- which is a much better idea than hard coding specific
2245 colours or fonts which might look completely out of place on the
2246 user's system, especially if it uses themes.
2248 The variant parameter is only relevant under Mac currently and is
2249 ignore under other platforms. Under Mac, it will change the size of
2250 the returned font. See `wx.Window.SetWindowVariant` for more about
2253 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2255 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2256 SpinCtrl_swigregister
= _controls_
.SpinCtrl_swigregister
2257 SpinCtrl_swigregister(SpinCtrl
)
2259 def PreSpinCtrl(*args
, **kwargs
):
2260 """PreSpinCtrl() -> SpinCtrl"""
2261 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2264 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2266 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2268 Get the default attributes for this class. This is useful if you want
2269 to use the same font or colour in your own control as in a standard
2270 control -- which is a much better idea than hard coding specific
2271 colours or fonts which might look completely out of place on the
2272 user's system, especially if it uses themes.
2274 The variant parameter is only relevant under Mac currently and is
2275 ignore under other platforms. Under Mac, it will change the size of
2276 the returned font. See `wx.Window.SetWindowVariant` for more about
2279 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2281 class SpinEvent(_core
.NotifyEvent
):
2282 """Proxy of C++ SpinEvent class"""
2283 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2284 __repr__
= _swig_repr
2285 def __init__(self
, *args
, **kwargs
):
2286 """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2287 _controls_
.SpinEvent_swiginit(self
,_controls_
.new_SpinEvent(*args
, **kwargs
))
2288 def GetPosition(*args
, **kwargs
):
2289 """GetPosition(self) -> int"""
2290 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2292 def SetPosition(*args
, **kwargs
):
2293 """SetPosition(self, int pos)"""
2294 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2296 SpinEvent_swigregister
= _controls_
.SpinEvent_swigregister
2297 SpinEvent_swigregister(SpinEvent
)
2299 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2300 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2301 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2302 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2303 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2305 #---------------------------------------------------------------------------
2307 class RadioBox(_core
.Control
):
2308 """Proxy of C++ RadioBox class"""
2309 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2310 __repr__
= _swig_repr
2311 def __init__(self
, *args
, **kwargs
):
2313 __init__(self, Window parent, int id=-1, String label=EmptyString,
2314 Point pos=DefaultPosition, Size size=DefaultSize,
2315 wxArrayString choices=wxPyEmptyStringArray,
2316 int majorDimension=0, long style=RA_HORIZONTAL,
2317 Validator validator=DefaultValidator,
2318 String name=RadioBoxNameStr) -> RadioBox
2320 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2321 _controls_
.RadioBox_swiginit(self
,_controls_
.new_RadioBox(*args
, **kwargs
))
2322 self
._setOORInfo
(self
)
2324 def Create(*args
, **kwargs
):
2326 Create(self, Window parent, int id=-1, String label=EmptyString,
2327 Point pos=DefaultPosition, Size size=DefaultSize,
2328 wxArrayString choices=wxPyEmptyStringArray,
2329 int majorDimension=0, long style=RA_HORIZONTAL,
2330 Validator validator=DefaultValidator,
2331 String name=RadioBoxNameStr) -> bool
2333 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2335 def SetSelection(*args
, **kwargs
):
2336 """SetSelection(self, int n)"""
2337 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2339 def GetSelection(*args
, **kwargs
):
2340 """GetSelection(self) -> int"""
2341 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2343 def GetStringSelection(*args
, **kwargs
):
2344 """GetStringSelection(self) -> String"""
2345 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2347 def SetStringSelection(*args
, **kwargs
):
2348 """SetStringSelection(self, String s) -> bool"""
2349 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2351 def GetCount(*args
, **kwargs
):
2352 """GetCount(self) -> size_t"""
2353 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2355 def FindString(*args
, **kwargs
):
2356 """FindString(self, String s) -> int"""
2357 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2359 def GetString(*args
, **kwargs
):
2360 """GetString(self, int n) -> String"""
2361 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2363 def SetString(*args
, **kwargs
):
2364 """SetString(self, int n, String label)"""
2365 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2367 GetItemLabel
= GetString
2368 SetItemLabel
= SetString
2369 def EnableItem(*args
, **kwargs
):
2370 """EnableItem(self, unsigned int n, bool enable=True)"""
2371 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2373 def ShowItem(*args
, **kwargs
):
2374 """ShowItem(self, unsigned int n, bool show=True)"""
2375 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2377 def IsItemEnabled(*args
, **kwargs
):
2378 """IsItemEnabled(self, unsigned int n) -> bool"""
2379 return _controls_
.RadioBox_IsItemEnabled(*args
, **kwargs
)
2381 def IsItemShown(*args
, **kwargs
):
2382 """IsItemShown(self, unsigned int n) -> bool"""
2383 return _controls_
.RadioBox_IsItemShown(*args
, **kwargs
)
2385 def GetColumnCount(*args
, **kwargs
):
2386 """GetColumnCount(self) -> unsigned int"""
2387 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2389 def GetRowCount(*args
, **kwargs
):
2390 """GetRowCount(self) -> unsigned int"""
2391 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2393 def GetNextItem(*args
, **kwargs
):
2394 """GetNextItem(self, int item, int dir, long style) -> int"""
2395 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2397 def SetItemToolTip(*args
, **kwargs
):
2398 """SetItemToolTip(self, unsigned int item, String text)"""
2399 return _controls_
.RadioBox_SetItemToolTip(*args
, **kwargs
)
2401 def GetItemToolTip(*args
, **kwargs
):
2402 """GetItemToolTip(self, unsigned int item) -> ToolTip"""
2403 return _controls_
.RadioBox_GetItemToolTip(*args
, **kwargs
)
2405 def GetClassDefaultAttributes(*args
, **kwargs
):
2407 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2409 Get the default attributes for this class. This is useful if you want
2410 to use the same font or colour in your own control as in a standard
2411 control -- which is a much better idea than hard coding specific
2412 colours or fonts which might look completely out of place on the
2413 user's system, especially if it uses themes.
2415 The variant parameter is only relevant under Mac currently and is
2416 ignore under other platforms. Under Mac, it will change the size of
2417 the returned font. See `wx.Window.SetWindowVariant` for more about
2420 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2422 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2423 RadioBox_swigregister
= _controls_
.RadioBox_swigregister
2424 RadioBox_swigregister(RadioBox
)
2425 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2426 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2428 def PreRadioBox(*args
, **kwargs
):
2429 """PreRadioBox() -> RadioBox"""
2430 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2433 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2435 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2437 Get the default attributes for this class. This is useful if you want
2438 to use the same font or colour in your own control as in a standard
2439 control -- which is a much better idea than hard coding specific
2440 colours or fonts which might look completely out of place on the
2441 user's system, especially if it uses themes.
2443 The variant parameter is only relevant under Mac currently and is
2444 ignore under other platforms. Under Mac, it will change the size of
2445 the returned font. See `wx.Window.SetWindowVariant` for more about
2448 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2450 #---------------------------------------------------------------------------
2452 class RadioButton(_core
.Control
):
2453 """Proxy of C++ RadioButton class"""
2454 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2455 __repr__
= _swig_repr
2456 def __init__(self
, *args
, **kwargs
):
2458 __init__(self, Window parent, int id=-1, String label=EmptyString,
2459 Point pos=DefaultPosition, Size size=DefaultSize,
2460 long style=0, Validator validator=DefaultValidator,
2461 String name=RadioButtonNameStr) -> RadioButton
2463 _controls_
.RadioButton_swiginit(self
,_controls_
.new_RadioButton(*args
, **kwargs
))
2464 self
._setOORInfo
(self
)
2466 def Create(*args
, **kwargs
):
2468 Create(self, Window parent, int id=-1, String label=EmptyString,
2469 Point pos=DefaultPosition, Size size=DefaultSize,
2470 long style=0, Validator validator=DefaultValidator,
2471 String name=RadioButtonNameStr) -> bool
2473 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2475 def GetValue(*args
, **kwargs
):
2476 """GetValue(self) -> bool"""
2477 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2479 def SetValue(*args
, **kwargs
):
2480 """SetValue(self, bool value)"""
2481 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2483 def GetClassDefaultAttributes(*args
, **kwargs
):
2485 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2487 Get the default attributes for this class. This is useful if you want
2488 to use the same font or colour in your own control as in a standard
2489 control -- which is a much better idea than hard coding specific
2490 colours or fonts which might look completely out of place on the
2491 user's system, especially if it uses themes.
2493 The variant parameter is only relevant under Mac currently and is
2494 ignore under other platforms. Under Mac, it will change the size of
2495 the returned font. See `wx.Window.SetWindowVariant` for more about
2498 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2500 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2501 RadioButton_swigregister
= _controls_
.RadioButton_swigregister
2502 RadioButton_swigregister(RadioButton
)
2504 def PreRadioButton(*args
, **kwargs
):
2505 """PreRadioButton() -> RadioButton"""
2506 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2509 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2511 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2513 Get the default attributes for this class. This is useful if you want
2514 to use the same font or colour in your own control as in a standard
2515 control -- which is a much better idea than hard coding specific
2516 colours or fonts which might look completely out of place on the
2517 user's system, especially if it uses themes.
2519 The variant parameter is only relevant under Mac currently and is
2520 ignore under other platforms. Under Mac, it will change the size of
2521 the returned font. See `wx.Window.SetWindowVariant` for more about
2524 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2526 #---------------------------------------------------------------------------
2528 SL_HORIZONTAL
= _controls_
.SL_HORIZONTAL
2529 SL_VERTICAL
= _controls_
.SL_VERTICAL
2530 SL_TICKS
= _controls_
.SL_TICKS
2531 SL_AUTOTICKS
= _controls_
.SL_AUTOTICKS
2532 SL_LABELS
= _controls_
.SL_LABELS
2533 SL_LEFT
= _controls_
.SL_LEFT
2534 SL_TOP
= _controls_
.SL_TOP
2535 SL_RIGHT
= _controls_
.SL_RIGHT
2536 SL_BOTTOM
= _controls_
.SL_BOTTOM
2537 SL_BOTH
= _controls_
.SL_BOTH
2538 SL_SELRANGE
= _controls_
.SL_SELRANGE
2539 SL_INVERSE
= _controls_
.SL_INVERSE
2540 class Slider(_core
.Control
):
2541 """Proxy of C++ Slider class"""
2542 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2543 __repr__
= _swig_repr
2544 def __init__(self
, *args
, **kwargs
):
2546 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2547 int maxValue=100, Point pos=DefaultPosition,
2548 Size size=DefaultSize, long style=SL_HORIZONTAL,
2549 Validator validator=DefaultValidator,
2550 String name=SliderNameStr) -> Slider
2552 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2553 _controls_
.Slider_swiginit(self
,_controls_
.new_Slider(*args
, **kwargs
))
2554 self
._setOORInfo
(self
)
2556 def Create(*args
, **kwargs
):
2558 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2559 int maxValue=100, Point pos=DefaultPosition,
2560 Size size=DefaultSize, long style=SL_HORIZONTAL,
2561 Validator validator=DefaultValidator,
2562 String name=SliderNameStr) -> bool
2564 return _controls_
.Slider_Create(*args
, **kwargs
)
2566 def GetValue(*args
, **kwargs
):
2567 """GetValue(self) -> int"""
2568 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2570 def SetValue(*args
, **kwargs
):
2571 """SetValue(self, int value)"""
2572 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2574 def SetRange(*args
, **kwargs
):
2575 """SetRange(self, int minValue, int maxValue)"""
2576 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2578 def GetMin(*args
, **kwargs
):
2579 """GetMin(self) -> int"""
2580 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2582 def GetMax(*args
, **kwargs
):
2583 """GetMax(self) -> int"""
2584 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2586 def SetMin(*args
, **kwargs
):
2587 """SetMin(self, int minValue)"""
2588 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2590 def SetMax(*args
, **kwargs
):
2591 """SetMax(self, int maxValue)"""
2592 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2594 def SetLineSize(*args
, **kwargs
):
2595 """SetLineSize(self, int lineSize)"""
2596 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2598 def SetPageSize(*args
, **kwargs
):
2599 """SetPageSize(self, int pageSize)"""
2600 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2602 def GetLineSize(*args
, **kwargs
):
2603 """GetLineSize(self) -> int"""
2604 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2606 def GetPageSize(*args
, **kwargs
):
2607 """GetPageSize(self) -> int"""
2608 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2610 def SetThumbLength(*args
, **kwargs
):
2611 """SetThumbLength(self, int lenPixels)"""
2612 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2614 def GetThumbLength(*args
, **kwargs
):
2615 """GetThumbLength(self) -> int"""
2616 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2618 def SetTickFreq(*args
, **kwargs
):
2619 """SetTickFreq(self, int n, int pos=1)"""
2620 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2622 def GetTickFreq(*args
, **kwargs
):
2623 """GetTickFreq(self) -> int"""
2624 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2626 def ClearTicks(*args
, **kwargs
):
2627 """ClearTicks(self)"""
2628 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2630 def SetTick(*args
, **kwargs
):
2631 """SetTick(self, int tickPos)"""
2632 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2634 def ClearSel(*args
, **kwargs
):
2635 """ClearSel(self)"""
2636 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2638 def GetSelEnd(*args
, **kwargs
):
2639 """GetSelEnd(self) -> int"""
2640 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2642 def GetSelStart(*args
, **kwargs
):
2643 """GetSelStart(self) -> int"""
2644 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2646 def SetSelection(*args
, **kwargs
):
2647 """SetSelection(self, int min, int max)"""
2648 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2650 def GetClassDefaultAttributes(*args
, **kwargs
):
2652 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2654 Get the default attributes for this class. This is useful if you want
2655 to use the same font or colour in your own control as in a standard
2656 control -- which is a much better idea than hard coding specific
2657 colours or fonts which might look completely out of place on the
2658 user's system, especially if it uses themes.
2660 The variant parameter is only relevant under Mac currently and is
2661 ignore under other platforms. Under Mac, it will change the size of
2662 the returned font. See `wx.Window.SetWindowVariant` for more about
2665 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2667 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2668 Slider_swigregister
= _controls_
.Slider_swigregister
2669 Slider_swigregister(Slider
)
2670 SliderNameStr
= cvar
.SliderNameStr
2672 def PreSlider(*args
, **kwargs
):
2673 """PreSlider() -> Slider"""
2674 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2677 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2679 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2681 Get the default attributes for this class. This is useful if you want
2682 to use the same font or colour in your own control as in a standard
2683 control -- which is a much better idea than hard coding specific
2684 colours or fonts which might look completely out of place on the
2685 user's system, especially if it uses themes.
2687 The variant parameter is only relevant under Mac currently and is
2688 ignore under other platforms. Under Mac, it will change the size of
2689 the returned font. See `wx.Window.SetWindowVariant` for more about
2692 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2694 #---------------------------------------------------------------------------
2696 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2697 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2699 class ToggleButton(_core
.Control
):
2700 """Proxy of C++ ToggleButton class"""
2701 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2702 __repr__
= _swig_repr
2703 def __init__(self
, *args
, **kwargs
):
2705 __init__(self, Window parent, int id=-1, String label=EmptyString,
2706 Point pos=DefaultPosition, Size size=DefaultSize,
2707 long style=0, Validator validator=DefaultValidator,
2708 String name=ToggleButtonNameStr) -> ToggleButton
2710 _controls_
.ToggleButton_swiginit(self
,_controls_
.new_ToggleButton(*args
, **kwargs
))
2711 self
._setOORInfo
(self
)
2713 def Create(*args
, **kwargs
):
2715 Create(self, Window parent, int id=-1, String label=EmptyString,
2716 Point pos=DefaultPosition, Size size=DefaultSize,
2717 long style=0, Validator validator=DefaultValidator,
2718 String name=ToggleButtonNameStr) -> bool
2720 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2722 def SetValue(*args
, **kwargs
):
2723 """SetValue(self, bool value)"""
2724 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2726 def GetValue(*args
, **kwargs
):
2727 """GetValue(self) -> bool"""
2728 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2730 def GetClassDefaultAttributes(*args
, **kwargs
):
2732 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2734 Get the default attributes for this class. This is useful if you want
2735 to use the same font or colour in your own control as in a standard
2736 control -- which is a much better idea than hard coding specific
2737 colours or fonts which might look completely out of place on the
2738 user's system, especially if it uses themes.
2740 The variant parameter is only relevant under Mac currently and is
2741 ignore under other platforms. Under Mac, it will change the size of
2742 the returned font. See `wx.Window.SetWindowVariant` for more about
2745 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2747 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2748 ToggleButton_swigregister
= _controls_
.ToggleButton_swigregister
2749 ToggleButton_swigregister(ToggleButton
)
2750 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2752 def PreToggleButton(*args
, **kwargs
):
2753 """PreToggleButton() -> ToggleButton"""
2754 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2757 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2759 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2761 Get the default attributes for this class. This is useful if you want
2762 to use the same font or colour in your own control as in a standard
2763 control -- which is a much better idea than hard coding specific
2764 colours or fonts which might look completely out of place on the
2765 user's system, especially if it uses themes.
2767 The variant parameter is only relevant under Mac currently and is
2768 ignore under other platforms. Under Mac, it will change the size of
2769 the returned font. See `wx.Window.SetWindowVariant` for more about
2772 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2774 #---------------------------------------------------------------------------
2776 BK_DEFAULT
= _controls_
.BK_DEFAULT
2777 BK_TOP
= _controls_
.BK_TOP
2778 BK_BOTTOM
= _controls_
.BK_BOTTOM
2779 BK_LEFT
= _controls_
.BK_LEFT
2780 BK_RIGHT
= _controls_
.BK_RIGHT
2781 BK_ALIGN_MASK
= _controls_
.BK_ALIGN_MASK
2782 BK_BUTTONBAR
= _controls_
.BK_BUTTONBAR
2783 class BookCtrlBase(_core
.Control
):
2784 """Proxy of C++ BookCtrlBase class"""
2785 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2786 def __init__(self
): raise AttributeError, "No constructor defined"
2787 __repr__
= _swig_repr
2788 def GetPageCount(*args
, **kwargs
):
2789 """GetPageCount(self) -> size_t"""
2790 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2792 def GetPage(*args
, **kwargs
):
2793 """GetPage(self, size_t n) -> Window"""
2794 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2796 def GetCurrentPage(*args
, **kwargs
):
2797 """GetCurrentPage(self) -> Window"""
2798 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2800 def GetSelection(*args
, **kwargs
):
2801 """GetSelection(self) -> int"""
2802 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2804 def SetPageText(*args
, **kwargs
):
2805 """SetPageText(self, size_t n, String strText) -> bool"""
2806 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2808 def GetPageText(*args
, **kwargs
):
2809 """GetPageText(self, size_t n) -> String"""
2810 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2812 def SetImageList(*args
, **kwargs
):
2813 """SetImageList(self, ImageList imageList)"""
2814 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2816 def AssignImageList(*args
, **kwargs
):
2817 """AssignImageList(self, ImageList imageList)"""
2818 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2820 def GetImageList(*args
, **kwargs
):
2821 """GetImageList(self) -> ImageList"""
2822 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2824 def GetPageImage(*args
, **kwargs
):
2825 """GetPageImage(self, size_t n) -> int"""
2826 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2828 def SetPageImage(*args
, **kwargs
):
2829 """SetPageImage(self, size_t n, int imageId) -> bool"""
2830 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2832 def SetPageSize(*args
, **kwargs
):
2833 """SetPageSize(self, Size size)"""
2834 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2836 def CalcSizeFromPage(*args
, **kwargs
):
2837 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2838 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2840 def GetInternalBorder(*args
, **kwargs
):
2841 """GetInternalBorder(self) -> unsigned int"""
2842 return _controls_
.BookCtrlBase_GetInternalBorder(*args
, **kwargs
)
2844 def SetInternalBorder(*args
, **kwargs
):
2845 """SetInternalBorder(self, unsigned int internalBorder)"""
2846 return _controls_
.BookCtrlBase_SetInternalBorder(*args
, **kwargs
)
2848 def IsVertical(*args
, **kwargs
):
2849 """IsVertical(self) -> bool"""
2850 return _controls_
.BookCtrlBase_IsVertical(*args
, **kwargs
)
2852 def SetControlMargin(*args
, **kwargs
):
2853 """SetControlMargin(self, int margin)"""
2854 return _controls_
.BookCtrlBase_SetControlMargin(*args
, **kwargs
)
2856 def GetControlMargin(*args
, **kwargs
):
2857 """GetControlMargin(self) -> int"""
2858 return _controls_
.BookCtrlBase_GetControlMargin(*args
, **kwargs
)
2860 def SetFitToCurrentPage(*args
, **kwargs
):
2861 """SetFitToCurrentPage(self, bool fit)"""
2862 return _controls_
.BookCtrlBase_SetFitToCurrentPage(*args
, **kwargs
)
2864 def GetFitToCurrentPage(*args
, **kwargs
):
2865 """GetFitToCurrentPage(self) -> bool"""
2866 return _controls_
.BookCtrlBase_GetFitToCurrentPage(*args
, **kwargs
)
2868 def GetControlSizer(*args
, **kwargs
):
2869 """GetControlSizer(self) -> Sizer"""
2870 return _controls_
.BookCtrlBase_GetControlSizer(*args
, **kwargs
)
2872 def DeletePage(*args
, **kwargs
):
2873 """DeletePage(self, size_t n) -> bool"""
2874 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2876 def RemovePage(*args
, **kwargs
):
2877 """RemovePage(self, size_t n) -> bool"""
2878 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
2880 def DeleteAllPages(*args
, **kwargs
):
2881 """DeleteAllPages(self) -> bool"""
2882 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
2884 def AddPage(*args
, **kwargs
):
2885 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2886 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
2888 def InsertPage(*args
, **kwargs
):
2890 InsertPage(self, size_t n, Window page, String text, bool select=False,
2891 int imageId=-1) -> bool
2893 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
2895 def SetSelection(*args
, **kwargs
):
2896 """SetSelection(self, size_t n) -> int"""
2897 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
2899 def AdvanceSelection(*args
, **kwargs
):
2900 """AdvanceSelection(self, bool forward=True)"""
2901 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
2903 def GetClassDefaultAttributes(*args
, **kwargs
):
2905 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2907 Get the default attributes for this class. This is useful if you want
2908 to use the same font or colour in your own control as in a standard
2909 control -- which is a much better idea than hard coding specific
2910 colours or fonts which might look completely out of place on the
2911 user's system, especially if it uses themes.
2913 The variant parameter is only relevant under Mac currently and is
2914 ignore under other platforms. Under Mac, it will change the size of
2915 the returned font. See `wx.Window.SetWindowVariant` for more about
2918 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2920 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2921 BookCtrlBase_swigregister
= _controls_
.BookCtrlBase_swigregister
2922 BookCtrlBase_swigregister(BookCtrlBase
)
2923 NotebookNameStr
= cvar
.NotebookNameStr
2925 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
2927 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2929 Get the default attributes for this class. This is useful if you want
2930 to use the same font or colour in your own control as in a standard
2931 control -- which is a much better idea than hard coding specific
2932 colours or fonts which might look completely out of place on the
2933 user's system, especially if it uses themes.
2935 The variant parameter is only relevant under Mac currently and is
2936 ignore under other platforms. Under Mac, it will change the size of
2937 the returned font. See `wx.Window.SetWindowVariant` for more about
2940 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2942 class BookCtrlBaseEvent(_core
.NotifyEvent
):
2943 """Proxy of C++ BookCtrlBaseEvent class"""
2944 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2945 __repr__
= _swig_repr
2946 def __init__(self
, *args
, **kwargs
):
2948 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2949 int nOldSel=-1) -> BookCtrlBaseEvent
2951 _controls_
.BookCtrlBaseEvent_swiginit(self
,_controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
))
2952 def GetSelection(*args
, **kwargs
):
2954 GetSelection(self) -> int
2956 Returns item index for a listbox or choice selection event (not valid
2959 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
2961 def SetSelection(*args
, **kwargs
):
2962 """SetSelection(self, int nSel)"""
2963 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
2965 def GetOldSelection(*args
, **kwargs
):
2966 """GetOldSelection(self) -> int"""
2967 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
2969 def SetOldSelection(*args
, **kwargs
):
2970 """SetOldSelection(self, int nOldSel)"""
2971 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
2973 BookCtrlBaseEvent_swigregister
= _controls_
.BookCtrlBaseEvent_swigregister
2974 BookCtrlBaseEvent_swigregister(BookCtrlBaseEvent
)
2976 #---------------------------------------------------------------------------
2978 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2979 NB_TOP
= _controls_
.NB_TOP
2980 NB_LEFT
= _controls_
.NB_LEFT
2981 NB_RIGHT
= _controls_
.NB_RIGHT
2982 NB_BOTTOM
= _controls_
.NB_BOTTOM
2983 NB_MULTILINE
= _controls_
.NB_MULTILINE
2984 NB_NOPAGETHEME
= _controls_
.NB_NOPAGETHEME
2985 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2986 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2987 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2988 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2989 class Notebook(BookCtrlBase
):
2990 """Proxy of C++ Notebook class"""
2991 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2992 __repr__
= _swig_repr
2993 def __init__(self
, *args
, **kwargs
):
2995 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2996 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
2998 _controls_
.Notebook_swiginit(self
,_controls_
.new_Notebook(*args
, **kwargs
))
2999 self
._setOORInfo
(self
)
3001 def Create(*args
, **kwargs
):
3003 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3004 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
3006 return _controls_
.Notebook_Create(*args
, **kwargs
)
3008 def GetRowCount(*args
, **kwargs
):
3009 """GetRowCount(self) -> int"""
3010 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3012 def SetPadding(*args
, **kwargs
):
3013 """SetPadding(self, Size padding)"""
3014 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3016 def SetTabSize(*args
, **kwargs
):
3017 """SetTabSize(self, Size sz)"""
3018 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3020 def HitTest(*args
, **kwargs
):
3022 HitTest(Point pt) -> (tab, where)
3024 Returns the tab which is hit, and flags indicating where using
3025 wx.NB_HITTEST flags.
3027 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3029 def GetThemeBackgroundColour(*args
, **kwargs
):
3030 """GetThemeBackgroundColour(self) -> Colour"""
3031 return _controls_
.Notebook_GetThemeBackgroundColour(*args
, **kwargs
)
3033 def GetClassDefaultAttributes(*args
, **kwargs
):
3035 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3037 Get the default attributes for this class. This is useful if you want
3038 to use the same font or colour in your own control as in a standard
3039 control -- which is a much better idea than hard coding specific
3040 colours or fonts which might look completely out of place on the
3041 user's system, especially if it uses themes.
3043 The variant parameter is only relevant under Mac currently and is
3044 ignore under other platforms. Under Mac, it will change the size of
3045 the returned font. See `wx.Window.SetWindowVariant` for more about
3048 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3050 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3051 Notebook_swigregister
= _controls_
.Notebook_swigregister
3052 Notebook_swigregister(Notebook
)
3054 def PreNotebook(*args
, **kwargs
):
3055 """PreNotebook() -> Notebook"""
3056 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3059 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3061 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3063 Get the default attributes for this class. This is useful if you want
3064 to use the same font or colour in your own control as in a standard
3065 control -- which is a much better idea than hard coding specific
3066 colours or fonts which might look completely out of place on the
3067 user's system, especially if it uses themes.
3069 The variant parameter is only relevant under Mac currently and is
3070 ignore under other platforms. Under Mac, it will change the size of
3071 the returned font. See `wx.Window.SetWindowVariant` for more about
3074 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3076 class NotebookEvent(BookCtrlBaseEvent
):
3077 """Proxy of C++ NotebookEvent class"""
3078 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3079 __repr__
= _swig_repr
3080 def __init__(self
, *args
, **kwargs
):
3082 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3083 int nOldSel=-1) -> NotebookEvent
3085 _controls_
.NotebookEvent_swiginit(self
,_controls_
.new_NotebookEvent(*args
, **kwargs
))
3086 NotebookEvent_swigregister
= _controls_
.NotebookEvent_swigregister
3087 NotebookEvent_swigregister(NotebookEvent
)
3089 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3090 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3092 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3093 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3095 #----------------------------------------------------------------------------
3097 class NotebookPage(wx
.Panel
):
3099 There is an old (and apparently unsolvable) bug when placing a
3100 window with a nonstandard background colour in a wx.Notebook on
3101 wxGTK1, as the notbooks's background colour would always be used
3102 when the window is refreshed. The solution is to place a panel in
3103 the notbook and the coloured window on the panel, sized to cover
3104 the panel. This simple class does that for you, just put an
3105 instance of this in the notebook and make your regular window a
3106 child of this one and it will handle the resize for you.
3108 def __init__(self
, parent
, id=-1,
3109 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3110 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3111 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3113 self
.Bind(wx
.EVT_SIZE
, self
.OnSize
)
3115 def OnSize(self
, evt
):
3116 if self
.child
is None:
3117 children
= self
.GetChildren()
3119 self
.child
= children
[0]
3121 self
.child
.SetPosition((0,0))
3122 self
.child
.SetSize(self
.GetSize())
3125 #---------------------------------------------------------------------------
3127 LB_DEFAULT
= _controls_
.LB_DEFAULT
3128 LB_TOP
= _controls_
.LB_TOP
3129 LB_BOTTOM
= _controls_
.LB_BOTTOM
3130 LB_LEFT
= _controls_
.LB_LEFT
3131 LB_RIGHT
= _controls_
.LB_RIGHT
3132 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3133 class Listbook(BookCtrlBase
):
3134 """Proxy of C++ Listbook class"""
3135 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3136 __repr__
= _swig_repr
3137 def __init__(self
, *args
, **kwargs
):
3139 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3140 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3142 _controls_
.Listbook_swiginit(self
,_controls_
.new_Listbook(*args
, **kwargs
))
3143 self
._setOORInfo
(self
)
3145 def Create(*args
, **kwargs
):
3147 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3148 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3150 return _controls_
.Listbook_Create(*args
, **kwargs
)
3152 def GetListView(*args
, **kwargs
):
3153 """GetListView(self) -> ListView"""
3154 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3156 Listbook_swigregister
= _controls_
.Listbook_swigregister
3157 Listbook_swigregister(Listbook
)
3159 def PreListbook(*args
, **kwargs
):
3160 """PreListbook() -> Listbook"""
3161 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3164 class ListbookEvent(BookCtrlBaseEvent
):
3165 """Proxy of C++ ListbookEvent class"""
3166 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3167 __repr__
= _swig_repr
3168 def __init__(self
, *args
, **kwargs
):
3170 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3171 int nOldSel=-1) -> ListbookEvent
3173 _controls_
.ListbookEvent_swiginit(self
,_controls_
.new_ListbookEvent(*args
, **kwargs
))
3174 ListbookEvent_swigregister
= _controls_
.ListbookEvent_swigregister
3175 ListbookEvent_swigregister(ListbookEvent
)
3177 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3178 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3179 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3180 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3182 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3183 CHB_TOP
= _controls_
.CHB_TOP
3184 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3185 CHB_LEFT
= _controls_
.CHB_LEFT
3186 CHB_RIGHT
= _controls_
.CHB_RIGHT
3187 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3188 class Choicebook(BookCtrlBase
):
3189 """Proxy of C++ Choicebook class"""
3190 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3191 __repr__
= _swig_repr
3192 def __init__(self
, *args
, **kwargs
):
3194 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3195 long style=0, String name=EmptyString) -> Choicebook
3197 _controls_
.Choicebook_swiginit(self
,_controls_
.new_Choicebook(*args
, **kwargs
))
3198 self
._setOORInfo
(self
)
3200 def Create(*args
, **kwargs
):
3202 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3203 long style=0, String name=EmptyString) -> bool
3205 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3207 def GetChoiceCtrl(*args
, **kwargs
):
3208 """GetChoiceCtrl(self) -> Choice"""
3209 return _controls_
.Choicebook_GetChoiceCtrl(*args
, **kwargs
)
3211 Choicebook_swigregister
= _controls_
.Choicebook_swigregister
3212 Choicebook_swigregister(Choicebook
)
3214 def PreChoicebook(*args
, **kwargs
):
3215 """PreChoicebook() -> Choicebook"""
3216 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3219 class ChoicebookEvent(BookCtrlBaseEvent
):
3220 """Proxy of C++ ChoicebookEvent class"""
3221 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3222 __repr__
= _swig_repr
3223 def __init__(self
, *args
, **kwargs
):
3225 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3226 int nOldSel=-1) -> ChoicebookEvent
3228 _controls_
.ChoicebookEvent_swiginit(self
,_controls_
.new_ChoicebookEvent(*args
, **kwargs
))
3229 ChoicebookEvent_swigregister
= _controls_
.ChoicebookEvent_swigregister
3230 ChoicebookEvent_swigregister(ChoicebookEvent
)
3232 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3233 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3234 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3235 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3237 #---------------------------------------------------------------------------
3239 class Treebook(BookCtrlBase
):
3240 """Proxy of C++ Treebook class"""
3241 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3242 __repr__
= _swig_repr
3243 def __init__(self
, *args
, **kwargs
):
3245 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3246 long style=BK_DEFAULT,
3247 String name=EmptyString) -> Treebook
3249 _controls_
.Treebook_swiginit(self
,_controls_
.new_Treebook(*args
, **kwargs
))
3250 self
._setOORInfo
(self
)
3252 def Create(*args
, **kwargs
):
3254 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3255 long style=BK_DEFAULT,
3256 String name=EmptyString) -> bool
3258 return _controls_
.Treebook_Create(*args
, **kwargs
)
3260 def InsertSubPage(*args
, **kwargs
):
3262 InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
3263 int imageId=NOT_FOUND) -> bool
3265 return _controls_
.Treebook_InsertSubPage(*args
, **kwargs
)
3267 def AddSubPage(*args
, **kwargs
):
3268 """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3269 return _controls_
.Treebook_AddSubPage(*args
, **kwargs
)
3271 def IsNodeExpanded(*args
, **kwargs
):
3272 """IsNodeExpanded(self, size_t pos) -> bool"""
3273 return _controls_
.Treebook_IsNodeExpanded(*args
, **kwargs
)
3275 def ExpandNode(*args
, **kwargs
):
3276 """ExpandNode(self, size_t pos, bool expand=True) -> bool"""
3277 return _controls_
.Treebook_ExpandNode(*args
, **kwargs
)
3279 def CollapseNode(*args
, **kwargs
):
3280 """CollapseNode(self, size_t pos) -> bool"""
3281 return _controls_
.Treebook_CollapseNode(*args
, **kwargs
)
3283 def GetPageParent(*args
, **kwargs
):
3284 """GetPageParent(self, size_t pos) -> int"""
3285 return _controls_
.Treebook_GetPageParent(*args
, **kwargs
)
3287 def GetTreeCtrl(*args
, **kwargs
):
3288 """GetTreeCtrl(self) -> wxTreeCtrl"""
3289 return _controls_
.Treebook_GetTreeCtrl(*args
, **kwargs
)
3291 Treebook_swigregister
= _controls_
.Treebook_swigregister
3292 Treebook_swigregister(Treebook
)
3294 def PreTreebook(*args
, **kwargs
):
3295 """PreTreebook() -> Treebook"""
3296 val
= _controls_
.new_PreTreebook(*args
, **kwargs
)
3299 class TreebookEvent(BookCtrlBaseEvent
):
3300 """Proxy of C++ TreebookEvent class"""
3301 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3302 __repr__
= _swig_repr
3303 def __init__(self
, *args
, **kwargs
):
3305 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3306 int nOldSel=NOT_FOUND) -> TreebookEvent
3308 _controls_
.TreebookEvent_swiginit(self
,_controls_
.new_TreebookEvent(*args
, **kwargs
))
3309 TreebookEvent_swigregister
= _controls_
.TreebookEvent_swigregister
3310 TreebookEvent_swigregister(TreebookEvent
)
3312 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
3313 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
3314 wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
3315 wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
3316 EVT_TREEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
, 1 )
3317 EVT_TREEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
, 1)
3318 EVT_TREEBOOK_NODE_COLLAPSED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
, 1 )
3319 EVT_TREEBOOK_NODE_EXPANDED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
, 1 )
3321 #---------------------------------------------------------------------------
3323 class Toolbook(BookCtrlBase
):
3324 """Proxy of C++ Toolbook class"""
3325 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3326 __repr__
= _swig_repr
3327 def __init__(self
, *args
, **kwargs
):
3329 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3330 long style=BK_DEFAULT,
3331 String name=EmptyString) -> Toolbook
3333 _controls_
.Toolbook_swiginit(self
,_controls_
.new_Toolbook(*args
, **kwargs
))
3334 self
._setOORInfo
(self
)
3336 def Create(*args
, **kwargs
):
3338 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3339 long style=0, String name=wxEmptyString) -> bool
3341 return _controls_
.Toolbook_Create(*args
, **kwargs
)
3343 def GetToolBar(*args
, **kwargs
):
3344 """GetToolBar(self) -> ToolBarBase"""
3345 return _controls_
.Toolbook_GetToolBar(*args
, **kwargs
)
3347 def Realize(*args
, **kwargs
):
3349 return _controls_
.Toolbook_Realize(*args
, **kwargs
)
3351 Toolbook_swigregister
= _controls_
.Toolbook_swigregister
3352 Toolbook_swigregister(Toolbook
)
3354 def PreToolbook(*args
, **kwargs
):
3355 """PreToolbook() -> Toolbook"""
3356 val
= _controls_
.new_PreToolbook(*args
, **kwargs
)
3359 class ToolbookEvent(BookCtrlBaseEvent
):
3360 """Proxy of C++ ToolbookEvent class"""
3361 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3362 __repr__
= _swig_repr
3363 def __init__(self
, *args
, **kwargs
):
3365 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3366 int nOldSel=NOT_FOUND) -> ToolbookEvent
3368 _controls_
.ToolbookEvent_swiginit(self
,_controls_
.new_ToolbookEvent(*args
, **kwargs
))
3369 ToolbookEvent_swigregister
= _controls_
.ToolbookEvent_swigregister
3370 ToolbookEvent_swigregister(ToolbookEvent
)
3372 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
3373 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
3374 EVT_TOOLBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
, 1)
3375 EVT_TOOLBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
, 1)
3377 #---------------------------------------------------------------------------
3379 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3380 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3381 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3382 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3383 TB_VERTICAL
= _controls_
.TB_VERTICAL
3384 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3385 TB_FLAT
= _controls_
.TB_FLAT
3386 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3387 TB_NOICONS
= _controls_
.TB_NOICONS
3388 TB_TEXT
= _controls_
.TB_TEXT
3389 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3390 TB_NOALIGN
= _controls_
.TB_NOALIGN
3391 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3392 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3393 class ToolBarToolBase(_core
.Object
):
3394 """Proxy of C++ ToolBarToolBase class"""
3395 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3396 def __init__(self
): raise AttributeError, "No constructor defined"
3397 __repr__
= _swig_repr
3398 def GetId(*args
, **kwargs
):
3399 """GetId(self) -> int"""
3400 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3402 def GetControl(*args
, **kwargs
):
3403 """GetControl(self) -> Control"""
3404 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3406 def GetToolBar(*args
, **kwargs
):
3407 """GetToolBar(self) -> ToolBarBase"""
3408 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3410 def IsButton(*args
, **kwargs
):
3411 """IsButton(self) -> int"""
3412 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3414 def IsControl(*args
, **kwargs
):
3415 """IsControl(self) -> int"""
3416 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3418 def IsSeparator(*args
, **kwargs
):
3419 """IsSeparator(self) -> int"""
3420 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3422 def GetStyle(*args
, **kwargs
):
3423 """GetStyle(self) -> int"""
3424 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3426 def GetKind(*args
, **kwargs
):
3427 """GetKind(self) -> int"""
3428 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3430 def IsEnabled(*args
, **kwargs
):
3431 """IsEnabled(self) -> bool"""
3432 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3434 def IsToggled(*args
, **kwargs
):
3435 """IsToggled(self) -> bool"""
3436 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3438 def CanBeToggled(*args
, **kwargs
):
3439 """CanBeToggled(self) -> bool"""
3440 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3442 def GetNormalBitmap(*args
, **kwargs
):
3443 """GetNormalBitmap(self) -> Bitmap"""
3444 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3446 def GetDisabledBitmap(*args
, **kwargs
):
3447 """GetDisabledBitmap(self) -> Bitmap"""
3448 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3450 def GetBitmap(*args
, **kwargs
):
3451 """GetBitmap(self) -> Bitmap"""
3452 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3454 def GetLabel(*args
, **kwargs
):
3455 """GetLabel(self) -> String"""
3456 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3458 def GetShortHelp(*args
, **kwargs
):
3459 """GetShortHelp(self) -> String"""
3460 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3462 def GetLongHelp(*args
, **kwargs
):
3463 """GetLongHelp(self) -> String"""
3464 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3466 def Enable(*args
, **kwargs
):
3467 """Enable(self, bool enable) -> bool"""
3468 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3470 def Toggle(*args
, **kwargs
):
3472 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3474 def SetToggle(*args
, **kwargs
):
3475 """SetToggle(self, bool toggle) -> bool"""
3476 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3478 def SetShortHelp(*args
, **kwargs
):
3479 """SetShortHelp(self, String help) -> bool"""
3480 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3482 def SetLongHelp(*args
, **kwargs
):
3483 """SetLongHelp(self, String help) -> bool"""
3484 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3486 def SetNormalBitmap(*args
, **kwargs
):
3487 """SetNormalBitmap(self, Bitmap bmp)"""
3488 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3490 def SetDisabledBitmap(*args
, **kwargs
):
3491 """SetDisabledBitmap(self, Bitmap bmp)"""
3492 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3494 def SetLabel(*args
, **kwargs
):
3495 """SetLabel(self, String label)"""
3496 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3498 def Detach(*args
, **kwargs
):
3500 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3502 def Attach(*args
, **kwargs
):
3503 """Attach(self, ToolBarBase tbar)"""
3504 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3506 def GetClientData(*args
, **kwargs
):
3507 """GetClientData(self) -> PyObject"""
3508 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3510 def SetClientData(*args
, **kwargs
):
3511 """SetClientData(self, PyObject clientData)"""
3512 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3514 GetBitmap1
= GetNormalBitmap
3515 GetBitmap2
= GetDisabledBitmap
3516 SetBitmap1
= SetNormalBitmap
3517 SetBitmap2
= SetDisabledBitmap
3519 ToolBarToolBase_swigregister
= _controls_
.ToolBarToolBase_swigregister
3520 ToolBarToolBase_swigregister(ToolBarToolBase
)
3522 class ToolBarBase(_core
.Control
):
3523 """Proxy of C++ ToolBarBase class"""
3524 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3525 def __init__(self
): raise AttributeError, "No constructor defined"
3526 __repr__
= _swig_repr
3527 def DoAddTool(*args
, **kwargs
):
3529 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3530 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3531 String longHelp=EmptyString,
3532 PyObject clientData=None) -> ToolBarToolBase
3534 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3536 def DoInsertTool(*args
, **kwargs
):
3538 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3539 int kind=ITEM_NORMAL,
3540 String shortHelp=EmptyString, String longHelp=EmptyString,
3541 PyObject clientData=None) -> ToolBarToolBase
3543 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3545 # These match the original Add methods for this class, kept for
3546 # backwards compatibility with versions < 2.3.3.
3549 def AddTool(self
, id, bitmap
,
3550 pushedBitmap
= wx
.NullBitmap
,
3553 shortHelpString
= '',
3554 longHelpString
= '') :
3555 '''Old style method to add a tool to the toolbar.'''
3556 kind
= wx
.ITEM_NORMAL
3557 if isToggle
: kind
= wx
.ITEM_CHECK
3558 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3559 shortHelpString
, longHelpString
, clientData
)
3561 def AddSimpleTool(self
, id, bitmap
,
3562 shortHelpString
= '',
3563 longHelpString
= '',
3565 '''Old style method to add a tool to the toolbar.'''
3566 kind
= wx
.ITEM_NORMAL
3567 if isToggle
: kind
= wx
.ITEM_CHECK
3568 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3569 shortHelpString
, longHelpString
, None)
3571 def InsertTool(self
, pos
, id, bitmap
,
3572 pushedBitmap
= wx
.NullBitmap
,
3575 shortHelpString
= '',
3576 longHelpString
= ''):
3577 '''Old style method to insert a tool in the toolbar.'''
3578 kind
= wx
.ITEM_NORMAL
3579 if isToggle
: kind
= wx
.ITEM_CHECK
3580 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3581 shortHelpString
, longHelpString
, clientData
)
3583 def InsertSimpleTool(self
, pos
, id, bitmap
,
3584 shortHelpString
= '',
3585 longHelpString
= '',
3587 '''Old style method to insert a tool in the toolbar.'''
3588 kind
= wx
.ITEM_NORMAL
3589 if isToggle
: kind
= wx
.ITEM_CHECK
3590 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3591 shortHelpString
, longHelpString
, None)
3594 # The following are the new toolbar Add methods starting with
3595 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3596 # able to keep backwards compatibility with using the above
3597 # methods. Eventually these should migrate to be the methods used
3598 # primarily and lose the 'Label' in the name...
3600 def AddLabelTool(self
, id, label
, bitmap
,
3601 bmpDisabled
= wx
.NullBitmap
,
3602 kind
= wx
.ITEM_NORMAL
,
3603 shortHelp
= '', longHelp
= '',
3606 The full AddTool() function.
3608 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3609 is created and used as the disabled image.
3611 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3612 shortHelp
, longHelp
, clientData
)
3615 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3616 bmpDisabled
= wx
.NullBitmap
,
3617 kind
= wx
.ITEM_NORMAL
,
3618 shortHelp
= '', longHelp
= '',
3621 Insert the new tool at the given position, if pos == GetToolsCount(), it
3622 is equivalent to AddTool()
3624 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3625 shortHelp
, longHelp
, clientData
)
3627 def AddCheckLabelTool(self
, id, label
, bitmap
,
3628 bmpDisabled
= wx
.NullBitmap
,
3629 shortHelp
= '', longHelp
= '',
3631 '''Add a check tool, i.e. a tool which can be toggled'''
3632 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3633 shortHelp
, longHelp
, clientData
)
3635 def AddRadioLabelTool(self
, id, label
, bitmap
,
3636 bmpDisabled
= wx
.NullBitmap
,
3637 shortHelp
= '', longHelp
= '',
3640 Add a radio tool, i.e. a tool which can be toggled and releases any
3641 other toggled radio tools in the same group when it happens
3643 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3644 shortHelp
, longHelp
, clientData
)
3647 # For consistency with the backwards compatible methods above, here are
3648 # some non-'Label' versions of the Check and Radio methods
3650 def AddCheckTool(self
, id, bitmap
,
3651 bmpDisabled
= wx
.NullBitmap
,
3652 shortHelp
= '', longHelp
= '',
3654 '''Add a check tool, i.e. a tool which can be toggled'''
3655 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3656 shortHelp
, longHelp
, clientData
)
3658 def AddRadioTool(self
, id, bitmap
,
3659 bmpDisabled
= wx
.NullBitmap
,
3660 shortHelp
= '', longHelp
= '',
3663 Add a radio tool, i.e. a tool which can be toggled and releases any
3664 other toggled radio tools in the same group when it happens
3666 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3667 shortHelp
, longHelp
, clientData
)
3669 def AddToolItem(*args
, **kwargs
):
3670 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3671 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3673 def InsertToolItem(*args
, **kwargs
):
3674 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3675 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3677 def AddControl(*args
, **kwargs
):
3678 """AddControl(self, Control control) -> ToolBarToolBase"""
3679 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3681 def InsertControl(*args
, **kwargs
):
3682 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3683 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3685 def FindControl(*args
, **kwargs
):
3686 """FindControl(self, int id) -> Control"""
3687 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3689 def AddSeparator(*args
, **kwargs
):
3690 """AddSeparator(self) -> ToolBarToolBase"""
3691 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3693 def InsertSeparator(*args
, **kwargs
):
3694 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3695 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3697 def RemoveTool(*args
, **kwargs
):
3698 """RemoveTool(self, int id) -> ToolBarToolBase"""
3699 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3701 def DeleteToolByPos(*args
, **kwargs
):
3702 """DeleteToolByPos(self, size_t pos) -> bool"""
3703 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3705 def DeleteTool(*args
, **kwargs
):
3706 """DeleteTool(self, int id) -> bool"""
3707 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3709 def ClearTools(*args
, **kwargs
):
3710 """ClearTools(self)"""
3711 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3713 def Realize(*args
, **kwargs
):
3714 """Realize(self) -> bool"""
3715 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3717 def EnableTool(*args
, **kwargs
):
3718 """EnableTool(self, int id, bool enable)"""
3719 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3721 def ToggleTool(*args
, **kwargs
):
3722 """ToggleTool(self, int id, bool toggle)"""
3723 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3725 def SetToggle(*args
, **kwargs
):
3726 """SetToggle(self, int id, bool toggle)"""
3727 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3729 def GetToolClientData(*args
, **kwargs
):
3730 """GetToolClientData(self, int id) -> PyObject"""
3731 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3733 def SetToolClientData(*args
, **kwargs
):
3734 """SetToolClientData(self, int id, PyObject clientData)"""
3735 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3737 def GetToolPos(*args
, **kwargs
):
3738 """GetToolPos(self, int id) -> int"""
3739 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3741 def GetToolState(*args
, **kwargs
):
3742 """GetToolState(self, int id) -> bool"""
3743 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3745 def GetToolEnabled(*args
, **kwargs
):
3746 """GetToolEnabled(self, int id) -> bool"""
3747 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3749 def SetToolShortHelp(*args
, **kwargs
):
3750 """SetToolShortHelp(self, int id, String helpString)"""
3751 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3753 def GetToolShortHelp(*args
, **kwargs
):
3754 """GetToolShortHelp(self, int id) -> String"""
3755 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3757 def SetToolLongHelp(*args
, **kwargs
):
3758 """SetToolLongHelp(self, int id, String helpString)"""
3759 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3761 def GetToolLongHelp(*args
, **kwargs
):
3762 """GetToolLongHelp(self, int id) -> String"""
3763 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3765 def SetMarginsXY(*args
, **kwargs
):
3766 """SetMarginsXY(self, int x, int y)"""
3767 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3769 def SetMargins(*args
, **kwargs
):
3770 """SetMargins(self, Size size)"""
3771 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3773 def SetToolPacking(*args
, **kwargs
):
3774 """SetToolPacking(self, int packing)"""
3775 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3777 def SetToolSeparation(*args
, **kwargs
):
3778 """SetToolSeparation(self, int separation)"""
3779 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3781 def GetToolMargins(*args
, **kwargs
):
3782 """GetToolMargins(self) -> Size"""
3783 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3785 def GetMargins(*args
, **kwargs
):
3786 """GetMargins(self) -> Size"""
3787 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3789 def GetToolPacking(*args
, **kwargs
):
3790 """GetToolPacking(self) -> int"""
3791 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3793 def GetToolSeparation(*args
, **kwargs
):
3794 """GetToolSeparation(self) -> int"""
3795 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3797 def SetRows(*args
, **kwargs
):
3798 """SetRows(self, int nRows)"""
3799 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3801 def SetMaxRowsCols(*args
, **kwargs
):
3802 """SetMaxRowsCols(self, int rows, int cols)"""
3803 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3805 def GetMaxRows(*args
, **kwargs
):
3806 """GetMaxRows(self) -> int"""
3807 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3809 def GetMaxCols(*args
, **kwargs
):
3810 """GetMaxCols(self) -> int"""
3811 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3813 def SetToolBitmapSize(*args
, **kwargs
):
3814 """SetToolBitmapSize(self, Size size)"""
3815 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3817 def GetToolBitmapSize(*args
, **kwargs
):
3818 """GetToolBitmapSize(self) -> Size"""
3819 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3821 def GetToolSize(*args
, **kwargs
):
3822 """GetToolSize(self) -> Size"""
3823 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3825 def FindToolForPosition(*args
, **kwargs
):
3826 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3827 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3829 def FindById(*args
, **kwargs
):
3830 """FindById(self, int toolid) -> ToolBarToolBase"""
3831 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3833 def IsVertical(*args
, **kwargs
):
3834 """IsVertical(self) -> bool"""
3835 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3837 def GetToolsCount(*args
, **kwargs
):
3838 """GetToolsCount(self) -> size_t"""
3839 return _controls_
.ToolBarBase_GetToolsCount(*args
, **kwargs
)
3841 ToolBarBase_swigregister
= _controls_
.ToolBarBase_swigregister
3842 ToolBarBase_swigregister(ToolBarBase
)
3844 class ToolBar(ToolBarBase
):
3845 """Proxy of C++ ToolBar class"""
3846 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3847 __repr__
= _swig_repr
3848 def __init__(self
, *args
, **kwargs
):
3850 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3851 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3852 String name=wxPyToolBarNameStr) -> ToolBar
3854 _controls_
.ToolBar_swiginit(self
,_controls_
.new_ToolBar(*args
, **kwargs
))
3855 self
._setOORInfo
(self
)
3857 def Create(*args
, **kwargs
):
3859 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3860 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3861 String name=wxPyToolBarNameStr) -> bool
3863 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3865 def GetClassDefaultAttributes(*args
, **kwargs
):
3867 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3869 Get the default attributes for this class. This is useful if you want
3870 to use the same font or colour in your own control as in a standard
3871 control -- which is a much better idea than hard coding specific
3872 colours or fonts which might look completely out of place on the
3873 user's system, especially if it uses themes.
3875 The variant parameter is only relevant under Mac currently and is
3876 ignore under other platforms. Under Mac, it will change the size of
3877 the returned font. See `wx.Window.SetWindowVariant` for more about
3880 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3882 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3883 ToolBar_swigregister
= _controls_
.ToolBar_swigregister
3884 ToolBar_swigregister(ToolBar
)
3886 def PreToolBar(*args
, **kwargs
):
3887 """PreToolBar() -> ToolBar"""
3888 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3891 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3893 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3895 Get the default attributes for this class. This is useful if you want
3896 to use the same font or colour in your own control as in a standard
3897 control -- which is a much better idea than hard coding specific
3898 colours or fonts which might look completely out of place on the
3899 user's system, especially if it uses themes.
3901 The variant parameter is only relevant under Mac currently and is
3902 ignore under other platforms. Under Mac, it will change the size of
3903 the returned font. See `wx.Window.SetWindowVariant` for more about
3906 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3908 #---------------------------------------------------------------------------
3910 LC_VRULES
= _controls_
.LC_VRULES
3911 LC_HRULES
= _controls_
.LC_HRULES
3912 LC_ICON
= _controls_
.LC_ICON
3913 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3914 LC_LIST
= _controls_
.LC_LIST
3915 LC_REPORT
= _controls_
.LC_REPORT
3916 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3917 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3918 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3919 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3920 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3921 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3922 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3923 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3924 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3925 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3926 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3927 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3928 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3929 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3930 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3931 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3932 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3933 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3934 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3935 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3936 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3937 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3938 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3939 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3940 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3941 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3942 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3943 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3944 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3945 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3946 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3947 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3948 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3949 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3950 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3951 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3952 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3953 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3954 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3955 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3956 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3957 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3958 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3959 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3960 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3961 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3962 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3963 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3964 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3965 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3966 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3967 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3968 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3969 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3970 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3971 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3972 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3973 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3974 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3975 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3976 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3977 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3978 #---------------------------------------------------------------------------
3980 class ListItemAttr(object):
3981 """Proxy of C++ ListItemAttr class"""
3982 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3983 __repr__
= _swig_repr
3984 def __init__(self
, *args
, **kwargs
):
3986 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3987 Font font=wxNullFont) -> ListItemAttr
3989 _controls_
.ListItemAttr_swiginit(self
,_controls_
.new_ListItemAttr(*args
, **kwargs
))
3990 __swig_destroy__
= _controls_
.delete_ListItemAttr
3991 __del__
= lambda self
: None;
3992 def SetTextColour(*args
, **kwargs
):
3993 """SetTextColour(self, Colour colText)"""
3994 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3996 def SetBackgroundColour(*args
, **kwargs
):
3997 """SetBackgroundColour(self, Colour colBack)"""
3998 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
4000 def SetFont(*args
, **kwargs
):
4001 """SetFont(self, Font font)"""
4002 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
4004 def HasTextColour(*args
, **kwargs
):
4005 """HasTextColour(self) -> bool"""
4006 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
4008 def HasBackgroundColour(*args
, **kwargs
):
4009 """HasBackgroundColour(self) -> bool"""
4010 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
4012 def HasFont(*args
, **kwargs
):
4013 """HasFont(self) -> bool"""
4014 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4016 def GetTextColour(*args
, **kwargs
):
4017 """GetTextColour(self) -> Colour"""
4018 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4020 def GetBackgroundColour(*args
, **kwargs
):
4021 """GetBackgroundColour(self) -> Colour"""
4022 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4024 def GetFont(*args
, **kwargs
):
4025 """GetFont(self) -> Font"""
4026 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4028 def AssignFrom(*args
, **kwargs
):
4029 """AssignFrom(self, ListItemAttr source)"""
4030 return _controls_
.ListItemAttr_AssignFrom(*args
, **kwargs
)
4032 def Destroy(*args
, **kwargs
):
4034 val
= _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4038 ListItemAttr_swigregister
= _controls_
.ListItemAttr_swigregister
4039 ListItemAttr_swigregister(ListItemAttr
)
4040 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4042 #---------------------------------------------------------------------------
4044 class ListItem(_core
.Object
):
4045 """Proxy of C++ ListItem class"""
4046 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4047 __repr__
= _swig_repr
4048 def __init__(self
, *args
, **kwargs
):
4049 """__init__(self) -> ListItem"""
4050 _controls_
.ListItem_swiginit(self
,_controls_
.new_ListItem(*args
, **kwargs
))
4051 __swig_destroy__
= _controls_
.delete_ListItem
4052 __del__
= lambda self
: None;
4053 def Clear(*args
, **kwargs
):
4055 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4057 def ClearAttributes(*args
, **kwargs
):
4058 """ClearAttributes(self)"""
4059 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4061 def SetMask(*args
, **kwargs
):
4062 """SetMask(self, long mask)"""
4063 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4065 def SetId(*args
, **kwargs
):
4066 """SetId(self, long id)"""
4067 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4069 def SetColumn(*args
, **kwargs
):
4070 """SetColumn(self, int col)"""
4071 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4073 def SetState(*args
, **kwargs
):
4074 """SetState(self, long state)"""
4075 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4077 def SetStateMask(*args
, **kwargs
):
4078 """SetStateMask(self, long stateMask)"""
4079 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4081 def SetText(*args
, **kwargs
):
4082 """SetText(self, String text)"""
4083 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4085 def SetImage(*args
, **kwargs
):
4086 """SetImage(self, int image)"""
4087 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4089 def SetData(*args
, **kwargs
):
4090 """SetData(self, long data)"""
4091 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4093 def SetWidth(*args
, **kwargs
):
4094 """SetWidth(self, int width)"""
4095 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4097 def SetAlign(*args
, **kwargs
):
4098 """SetAlign(self, int align)"""
4099 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4101 def SetTextColour(*args
, **kwargs
):
4102 """SetTextColour(self, Colour colText)"""
4103 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4105 def SetBackgroundColour(*args
, **kwargs
):
4106 """SetBackgroundColour(self, Colour colBack)"""
4107 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4109 def SetFont(*args
, **kwargs
):
4110 """SetFont(self, Font font)"""
4111 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4113 def GetMask(*args
, **kwargs
):
4114 """GetMask(self) -> long"""
4115 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4117 def GetId(*args
, **kwargs
):
4118 """GetId(self) -> long"""
4119 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4121 def GetColumn(*args
, **kwargs
):
4122 """GetColumn(self) -> int"""
4123 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4125 def GetState(*args
, **kwargs
):
4126 """GetState(self) -> long"""
4127 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4129 def GetText(*args
, **kwargs
):
4130 """GetText(self) -> String"""
4131 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4133 def GetImage(*args
, **kwargs
):
4134 """GetImage(self) -> int"""
4135 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4137 def GetData(*args
, **kwargs
):
4138 """GetData(self) -> long"""
4139 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4141 def GetWidth(*args
, **kwargs
):
4142 """GetWidth(self) -> int"""
4143 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4145 def GetAlign(*args
, **kwargs
):
4146 """GetAlign(self) -> int"""
4147 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4149 def GetAttributes(*args
, **kwargs
):
4150 """GetAttributes(self) -> ListItemAttr"""
4151 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4153 def HasAttributes(*args
, **kwargs
):
4154 """HasAttributes(self) -> bool"""
4155 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4157 def GetTextColour(*args
, **kwargs
):
4158 """GetTextColour(self) -> Colour"""
4159 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4161 def GetBackgroundColour(*args
, **kwargs
):
4162 """GetBackgroundColour(self) -> Colour"""
4163 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4165 def GetFont(*args
, **kwargs
):
4166 """GetFont(self) -> Font"""
4167 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4169 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4170 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4171 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4172 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4173 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4174 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4175 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4176 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4177 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4178 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4179 ListItem_swigregister
= _controls_
.ListItem_swigregister
4180 ListItem_swigregister(ListItem
)
4182 #---------------------------------------------------------------------------
4184 class ListEvent(_core
.NotifyEvent
):
4185 """Proxy of C++ ListEvent class"""
4186 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4187 __repr__
= _swig_repr
4188 def __init__(self
, *args
, **kwargs
):
4189 """__init__(self, EventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4190 _controls_
.ListEvent_swiginit(self
,_controls_
.new_ListEvent(*args
, **kwargs
))
4191 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4192 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4193 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4194 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4195 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4196 m_item
= property(_controls_
.ListEvent_m_item_get
)
4197 def GetKeyCode(*args
, **kwargs
):
4198 """GetKeyCode(self) -> int"""
4199 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4201 GetCode
= GetKeyCode
4202 def GetIndex(*args
, **kwargs
):
4203 """GetIndex(self) -> long"""
4204 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4206 def GetColumn(*args
, **kwargs
):
4207 """GetColumn(self) -> int"""
4208 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4210 def GetPoint(*args
, **kwargs
):
4211 """GetPoint(self) -> Point"""
4212 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4214 GetPosition
= GetPoint
4215 def GetLabel(*args
, **kwargs
):
4216 """GetLabel(self) -> String"""
4217 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4219 def GetText(*args
, **kwargs
):
4220 """GetText(self) -> String"""
4221 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4223 def GetImage(*args
, **kwargs
):
4224 """GetImage(self) -> int"""
4225 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4227 def GetData(*args
, **kwargs
):
4228 """GetData(self) -> long"""
4229 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4231 def GetMask(*args
, **kwargs
):
4232 """GetMask(self) -> long"""
4233 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4235 def GetItem(*args
, **kwargs
):
4236 """GetItem(self) -> ListItem"""
4237 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4239 def GetCacheFrom(*args
, **kwargs
):
4240 """GetCacheFrom(self) -> long"""
4241 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4243 def GetCacheTo(*args
, **kwargs
):
4244 """GetCacheTo(self) -> long"""
4245 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4247 def IsEditCancelled(*args
, **kwargs
):
4248 """IsEditCancelled(self) -> bool"""
4249 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4251 def SetEditCanceled(*args
, **kwargs
):
4252 """SetEditCanceled(self, bool editCancelled)"""
4253 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4255 ListEvent_swigregister
= _controls_
.ListEvent_swigregister
4256 ListEvent_swigregister(ListEvent
)
4258 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4259 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4260 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4261 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4262 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4263 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4264 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4265 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4266 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4267 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4268 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4269 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4270 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4271 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4272 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4273 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4274 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4275 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4276 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4277 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4278 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4279 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4280 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4281 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4282 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4283 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4288 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4289 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4290 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4291 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4292 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4293 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4294 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4295 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4296 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4297 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4298 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4299 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4300 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4301 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4307 #---------------------------------------------------------------------------
4309 class ListCtrl(_core
.Control
):
4310 """Proxy of C++ ListCtrl class"""
4311 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4312 __repr__
= _swig_repr
4313 def __init__(self
, *args
, **kwargs
):
4315 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4316 Size size=DefaultSize, long style=LC_ICON,
4317 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4319 _controls_
.ListCtrl_swiginit(self
,_controls_
.new_ListCtrl(*args
, **kwargs
))
4320 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4322 def Create(*args
, **kwargs
):
4324 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4325 Size size=DefaultSize, long style=LC_ICON,
4326 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4328 Do the 2nd phase and create the GUI control.
4330 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4332 def _setCallbackInfo(*args
, **kwargs
):
4333 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4334 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4336 def GetColumn(*args
, **kwargs
):
4337 """GetColumn(self, int col) -> ListItem"""
4338 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4339 if val
is not None: val
.thisown
= 1
4342 def SetColumn(*args
, **kwargs
):
4343 """SetColumn(self, int col, ListItem item) -> bool"""
4344 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4346 def GetColumnWidth(*args
, **kwargs
):
4347 """GetColumnWidth(self, int col) -> int"""
4348 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4350 def SetColumnWidth(*args
, **kwargs
):
4351 """SetColumnWidth(self, int col, int width) -> bool"""
4352 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4354 def GetCountPerPage(*args
, **kwargs
):
4355 """GetCountPerPage(self) -> int"""
4356 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4358 def GetViewRect(*args
, **kwargs
):
4359 """GetViewRect(self) -> Rect"""
4360 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4362 def GetEditControl(*args
, **kwargs
):
4363 """GetEditControl(self) -> TextCtrl"""
4364 return _controls_
.ListCtrl_GetEditControl(*args
, **kwargs
)
4366 def GetItem(*args
, **kwargs
):
4367 """GetItem(self, long itemId, int col=0) -> ListItem"""
4368 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4369 if val
is not None: val
.thisown
= 1
4372 def SetItem(*args
, **kwargs
):
4373 """SetItem(self, ListItem info) -> bool"""
4374 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4376 def SetStringItem(*args
, **kwargs
):
4377 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4378 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4380 def GetItemState(*args
, **kwargs
):
4381 """GetItemState(self, long item, long stateMask) -> int"""
4382 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4384 def SetItemState(*args
, **kwargs
):
4385 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4386 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4388 def SetItemImage(*args
, **kwargs
):
4389 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4390 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4392 def SetItemColumnImage(*args
, **kwargs
):
4393 """SetItemColumnImage(self, long item, long column, int image) -> bool"""
4394 return _controls_
.ListCtrl_SetItemColumnImage(*args
, **kwargs
)
4396 def GetItemText(*args
, **kwargs
):
4397 """GetItemText(self, long item) -> String"""
4398 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4400 def SetItemText(*args
, **kwargs
):
4401 """SetItemText(self, long item, String str)"""
4402 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4404 def GetItemData(*args
, **kwargs
):
4405 """GetItemData(self, long item) -> long"""
4406 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4408 def SetItemData(*args
, **kwargs
):
4409 """SetItemData(self, long item, long data) -> bool"""
4410 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4412 def GetItemPosition(*args
, **kwargs
):
4413 """GetItemPosition(self, long item) -> Point"""
4414 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4416 def GetItemRect(*args
, **kwargs
):
4417 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4418 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4420 def SetItemPosition(*args
, **kwargs
):
4421 """SetItemPosition(self, long item, Point pos) -> bool"""
4422 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4424 def GetItemCount(*args
, **kwargs
):
4425 """GetItemCount(self) -> int"""
4426 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4428 def GetColumnCount(*args
, **kwargs
):
4429 """GetColumnCount(self) -> int"""
4430 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4432 def GetItemSpacing(*args
, **kwargs
):
4433 """GetItemSpacing(self) -> Size"""
4434 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4436 GetItemSpacing
= wx
._deprecated
(GetItemSpacing
)
4437 def GetSelectedItemCount(*args
, **kwargs
):
4438 """GetSelectedItemCount(self) -> int"""
4439 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4441 def GetTextColour(*args
, **kwargs
):
4442 """GetTextColour(self) -> Colour"""
4443 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4445 def SetTextColour(*args
, **kwargs
):
4446 """SetTextColour(self, Colour col)"""
4447 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4449 def GetTopItem(*args
, **kwargs
):
4450 """GetTopItem(self) -> long"""
4451 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4453 def SetSingleStyle(*args
, **kwargs
):
4454 """SetSingleStyle(self, long style, bool add=True)"""
4455 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4457 def GetNextItem(*args
, **kwargs
):
4458 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4459 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4461 def GetImageList(*args
, **kwargs
):
4462 """GetImageList(self, int which) -> ImageList"""
4463 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4465 def SetImageList(*args
, **kwargs
):
4466 """SetImageList(self, ImageList imageList, int which)"""
4467 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4469 def AssignImageList(*args
, **kwargs
):
4470 """AssignImageList(self, ImageList imageList, int which)"""
4471 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4473 def InReportView(*args
, **kwargs
):
4474 """InReportView(self) -> bool"""
4475 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4477 def IsVirtual(*args
, **kwargs
):
4478 """IsVirtual(self) -> bool"""
4479 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4481 def RefreshItem(*args
, **kwargs
):
4482 """RefreshItem(self, long item)"""
4483 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4485 def RefreshItems(*args
, **kwargs
):
4486 """RefreshItems(self, long itemFrom, long itemTo)"""
4487 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4489 def Arrange(*args
, **kwargs
):
4490 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4491 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4493 def DeleteItem(*args
, **kwargs
):
4494 """DeleteItem(self, long item) -> bool"""
4495 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4497 def DeleteAllItems(*args
, **kwargs
):
4498 """DeleteAllItems(self) -> bool"""
4499 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4501 def DeleteColumn(*args
, **kwargs
):
4502 """DeleteColumn(self, int col) -> bool"""
4503 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4505 def DeleteAllColumns(*args
, **kwargs
):
4506 """DeleteAllColumns(self) -> bool"""
4507 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4509 def ClearAll(*args
, **kwargs
):
4510 """ClearAll(self)"""
4511 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4513 def EditLabel(*args
, **kwargs
):
4514 """EditLabel(self, long item) -> TextCtrl"""
4515 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4517 def EndEditLabel(*args
, **kwargs
):
4518 """EndEditLabel(self, bool cancel) -> bool"""
4519 return _controls_
.ListCtrl_EndEditLabel(*args
, **kwargs
)
4521 def EnsureVisible(*args
, **kwargs
):
4522 """EnsureVisible(self, long item) -> bool"""
4523 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4525 def FindItem(*args
, **kwargs
):
4526 """FindItem(self, long start, String str, bool partial=False) -> long"""
4527 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4529 def FindItemData(*args
, **kwargs
):
4530 """FindItemData(self, long start, long data) -> long"""
4531 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4533 def FindItemAtPos(*args
, **kwargs
):
4534 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4535 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4537 def HitTest(*args
, **kwargs
):
4539 HitTest(Point point) -> (item, where)
4541 Determines which item (if any) is at the specified point, giving
4542 in the second return value (see wx.LIST_HITTEST flags.)
4544 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4546 def InsertItem(*args
, **kwargs
):
4547 """InsertItem(self, ListItem info) -> long"""
4548 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4550 def InsertStringItem(*args
, **kwargs
):
4551 """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long"""
4552 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4554 def InsertImageItem(*args
, **kwargs
):
4555 """InsertImageItem(self, long index, int imageIndex) -> long"""
4556 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4558 def InsertImageStringItem(*args
, **kwargs
):
4559 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4560 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4562 def InsertColumnItem(*args
, **kwargs
):
4563 """InsertColumnItem(self, long col, ListItem info) -> long"""
4564 return _controls_
.ListCtrl_InsertColumnItem(*args
, **kwargs
)
4566 InsertColumnInfo
= InsertColumnItem
4567 def InsertColumn(*args
, **kwargs
):
4569 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4570 int width=-1) -> long
4572 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4574 def SetItemCount(*args
, **kwargs
):
4575 """SetItemCount(self, long count)"""
4576 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4578 def ScrollList(*args
, **kwargs
):
4579 """ScrollList(self, int dx, int dy) -> bool"""
4580 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4582 def SetItemTextColour(*args
, **kwargs
):
4583 """SetItemTextColour(self, long item, Colour col)"""
4584 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4586 def GetItemTextColour(*args
, **kwargs
):
4587 """GetItemTextColour(self, long item) -> Colour"""
4588 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4590 def SetItemBackgroundColour(*args
, **kwargs
):
4591 """SetItemBackgroundColour(self, long item, Colour col)"""
4592 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4594 def GetItemBackgroundColour(*args
, **kwargs
):
4595 """GetItemBackgroundColour(self, long item) -> Colour"""
4596 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4598 def SetItemFont(*args
, **kwargs
):
4599 """SetItemFont(self, long item, Font f)"""
4600 return _controls_
.ListCtrl_SetItemFont(*args
, **kwargs
)
4602 def GetItemFont(*args
, **kwargs
):
4603 """GetItemFont(self, long item) -> Font"""
4604 return _controls_
.ListCtrl_GetItemFont(*args
, **kwargs
)
4608 def Select(self
, idx
, on
=1):
4609 '''[de]select an item'''
4610 if on
: state
= wx
.LIST_STATE_SELECTED
4612 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4614 def Focus(self
, idx
):
4615 '''Focus and show the given item'''
4616 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4617 self
.EnsureVisible(idx
)
4619 def GetFocusedItem(self
):
4620 '''get the currently focused item or -1 if none'''
4621 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4623 def GetFirstSelected(self
, *args
):
4624 '''return first selected item, or -1 when none'''
4625 return self
.GetNextSelected(-1)
4627 def GetNextSelected(self
, item
):
4628 '''return subsequent selected items, or -1 when no more'''
4629 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4631 def IsSelected(self
, idx
):
4632 '''return True if the item is selected'''
4633 return (self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) & wx
.LIST_STATE_SELECTED
) != 0
4635 def SetColumnImage(self
, col
, image
):
4636 item
= self
.GetColumn(col
)
4637 # preserve all other attributes too
4638 item
.SetMask( wx
.LIST_MASK_STATE |
4640 wx
.LIST_MASK_IMAGE |
4643 wx
.LIST_MASK_WIDTH |
4644 wx
.LIST_MASK_FORMAT
)
4645 item
.SetImage(image
)
4646 self
.SetColumn(col
, item
)
4648 def ClearColumnImage(self
, col
):
4649 self
.SetColumnImage(col
, -1)
4651 def Append(self
, entry
):
4652 '''Append an item to the list control. The entry parameter should be a
4653 sequence with an item for each column'''
4659 pos
= self
.GetItemCount()
4660 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4661 for i
in range(1, len(entry
)):
4662 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4665 def SortItems(*args
, **kwargs
):
4666 """SortItems(self, PyObject func) -> bool"""
4667 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4669 def GetMainWindow(*args
, **kwargs
):
4670 """GetMainWindow(self) -> Window"""
4671 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4673 def GetClassDefaultAttributes(*args
, **kwargs
):
4675 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4677 Get the default attributes for this class. This is useful if you want
4678 to use the same font or colour in your own control as in a standard
4679 control -- which is a much better idea than hard coding specific
4680 colours or fonts which might look completely out of place on the
4681 user's system, especially if it uses themes.
4683 The variant parameter is only relevant under Mac currently and is
4684 ignore under other platforms. Under Mac, it will change the size of
4685 the returned font. See `wx.Window.SetWindowVariant` for more about
4688 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4690 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4691 ListCtrl_swigregister
= _controls_
.ListCtrl_swigregister
4692 ListCtrl_swigregister(ListCtrl
)
4694 def PreListCtrl(*args
, **kwargs
):
4695 """PreListCtrl() -> ListCtrl"""
4696 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4699 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4701 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4703 Get the default attributes for this class. This is useful if you want
4704 to use the same font or colour in your own control as in a standard
4705 control -- which is a much better idea than hard coding specific
4706 colours or fonts which might look completely out of place on the
4707 user's system, especially if it uses themes.
4709 The variant parameter is only relevant under Mac currently and is
4710 ignore under other platforms. Under Mac, it will change the size of
4711 the returned font. See `wx.Window.SetWindowVariant` for more about
4714 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4716 #---------------------------------------------------------------------------
4718 class ListView(ListCtrl
):
4719 """Proxy of C++ ListView class"""
4720 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4721 __repr__
= _swig_repr
4722 def __init__(self
, *args
, **kwargs
):
4724 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4725 Size size=DefaultSize, long style=LC_REPORT,
4726 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4728 _controls_
.ListView_swiginit(self
,_controls_
.new_ListView(*args
, **kwargs
))
4729 self
._setOORInfo
(self
)
4731 def Create(*args
, **kwargs
):
4733 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4734 Size size=DefaultSize, long style=LC_REPORT,
4735 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4737 Do the 2nd phase and create the GUI control.
4739 return _controls_
.ListView_Create(*args
, **kwargs
)
4741 def Select(*args
, **kwargs
):
4742 """Select(self, long n, bool on=True)"""
4743 return _controls_
.ListView_Select(*args
, **kwargs
)
4745 def Focus(*args
, **kwargs
):
4746 """Focus(self, long index)"""
4747 return _controls_
.ListView_Focus(*args
, **kwargs
)
4749 def GetFocusedItem(*args
, **kwargs
):
4750 """GetFocusedItem(self) -> long"""
4751 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4753 def GetNextSelected(*args
, **kwargs
):
4754 """GetNextSelected(self, long item) -> long"""
4755 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4757 def GetFirstSelected(*args
, **kwargs
):
4758 """GetFirstSelected(self) -> long"""
4759 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4761 def IsSelected(*args
, **kwargs
):
4762 """IsSelected(self, long index) -> bool"""
4763 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4765 def SetColumnImage(*args
, **kwargs
):
4766 """SetColumnImage(self, int col, int image)"""
4767 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4769 def ClearColumnImage(*args
, **kwargs
):
4770 """ClearColumnImage(self, int col)"""
4771 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4773 ListView_swigregister
= _controls_
.ListView_swigregister
4774 ListView_swigregister(ListView
)
4776 def PreListView(*args
, **kwargs
):
4777 """PreListView() -> ListView"""
4778 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4781 #---------------------------------------------------------------------------
4783 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4784 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4785 TR_NO_LINES
= _controls_
.TR_NO_LINES
4786 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4787 TR_SINGLE
= _controls_
.TR_SINGLE
4788 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4789 TR_EXTENDED
= _controls_
.TR_EXTENDED
4790 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4791 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4792 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4793 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4794 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4795 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4796 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4799 wxTR_AQUA_BUTTONS
= 0
4801 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4802 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4803 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4804 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4805 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4806 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4807 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4808 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4809 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4810 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4811 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4812 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4813 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4814 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4815 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4816 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4817 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4818 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4819 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4820 #---------------------------------------------------------------------------
4822 class TreeItemId(object):
4823 """Proxy of C++ TreeItemId class"""
4824 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4825 __repr__
= _swig_repr
4826 def __init__(self
, *args
, **kwargs
):
4827 """__init__(self) -> TreeItemId"""
4828 _controls_
.TreeItemId_swiginit(self
,_controls_
.new_TreeItemId(*args
, **kwargs
))
4829 __swig_destroy__
= _controls_
.delete_TreeItemId
4830 __del__
= lambda self
: None;
4831 def IsOk(*args
, **kwargs
):
4832 """IsOk(self) -> bool"""
4833 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4835 def __eq__(*args
, **kwargs
):
4836 """__eq__(self, TreeItemId other) -> bool"""
4837 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4839 def __ne__(*args
, **kwargs
):
4840 """__ne__(self, TreeItemId other) -> bool"""
4841 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4843 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4845 def __nonzero__(self
): return self
.IsOk()
4846 TreeItemId_swigregister
= _controls_
.TreeItemId_swigregister
4847 TreeItemId_swigregister(TreeItemId
)
4848 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4850 class TreeItemData(object):
4851 """Proxy of C++ TreeItemData class"""
4852 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4853 __repr__
= _swig_repr
4854 def __init__(self
, *args
, **kwargs
):
4855 """__init__(self, PyObject obj=None) -> TreeItemData"""
4856 _controls_
.TreeItemData_swiginit(self
,_controls_
.new_TreeItemData(*args
, **kwargs
))
4857 __swig_destroy__
= _controls_
.delete_TreeItemData
4858 __del__
= lambda self
: None;
4859 def GetData(*args
, **kwargs
):
4860 """GetData(self) -> PyObject"""
4861 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4863 def SetData(*args
, **kwargs
):
4864 """SetData(self, PyObject obj)"""
4865 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4867 def GetId(*args
, **kwargs
):
4868 """GetId(self) -> TreeItemId"""
4869 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4871 def SetId(*args
, **kwargs
):
4872 """SetId(self, TreeItemId id)"""
4873 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4875 def Destroy(*args
, **kwargs
):
4877 val
= _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4881 TreeItemData_swigregister
= _controls_
.TreeItemData_swigregister
4882 TreeItemData_swigregister(TreeItemData
)
4884 #---------------------------------------------------------------------------
4886 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4887 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4888 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4889 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4890 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4891 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4892 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4893 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4894 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4895 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4896 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4897 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4898 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4899 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4900 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4901 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4902 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4903 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4904 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4905 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4906 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
4907 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4908 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4909 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4910 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4911 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4912 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4913 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4914 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4915 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4916 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4917 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4918 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4919 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4920 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4921 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4922 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4923 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4924 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4925 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4926 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4927 EVT_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
4929 class TreeEvent(_core
.NotifyEvent
):
4930 """Proxy of C++ TreeEvent class"""
4931 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4932 __repr__
= _swig_repr
4933 def __init__(self
, *args
, **kwargs
):
4934 """__init__(self, EventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4935 _controls_
.TreeEvent_swiginit(self
,_controls_
.new_TreeEvent(*args
, **kwargs
))
4936 def GetItem(*args
, **kwargs
):
4937 """GetItem(self) -> TreeItemId"""
4938 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4940 def SetItem(*args
, **kwargs
):
4941 """SetItem(self, TreeItemId item)"""
4942 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4944 def GetOldItem(*args
, **kwargs
):
4945 """GetOldItem(self) -> TreeItemId"""
4946 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4948 def SetOldItem(*args
, **kwargs
):
4949 """SetOldItem(self, TreeItemId item)"""
4950 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4952 def GetPoint(*args
, **kwargs
):
4953 """GetPoint(self) -> Point"""
4954 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4956 def SetPoint(*args
, **kwargs
):
4957 """SetPoint(self, Point pt)"""
4958 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4960 def GetKeyEvent(*args
, **kwargs
):
4961 """GetKeyEvent(self) -> KeyEvent"""
4962 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4964 def GetKeyCode(*args
, **kwargs
):
4965 """GetKeyCode(self) -> int"""
4966 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4968 def SetKeyEvent(*args
, **kwargs
):
4969 """SetKeyEvent(self, KeyEvent evt)"""
4970 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4972 def GetLabel(*args
, **kwargs
):
4973 """GetLabel(self) -> String"""
4974 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4976 def SetLabel(*args
, **kwargs
):
4977 """SetLabel(self, String label)"""
4978 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4980 def IsEditCancelled(*args
, **kwargs
):
4981 """IsEditCancelled(self) -> bool"""
4982 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4984 def SetEditCanceled(*args
, **kwargs
):
4985 """SetEditCanceled(self, bool editCancelled)"""
4986 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4988 def SetToolTip(*args
, **kwargs
):
4989 """SetToolTip(self, String toolTip)"""
4990 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4992 def GetToolTip(*args
, **kwargs
):
4993 """GetToolTip(self) -> String"""
4994 return _controls_
.TreeEvent_GetToolTip(*args
, **kwargs
)
4996 TreeEvent_swigregister
= _controls_
.TreeEvent_swigregister
4997 TreeEvent_swigregister(TreeEvent
)
4999 #---------------------------------------------------------------------------
5001 class TreeCtrl(_core
.Control
):
5002 """Proxy of C++ TreeCtrl class"""
5003 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5004 __repr__
= _swig_repr
5005 def __init__(self
, *args
, **kwargs
):
5007 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5008 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5009 Validator validator=DefaultValidator,
5010 String name=TreeCtrlNameStr) -> TreeCtrl
5012 _controls_
.TreeCtrl_swiginit(self
,_controls_
.new_TreeCtrl(*args
, **kwargs
))
5013 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5015 def Create(*args
, **kwargs
):
5017 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5018 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5019 Validator validator=DefaultValidator,
5020 String name=TreeCtrlNameStr) -> bool
5022 Do the 2nd phase and create the GUI control.
5024 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5026 def _setCallbackInfo(*args
, **kwargs
):
5027 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5028 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5030 def GetCount(*args
, **kwargs
):
5031 """GetCount(self) -> unsigned int"""
5032 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5034 def GetIndent(*args
, **kwargs
):
5035 """GetIndent(self) -> unsigned int"""
5036 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5038 def SetIndent(*args
, **kwargs
):
5039 """SetIndent(self, unsigned int indent)"""
5040 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5042 def GetSpacing(*args
, **kwargs
):
5043 """GetSpacing(self) -> unsigned int"""
5044 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5046 def SetSpacing(*args
, **kwargs
):
5047 """SetSpacing(self, unsigned int spacing)"""
5048 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5050 def GetImageList(*args
, **kwargs
):
5051 """GetImageList(self) -> ImageList"""
5052 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5054 def GetStateImageList(*args
, **kwargs
):
5055 """GetStateImageList(self) -> ImageList"""
5056 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5058 def SetImageList(*args
, **kwargs
):
5059 """SetImageList(self, ImageList imageList)"""
5060 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5062 def SetStateImageList(*args
, **kwargs
):
5063 """SetStateImageList(self, ImageList imageList)"""
5064 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5066 def AssignImageList(*args
, **kwargs
):
5067 """AssignImageList(self, ImageList imageList)"""
5068 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5070 def AssignStateImageList(*args
, **kwargs
):
5071 """AssignStateImageList(self, ImageList imageList)"""
5072 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5074 def GetItemText(*args
, **kwargs
):
5075 """GetItemText(self, TreeItemId item) -> String"""
5076 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5078 def GetItemImage(*args
, **kwargs
):
5079 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5080 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5082 def GetItemData(*args
, **kwargs
):
5083 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5084 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5086 def GetItemPyData(*args
, **kwargs
):
5087 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5088 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5090 GetPyData
= GetItemPyData
5091 def GetItemTextColour(*args
, **kwargs
):
5092 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5093 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5095 def GetItemBackgroundColour(*args
, **kwargs
):
5096 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5097 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5099 def GetItemFont(*args
, **kwargs
):
5100 """GetItemFont(self, TreeItemId item) -> Font"""
5101 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5103 def SetItemText(*args
, **kwargs
):
5104 """SetItemText(self, TreeItemId item, String text)"""
5105 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5107 def SetItemImage(*args
, **kwargs
):
5108 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5109 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5111 def SetItemData(*args
, **kwargs
):
5112 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5113 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5115 def SetItemPyData(*args
, **kwargs
):
5116 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5117 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5119 SetPyData
= SetItemPyData
5120 def SetItemHasChildren(*args
, **kwargs
):
5121 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5122 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5124 def SetItemBold(*args
, **kwargs
):
5125 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5126 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5128 def SetItemDropHighlight(*args
, **kwargs
):
5129 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5130 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5132 def SetItemTextColour(*args
, **kwargs
):
5133 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5134 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5136 def SetItemBackgroundColour(*args
, **kwargs
):
5137 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5138 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5140 def SetItemFont(*args
, **kwargs
):
5141 """SetItemFont(self, TreeItemId item, Font font)"""
5142 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5144 def IsVisible(*args
, **kwargs
):
5145 """IsVisible(self, TreeItemId item) -> bool"""
5146 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5148 def ItemHasChildren(*args
, **kwargs
):
5149 """ItemHasChildren(self, TreeItemId item) -> bool"""
5150 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5152 def IsExpanded(*args
, **kwargs
):
5153 """IsExpanded(self, TreeItemId item) -> bool"""
5154 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5156 def IsSelected(*args
, **kwargs
):
5157 """IsSelected(self, TreeItemId item) -> bool"""
5158 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5160 def IsBold(*args
, **kwargs
):
5161 """IsBold(self, TreeItemId item) -> bool"""
5162 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5164 def GetChildrenCount(*args
, **kwargs
):
5165 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5166 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5168 def GetRootItem(*args
, **kwargs
):
5169 """GetRootItem(self) -> TreeItemId"""
5170 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5172 def GetSelection(*args
, **kwargs
):
5173 """GetSelection(self) -> TreeItemId"""
5174 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5176 def GetSelections(*args
, **kwargs
):
5177 """GetSelections(self) -> PyObject"""
5178 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5180 def GetItemParent(*args
, **kwargs
):
5181 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5182 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5184 def GetFirstChild(*args
, **kwargs
):
5185 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5186 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5188 def GetNextChild(*args
, **kwargs
):
5189 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5190 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5192 def GetLastChild(*args
, **kwargs
):
5193 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5194 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5196 def GetNextSibling(*args
, **kwargs
):
5197 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5198 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5200 def GetPrevSibling(*args
, **kwargs
):
5201 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5202 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5204 def GetFirstVisibleItem(*args
, **kwargs
):
5205 """GetFirstVisibleItem(self) -> TreeItemId"""
5206 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5208 def GetNextVisible(*args
, **kwargs
):
5209 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5210 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5212 def GetPrevVisible(*args
, **kwargs
):
5213 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5214 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5216 def AddRoot(*args
, **kwargs
):
5217 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5218 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5220 def PrependItem(*args
, **kwargs
):
5222 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5223 TreeItemData data=None) -> TreeItemId
5225 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5227 def InsertItem(*args
, **kwargs
):
5229 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5230 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5232 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5234 def InsertItemBefore(*args
, **kwargs
):
5236 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5237 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5239 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5241 def AppendItem(*args
, **kwargs
):
5243 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5244 TreeItemData data=None) -> TreeItemId
5246 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5248 def Delete(*args
, **kwargs
):
5249 """Delete(self, TreeItemId item)"""
5250 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5252 def DeleteChildren(*args
, **kwargs
):
5253 """DeleteChildren(self, TreeItemId item)"""
5254 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5256 def DeleteAllItems(*args
, **kwargs
):
5257 """DeleteAllItems(self)"""
5258 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5260 def Expand(*args
, **kwargs
):
5261 """Expand(self, TreeItemId item)"""
5262 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5264 def Collapse(*args
, **kwargs
):
5265 """Collapse(self, TreeItemId item)"""
5266 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5268 def CollapseAndReset(*args
, **kwargs
):
5269 """CollapseAndReset(self, TreeItemId item)"""
5270 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5272 def Toggle(*args
, **kwargs
):
5273 """Toggle(self, TreeItemId item)"""
5274 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5276 def Unselect(*args
, **kwargs
):
5277 """Unselect(self)"""
5278 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5280 def UnselectItem(*args
, **kwargs
):
5281 """UnselectItem(self, TreeItemId item)"""
5282 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5284 def UnselectAll(*args
, **kwargs
):
5285 """UnselectAll(self)"""
5286 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5288 def SelectItem(*args
, **kwargs
):
5289 """SelectItem(self, TreeItemId item, bool select=True)"""
5290 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5292 def ToggleItemSelection(*args
, **kwargs
):
5293 """ToggleItemSelection(self, TreeItemId item)"""
5294 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5296 def EnsureVisible(*args
, **kwargs
):
5297 """EnsureVisible(self, TreeItemId item)"""
5298 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5300 def ScrollTo(*args
, **kwargs
):
5301 """ScrollTo(self, TreeItemId item)"""
5302 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5304 def EditLabel(*args
, **kwargs
):
5305 """EditLabel(self, TreeItemId item)"""
5306 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5308 def GetEditControl(*args
, **kwargs
):
5309 """GetEditControl(self) -> TextCtrl"""
5310 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5312 def EndEditLabel(*args
, **kwargs
):
5313 """EndEditLabel(self, TreeItemId item, bool discardChanges=False)"""
5314 return _controls_
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
5316 def SortChildren(*args
, **kwargs
):
5317 """SortChildren(self, TreeItemId item)"""
5318 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5320 def HitTest(*args
, **kwargs
):
5322 HitTest(Point point) -> (item, where)
5324 Determine which item (if any) belongs the given point. The coordinates
5325 specified are relative to the client area of tree ctrl and the where return
5326 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5329 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5331 def GetBoundingRect(*args
, **kwargs
):
5332 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5333 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5335 def SetState(*args
, **kwargs
):
5336 """SetState(self, TreeItemId node, int state)"""
5337 return _controls_
.TreeCtrl_SetState(*args
, **kwargs
)
5339 def GetState(*args
, **kwargs
):
5340 """GetState(self, TreeItemId node) -> int"""
5341 return _controls_
.TreeCtrl_GetState(*args
, **kwargs
)
5343 def GetClassDefaultAttributes(*args
, **kwargs
):
5345 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5347 Get the default attributes for this class. This is useful if you want
5348 to use the same font or colour in your own control as in a standard
5349 control -- which is a much better idea than hard coding specific
5350 colours or fonts which might look completely out of place on the
5351 user's system, especially if it uses themes.
5353 The variant parameter is only relevant under Mac currently and is
5354 ignore under other platforms. Under Mac, it will change the size of
5355 the returned font. See `wx.Window.SetWindowVariant` for more about
5358 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5360 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5361 TreeCtrl_swigregister
= _controls_
.TreeCtrl_swigregister
5362 TreeCtrl_swigregister(TreeCtrl
)
5364 def PreTreeCtrl(*args
, **kwargs
):
5365 """PreTreeCtrl() -> TreeCtrl"""
5366 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5369 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5371 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5373 Get the default attributes for this class. This is useful if you want
5374 to use the same font or colour in your own control as in a standard
5375 control -- which is a much better idea than hard coding specific
5376 colours or fonts which might look completely out of place on the
5377 user's system, especially if it uses themes.
5379 The variant parameter is only relevant under Mac currently and is
5380 ignore under other platforms. Under Mac, it will change the size of
5381 the returned font. See `wx.Window.SetWindowVariant` for more about
5384 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5386 #---------------------------------------------------------------------------
5388 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5389 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5390 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5391 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5392 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5393 class GenericDirCtrl(_core
.Control
):
5394 """Proxy of C++ GenericDirCtrl class"""
5395 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5396 __repr__
= _swig_repr
5397 def __init__(self
, *args
, **kwargs
):
5399 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5400 Point pos=DefaultPosition, Size size=DefaultSize,
5401 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5402 String filter=EmptyString,
5403 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5405 _controls_
.GenericDirCtrl_swiginit(self
,_controls_
.new_GenericDirCtrl(*args
, **kwargs
))
5406 self
._setOORInfo
(self
)
5408 def Create(*args
, **kwargs
):
5410 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5411 Point pos=DefaultPosition, Size size=DefaultSize,
5412 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5413 String filter=EmptyString,
5414 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5416 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5418 def ExpandPath(*args
, **kwargs
):
5419 """ExpandPath(self, String path) -> bool"""
5420 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5422 def GetDefaultPath(*args
, **kwargs
):
5423 """GetDefaultPath(self) -> String"""
5424 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5426 def SetDefaultPath(*args
, **kwargs
):
5427 """SetDefaultPath(self, String path)"""
5428 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5430 def GetPath(*args
, **kwargs
):
5431 """GetPath(self) -> String"""
5432 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5434 def GetFilePath(*args
, **kwargs
):
5435 """GetFilePath(self) -> String"""
5436 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5438 def SetPath(*args
, **kwargs
):
5439 """SetPath(self, String path)"""
5440 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5442 def ShowHidden(*args
, **kwargs
):
5443 """ShowHidden(self, bool show)"""
5444 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5446 def GetShowHidden(*args
, **kwargs
):
5447 """GetShowHidden(self) -> bool"""
5448 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5450 def GetFilter(*args
, **kwargs
):
5451 """GetFilter(self) -> String"""
5452 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5454 def SetFilter(*args
, **kwargs
):
5455 """SetFilter(self, String filter)"""
5456 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5458 def GetFilterIndex(*args
, **kwargs
):
5459 """GetFilterIndex(self) -> int"""
5460 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5462 def SetFilterIndex(*args
, **kwargs
):
5463 """SetFilterIndex(self, int n)"""
5464 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5466 def GetRootId(*args
, **kwargs
):
5467 """GetRootId(self) -> TreeItemId"""
5468 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5470 def GetTreeCtrl(*args
, **kwargs
):
5471 """GetTreeCtrl(self) -> TreeCtrl"""
5472 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5474 def GetFilterListCtrl(*args
, **kwargs
):
5475 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5476 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5478 def FindChild(*args
, **kwargs
):
5480 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5482 Find the child that matches the first part of 'path'. E.g. if a child
5483 path is "/usr" and 'path' is "/usr/include" then the child for
5484 /usr is returned. If the path string has been used (we're at the
5485 leaf), done is set to True.
5488 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5490 def DoResize(*args
, **kwargs
):
5491 """DoResize(self)"""
5492 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5494 def ReCreateTree(*args
, **kwargs
):
5495 """ReCreateTree(self)"""
5496 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5498 GenericDirCtrl_swigregister
= _controls_
.GenericDirCtrl_swigregister
5499 GenericDirCtrl_swigregister(GenericDirCtrl
)
5500 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5502 def PreGenericDirCtrl(*args
, **kwargs
):
5503 """PreGenericDirCtrl() -> GenericDirCtrl"""
5504 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5507 class DirFilterListCtrl(Choice
):
5508 """Proxy of C++ DirFilterListCtrl class"""
5509 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5510 __repr__
= _swig_repr
5511 def __init__(self
, *args
, **kwargs
):
5513 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5514 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5516 _controls_
.DirFilterListCtrl_swiginit(self
,_controls_
.new_DirFilterListCtrl(*args
, **kwargs
))
5517 self
._setOORInfo
(self
)
5519 def Create(*args
, **kwargs
):
5521 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5522 Size size=DefaultSize, long style=0) -> bool
5524 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5526 def FillFilterList(*args
, **kwargs
):
5527 """FillFilterList(self, String filter, int defaultFilter)"""
5528 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5530 DirFilterListCtrl_swigregister
= _controls_
.DirFilterListCtrl_swigregister
5531 DirFilterListCtrl_swigregister(DirFilterListCtrl
)
5533 def PreDirFilterListCtrl(*args
, **kwargs
):
5534 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5535 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5538 #---------------------------------------------------------------------------
5540 class PyControl(_core
.Control
):
5541 """Proxy of C++ PyControl class"""
5542 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5543 __repr__
= _swig_repr
5544 def __init__(self
, *args
, **kwargs
):
5546 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5547 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5548 String name=ControlNameStr) -> PyControl
5550 _controls_
.PyControl_swiginit(self
,_controls_
.new_PyControl(*args
, **kwargs
))
5551 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5553 def _setCallbackInfo(*args
, **kwargs
):
5554 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5555 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5557 def SetBestSize(*args
, **kwargs
):
5558 """SetBestSize(self, Size size)"""
5559 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5561 def DoEraseBackground(*args
, **kwargs
):
5562 """DoEraseBackground(self, DC dc) -> bool"""
5563 return _controls_
.PyControl_DoEraseBackground(*args
, **kwargs
)
5565 def DoMoveWindow(*args
, **kwargs
):
5566 """DoMoveWindow(self, int x, int y, int width, int height)"""
5567 return _controls_
.PyControl_DoMoveWindow(*args
, **kwargs
)
5569 def DoSetSize(*args
, **kwargs
):
5570 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5571 return _controls_
.PyControl_DoSetSize(*args
, **kwargs
)
5573 def DoSetClientSize(*args
, **kwargs
):
5574 """DoSetClientSize(self, int width, int height)"""
5575 return _controls_
.PyControl_DoSetClientSize(*args
, **kwargs
)
5577 def DoSetVirtualSize(*args
, **kwargs
):
5578 """DoSetVirtualSize(self, int x, int y)"""
5579 return _controls_
.PyControl_DoSetVirtualSize(*args
, **kwargs
)
5581 def DoGetSize(*args
, **kwargs
):
5582 """DoGetSize() -> (width, height)"""
5583 return _controls_
.PyControl_DoGetSize(*args
, **kwargs
)
5585 def DoGetClientSize(*args
, **kwargs
):
5586 """DoGetClientSize() -> (width, height)"""
5587 return _controls_
.PyControl_DoGetClientSize(*args
, **kwargs
)
5589 def DoGetPosition(*args
, **kwargs
):
5590 """DoGetPosition() -> (x,y)"""
5591 return _controls_
.PyControl_DoGetPosition(*args
, **kwargs
)
5593 def DoGetVirtualSize(*args
, **kwargs
):
5594 """DoGetVirtualSize(self) -> Size"""
5595 return _controls_
.PyControl_DoGetVirtualSize(*args
, **kwargs
)
5597 def DoGetBestSize(*args
, **kwargs
):
5598 """DoGetBestSize(self) -> Size"""
5599 return _controls_
.PyControl_DoGetBestSize(*args
, **kwargs
)
5601 def GetDefaultAttributes(*args
, **kwargs
):
5602 """GetDefaultAttributes(self) -> VisualAttributes"""
5603 return _controls_
.PyControl_GetDefaultAttributes(*args
, **kwargs
)
5605 def OnInternalIdle(*args
, **kwargs
):
5606 """OnInternalIdle(self)"""
5607 return _controls_
.PyControl_OnInternalIdle(*args
, **kwargs
)
5609 def base_DoMoveWindow(*args
, **kw
):
5610 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
5611 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
5612 "Please use PyScrolledWindow.DoMoveWindow instead.")
5614 def base_DoSetSize(*args
, **kw
):
5615 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
5616 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
5617 "Please use PyScrolledWindow.DoSetSize instead.")
5619 def base_DoSetClientSize(*args
, **kw
):
5620 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
5621 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
5622 "Please use PyScrolledWindow.DoSetClientSize instead.")
5624 def base_DoSetVirtualSize(*args
, **kw
):
5625 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
5626 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
5627 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
5629 def base_DoGetSize(*args
, **kw
):
5630 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
5631 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
5632 "Please use PyScrolledWindow.DoGetSize instead.")
5634 def base_DoGetClientSize(*args
, **kw
):
5635 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
5636 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
5637 "Please use PyScrolledWindow.DoGetClientSize instead.")
5639 def base_DoGetPosition(*args
, **kw
):
5640 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
5641 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
5642 "Please use PyScrolledWindow.DoGetPosition instead.")
5644 def base_DoGetVirtualSize(*args
, **kw
):
5645 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
5646 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
5647 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
5649 def base_DoGetBestSize(*args
, **kw
):
5650 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
5651 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
5652 "Please use PyScrolledWindow.DoGetBestSize instead.")
5654 def base_InitDialog(*args
, **kw
):
5655 return PyScrolledWindow
.InitDialog(*args
, **kw
)
5656 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
5657 "Please use PyScrolledWindow.InitDialog instead.")
5659 def base_TransferDataToWindow(*args
, **kw
):
5660 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
5661 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
5662 "Please use PyScrolledWindow.TransferDataToWindow instead.")
5664 def base_TransferDataFromWindow(*args
, **kw
):
5665 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
5666 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
5667 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
5669 def base_Validate(*args
, **kw
):
5670 return PyScrolledWindow
.Validate(*args
, **kw
)
5671 base_Validate
= wx
._deprecated
(base_Validate
,
5672 "Please use PyScrolledWindow.Validate instead.")
5674 def base_AcceptsFocus(*args
, **kw
):
5675 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
5676 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
5677 "Please use PyScrolledWindow.AcceptsFocus instead.")
5679 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
5680 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
5681 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
5682 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
5684 def base_GetMaxSize(*args
, **kw
):
5685 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
5686 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
5687 "Please use PyScrolledWindow.GetMaxSize instead.")
5689 def base_AddChild(*args
, **kw
):
5690 return PyScrolledWindow
.AddChild(*args
, **kw
)
5691 base_AddChild
= wx
._deprecated
(base_AddChild
,
5692 "Please use PyScrolledWindow.AddChild instead.")
5694 def base_RemoveChild(*args
, **kw
):
5695 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
5696 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
5697 "Please use PyScrolledWindow.RemoveChild instead.")
5699 def base_ShouldInheritColours(*args
, **kw
):
5700 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
5701 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
5702 "Please use PyScrolledWindow.ShouldInheritColours instead.")
5704 def base_GetDefaultAttributes(*args
, **kw
):
5705 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
5706 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
5707 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
5709 def base_OnInternalIdle(*args
, **kw
):
5710 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
5711 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
5712 "Please use PyScrolledWindow.OnInternalIdle instead.")
5714 PyControl_swigregister
= _controls_
.PyControl_swigregister
5715 PyControl_swigregister(PyControl
)
5717 def PrePyControl(*args
, **kwargs
):
5718 """PrePyControl() -> PyControl"""
5719 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5722 #---------------------------------------------------------------------------
5724 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5725 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5726 wxEVT_HELP
= _controls_
.wxEVT_HELP
5727 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5728 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5729 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5730 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5731 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5733 class HelpEvent(_core
.CommandEvent
):
5735 A help event is sent when the user has requested context-sensitive
5736 help. This can either be caused by the application requesting
5737 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5738 the system generating a WM_HELP message when the user pressed F1 or
5739 clicked on the query button in a dialog caption.
5741 A help event is sent to the window that the user clicked on, and is
5742 propagated up the window hierarchy until the event is processed or
5743 there are no more event handlers. The application should call
5744 event.GetId to check the identity of the clicked-on window, and then
5745 either show some suitable help or call event.Skip if the identifier is
5746 unrecognised. Calling Skip is important because it allows wxWindows to
5747 generate further events for ancestors of the clicked-on
5748 window. Otherwise it would be impossible to show help for container
5749 windows, since processing would stop after the first window found.
5751 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5752 __repr__
= _swig_repr
5753 def __init__(self
, *args
, **kwargs
):
5754 """__init__(self, EventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5755 _controls_
.HelpEvent_swiginit(self
,_controls_
.new_HelpEvent(*args
, **kwargs
))
5756 def GetPosition(*args
, **kwargs
):
5758 GetPosition(self) -> Point
5760 Returns the left-click position of the mouse, in screen
5761 coordinates. This allows the application to position the help
5764 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5766 def SetPosition(*args
, **kwargs
):
5768 SetPosition(self, Point pos)
5770 Sets the left-click position of the mouse, in screen coordinates.
5772 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5774 def GetLink(*args
, **kwargs
):
5776 GetLink(self) -> String
5778 Get an optional link to further help
5780 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5782 def SetLink(*args
, **kwargs
):
5784 SetLink(self, String link)
5786 Set an optional link to further help
5788 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5790 def GetTarget(*args
, **kwargs
):
5792 GetTarget(self) -> String
5794 Get an optional target to display help in. E.g. a window specification
5796 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5798 def SetTarget(*args
, **kwargs
):
5800 SetTarget(self, String target)
5802 Set an optional target to display help in. E.g. a window specification
5804 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5806 HelpEvent_swigregister
= _controls_
.HelpEvent_swigregister
5807 HelpEvent_swigregister(HelpEvent
)
5809 class ContextHelp(_core
.Object
):
5811 This class changes the cursor to a query and puts the application into
5812 a 'context-sensitive help mode'. When the user left-clicks on a window
5813 within the specified window, a ``EVT_HELP`` event is sent to that
5814 control, and the application may respond to it by popping up some
5817 There are a couple of ways to invoke this behaviour implicitly:
5819 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5820 (Windows only). This will put a question mark in the titlebar,
5821 and Windows will put the application into context-sensitive help
5822 mode automatically, with further programming.
5824 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5825 to create a context help object. Normally you will write your
5826 application so that this button is only added to a dialog for
5827 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5830 :see: `wx.ContextHelpButton`
5833 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5834 __repr__
= _swig_repr
5835 def __init__(self
, *args
, **kwargs
):
5837 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5839 Constructs a context help object, calling BeginContextHelp if doNow is
5842 If window is None, the top window is used.
5844 _controls_
.ContextHelp_swiginit(self
,_controls_
.new_ContextHelp(*args
, **kwargs
))
5845 __swig_destroy__
= _controls_
.delete_ContextHelp
5846 __del__
= lambda self
: None;
5847 def BeginContextHelp(*args
, **kwargs
):
5849 BeginContextHelp(self, Window window=None) -> bool
5851 Puts the application into context-sensitive help mode. window is the
5852 window which will be used to catch events; if NULL, the top window
5855 Returns true if the application was successfully put into
5856 context-sensitive help mode. This function only returns when the event
5859 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5861 def EndContextHelp(*args
, **kwargs
):
5863 EndContextHelp(self) -> bool
5865 Ends context-sensitive help mode. Not normally called by the
5868 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5870 ContextHelp_swigregister
= _controls_
.ContextHelp_swigregister
5871 ContextHelp_swigregister(ContextHelp
)
5873 class ContextHelpButton(BitmapButton
):
5875 Instances of this class may be used to add a question mark button that
5876 when pressed, puts the application into context-help mode. It does
5877 this by creating a wx.ContextHelp object which itself generates a
5878 ``EVT_HELP`` event when the user clicks on a window.
5880 On Windows, you may add a question-mark icon to a dialog by use of the
5881 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5882 will have to add a button explicitly, usually next to OK, Cancel or
5885 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5888 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5889 __repr__
= _swig_repr
5890 def __init__(self
, *args
, **kwargs
):
5892 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5893 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5895 Constructor, creating and showing a context help button.
5897 _controls_
.ContextHelpButton_swiginit(self
,_controls_
.new_ContextHelpButton(*args
, **kwargs
))
5898 self
._setOORInfo
(self
)
5900 ContextHelpButton_swigregister
= _controls_
.ContextHelpButton_swigregister
5901 ContextHelpButton_swigregister(ContextHelpButton
)
5903 class HelpProvider(object):
5905 wx.HelpProvider is an abstract class used by a program
5906 implementing context-sensitive help to show the help text for the
5909 The current help provider must be explicitly set by the
5910 application using wx.HelpProvider.Set().
5912 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5913 def __init__(self
): raise AttributeError, "No constructor defined"
5914 __repr__
= _swig_repr
5915 __swig_destroy__
= _controls_
.delete_HelpProvider
5916 __del__
= lambda self
: None;
5917 def Set(*args
, **kwargs
):
5919 Set(HelpProvider helpProvider) -> HelpProvider
5921 Sset the current, application-wide help provider. Returns the previous
5922 one. Unlike some other classes, the help provider is not created on
5923 demand. This must be explicitly done by the application.
5925 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5927 Set
= staticmethod(Set
)
5928 def Get(*args
, **kwargs
):
5930 Get() -> HelpProvider
5932 Return the current application-wide help provider.
5934 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5936 Get
= staticmethod(Get
)
5937 def GetHelp(*args
, **kwargs
):
5939 GetHelp(self, Window window) -> String
5941 Gets the help string for this window. Its interpretation is dependent
5942 on the help provider except that empty string always means that no
5943 help is associated with the window.
5945 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5947 def ShowHelp(*args
, **kwargs
):
5949 ShowHelp(self, Window window) -> bool
5951 Shows help for the given window. Uses GetHelp internally if
5952 applicable. Returns True if it was done, or False if no help was
5953 available for this window.
5955 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5957 def AddHelp(*args
, **kwargs
):
5959 AddHelp(self, Window window, String text)
5961 Associates the text with the given window.
5963 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5965 def AddHelpById(*args
, **kwargs
):
5967 AddHelpById(self, int id, String text)
5969 This version associates the given text with all windows with this
5970 id. May be used to set the same help string for all Cancel buttons in
5971 the application, for example.
5973 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5975 def RemoveHelp(*args
, **kwargs
):
5977 RemoveHelp(self, Window window)
5979 Removes the association between the window pointer and the help
5980 text. This is called by the wx.Window destructor. Without this, the
5981 table of help strings will fill up and when window pointers are
5982 reused, the wrong help string will be found.
5984 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5986 def Destroy(*args
, **kwargs
):
5988 val
= _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5992 HelpProvider_swigregister
= _controls_
.HelpProvider_swigregister
5993 HelpProvider_swigregister(HelpProvider
)
5995 def HelpProvider_Set(*args
, **kwargs
):
5997 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5999 Sset the current, application-wide help provider. Returns the previous
6000 one. Unlike some other classes, the help provider is not created on
6001 demand. This must be explicitly done by the application.
6003 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6005 def HelpProvider_Get(*args
):
6007 HelpProvider_Get() -> HelpProvider
6009 Return the current application-wide help provider.
6011 return _controls_
.HelpProvider_Get(*args
)
6013 class SimpleHelpProvider(HelpProvider
):
6015 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6016 supports only plain text help strings, and shows the string associated
6017 with the control (if any) in a tooltip.
6019 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6020 __repr__
= _swig_repr
6021 def __init__(self
, *args
, **kwargs
):
6023 __init__(self) -> SimpleHelpProvider
6025 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6026 supports only plain text help strings, and shows the string associated
6027 with the control (if any) in a tooltip.
6029 _controls_
.SimpleHelpProvider_swiginit(self
,_controls_
.new_SimpleHelpProvider(*args
, **kwargs
))
6030 SimpleHelpProvider_swigregister
= _controls_
.SimpleHelpProvider_swigregister
6031 SimpleHelpProvider_swigregister(SimpleHelpProvider
)
6033 #---------------------------------------------------------------------------
6035 class DragImage(_core
.Object
):
6036 """Proxy of C++ DragImage class"""
6037 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6038 __repr__
= _swig_repr
6039 def __init__(self
, *args
, **kwargs
):
6040 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6041 _controls_
.DragImage_swiginit(self
,_controls_
.new_DragImage(*args
, **kwargs
))
6042 __swig_destroy__
= _controls_
.delete_DragImage
6043 __del__
= lambda self
: None;
6044 def SetBackingBitmap(*args
, **kwargs
):
6045 """SetBackingBitmap(self, Bitmap bitmap)"""
6046 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6048 def BeginDrag(*args
, **kwargs
):
6050 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6051 Rect rect=None) -> bool
6053 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6055 def BeginDragBounded(*args
, **kwargs
):
6056 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6057 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6059 def EndDrag(*args
, **kwargs
):
6060 """EndDrag(self) -> bool"""
6061 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6063 def Move(*args
, **kwargs
):
6064 """Move(self, Point pt) -> bool"""
6065 return _controls_
.DragImage_Move(*args
, **kwargs
)
6067 def Show(*args
, **kwargs
):
6068 """Show(self) -> bool"""
6069 return _controls_
.DragImage_Show(*args
, **kwargs
)
6071 def Hide(*args
, **kwargs
):
6072 """Hide(self) -> bool"""
6073 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6075 def GetImageRect(*args
, **kwargs
):
6076 """GetImageRect(self, Point pos) -> Rect"""
6077 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6079 def DoDrawImage(*args
, **kwargs
):
6080 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6081 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6083 def UpdateBackingFromWindow(*args
, **kwargs
):
6084 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6085 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6087 def RedrawImage(*args
, **kwargs
):
6088 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6089 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6091 DragImage_swigregister
= _controls_
.DragImage_swigregister
6092 DragImage_swigregister(DragImage
)
6094 def DragIcon(*args
, **kwargs
):
6095 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6096 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6099 def DragString(*args
, **kwargs
):
6100 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6101 val
= _controls_
.new_DragString(*args
, **kwargs
)
6104 def DragTreeItem(*args
, **kwargs
):
6105 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6106 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6109 def DragListItem(*args
, **kwargs
):
6110 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6111 val
= _controls_
.new_DragListItem(*args
, **kwargs
)
6114 #---------------------------------------------------------------------------
6116 DP_DEFAULT
= _controls_
.DP_DEFAULT
6117 DP_SPIN
= _controls_
.DP_SPIN
6118 DP_DROPDOWN
= _controls_
.DP_DROPDOWN
6119 DP_SHOWCENTURY
= _controls_
.DP_SHOWCENTURY
6120 DP_ALLOWNONE
= _controls_
.DP_ALLOWNONE
6121 class DatePickerCtrl(_core
.Control
):
6123 This control allows the user to select a date. Unlike
6124 `wx.calendar.CalendarCtrl`, which is a relatively big control,
6125 `wx.DatePickerCtrl` is implemented as a small window showing the
6126 currently selected date. The control can be edited using the keyboard,
6127 and can also display a popup window for more user-friendly date
6128 selection, depending on the styles used and the platform.
6130 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6131 __repr__
= _swig_repr
6132 def __init__(self
, *args
, **kwargs
):
6134 __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6135 Point pos=DefaultPosition, Size size=DefaultSize,
6136 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6137 Validator validator=DefaultValidator,
6138 String name=DatePickerCtrlNameStr) -> DatePickerCtrl
6140 Create a new DatePickerCtrl.
6142 _controls_
.DatePickerCtrl_swiginit(self
,_controls_
.new_DatePickerCtrl(*args
, **kwargs
))
6143 self
._setOORInfo
(self
)
6145 def Create(*args
, **kwargs
):
6147 Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6148 Point pos=DefaultPosition, Size size=DefaultSize,
6149 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6150 Validator validator=DefaultValidator,
6151 String name=DatePickerCtrlNameStr) -> bool
6153 Create the GUI parts of the DatePickerCtrl, for use in 2-phase
6156 return _controls_
.DatePickerCtrl_Create(*args
, **kwargs
)
6158 def SetValue(*args
, **kwargs
):
6160 SetValue(self, DateTime dt)
6162 Changes the current value of the control. The date should be valid and
6163 included in the currently selected range, if any.
6165 Calling this method does not result in a date change event.
6167 return _controls_
.DatePickerCtrl_SetValue(*args
, **kwargs
)
6169 def GetValue(*args
, **kwargs
):
6171 GetValue(self) -> DateTime
6173 Returns the currently selected date. If there is no selection or the
6174 selection is outside of the current range, an invalid `wx.DateTime`
6177 return _controls_
.DatePickerCtrl_GetValue(*args
, **kwargs
)
6179 def SetRange(*args
, **kwargs
):
6181 SetRange(self, DateTime dt1, DateTime dt2)
6183 Sets the valid range for the date selection. If dt1 is valid, it
6184 becomes the earliest date (inclusive) accepted by the control. If dt2
6185 is valid, it becomes the latest possible date.
6187 If the current value of the control is outside of the newly set range
6188 bounds, the behaviour is undefined.
6190 return _controls_
.DatePickerCtrl_SetRange(*args
, **kwargs
)
6192 def GetLowerLimit(*args
, **kwargs
):
6194 GetLowerLimit(self) -> DateTime
6196 Get the lower limit of the valid range for the date selection, if any.
6197 If there is no range or there is no lower limit, then the
6198 `wx.DateTime` value returned will be invalid.
6200 return _controls_
.DatePickerCtrl_GetLowerLimit(*args
, **kwargs
)
6202 def GetUpperLimit(*args
, **kwargs
):
6204 GetUpperLimit(self) -> DateTime
6206 Get the upper limit of the valid range for the date selection, if any.
6207 If there is no range or there is no upper limit, then the
6208 `wx.DateTime` value returned will be invalid.
6210 return _controls_
.DatePickerCtrl_GetUpperLimit(*args
, **kwargs
)
6212 DatePickerCtrl_swigregister
= _controls_
.DatePickerCtrl_swigregister
6213 DatePickerCtrl_swigregister(DatePickerCtrl
)
6214 DatePickerCtrlNameStr
= cvar
.DatePickerCtrlNameStr
6216 def PreDatePickerCtrl(*args
, **kwargs
):
6218 PreDatePickerCtrl() -> DatePickerCtrl
6220 Precreate a DatePickerCtrl for use in 2-phase creation.
6222 val
= _controls_
.new_PreDatePickerCtrl(*args
, **kwargs
)