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 SetTextColour(*args
, **kwargs
):
1539 """SetTextColour(self, Colour colText)"""
1540 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1542 def SetBackgroundColour(*args
, **kwargs
):
1543 """SetBackgroundColour(self, Colour colBack)"""
1544 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1546 def SetFont(*args
, **kwargs
):
1547 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1548 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1550 def SetAlignment(*args
, **kwargs
):
1551 """SetAlignment(self, int alignment)"""
1552 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1554 def SetTabs(*args
, **kwargs
):
1555 """SetTabs(self, wxArrayInt tabs)"""
1556 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1558 def SetLeftIndent(*args
, **kwargs
):
1559 """SetLeftIndent(self, int indent, int subIndent=0)"""
1560 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1562 def SetRightIndent(*args
, **kwargs
):
1563 """SetRightIndent(self, int indent)"""
1564 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1566 def SetFlags(*args
, **kwargs
):
1567 """SetFlags(self, long flags)"""
1568 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1570 def HasTextColour(*args
, **kwargs
):
1571 """HasTextColour(self) -> bool"""
1572 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1574 def HasBackgroundColour(*args
, **kwargs
):
1575 """HasBackgroundColour(self) -> bool"""
1576 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1578 def HasFont(*args
, **kwargs
):
1579 """HasFont(self) -> bool"""
1580 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1582 def HasAlignment(*args
, **kwargs
):
1583 """HasAlignment(self) -> bool"""
1584 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1586 def HasTabs(*args
, **kwargs
):
1587 """HasTabs(self) -> bool"""
1588 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1590 def HasLeftIndent(*args
, **kwargs
):
1591 """HasLeftIndent(self) -> bool"""
1592 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1594 def HasRightIndent(*args
, **kwargs
):
1595 """HasRightIndent(self) -> bool"""
1596 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1598 def HasFlag(*args
, **kwargs
):
1599 """HasFlag(self, long flag) -> bool"""
1600 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1602 def GetTextColour(*args
, **kwargs
):
1603 """GetTextColour(self) -> Colour"""
1604 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1606 def GetBackgroundColour(*args
, **kwargs
):
1607 """GetBackgroundColour(self) -> Colour"""
1608 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1610 def GetFont(*args
, **kwargs
):
1611 """GetFont(self) -> Font"""
1612 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1614 def GetAlignment(*args
, **kwargs
):
1615 """GetAlignment(self) -> int"""
1616 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1618 def GetTabs(*args
, **kwargs
):
1619 """GetTabs(self) -> wxArrayInt"""
1620 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1622 def GetLeftIndent(*args
, **kwargs
):
1623 """GetLeftIndent(self) -> long"""
1624 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1626 def GetLeftSubIndent(*args
, **kwargs
):
1627 """GetLeftSubIndent(self) -> long"""
1628 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1630 def GetRightIndent(*args
, **kwargs
):
1631 """GetRightIndent(self) -> long"""
1632 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1634 def GetFlags(*args
, **kwargs
):
1635 """GetFlags(self) -> long"""
1636 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1638 def IsDefault(*args
, **kwargs
):
1639 """IsDefault(self) -> bool"""
1640 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1642 def Combine(*args
, **kwargs
):
1643 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1644 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1646 Combine
= staticmethod(Combine
)
1647 TextAttr_swigregister
= _controls_
.TextAttr_swigregister
1648 TextAttr_swigregister(TextAttr
)
1649 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1651 def TextAttr_Combine(*args
, **kwargs
):
1652 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1653 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1655 class TextCtrl(_core
.Control
):
1656 """Proxy of C++ TextCtrl class"""
1657 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1658 __repr__
= _swig_repr
1659 def __init__(self
, *args
, **kwargs
):
1661 __init__(self, Window parent, int id=-1, String value=EmptyString,
1662 Point pos=DefaultPosition, Size size=DefaultSize,
1663 long style=0, Validator validator=DefaultValidator,
1664 String name=TextCtrlNameStr) -> TextCtrl
1666 _controls_
.TextCtrl_swiginit(self
,_controls_
.new_TextCtrl(*args
, **kwargs
))
1667 self
._setOORInfo
(self
)
1669 def Create(*args
, **kwargs
):
1671 Create(self, Window parent, int id=-1, String value=EmptyString,
1672 Point pos=DefaultPosition, Size size=DefaultSize,
1673 long style=0, Validator validator=DefaultValidator,
1674 String name=TextCtrlNameStr) -> bool
1676 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1678 def GetValue(*args
, **kwargs
):
1679 """GetValue(self) -> String"""
1680 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1682 def SetValue(*args
, **kwargs
):
1683 """SetValue(self, String value)"""
1684 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1686 def GetRange(*args
, **kwargs
):
1687 """GetRange(self, long from, long to) -> String"""
1688 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1690 def GetLineLength(*args
, **kwargs
):
1691 """GetLineLength(self, long lineNo) -> int"""
1692 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1694 def GetLineText(*args
, **kwargs
):
1695 """GetLineText(self, long lineNo) -> String"""
1696 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1698 def GetNumberOfLines(*args
, **kwargs
):
1699 """GetNumberOfLines(self) -> int"""
1700 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1702 def IsModified(*args
, **kwargs
):
1703 """IsModified(self) -> bool"""
1704 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1706 def IsEditable(*args
, **kwargs
):
1707 """IsEditable(self) -> bool"""
1708 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1710 def IsSingleLine(*args
, **kwargs
):
1711 """IsSingleLine(self) -> bool"""
1712 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1714 def IsMultiLine(*args
, **kwargs
):
1715 """IsMultiLine(self) -> bool"""
1716 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1718 def GetSelection(*args
, **kwargs
):
1720 GetSelection() -> (from, to)
1722 If the return values from and to are the same, there is no selection.
1724 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1726 def GetStringSelection(*args
, **kwargs
):
1727 """GetStringSelection(self) -> String"""
1728 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1730 def Clear(*args
, **kwargs
):
1732 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1734 def Replace(*args
, **kwargs
):
1735 """Replace(self, long from, long to, String value)"""
1736 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1738 def Remove(*args
, **kwargs
):
1739 """Remove(self, long from, long to)"""
1740 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1742 def LoadFile(*args
, **kwargs
):
1743 """LoadFile(self, String file) -> bool"""
1744 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1746 def SaveFile(*args
, **kwargs
):
1747 """SaveFile(self, String file=EmptyString) -> bool"""
1748 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1750 def MarkDirty(*args
, **kwargs
):
1751 """MarkDirty(self)"""
1752 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1754 def DiscardEdits(*args
, **kwargs
):
1755 """DiscardEdits(self)"""
1756 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1758 def SetMaxLength(*args
, **kwargs
):
1759 """SetMaxLength(self, unsigned long len)"""
1760 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1762 def WriteText(*args
, **kwargs
):
1763 """WriteText(self, String text)"""
1764 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1766 def AppendText(*args
, **kwargs
):
1767 """AppendText(self, String text)"""
1768 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1770 def EmulateKeyPress(*args
, **kwargs
):
1771 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1772 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1774 def SetStyle(*args
, **kwargs
):
1775 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1776 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1778 def GetStyle(*args
, **kwargs
):
1779 """GetStyle(self, long position, TextAttr style) -> bool"""
1780 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1782 def SetDefaultStyle(*args
, **kwargs
):
1783 """SetDefaultStyle(self, TextAttr style) -> bool"""
1784 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1786 def GetDefaultStyle(*args
, **kwargs
):
1787 """GetDefaultStyle(self) -> TextAttr"""
1788 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1790 def XYToPosition(*args
, **kwargs
):
1791 """XYToPosition(self, long x, long y) -> long"""
1792 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1794 def PositionToXY(*args
, **kwargs
):
1795 """PositionToXY(long pos) -> (x, y)"""
1796 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1798 def ShowPosition(*args
, **kwargs
):
1799 """ShowPosition(self, long pos)"""
1800 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1802 def HitTest(*args
, **kwargs
):
1804 HitTest(Point pt) -> (result, col, row)
1806 Find the row, col coresponding to the character at the point given in
1807 pixels. NB: pt is in device coords but is not adjusted for the client
1808 area origin nor scrolling.
1810 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1812 def HitTestPos(*args
, **kwargs
):
1814 HitTestPos(Point pt) -> (result, position)
1816 Find the character position in the text coresponding to the point
1817 given in pixels. NB: pt is in device coords but is not adjusted for
1818 the client area origin nor scrolling.
1820 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1822 def Copy(*args
, **kwargs
):
1824 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1826 def Cut(*args
, **kwargs
):
1828 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1830 def Paste(*args
, **kwargs
):
1832 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1834 def CanCopy(*args
, **kwargs
):
1835 """CanCopy(self) -> bool"""
1836 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1838 def CanCut(*args
, **kwargs
):
1839 """CanCut(self) -> bool"""
1840 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1842 def CanPaste(*args
, **kwargs
):
1843 """CanPaste(self) -> bool"""
1844 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1846 def Undo(*args
, **kwargs
):
1848 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1850 def Redo(*args
, **kwargs
):
1852 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1854 def CanUndo(*args
, **kwargs
):
1855 """CanUndo(self) -> bool"""
1856 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1858 def CanRedo(*args
, **kwargs
):
1859 """CanRedo(self) -> bool"""
1860 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1862 def SetInsertionPoint(*args
, **kwargs
):
1863 """SetInsertionPoint(self, long pos)"""
1864 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1866 def SetInsertionPointEnd(*args
, **kwargs
):
1867 """SetInsertionPointEnd(self)"""
1868 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1870 def GetInsertionPoint(*args
, **kwargs
):
1871 """GetInsertionPoint(self) -> long"""
1872 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1874 def GetLastPosition(*args
, **kwargs
):
1875 """GetLastPosition(self) -> long"""
1876 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1878 def SetSelection(*args
, **kwargs
):
1879 """SetSelection(self, long from, long to)"""
1880 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1882 def SelectAll(*args
, **kwargs
):
1883 """SelectAll(self)"""
1884 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1886 def SetEditable(*args
, **kwargs
):
1887 """SetEditable(self, bool editable)"""
1888 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1890 def ShowNativeCaret(*args
, **kwargs
):
1891 """ShowNativeCaret(self, bool show=True) -> bool"""
1892 return _controls_
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1894 def HideNativeCaret(*args
, **kwargs
):
1895 """HideNativeCaret(self) -> bool"""
1896 return _controls_
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1898 def write(*args
, **kwargs
):
1899 """write(self, String text)"""
1900 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1902 def GetString(*args
, **kwargs
):
1903 """GetString(self, long from, long to) -> String"""
1904 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1906 def GetClassDefaultAttributes(*args
, **kwargs
):
1908 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1910 Get the default attributes for this class. This is useful if you want
1911 to use the same font or colour in your own control as in a standard
1912 control -- which is a much better idea than hard coding specific
1913 colours or fonts which might look completely out of place on the
1914 user's system, especially if it uses themes.
1916 The variant parameter is only relevant under Mac currently and is
1917 ignore under other platforms. Under Mac, it will change the size of
1918 the returned font. See `wx.Window.SetWindowVariant` for more about
1921 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1923 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1924 TextCtrl_swigregister
= _controls_
.TextCtrl_swigregister
1925 TextCtrl_swigregister(TextCtrl
)
1927 def PreTextCtrl(*args
, **kwargs
):
1928 """PreTextCtrl() -> TextCtrl"""
1929 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1932 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1934 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1936 Get the default attributes for this class. This is useful if you want
1937 to use the same font or colour in your own control as in a standard
1938 control -- which is a much better idea than hard coding specific
1939 colours or fonts which might look completely out of place on the
1940 user's system, especially if it uses themes.
1942 The variant parameter is only relevant under Mac currently and is
1943 ignore under other platforms. Under Mac, it will change the size of
1944 the returned font. See `wx.Window.SetWindowVariant` for more about
1947 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1949 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1950 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1951 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1952 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1953 class TextUrlEvent(_core
.CommandEvent
):
1954 """Proxy of C++ TextUrlEvent class"""
1955 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1956 __repr__
= _swig_repr
1957 def __init__(self
, *args
, **kwargs
):
1958 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1959 _controls_
.TextUrlEvent_swiginit(self
,_controls_
.new_TextUrlEvent(*args
, **kwargs
))
1960 def GetMouseEvent(*args
, **kwargs
):
1961 """GetMouseEvent(self) -> MouseEvent"""
1962 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1964 def GetURLStart(*args
, **kwargs
):
1965 """GetURLStart(self) -> long"""
1966 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1968 def GetURLEnd(*args
, **kwargs
):
1969 """GetURLEnd(self) -> long"""
1970 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1972 TextUrlEvent_swigregister
= _controls_
.TextUrlEvent_swigregister
1973 TextUrlEvent_swigregister(TextUrlEvent
)
1975 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1976 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1977 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1978 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1980 #---------------------------------------------------------------------------
1982 class ScrollBar(_core
.Control
):
1983 """Proxy of C++ ScrollBar class"""
1984 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1985 __repr__
= _swig_repr
1986 def __init__(self
, *args
, **kwargs
):
1988 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1989 Size size=DefaultSize, long style=SB_HORIZONTAL,
1990 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1992 _controls_
.ScrollBar_swiginit(self
,_controls_
.new_ScrollBar(*args
, **kwargs
))
1993 self
._setOORInfo
(self
)
1995 def Create(*args
, **kwargs
):
1997 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1998 Size size=DefaultSize, long style=SB_HORIZONTAL,
1999 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2001 Do the 2nd phase and create the GUI control.
2003 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2005 def GetThumbPosition(*args
, **kwargs
):
2006 """GetThumbPosition(self) -> int"""
2007 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2009 def GetThumbSize(*args
, **kwargs
):
2010 """GetThumbSize(self) -> int"""
2011 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2013 GetThumbLength
= GetThumbSize
2014 def GetPageSize(*args
, **kwargs
):
2015 """GetPageSize(self) -> int"""
2016 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2018 def GetRange(*args
, **kwargs
):
2019 """GetRange(self) -> int"""
2020 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2022 def IsVertical(*args
, **kwargs
):
2023 """IsVertical(self) -> bool"""
2024 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2026 def SetThumbPosition(*args
, **kwargs
):
2027 """SetThumbPosition(self, int viewStart)"""
2028 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2030 def GetClassDefaultAttributes(*args
, **kwargs
):
2032 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2034 Get the default attributes for this class. This is useful if you want
2035 to use the same font or colour in your own control as in a standard
2036 control -- which is a much better idea than hard coding specific
2037 colours or fonts which might look completely out of place on the
2038 user's system, especially if it uses themes.
2040 The variant parameter is only relevant under Mac currently and is
2041 ignore under other platforms. Under Mac, it will change the size of
2042 the returned font. See `wx.Window.SetWindowVariant` for more about
2045 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2047 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2048 ScrollBar_swigregister
= _controls_
.ScrollBar_swigregister
2049 ScrollBar_swigregister(ScrollBar
)
2050 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2052 def PreScrollBar(*args
, **kwargs
):
2053 """PreScrollBar() -> ScrollBar"""
2054 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2057 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2059 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2061 Get the default attributes for this class. This is useful if you want
2062 to use the same font or colour in your own control as in a standard
2063 control -- which is a much better idea than hard coding specific
2064 colours or fonts which might look completely out of place on the
2065 user's system, especially if it uses themes.
2067 The variant parameter is only relevant under Mac currently and is
2068 ignore under other platforms. Under Mac, it will change the size of
2069 the returned font. See `wx.Window.SetWindowVariant` for more about
2072 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2074 #---------------------------------------------------------------------------
2076 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2077 SP_VERTICAL
= _controls_
.SP_VERTICAL
2078 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2079 SP_WRAP
= _controls_
.SP_WRAP
2080 class SpinButton(_core
.Control
):
2081 """Proxy of C++ SpinButton class"""
2082 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2083 __repr__
= _swig_repr
2084 def __init__(self
, *args
, **kwargs
):
2086 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2087 Size size=DefaultSize, long style=SP_HORIZONTAL,
2088 String name=SPIN_BUTTON_NAME) -> SpinButton
2090 _controls_
.SpinButton_swiginit(self
,_controls_
.new_SpinButton(*args
, **kwargs
))
2091 self
._setOORInfo
(self
)
2093 def Create(*args
, **kwargs
):
2095 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2096 Size size=DefaultSize, long style=SP_HORIZONTAL,
2097 String name=SPIN_BUTTON_NAME) -> bool
2099 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2101 def GetValue(*args
, **kwargs
):
2102 """GetValue(self) -> int"""
2103 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2105 def GetMin(*args
, **kwargs
):
2106 """GetMin(self) -> int"""
2107 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2109 def GetMax(*args
, **kwargs
):
2110 """GetMax(self) -> int"""
2111 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2113 def SetValue(*args
, **kwargs
):
2114 """SetValue(self, int val)"""
2115 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2117 def SetMin(*args
, **kwargs
):
2118 """SetMin(self, int minVal)"""
2119 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2121 def SetMax(*args
, **kwargs
):
2122 """SetMax(self, int maxVal)"""
2123 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2125 def SetRange(*args
, **kwargs
):
2126 """SetRange(self, int minVal, int maxVal)"""
2127 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2129 def IsVertical(*args
, **kwargs
):
2130 """IsVertical(self) -> bool"""
2131 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2133 def GetClassDefaultAttributes(*args
, **kwargs
):
2135 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2137 Get the default attributes for this class. This is useful if you want
2138 to use the same font or colour in your own control as in a standard
2139 control -- which is a much better idea than hard coding specific
2140 colours or fonts which might look completely out of place on the
2141 user's system, especially if it uses themes.
2143 The variant parameter is only relevant under Mac currently and is
2144 ignore under other platforms. Under Mac, it will change the size of
2145 the returned font. See `wx.Window.SetWindowVariant` for more about
2148 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2150 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2151 SpinButton_swigregister
= _controls_
.SpinButton_swigregister
2152 SpinButton_swigregister(SpinButton
)
2153 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2154 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2156 def PreSpinButton(*args
, **kwargs
):
2157 """PreSpinButton() -> SpinButton"""
2158 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2161 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2163 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2165 Get the default attributes for this class. This is useful if you want
2166 to use the same font or colour in your own control as in a standard
2167 control -- which is a much better idea than hard coding specific
2168 colours or fonts which might look completely out of place on the
2169 user's system, especially if it uses themes.
2171 The variant parameter is only relevant under Mac currently and is
2172 ignore under other platforms. Under Mac, it will change the size of
2173 the returned font. See `wx.Window.SetWindowVariant` for more about
2176 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2178 class SpinCtrl(_core
.Control
):
2179 """Proxy of C++ SpinCtrl class"""
2180 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2181 __repr__
= _swig_repr
2182 def __init__(self
, *args
, **kwargs
):
2184 __init__(self, Window parent, int id=-1, String value=EmptyString,
2185 Point pos=DefaultPosition, Size size=DefaultSize,
2186 long style=SP_ARROW_KEYS, int min=0, int max=100,
2187 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2189 _controls_
.SpinCtrl_swiginit(self
,_controls_
.new_SpinCtrl(*args
, **kwargs
))
2190 self
._setOORInfo
(self
)
2192 def Create(*args
, **kwargs
):
2194 Create(self, Window parent, int id=-1, String value=EmptyString,
2195 Point pos=DefaultPosition, Size size=DefaultSize,
2196 long style=SP_ARROW_KEYS, int min=0, int max=100,
2197 int initial=0, String name=SpinCtrlNameStr) -> bool
2199 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2201 def GetValue(*args
, **kwargs
):
2202 """GetValue(self) -> int"""
2203 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2205 def SetValue(*args
, **kwargs
):
2206 """SetValue(self, int value)"""
2207 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2209 def SetValueString(*args
, **kwargs
):
2210 """SetValueString(self, String text)"""
2211 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2213 def SetRange(*args
, **kwargs
):
2214 """SetRange(self, int minVal, int maxVal)"""
2215 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2217 def GetMin(*args
, **kwargs
):
2218 """GetMin(self) -> int"""
2219 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2221 def GetMax(*args
, **kwargs
):
2222 """GetMax(self) -> int"""
2223 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2225 def SetSelection(*args
, **kwargs
):
2226 """SetSelection(self, long from, long to)"""
2227 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2229 def GetClassDefaultAttributes(*args
, **kwargs
):
2231 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2233 Get the default attributes for this class. This is useful if you want
2234 to use the same font or colour in your own control as in a standard
2235 control -- which is a much better idea than hard coding specific
2236 colours or fonts which might look completely out of place on the
2237 user's system, especially if it uses themes.
2239 The variant parameter is only relevant under Mac currently and is
2240 ignore under other platforms. Under Mac, it will change the size of
2241 the returned font. See `wx.Window.SetWindowVariant` for more about
2244 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2246 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2247 SpinCtrl_swigregister
= _controls_
.SpinCtrl_swigregister
2248 SpinCtrl_swigregister(SpinCtrl
)
2250 def PreSpinCtrl(*args
, **kwargs
):
2251 """PreSpinCtrl() -> SpinCtrl"""
2252 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2255 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2257 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2259 Get the default attributes for this class. This is useful if you want
2260 to use the same font or colour in your own control as in a standard
2261 control -- which is a much better idea than hard coding specific
2262 colours or fonts which might look completely out of place on the
2263 user's system, especially if it uses themes.
2265 The variant parameter is only relevant under Mac currently and is
2266 ignore under other platforms. Under Mac, it will change the size of
2267 the returned font. See `wx.Window.SetWindowVariant` for more about
2270 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2272 class SpinEvent(_core
.NotifyEvent
):
2273 """Proxy of C++ SpinEvent class"""
2274 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2275 __repr__
= _swig_repr
2276 def __init__(self
, *args
, **kwargs
):
2277 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2278 _controls_
.SpinEvent_swiginit(self
,_controls_
.new_SpinEvent(*args
, **kwargs
))
2279 def GetPosition(*args
, **kwargs
):
2280 """GetPosition(self) -> int"""
2281 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2283 def SetPosition(*args
, **kwargs
):
2284 """SetPosition(self, int pos)"""
2285 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2287 SpinEvent_swigregister
= _controls_
.SpinEvent_swigregister
2288 SpinEvent_swigregister(SpinEvent
)
2290 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2291 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2292 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2293 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2294 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2296 #---------------------------------------------------------------------------
2298 class RadioBox(_core
.Control
):
2299 """Proxy of C++ RadioBox class"""
2300 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2301 __repr__
= _swig_repr
2302 def __init__(self
, *args
, **kwargs
):
2304 __init__(self, Window parent, int id=-1, String label=EmptyString,
2305 Point pos=DefaultPosition, Size size=DefaultSize,
2306 wxArrayString choices=wxPyEmptyStringArray,
2307 int majorDimension=0, long style=RA_HORIZONTAL,
2308 Validator validator=DefaultValidator,
2309 String name=RadioBoxNameStr) -> RadioBox
2311 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2312 _controls_
.RadioBox_swiginit(self
,_controls_
.new_RadioBox(*args
, **kwargs
))
2313 self
._setOORInfo
(self
)
2315 def Create(*args
, **kwargs
):
2317 Create(self, Window parent, int id=-1, String label=EmptyString,
2318 Point pos=DefaultPosition, Size size=DefaultSize,
2319 wxArrayString choices=wxPyEmptyStringArray,
2320 int majorDimension=0, long style=RA_HORIZONTAL,
2321 Validator validator=DefaultValidator,
2322 String name=RadioBoxNameStr) -> bool
2324 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2326 def SetSelection(*args
, **kwargs
):
2327 """SetSelection(self, int n)"""
2328 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2330 def GetSelection(*args
, **kwargs
):
2331 """GetSelection(self) -> int"""
2332 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2334 def GetStringSelection(*args
, **kwargs
):
2335 """GetStringSelection(self) -> String"""
2336 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2338 def SetStringSelection(*args
, **kwargs
):
2339 """SetStringSelection(self, String s) -> bool"""
2340 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2342 def GetCount(*args
, **kwargs
):
2343 """GetCount(self) -> size_t"""
2344 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2346 def FindString(*args
, **kwargs
):
2347 """FindString(self, String s) -> int"""
2348 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2350 def GetString(*args
, **kwargs
):
2351 """GetString(self, int n) -> String"""
2352 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2354 def SetString(*args
, **kwargs
):
2355 """SetString(self, int n, String label)"""
2356 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2358 GetItemLabel
= GetString
2359 SetItemLabel
= SetString
2360 def EnableItem(*args
, **kwargs
):
2361 """EnableItem(self, unsigned int n, bool enable=True)"""
2362 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2364 def ShowItem(*args
, **kwargs
):
2365 """ShowItem(self, unsigned int n, bool show=True)"""
2366 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2368 def IsItemEnabled(*args
, **kwargs
):
2369 """IsItemEnabled(self, unsigned int n) -> bool"""
2370 return _controls_
.RadioBox_IsItemEnabled(*args
, **kwargs
)
2372 def IsItemShown(*args
, **kwargs
):
2373 """IsItemShown(self, unsigned int n) -> bool"""
2374 return _controls_
.RadioBox_IsItemShown(*args
, **kwargs
)
2376 def GetColumnCount(*args
, **kwargs
):
2377 """GetColumnCount(self) -> unsigned int"""
2378 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2380 def GetRowCount(*args
, **kwargs
):
2381 """GetRowCount(self) -> unsigned int"""
2382 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2384 def GetNextItem(*args
, **kwargs
):
2385 """GetNextItem(self, int item, int dir, long style) -> int"""
2386 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2388 def GetClassDefaultAttributes(*args
, **kwargs
):
2390 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2392 Get the default attributes for this class. This is useful if you want
2393 to use the same font or colour in your own control as in a standard
2394 control -- which is a much better idea than hard coding specific
2395 colours or fonts which might look completely out of place on the
2396 user's system, especially if it uses themes.
2398 The variant parameter is only relevant under Mac currently and is
2399 ignore under other platforms. Under Mac, it will change the size of
2400 the returned font. See `wx.Window.SetWindowVariant` for more about
2403 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2405 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2406 RadioBox_swigregister
= _controls_
.RadioBox_swigregister
2407 RadioBox_swigregister(RadioBox
)
2408 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2409 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2411 def PreRadioBox(*args
, **kwargs
):
2412 """PreRadioBox() -> RadioBox"""
2413 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2416 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2418 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2420 Get the default attributes for this class. This is useful if you want
2421 to use the same font or colour in your own control as in a standard
2422 control -- which is a much better idea than hard coding specific
2423 colours or fonts which might look completely out of place on the
2424 user's system, especially if it uses themes.
2426 The variant parameter is only relevant under Mac currently and is
2427 ignore under other platforms. Under Mac, it will change the size of
2428 the returned font. See `wx.Window.SetWindowVariant` for more about
2431 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2433 #---------------------------------------------------------------------------
2435 class RadioButton(_core
.Control
):
2436 """Proxy of C++ RadioButton class"""
2437 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2438 __repr__
= _swig_repr
2439 def __init__(self
, *args
, **kwargs
):
2441 __init__(self, Window parent, int id=-1, String label=EmptyString,
2442 Point pos=DefaultPosition, Size size=DefaultSize,
2443 long style=0, Validator validator=DefaultValidator,
2444 String name=RadioButtonNameStr) -> RadioButton
2446 _controls_
.RadioButton_swiginit(self
,_controls_
.new_RadioButton(*args
, **kwargs
))
2447 self
._setOORInfo
(self
)
2449 def Create(*args
, **kwargs
):
2451 Create(self, Window parent, int id=-1, String label=EmptyString,
2452 Point pos=DefaultPosition, Size size=DefaultSize,
2453 long style=0, Validator validator=DefaultValidator,
2454 String name=RadioButtonNameStr) -> bool
2456 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2458 def GetValue(*args
, **kwargs
):
2459 """GetValue(self) -> bool"""
2460 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2462 def SetValue(*args
, **kwargs
):
2463 """SetValue(self, bool value)"""
2464 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2466 def GetClassDefaultAttributes(*args
, **kwargs
):
2468 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2470 Get the default attributes for this class. This is useful if you want
2471 to use the same font or colour in your own control as in a standard
2472 control -- which is a much better idea than hard coding specific
2473 colours or fonts which might look completely out of place on the
2474 user's system, especially if it uses themes.
2476 The variant parameter is only relevant under Mac currently and is
2477 ignore under other platforms. Under Mac, it will change the size of
2478 the returned font. See `wx.Window.SetWindowVariant` for more about
2481 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2483 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2484 RadioButton_swigregister
= _controls_
.RadioButton_swigregister
2485 RadioButton_swigregister(RadioButton
)
2487 def PreRadioButton(*args
, **kwargs
):
2488 """PreRadioButton() -> RadioButton"""
2489 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2492 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2494 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2496 Get the default attributes for this class. This is useful if you want
2497 to use the same font or colour in your own control as in a standard
2498 control -- which is a much better idea than hard coding specific
2499 colours or fonts which might look completely out of place on the
2500 user's system, especially if it uses themes.
2502 The variant parameter is only relevant under Mac currently and is
2503 ignore under other platforms. Under Mac, it will change the size of
2504 the returned font. See `wx.Window.SetWindowVariant` for more about
2507 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2509 #---------------------------------------------------------------------------
2511 SL_HORIZONTAL
= _controls_
.SL_HORIZONTAL
2512 SL_VERTICAL
= _controls_
.SL_VERTICAL
2513 SL_TICKS
= _controls_
.SL_TICKS
2514 SL_AUTOTICKS
= _controls_
.SL_AUTOTICKS
2515 SL_LABELS
= _controls_
.SL_LABELS
2516 SL_LEFT
= _controls_
.SL_LEFT
2517 SL_TOP
= _controls_
.SL_TOP
2518 SL_RIGHT
= _controls_
.SL_RIGHT
2519 SL_BOTTOM
= _controls_
.SL_BOTTOM
2520 SL_BOTH
= _controls_
.SL_BOTH
2521 SL_SELRANGE
= _controls_
.SL_SELRANGE
2522 SL_INVERSE
= _controls_
.SL_INVERSE
2523 class Slider(_core
.Control
):
2524 """Proxy of C++ Slider class"""
2525 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2526 __repr__
= _swig_repr
2527 def __init__(self
, *args
, **kwargs
):
2529 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2530 int maxValue=100, Point pos=DefaultPosition,
2531 Size size=DefaultSize, long style=SL_HORIZONTAL,
2532 Validator validator=DefaultValidator,
2533 String name=SliderNameStr) -> Slider
2535 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2536 _controls_
.Slider_swiginit(self
,_controls_
.new_Slider(*args
, **kwargs
))
2537 self
._setOORInfo
(self
)
2539 def Create(*args
, **kwargs
):
2541 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2542 int maxValue=100, Point pos=DefaultPosition,
2543 Size size=DefaultSize, long style=SL_HORIZONTAL,
2544 Validator validator=DefaultValidator,
2545 String name=SliderNameStr) -> bool
2547 return _controls_
.Slider_Create(*args
, **kwargs
)
2549 def GetValue(*args
, **kwargs
):
2550 """GetValue(self) -> int"""
2551 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2553 def SetValue(*args
, **kwargs
):
2554 """SetValue(self, int value)"""
2555 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2557 def SetRange(*args
, **kwargs
):
2558 """SetRange(self, int minValue, int maxValue)"""
2559 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2561 def GetMin(*args
, **kwargs
):
2562 """GetMin(self) -> int"""
2563 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2565 def GetMax(*args
, **kwargs
):
2566 """GetMax(self) -> int"""
2567 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2569 def SetMin(*args
, **kwargs
):
2570 """SetMin(self, int minValue)"""
2571 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2573 def SetMax(*args
, **kwargs
):
2574 """SetMax(self, int maxValue)"""
2575 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2577 def SetLineSize(*args
, **kwargs
):
2578 """SetLineSize(self, int lineSize)"""
2579 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2581 def SetPageSize(*args
, **kwargs
):
2582 """SetPageSize(self, int pageSize)"""
2583 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2585 def GetLineSize(*args
, **kwargs
):
2586 """GetLineSize(self) -> int"""
2587 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2589 def GetPageSize(*args
, **kwargs
):
2590 """GetPageSize(self) -> int"""
2591 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2593 def SetThumbLength(*args
, **kwargs
):
2594 """SetThumbLength(self, int lenPixels)"""
2595 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2597 def GetThumbLength(*args
, **kwargs
):
2598 """GetThumbLength(self) -> int"""
2599 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2601 def SetTickFreq(*args
, **kwargs
):
2602 """SetTickFreq(self, int n, int pos=1)"""
2603 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2605 def GetTickFreq(*args
, **kwargs
):
2606 """GetTickFreq(self) -> int"""
2607 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2609 def ClearTicks(*args
, **kwargs
):
2610 """ClearTicks(self)"""
2611 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2613 def SetTick(*args
, **kwargs
):
2614 """SetTick(self, int tickPos)"""
2615 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2617 def ClearSel(*args
, **kwargs
):
2618 """ClearSel(self)"""
2619 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2621 def GetSelEnd(*args
, **kwargs
):
2622 """GetSelEnd(self) -> int"""
2623 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2625 def GetSelStart(*args
, **kwargs
):
2626 """GetSelStart(self) -> int"""
2627 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2629 def SetSelection(*args
, **kwargs
):
2630 """SetSelection(self, int min, int max)"""
2631 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2633 def GetClassDefaultAttributes(*args
, **kwargs
):
2635 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2637 Get the default attributes for this class. This is useful if you want
2638 to use the same font or colour in your own control as in a standard
2639 control -- which is a much better idea than hard coding specific
2640 colours or fonts which might look completely out of place on the
2641 user's system, especially if it uses themes.
2643 The variant parameter is only relevant under Mac currently and is
2644 ignore under other platforms. Under Mac, it will change the size of
2645 the returned font. See `wx.Window.SetWindowVariant` for more about
2648 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2650 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2651 Slider_swigregister
= _controls_
.Slider_swigregister
2652 Slider_swigregister(Slider
)
2653 SliderNameStr
= cvar
.SliderNameStr
2655 def PreSlider(*args
, **kwargs
):
2656 """PreSlider() -> Slider"""
2657 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2660 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2662 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2664 Get the default attributes for this class. This is useful if you want
2665 to use the same font or colour in your own control as in a standard
2666 control -- which is a much better idea than hard coding specific
2667 colours or fonts which might look completely out of place on the
2668 user's system, especially if it uses themes.
2670 The variant parameter is only relevant under Mac currently and is
2671 ignore under other platforms. Under Mac, it will change the size of
2672 the returned font. See `wx.Window.SetWindowVariant` for more about
2675 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2677 #---------------------------------------------------------------------------
2679 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2680 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2682 class ToggleButton(_core
.Control
):
2683 """Proxy of C++ ToggleButton class"""
2684 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2685 __repr__
= _swig_repr
2686 def __init__(self
, *args
, **kwargs
):
2688 __init__(self, Window parent, int id=-1, String label=EmptyString,
2689 Point pos=DefaultPosition, Size size=DefaultSize,
2690 long style=0, Validator validator=DefaultValidator,
2691 String name=ToggleButtonNameStr) -> ToggleButton
2693 _controls_
.ToggleButton_swiginit(self
,_controls_
.new_ToggleButton(*args
, **kwargs
))
2694 self
._setOORInfo
(self
)
2696 def Create(*args
, **kwargs
):
2698 Create(self, Window parent, int id=-1, String label=EmptyString,
2699 Point pos=DefaultPosition, Size size=DefaultSize,
2700 long style=0, Validator validator=DefaultValidator,
2701 String name=ToggleButtonNameStr) -> bool
2703 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2705 def SetValue(*args
, **kwargs
):
2706 """SetValue(self, bool value)"""
2707 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2709 def GetValue(*args
, **kwargs
):
2710 """GetValue(self) -> bool"""
2711 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2713 def GetClassDefaultAttributes(*args
, **kwargs
):
2715 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2717 Get the default attributes for this class. This is useful if you want
2718 to use the same font or colour in your own control as in a standard
2719 control -- which is a much better idea than hard coding specific
2720 colours or fonts which might look completely out of place on the
2721 user's system, especially if it uses themes.
2723 The variant parameter is only relevant under Mac currently and is
2724 ignore under other platforms. Under Mac, it will change the size of
2725 the returned font. See `wx.Window.SetWindowVariant` for more about
2728 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2730 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2731 ToggleButton_swigregister
= _controls_
.ToggleButton_swigregister
2732 ToggleButton_swigregister(ToggleButton
)
2733 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2735 def PreToggleButton(*args
, **kwargs
):
2736 """PreToggleButton() -> ToggleButton"""
2737 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2740 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2742 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2744 Get the default attributes for this class. This is useful if you want
2745 to use the same font or colour in your own control as in a standard
2746 control -- which is a much better idea than hard coding specific
2747 colours or fonts which might look completely out of place on the
2748 user's system, especially if it uses themes.
2750 The variant parameter is only relevant under Mac currently and is
2751 ignore under other platforms. Under Mac, it will change the size of
2752 the returned font. See `wx.Window.SetWindowVariant` for more about
2755 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2757 #---------------------------------------------------------------------------
2759 BK_DEFAULT
= _controls_
.BK_DEFAULT
2760 BK_TOP
= _controls_
.BK_TOP
2761 BK_BOTTOM
= _controls_
.BK_BOTTOM
2762 BK_LEFT
= _controls_
.BK_LEFT
2763 BK_RIGHT
= _controls_
.BK_RIGHT
2764 BK_ALIGN_MASK
= _controls_
.BK_ALIGN_MASK
2765 BK_BUTTONBAR
= _controls_
.BK_BUTTONBAR
2766 class BookCtrlBase(_core
.Control
):
2767 """Proxy of C++ BookCtrlBase class"""
2768 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2769 def __init__(self
): raise AttributeError, "No constructor defined"
2770 __repr__
= _swig_repr
2771 def GetPageCount(*args
, **kwargs
):
2772 """GetPageCount(self) -> size_t"""
2773 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2775 def GetPage(*args
, **kwargs
):
2776 """GetPage(self, size_t n) -> Window"""
2777 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2779 def GetCurrentPage(*args
, **kwargs
):
2780 """GetCurrentPage(self) -> Window"""
2781 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2783 def GetSelection(*args
, **kwargs
):
2784 """GetSelection(self) -> int"""
2785 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2787 def SetPageText(*args
, **kwargs
):
2788 """SetPageText(self, size_t n, String strText) -> bool"""
2789 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2791 def GetPageText(*args
, **kwargs
):
2792 """GetPageText(self, size_t n) -> String"""
2793 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2795 def SetImageList(*args
, **kwargs
):
2796 """SetImageList(self, ImageList imageList)"""
2797 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2799 def AssignImageList(*args
, **kwargs
):
2800 """AssignImageList(self, ImageList imageList)"""
2801 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2803 def GetImageList(*args
, **kwargs
):
2804 """GetImageList(self) -> ImageList"""
2805 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2807 def GetPageImage(*args
, **kwargs
):
2808 """GetPageImage(self, size_t n) -> int"""
2809 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2811 def SetPageImage(*args
, **kwargs
):
2812 """SetPageImage(self, size_t n, int imageId) -> bool"""
2813 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2815 def SetPageSize(*args
, **kwargs
):
2816 """SetPageSize(self, Size size)"""
2817 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2819 def CalcSizeFromPage(*args
, **kwargs
):
2820 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2821 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2823 def GetInternalBorder(*args
, **kwargs
):
2824 """GetInternalBorder(self) -> unsigned int"""
2825 return _controls_
.BookCtrlBase_GetInternalBorder(*args
, **kwargs
)
2827 def SetInternalBorder(*args
, **kwargs
):
2828 """SetInternalBorder(self, unsigned int internalBorder)"""
2829 return _controls_
.BookCtrlBase_SetInternalBorder(*args
, **kwargs
)
2831 def IsVertical(*args
, **kwargs
):
2832 """IsVertical(self) -> bool"""
2833 return _controls_
.BookCtrlBase_IsVertical(*args
, **kwargs
)
2835 def SetControlMargin(*args
, **kwargs
):
2836 """SetControlMargin(self, int margin)"""
2837 return _controls_
.BookCtrlBase_SetControlMargin(*args
, **kwargs
)
2839 def GetControlMargin(*args
, **kwargs
):
2840 """GetControlMargin(self) -> int"""
2841 return _controls_
.BookCtrlBase_GetControlMargin(*args
, **kwargs
)
2843 def SetFitToCurrentPage(*args
, **kwargs
):
2844 """SetFitToCurrentPage(self, bool fit)"""
2845 return _controls_
.BookCtrlBase_SetFitToCurrentPage(*args
, **kwargs
)
2847 def GetFitToCurrentPage(*args
, **kwargs
):
2848 """GetFitToCurrentPage(self) -> bool"""
2849 return _controls_
.BookCtrlBase_GetFitToCurrentPage(*args
, **kwargs
)
2851 def GetControlSizer(*args
, **kwargs
):
2852 """GetControlSizer(self) -> Sizer"""
2853 return _controls_
.BookCtrlBase_GetControlSizer(*args
, **kwargs
)
2855 def DeletePage(*args
, **kwargs
):
2856 """DeletePage(self, size_t n) -> bool"""
2857 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2859 def RemovePage(*args
, **kwargs
):
2860 """RemovePage(self, size_t n) -> bool"""
2861 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
2863 def DeleteAllPages(*args
, **kwargs
):
2864 """DeleteAllPages(self) -> bool"""
2865 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
2867 def AddPage(*args
, **kwargs
):
2868 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2869 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
2871 def InsertPage(*args
, **kwargs
):
2873 InsertPage(self, size_t n, Window page, String text, bool select=False,
2874 int imageId=-1) -> bool
2876 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
2878 def SetSelection(*args
, **kwargs
):
2879 """SetSelection(self, size_t n) -> int"""
2880 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
2882 def AdvanceSelection(*args
, **kwargs
):
2883 """AdvanceSelection(self, bool forward=True)"""
2884 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
2886 def GetClassDefaultAttributes(*args
, **kwargs
):
2888 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2890 Get the default attributes for this class. This is useful if you want
2891 to use the same font or colour in your own control as in a standard
2892 control -- which is a much better idea than hard coding specific
2893 colours or fonts which might look completely out of place on the
2894 user's system, especially if it uses themes.
2896 The variant parameter is only relevant under Mac currently and is
2897 ignore under other platforms. Under Mac, it will change the size of
2898 the returned font. See `wx.Window.SetWindowVariant` for more about
2901 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2903 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2904 BookCtrlBase_swigregister
= _controls_
.BookCtrlBase_swigregister
2905 BookCtrlBase_swigregister(BookCtrlBase
)
2906 NotebookNameStr
= cvar
.NotebookNameStr
2908 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
2910 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2912 Get the default attributes for this class. This is useful if you want
2913 to use the same font or colour in your own control as in a standard
2914 control -- which is a much better idea than hard coding specific
2915 colours or fonts which might look completely out of place on the
2916 user's system, especially if it uses themes.
2918 The variant parameter is only relevant under Mac currently and is
2919 ignore under other platforms. Under Mac, it will change the size of
2920 the returned font. See `wx.Window.SetWindowVariant` for more about
2923 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2925 class BookCtrlBaseEvent(_core
.NotifyEvent
):
2926 """Proxy of C++ BookCtrlBaseEvent class"""
2927 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2928 __repr__
= _swig_repr
2929 def __init__(self
, *args
, **kwargs
):
2931 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2932 int nOldSel=-1) -> BookCtrlBaseEvent
2934 _controls_
.BookCtrlBaseEvent_swiginit(self
,_controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
))
2935 def GetSelection(*args
, **kwargs
):
2937 GetSelection(self) -> int
2939 Returns item index for a listbox or choice selection event (not valid
2942 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
2944 def SetSelection(*args
, **kwargs
):
2945 """SetSelection(self, int nSel)"""
2946 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
2948 def GetOldSelection(*args
, **kwargs
):
2949 """GetOldSelection(self) -> int"""
2950 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
2952 def SetOldSelection(*args
, **kwargs
):
2953 """SetOldSelection(self, int nOldSel)"""
2954 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
2956 BookCtrlBaseEvent_swigregister
= _controls_
.BookCtrlBaseEvent_swigregister
2957 BookCtrlBaseEvent_swigregister(BookCtrlBaseEvent
)
2959 #---------------------------------------------------------------------------
2961 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2962 NB_TOP
= _controls_
.NB_TOP
2963 NB_LEFT
= _controls_
.NB_LEFT
2964 NB_RIGHT
= _controls_
.NB_RIGHT
2965 NB_BOTTOM
= _controls_
.NB_BOTTOM
2966 NB_MULTILINE
= _controls_
.NB_MULTILINE
2967 NB_NOPAGETHEME
= _controls_
.NB_NOPAGETHEME
2968 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2969 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2970 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2971 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2972 class Notebook(BookCtrlBase
):
2973 """Proxy of C++ Notebook class"""
2974 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2975 __repr__
= _swig_repr
2976 def __init__(self
, *args
, **kwargs
):
2978 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2979 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
2981 _controls_
.Notebook_swiginit(self
,_controls_
.new_Notebook(*args
, **kwargs
))
2982 self
._setOORInfo
(self
)
2984 def Create(*args
, **kwargs
):
2986 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2987 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
2989 return _controls_
.Notebook_Create(*args
, **kwargs
)
2991 def GetRowCount(*args
, **kwargs
):
2992 """GetRowCount(self) -> int"""
2993 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2995 def SetPadding(*args
, **kwargs
):
2996 """SetPadding(self, Size padding)"""
2997 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2999 def SetTabSize(*args
, **kwargs
):
3000 """SetTabSize(self, Size sz)"""
3001 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3003 def HitTest(*args
, **kwargs
):
3005 HitTest(Point pt) -> (tab, where)
3007 Returns the tab which is hit, and flags indicating where using
3008 wx.NB_HITTEST flags.
3010 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3012 def GetThemeBackgroundColour(*args
, **kwargs
):
3013 """GetThemeBackgroundColour(self) -> Colour"""
3014 return _controls_
.Notebook_GetThemeBackgroundColour(*args
, **kwargs
)
3016 def GetClassDefaultAttributes(*args
, **kwargs
):
3018 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3020 Get the default attributes for this class. This is useful if you want
3021 to use the same font or colour in your own control as in a standard
3022 control -- which is a much better idea than hard coding specific
3023 colours or fonts which might look completely out of place on the
3024 user's system, especially if it uses themes.
3026 The variant parameter is only relevant under Mac currently and is
3027 ignore under other platforms. Under Mac, it will change the size of
3028 the returned font. See `wx.Window.SetWindowVariant` for more about
3031 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3033 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3034 Notebook_swigregister
= _controls_
.Notebook_swigregister
3035 Notebook_swigregister(Notebook
)
3037 def PreNotebook(*args
, **kwargs
):
3038 """PreNotebook() -> Notebook"""
3039 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3042 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3044 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3046 Get the default attributes for this class. This is useful if you want
3047 to use the same font or colour in your own control as in a standard
3048 control -- which is a much better idea than hard coding specific
3049 colours or fonts which might look completely out of place on the
3050 user's system, especially if it uses themes.
3052 The variant parameter is only relevant under Mac currently and is
3053 ignore under other platforms. Under Mac, it will change the size of
3054 the returned font. See `wx.Window.SetWindowVariant` for more about
3057 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3059 class NotebookEvent(BookCtrlBaseEvent
):
3060 """Proxy of C++ NotebookEvent class"""
3061 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3062 __repr__
= _swig_repr
3063 def __init__(self
, *args
, **kwargs
):
3065 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3066 int nOldSel=-1) -> NotebookEvent
3068 _controls_
.NotebookEvent_swiginit(self
,_controls_
.new_NotebookEvent(*args
, **kwargs
))
3069 NotebookEvent_swigregister
= _controls_
.NotebookEvent_swigregister
3070 NotebookEvent_swigregister(NotebookEvent
)
3072 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3073 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3075 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3076 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3078 #----------------------------------------------------------------------------
3080 class NotebookPage(wx
.Panel
):
3082 There is an old (and apparently unsolvable) bug when placing a
3083 window with a nonstandard background colour in a wx.Notebook on
3084 wxGTK1, as the notbooks's background colour would always be used
3085 when the window is refreshed. The solution is to place a panel in
3086 the notbook and the coloured window on the panel, sized to cover
3087 the panel. This simple class does that for you, just put an
3088 instance of this in the notebook and make your regular window a
3089 child of this one and it will handle the resize for you.
3091 def __init__(self
, parent
, id=-1,
3092 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3093 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3094 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3096 self
.Bind(wx
.EVT_SIZE
, self
.OnSize
)
3098 def OnSize(self
, evt
):
3099 if self
.child
is None:
3100 children
= self
.GetChildren()
3102 self
.child
= children
[0]
3104 self
.child
.SetPosition((0,0))
3105 self
.child
.SetSize(self
.GetSize())
3108 #---------------------------------------------------------------------------
3110 LB_DEFAULT
= _controls_
.LB_DEFAULT
3111 LB_TOP
= _controls_
.LB_TOP
3112 LB_BOTTOM
= _controls_
.LB_BOTTOM
3113 LB_LEFT
= _controls_
.LB_LEFT
3114 LB_RIGHT
= _controls_
.LB_RIGHT
3115 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3116 class Listbook(BookCtrlBase
):
3117 """Proxy of C++ Listbook class"""
3118 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3119 __repr__
= _swig_repr
3120 def __init__(self
, *args
, **kwargs
):
3122 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3123 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3125 _controls_
.Listbook_swiginit(self
,_controls_
.new_Listbook(*args
, **kwargs
))
3126 self
._setOORInfo
(self
)
3128 def Create(*args
, **kwargs
):
3130 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3131 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3133 return _controls_
.Listbook_Create(*args
, **kwargs
)
3135 def GetListView(*args
, **kwargs
):
3136 """GetListView(self) -> ListView"""
3137 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3139 Listbook_swigregister
= _controls_
.Listbook_swigregister
3140 Listbook_swigregister(Listbook
)
3142 def PreListbook(*args
, **kwargs
):
3143 """PreListbook() -> Listbook"""
3144 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3147 class ListbookEvent(BookCtrlBaseEvent
):
3148 """Proxy of C++ ListbookEvent class"""
3149 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3150 __repr__
= _swig_repr
3151 def __init__(self
, *args
, **kwargs
):
3153 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3154 int nOldSel=-1) -> ListbookEvent
3156 _controls_
.ListbookEvent_swiginit(self
,_controls_
.new_ListbookEvent(*args
, **kwargs
))
3157 ListbookEvent_swigregister
= _controls_
.ListbookEvent_swigregister
3158 ListbookEvent_swigregister(ListbookEvent
)
3160 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3161 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3162 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3163 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3165 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3166 CHB_TOP
= _controls_
.CHB_TOP
3167 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3168 CHB_LEFT
= _controls_
.CHB_LEFT
3169 CHB_RIGHT
= _controls_
.CHB_RIGHT
3170 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3171 class Choicebook(BookCtrlBase
):
3172 """Proxy of C++ Choicebook class"""
3173 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3174 __repr__
= _swig_repr
3175 def __init__(self
, *args
, **kwargs
):
3177 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3178 long style=0, String name=EmptyString) -> Choicebook
3180 _controls_
.Choicebook_swiginit(self
,_controls_
.new_Choicebook(*args
, **kwargs
))
3181 self
._setOORInfo
(self
)
3183 def Create(*args
, **kwargs
):
3185 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3186 long style=0, String name=EmptyString) -> bool
3188 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3190 def GetChoiceCtrl(*args
, **kwargs
):
3191 """GetChoiceCtrl(self) -> Choice"""
3192 return _controls_
.Choicebook_GetChoiceCtrl(*args
, **kwargs
)
3194 Choicebook_swigregister
= _controls_
.Choicebook_swigregister
3195 Choicebook_swigregister(Choicebook
)
3197 def PreChoicebook(*args
, **kwargs
):
3198 """PreChoicebook() -> Choicebook"""
3199 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3202 class ChoicebookEvent(BookCtrlBaseEvent
):
3203 """Proxy of C++ ChoicebookEvent class"""
3204 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3205 __repr__
= _swig_repr
3206 def __init__(self
, *args
, **kwargs
):
3208 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3209 int nOldSel=-1) -> ChoicebookEvent
3211 _controls_
.ChoicebookEvent_swiginit(self
,_controls_
.new_ChoicebookEvent(*args
, **kwargs
))
3212 ChoicebookEvent_swigregister
= _controls_
.ChoicebookEvent_swigregister
3213 ChoicebookEvent_swigregister(ChoicebookEvent
)
3215 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3216 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3217 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3218 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3220 #---------------------------------------------------------------------------
3222 class Treebook(BookCtrlBase
):
3223 """Proxy of C++ Treebook class"""
3224 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3225 __repr__
= _swig_repr
3226 def __init__(self
, *args
, **kwargs
):
3228 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3229 long style=BK_DEFAULT,
3230 String name=EmptyString) -> Treebook
3232 _controls_
.Treebook_swiginit(self
,_controls_
.new_Treebook(*args
, **kwargs
))
3233 self
._setOORInfo
(self
)
3235 def Create(*args
, **kwargs
):
3237 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3238 long style=BK_DEFAULT,
3239 String name=EmptyString) -> bool
3241 return _controls_
.Treebook_Create(*args
, **kwargs
)
3243 def InsertSubPage(*args
, **kwargs
):
3245 InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
3246 int imageId=NOT_FOUND) -> bool
3248 return _controls_
.Treebook_InsertSubPage(*args
, **kwargs
)
3250 def AddSubPage(*args
, **kwargs
):
3251 """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3252 return _controls_
.Treebook_AddSubPage(*args
, **kwargs
)
3254 def IsNodeExpanded(*args
, **kwargs
):
3255 """IsNodeExpanded(self, size_t pos) -> bool"""
3256 return _controls_
.Treebook_IsNodeExpanded(*args
, **kwargs
)
3258 def ExpandNode(*args
, **kwargs
):
3259 """ExpandNode(self, size_t pos, bool expand=True) -> bool"""
3260 return _controls_
.Treebook_ExpandNode(*args
, **kwargs
)
3262 def CollapseNode(*args
, **kwargs
):
3263 """CollapseNode(self, size_t pos) -> bool"""
3264 return _controls_
.Treebook_CollapseNode(*args
, **kwargs
)
3266 def GetPageParent(*args
, **kwargs
):
3267 """GetPageParent(self, size_t pos) -> int"""
3268 return _controls_
.Treebook_GetPageParent(*args
, **kwargs
)
3270 def GetTreeCtrl(*args
, **kwargs
):
3271 """GetTreeCtrl(self) -> wxTreeCtrl"""
3272 return _controls_
.Treebook_GetTreeCtrl(*args
, **kwargs
)
3274 Treebook_swigregister
= _controls_
.Treebook_swigregister
3275 Treebook_swigregister(Treebook
)
3277 def PreTreebook(*args
, **kwargs
):
3278 """PreTreebook() -> Treebook"""
3279 val
= _controls_
.new_PreTreebook(*args
, **kwargs
)
3282 class TreebookEvent(BookCtrlBaseEvent
):
3283 """Proxy of C++ TreebookEvent class"""
3284 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3285 __repr__
= _swig_repr
3286 def __init__(self
, *args
, **kwargs
):
3288 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3289 int nOldSel=NOT_FOUND) -> TreebookEvent
3291 _controls_
.TreebookEvent_swiginit(self
,_controls_
.new_TreebookEvent(*args
, **kwargs
))
3292 TreebookEvent_swigregister
= _controls_
.TreebookEvent_swigregister
3293 TreebookEvent_swigregister(TreebookEvent
)
3295 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
3296 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
3297 wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
3298 wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
3299 EVT_TREEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
, 1 )
3300 EVT_TREEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
, 1)
3301 EVT_TREEBOOK_NODE_COLLAPSED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
, 1 )
3302 EVT_TREEBOOK_NODE_EXPANDED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
, 1 )
3304 #---------------------------------------------------------------------------
3306 class Toolbook(BookCtrlBase
):
3307 """Proxy of C++ Toolbook class"""
3308 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3309 __repr__
= _swig_repr
3310 def __init__(self
, *args
, **kwargs
):
3312 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3313 long style=BK_DEFAULT,
3314 String name=EmptyString) -> Toolbook
3316 _controls_
.Toolbook_swiginit(self
,_controls_
.new_Toolbook(*args
, **kwargs
))
3317 self
._setOORInfo
(self
)
3319 def Create(*args
, **kwargs
):
3321 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3322 long style=0, String name=wxEmptyString) -> bool
3324 return _controls_
.Toolbook_Create(*args
, **kwargs
)
3326 def GetToolBar(*args
, **kwargs
):
3327 """GetToolBar(self) -> ToolBarBase"""
3328 return _controls_
.Toolbook_GetToolBar(*args
, **kwargs
)
3330 def Realize(*args
, **kwargs
):
3332 return _controls_
.Toolbook_Realize(*args
, **kwargs
)
3334 Toolbook_swigregister
= _controls_
.Toolbook_swigregister
3335 Toolbook_swigregister(Toolbook
)
3337 def PreToolbook(*args
, **kwargs
):
3338 """PreToolbook() -> Toolbook"""
3339 val
= _controls_
.new_PreToolbook(*args
, **kwargs
)
3342 class ToolbookEvent(BookCtrlBaseEvent
):
3343 """Proxy of C++ ToolbookEvent class"""
3344 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3345 __repr__
= _swig_repr
3346 def __init__(self
, *args
, **kwargs
):
3348 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3349 int nOldSel=NOT_FOUND) -> ToolbookEvent
3351 _controls_
.ToolbookEvent_swiginit(self
,_controls_
.new_ToolbookEvent(*args
, **kwargs
))
3352 ToolbookEvent_swigregister
= _controls_
.ToolbookEvent_swigregister
3353 ToolbookEvent_swigregister(ToolbookEvent
)
3355 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
3356 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
3357 EVT_TOOLBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
, 1)
3358 EVT_TOOLBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
, 1)
3360 #---------------------------------------------------------------------------
3362 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3363 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3364 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3365 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3366 TB_VERTICAL
= _controls_
.TB_VERTICAL
3367 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3368 TB_FLAT
= _controls_
.TB_FLAT
3369 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3370 TB_NOICONS
= _controls_
.TB_NOICONS
3371 TB_TEXT
= _controls_
.TB_TEXT
3372 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3373 TB_NOALIGN
= _controls_
.TB_NOALIGN
3374 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3375 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3376 class ToolBarToolBase(_core
.Object
):
3377 """Proxy of C++ ToolBarToolBase class"""
3378 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3379 def __init__(self
): raise AttributeError, "No constructor defined"
3380 __repr__
= _swig_repr
3381 def GetId(*args
, **kwargs
):
3382 """GetId(self) -> int"""
3383 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3385 def GetControl(*args
, **kwargs
):
3386 """GetControl(self) -> Control"""
3387 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3389 def GetToolBar(*args
, **kwargs
):
3390 """GetToolBar(self) -> ToolBarBase"""
3391 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3393 def IsButton(*args
, **kwargs
):
3394 """IsButton(self) -> int"""
3395 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3397 def IsControl(*args
, **kwargs
):
3398 """IsControl(self) -> int"""
3399 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3401 def IsSeparator(*args
, **kwargs
):
3402 """IsSeparator(self) -> int"""
3403 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3405 def GetStyle(*args
, **kwargs
):
3406 """GetStyle(self) -> int"""
3407 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3409 def GetKind(*args
, **kwargs
):
3410 """GetKind(self) -> int"""
3411 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3413 def IsEnabled(*args
, **kwargs
):
3414 """IsEnabled(self) -> bool"""
3415 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3417 def IsToggled(*args
, **kwargs
):
3418 """IsToggled(self) -> bool"""
3419 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3421 def CanBeToggled(*args
, **kwargs
):
3422 """CanBeToggled(self) -> bool"""
3423 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3425 def GetNormalBitmap(*args
, **kwargs
):
3426 """GetNormalBitmap(self) -> Bitmap"""
3427 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3429 def GetDisabledBitmap(*args
, **kwargs
):
3430 """GetDisabledBitmap(self) -> Bitmap"""
3431 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3433 def GetBitmap(*args
, **kwargs
):
3434 """GetBitmap(self) -> Bitmap"""
3435 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3437 def GetLabel(*args
, **kwargs
):
3438 """GetLabel(self) -> String"""
3439 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3441 def GetShortHelp(*args
, **kwargs
):
3442 """GetShortHelp(self) -> String"""
3443 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3445 def GetLongHelp(*args
, **kwargs
):
3446 """GetLongHelp(self) -> String"""
3447 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3449 def Enable(*args
, **kwargs
):
3450 """Enable(self, bool enable) -> bool"""
3451 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3453 def Toggle(*args
, **kwargs
):
3455 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3457 def SetToggle(*args
, **kwargs
):
3458 """SetToggle(self, bool toggle) -> bool"""
3459 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3461 def SetShortHelp(*args
, **kwargs
):
3462 """SetShortHelp(self, String help) -> bool"""
3463 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3465 def SetLongHelp(*args
, **kwargs
):
3466 """SetLongHelp(self, String help) -> bool"""
3467 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3469 def SetNormalBitmap(*args
, **kwargs
):
3470 """SetNormalBitmap(self, Bitmap bmp)"""
3471 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3473 def SetDisabledBitmap(*args
, **kwargs
):
3474 """SetDisabledBitmap(self, Bitmap bmp)"""
3475 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3477 def SetLabel(*args
, **kwargs
):
3478 """SetLabel(self, String label)"""
3479 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3481 def Detach(*args
, **kwargs
):
3483 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3485 def Attach(*args
, **kwargs
):
3486 """Attach(self, ToolBarBase tbar)"""
3487 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3489 def GetClientData(*args
, **kwargs
):
3490 """GetClientData(self) -> PyObject"""
3491 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3493 def SetClientData(*args
, **kwargs
):
3494 """SetClientData(self, PyObject clientData)"""
3495 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3497 GetBitmap1
= GetNormalBitmap
3498 GetBitmap2
= GetDisabledBitmap
3499 SetBitmap1
= SetNormalBitmap
3500 SetBitmap2
= SetDisabledBitmap
3502 ToolBarToolBase_swigregister
= _controls_
.ToolBarToolBase_swigregister
3503 ToolBarToolBase_swigregister(ToolBarToolBase
)
3505 class ToolBarBase(_core
.Control
):
3506 """Proxy of C++ ToolBarBase class"""
3507 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3508 def __init__(self
): raise AttributeError, "No constructor defined"
3509 __repr__
= _swig_repr
3510 def DoAddTool(*args
, **kwargs
):
3512 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3513 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3514 String longHelp=EmptyString,
3515 PyObject clientData=None) -> ToolBarToolBase
3517 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3519 def DoInsertTool(*args
, **kwargs
):
3521 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3522 int kind=ITEM_NORMAL,
3523 String shortHelp=EmptyString, String longHelp=EmptyString,
3524 PyObject clientData=None) -> ToolBarToolBase
3526 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3528 # These match the original Add methods for this class, kept for
3529 # backwards compatibility with versions < 2.3.3.
3532 def AddTool(self
, id, bitmap
,
3533 pushedBitmap
= wx
.NullBitmap
,
3536 shortHelpString
= '',
3537 longHelpString
= '') :
3538 '''Old style method to add a tool to the toolbar.'''
3539 kind
= wx
.ITEM_NORMAL
3540 if isToggle
: kind
= wx
.ITEM_CHECK
3541 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3542 shortHelpString
, longHelpString
, clientData
)
3544 def AddSimpleTool(self
, id, bitmap
,
3545 shortHelpString
= '',
3546 longHelpString
= '',
3548 '''Old style method to add a tool to the toolbar.'''
3549 kind
= wx
.ITEM_NORMAL
3550 if isToggle
: kind
= wx
.ITEM_CHECK
3551 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3552 shortHelpString
, longHelpString
, None)
3554 def InsertTool(self
, pos
, id, bitmap
,
3555 pushedBitmap
= wx
.NullBitmap
,
3558 shortHelpString
= '',
3559 longHelpString
= ''):
3560 '''Old style method to insert a tool in the toolbar.'''
3561 kind
= wx
.ITEM_NORMAL
3562 if isToggle
: kind
= wx
.ITEM_CHECK
3563 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3564 shortHelpString
, longHelpString
, clientData
)
3566 def InsertSimpleTool(self
, pos
, id, bitmap
,
3567 shortHelpString
= '',
3568 longHelpString
= '',
3570 '''Old style method to insert a tool in the toolbar.'''
3571 kind
= wx
.ITEM_NORMAL
3572 if isToggle
: kind
= wx
.ITEM_CHECK
3573 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3574 shortHelpString
, longHelpString
, None)
3577 # The following are the new toolbar Add methods starting with
3578 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3579 # able to keep backwards compatibility with using the above
3580 # methods. Eventually these should migrate to be the methods used
3581 # primarily and lose the 'Label' in the name...
3583 def AddLabelTool(self
, id, label
, bitmap
,
3584 bmpDisabled
= wx
.NullBitmap
,
3585 kind
= wx
.ITEM_NORMAL
,
3586 shortHelp
= '', longHelp
= '',
3589 The full AddTool() function.
3591 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3592 is created and used as the disabled image.
3594 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3595 shortHelp
, longHelp
, clientData
)
3598 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3599 bmpDisabled
= wx
.NullBitmap
,
3600 kind
= wx
.ITEM_NORMAL
,
3601 shortHelp
= '', longHelp
= '',
3604 Insert the new tool at the given position, if pos == GetToolsCount(), it
3605 is equivalent to AddTool()
3607 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3608 shortHelp
, longHelp
, clientData
)
3610 def AddCheckLabelTool(self
, id, label
, bitmap
,
3611 bmpDisabled
= wx
.NullBitmap
,
3612 shortHelp
= '', longHelp
= '',
3614 '''Add a check tool, i.e. a tool which can be toggled'''
3615 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3616 shortHelp
, longHelp
, clientData
)
3618 def AddRadioLabelTool(self
, id, label
, bitmap
,
3619 bmpDisabled
= wx
.NullBitmap
,
3620 shortHelp
= '', longHelp
= '',
3623 Add a radio tool, i.e. a tool which can be toggled and releases any
3624 other toggled radio tools in the same group when it happens
3626 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3627 shortHelp
, longHelp
, clientData
)
3630 # For consistency with the backwards compatible methods above, here are
3631 # some non-'Label' versions of the Check and Radio methods
3633 def AddCheckTool(self
, id, bitmap
,
3634 bmpDisabled
= wx
.NullBitmap
,
3635 shortHelp
= '', longHelp
= '',
3637 '''Add a check tool, i.e. a tool which can be toggled'''
3638 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3639 shortHelp
, longHelp
, clientData
)
3641 def AddRadioTool(self
, id, bitmap
,
3642 bmpDisabled
= wx
.NullBitmap
,
3643 shortHelp
= '', longHelp
= '',
3646 Add a radio tool, i.e. a tool which can be toggled and releases any
3647 other toggled radio tools in the same group when it happens
3649 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3650 shortHelp
, longHelp
, clientData
)
3652 def AddToolItem(*args
, **kwargs
):
3653 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3654 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3656 def InsertToolItem(*args
, **kwargs
):
3657 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3658 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3660 def AddControl(*args
, **kwargs
):
3661 """AddControl(self, Control control) -> ToolBarToolBase"""
3662 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3664 def InsertControl(*args
, **kwargs
):
3665 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3666 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3668 def FindControl(*args
, **kwargs
):
3669 """FindControl(self, int id) -> Control"""
3670 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3672 def AddSeparator(*args
, **kwargs
):
3673 """AddSeparator(self) -> ToolBarToolBase"""
3674 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3676 def InsertSeparator(*args
, **kwargs
):
3677 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3678 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3680 def RemoveTool(*args
, **kwargs
):
3681 """RemoveTool(self, int id) -> ToolBarToolBase"""
3682 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3684 def DeleteToolByPos(*args
, **kwargs
):
3685 """DeleteToolByPos(self, size_t pos) -> bool"""
3686 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3688 def DeleteTool(*args
, **kwargs
):
3689 """DeleteTool(self, int id) -> bool"""
3690 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3692 def ClearTools(*args
, **kwargs
):
3693 """ClearTools(self)"""
3694 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3696 def Realize(*args
, **kwargs
):
3697 """Realize(self) -> bool"""
3698 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3700 def EnableTool(*args
, **kwargs
):
3701 """EnableTool(self, int id, bool enable)"""
3702 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3704 def ToggleTool(*args
, **kwargs
):
3705 """ToggleTool(self, int id, bool toggle)"""
3706 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3708 def SetToggle(*args
, **kwargs
):
3709 """SetToggle(self, int id, bool toggle)"""
3710 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3712 def GetToolClientData(*args
, **kwargs
):
3713 """GetToolClientData(self, int id) -> PyObject"""
3714 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3716 def SetToolClientData(*args
, **kwargs
):
3717 """SetToolClientData(self, int id, PyObject clientData)"""
3718 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3720 def GetToolPos(*args
, **kwargs
):
3721 """GetToolPos(self, int id) -> int"""
3722 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3724 def GetToolState(*args
, **kwargs
):
3725 """GetToolState(self, int id) -> bool"""
3726 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3728 def GetToolEnabled(*args
, **kwargs
):
3729 """GetToolEnabled(self, int id) -> bool"""
3730 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3732 def SetToolShortHelp(*args
, **kwargs
):
3733 """SetToolShortHelp(self, int id, String helpString)"""
3734 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3736 def GetToolShortHelp(*args
, **kwargs
):
3737 """GetToolShortHelp(self, int id) -> String"""
3738 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3740 def SetToolLongHelp(*args
, **kwargs
):
3741 """SetToolLongHelp(self, int id, String helpString)"""
3742 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3744 def GetToolLongHelp(*args
, **kwargs
):
3745 """GetToolLongHelp(self, int id) -> String"""
3746 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3748 def SetMarginsXY(*args
, **kwargs
):
3749 """SetMarginsXY(self, int x, int y)"""
3750 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3752 def SetMargins(*args
, **kwargs
):
3753 """SetMargins(self, Size size)"""
3754 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3756 def SetToolPacking(*args
, **kwargs
):
3757 """SetToolPacking(self, int packing)"""
3758 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3760 def SetToolSeparation(*args
, **kwargs
):
3761 """SetToolSeparation(self, int separation)"""
3762 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3764 def GetToolMargins(*args
, **kwargs
):
3765 """GetToolMargins(self) -> Size"""
3766 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3768 def GetMargins(*args
, **kwargs
):
3769 """GetMargins(self) -> Size"""
3770 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3772 def GetToolPacking(*args
, **kwargs
):
3773 """GetToolPacking(self) -> int"""
3774 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3776 def GetToolSeparation(*args
, **kwargs
):
3777 """GetToolSeparation(self) -> int"""
3778 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3780 def SetRows(*args
, **kwargs
):
3781 """SetRows(self, int nRows)"""
3782 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3784 def SetMaxRowsCols(*args
, **kwargs
):
3785 """SetMaxRowsCols(self, int rows, int cols)"""
3786 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3788 def GetMaxRows(*args
, **kwargs
):
3789 """GetMaxRows(self) -> int"""
3790 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3792 def GetMaxCols(*args
, **kwargs
):
3793 """GetMaxCols(self) -> int"""
3794 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3796 def SetToolBitmapSize(*args
, **kwargs
):
3797 """SetToolBitmapSize(self, Size size)"""
3798 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3800 def GetToolBitmapSize(*args
, **kwargs
):
3801 """GetToolBitmapSize(self) -> Size"""
3802 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3804 def GetToolSize(*args
, **kwargs
):
3805 """GetToolSize(self) -> Size"""
3806 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3808 def FindToolForPosition(*args
, **kwargs
):
3809 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3810 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3812 def FindById(*args
, **kwargs
):
3813 """FindById(self, int toolid) -> ToolBarToolBase"""
3814 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3816 def IsVertical(*args
, **kwargs
):
3817 """IsVertical(self) -> bool"""
3818 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3820 def GetToolsCount(*args
, **kwargs
):
3821 """GetToolsCount(self) -> size_t"""
3822 return _controls_
.ToolBarBase_GetToolsCount(*args
, **kwargs
)
3824 ToolBarBase_swigregister
= _controls_
.ToolBarBase_swigregister
3825 ToolBarBase_swigregister(ToolBarBase
)
3827 class ToolBar(ToolBarBase
):
3828 """Proxy of C++ ToolBar class"""
3829 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3830 __repr__
= _swig_repr
3831 def __init__(self
, *args
, **kwargs
):
3833 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3834 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3835 String name=wxPyToolBarNameStr) -> ToolBar
3837 _controls_
.ToolBar_swiginit(self
,_controls_
.new_ToolBar(*args
, **kwargs
))
3838 self
._setOORInfo
(self
)
3840 def Create(*args
, **kwargs
):
3842 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3843 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3844 String name=wxPyToolBarNameStr) -> bool
3846 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3848 def GetClassDefaultAttributes(*args
, **kwargs
):
3850 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3852 Get the default attributes for this class. This is useful if you want
3853 to use the same font or colour in your own control as in a standard
3854 control -- which is a much better idea than hard coding specific
3855 colours or fonts which might look completely out of place on the
3856 user's system, especially if it uses themes.
3858 The variant parameter is only relevant under Mac currently and is
3859 ignore under other platforms. Under Mac, it will change the size of
3860 the returned font. See `wx.Window.SetWindowVariant` for more about
3863 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3865 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3866 ToolBar_swigregister
= _controls_
.ToolBar_swigregister
3867 ToolBar_swigregister(ToolBar
)
3869 def PreToolBar(*args
, **kwargs
):
3870 """PreToolBar() -> ToolBar"""
3871 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3874 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3876 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3878 Get the default attributes for this class. This is useful if you want
3879 to use the same font or colour in your own control as in a standard
3880 control -- which is a much better idea than hard coding specific
3881 colours or fonts which might look completely out of place on the
3882 user's system, especially if it uses themes.
3884 The variant parameter is only relevant under Mac currently and is
3885 ignore under other platforms. Under Mac, it will change the size of
3886 the returned font. See `wx.Window.SetWindowVariant` for more about
3889 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3891 #---------------------------------------------------------------------------
3893 LC_VRULES
= _controls_
.LC_VRULES
3894 LC_HRULES
= _controls_
.LC_HRULES
3895 LC_ICON
= _controls_
.LC_ICON
3896 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3897 LC_LIST
= _controls_
.LC_LIST
3898 LC_REPORT
= _controls_
.LC_REPORT
3899 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3900 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3901 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3902 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3903 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3904 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3905 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3906 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3907 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3908 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3909 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3910 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3911 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3912 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3913 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3914 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3915 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3916 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3917 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3918 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3919 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3920 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3921 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3922 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3923 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3924 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3925 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3926 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3927 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3928 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3929 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3930 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3931 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3932 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3933 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3934 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3935 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3936 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3937 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3938 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3939 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3940 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3941 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3942 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3943 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3944 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3945 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3946 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3947 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3948 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3949 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3950 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3951 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3952 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3953 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3954 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3955 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3956 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3957 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3958 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3959 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3960 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3961 #---------------------------------------------------------------------------
3963 class ListItemAttr(object):
3964 """Proxy of C++ ListItemAttr class"""
3965 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3966 __repr__
= _swig_repr
3967 def __init__(self
, *args
, **kwargs
):
3969 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3970 Font font=wxNullFont) -> ListItemAttr
3972 _controls_
.ListItemAttr_swiginit(self
,_controls_
.new_ListItemAttr(*args
, **kwargs
))
3973 __swig_destroy__
= _controls_
.delete_ListItemAttr
3974 __del__
= lambda self
: None;
3975 def SetTextColour(*args
, **kwargs
):
3976 """SetTextColour(self, Colour colText)"""
3977 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3979 def SetBackgroundColour(*args
, **kwargs
):
3980 """SetBackgroundColour(self, Colour colBack)"""
3981 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3983 def SetFont(*args
, **kwargs
):
3984 """SetFont(self, Font font)"""
3985 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3987 def HasTextColour(*args
, **kwargs
):
3988 """HasTextColour(self) -> bool"""
3989 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3991 def HasBackgroundColour(*args
, **kwargs
):
3992 """HasBackgroundColour(self) -> bool"""
3993 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3995 def HasFont(*args
, **kwargs
):
3996 """HasFont(self) -> bool"""
3997 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3999 def GetTextColour(*args
, **kwargs
):
4000 """GetTextColour(self) -> Colour"""
4001 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4003 def GetBackgroundColour(*args
, **kwargs
):
4004 """GetBackgroundColour(self) -> Colour"""
4005 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4007 def GetFont(*args
, **kwargs
):
4008 """GetFont(self) -> Font"""
4009 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4011 def AssignFrom(*args
, **kwargs
):
4012 """AssignFrom(self, ListItemAttr source)"""
4013 return _controls_
.ListItemAttr_AssignFrom(*args
, **kwargs
)
4015 def Destroy(*args
, **kwargs
):
4017 val
= _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4021 ListItemAttr_swigregister
= _controls_
.ListItemAttr_swigregister
4022 ListItemAttr_swigregister(ListItemAttr
)
4023 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4025 #---------------------------------------------------------------------------
4027 class ListItem(_core
.Object
):
4028 """Proxy of C++ ListItem class"""
4029 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4030 __repr__
= _swig_repr
4031 def __init__(self
, *args
, **kwargs
):
4032 """__init__(self) -> ListItem"""
4033 _controls_
.ListItem_swiginit(self
,_controls_
.new_ListItem(*args
, **kwargs
))
4034 __swig_destroy__
= _controls_
.delete_ListItem
4035 __del__
= lambda self
: None;
4036 def Clear(*args
, **kwargs
):
4038 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4040 def ClearAttributes(*args
, **kwargs
):
4041 """ClearAttributes(self)"""
4042 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4044 def SetMask(*args
, **kwargs
):
4045 """SetMask(self, long mask)"""
4046 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4048 def SetId(*args
, **kwargs
):
4049 """SetId(self, long id)"""
4050 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4052 def SetColumn(*args
, **kwargs
):
4053 """SetColumn(self, int col)"""
4054 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4056 def SetState(*args
, **kwargs
):
4057 """SetState(self, long state)"""
4058 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4060 def SetStateMask(*args
, **kwargs
):
4061 """SetStateMask(self, long stateMask)"""
4062 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4064 def SetText(*args
, **kwargs
):
4065 """SetText(self, String text)"""
4066 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4068 def SetImage(*args
, **kwargs
):
4069 """SetImage(self, int image)"""
4070 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4072 def SetData(*args
, **kwargs
):
4073 """SetData(self, long data)"""
4074 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4076 def SetWidth(*args
, **kwargs
):
4077 """SetWidth(self, int width)"""
4078 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4080 def SetAlign(*args
, **kwargs
):
4081 """SetAlign(self, int align)"""
4082 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4084 def SetTextColour(*args
, **kwargs
):
4085 """SetTextColour(self, Colour colText)"""
4086 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4088 def SetBackgroundColour(*args
, **kwargs
):
4089 """SetBackgroundColour(self, Colour colBack)"""
4090 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4092 def SetFont(*args
, **kwargs
):
4093 """SetFont(self, Font font)"""
4094 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4096 def GetMask(*args
, **kwargs
):
4097 """GetMask(self) -> long"""
4098 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4100 def GetId(*args
, **kwargs
):
4101 """GetId(self) -> long"""
4102 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4104 def GetColumn(*args
, **kwargs
):
4105 """GetColumn(self) -> int"""
4106 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4108 def GetState(*args
, **kwargs
):
4109 """GetState(self) -> long"""
4110 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4112 def GetText(*args
, **kwargs
):
4113 """GetText(self) -> String"""
4114 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4116 def GetImage(*args
, **kwargs
):
4117 """GetImage(self) -> int"""
4118 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4120 def GetData(*args
, **kwargs
):
4121 """GetData(self) -> long"""
4122 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4124 def GetWidth(*args
, **kwargs
):
4125 """GetWidth(self) -> int"""
4126 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4128 def GetAlign(*args
, **kwargs
):
4129 """GetAlign(self) -> int"""
4130 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4132 def GetAttributes(*args
, **kwargs
):
4133 """GetAttributes(self) -> ListItemAttr"""
4134 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4136 def HasAttributes(*args
, **kwargs
):
4137 """HasAttributes(self) -> bool"""
4138 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4140 def GetTextColour(*args
, **kwargs
):
4141 """GetTextColour(self) -> Colour"""
4142 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4144 def GetBackgroundColour(*args
, **kwargs
):
4145 """GetBackgroundColour(self) -> Colour"""
4146 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4148 def GetFont(*args
, **kwargs
):
4149 """GetFont(self) -> Font"""
4150 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4152 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4153 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4154 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4155 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4156 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4157 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4158 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4159 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4160 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4161 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4162 ListItem_swigregister
= _controls_
.ListItem_swigregister
4163 ListItem_swigregister(ListItem
)
4165 #---------------------------------------------------------------------------
4167 class ListEvent(_core
.NotifyEvent
):
4168 """Proxy of C++ ListEvent class"""
4169 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4170 __repr__
= _swig_repr
4171 def __init__(self
, *args
, **kwargs
):
4172 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4173 _controls_
.ListEvent_swiginit(self
,_controls_
.new_ListEvent(*args
, **kwargs
))
4174 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4175 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4176 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4177 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4178 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4179 m_item
= property(_controls_
.ListEvent_m_item_get
)
4180 def GetKeyCode(*args
, **kwargs
):
4181 """GetKeyCode(self) -> int"""
4182 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4184 GetCode
= GetKeyCode
4185 def GetIndex(*args
, **kwargs
):
4186 """GetIndex(self) -> long"""
4187 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4189 def GetColumn(*args
, **kwargs
):
4190 """GetColumn(self) -> int"""
4191 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4193 def GetPoint(*args
, **kwargs
):
4194 """GetPoint(self) -> Point"""
4195 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4197 GetPosition
= GetPoint
4198 def GetLabel(*args
, **kwargs
):
4199 """GetLabel(self) -> String"""
4200 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4202 def GetText(*args
, **kwargs
):
4203 """GetText(self) -> String"""
4204 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4206 def GetImage(*args
, **kwargs
):
4207 """GetImage(self) -> int"""
4208 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4210 def GetData(*args
, **kwargs
):
4211 """GetData(self) -> long"""
4212 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4214 def GetMask(*args
, **kwargs
):
4215 """GetMask(self) -> long"""
4216 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4218 def GetItem(*args
, **kwargs
):
4219 """GetItem(self) -> ListItem"""
4220 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4222 def GetCacheFrom(*args
, **kwargs
):
4223 """GetCacheFrom(self) -> long"""
4224 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4226 def GetCacheTo(*args
, **kwargs
):
4227 """GetCacheTo(self) -> long"""
4228 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4230 def IsEditCancelled(*args
, **kwargs
):
4231 """IsEditCancelled(self) -> bool"""
4232 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4234 def SetEditCanceled(*args
, **kwargs
):
4235 """SetEditCanceled(self, bool editCancelled)"""
4236 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4238 ListEvent_swigregister
= _controls_
.ListEvent_swigregister
4239 ListEvent_swigregister(ListEvent
)
4241 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4242 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4243 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4244 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4245 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4246 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4247 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4248 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4249 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4250 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4251 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4252 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4253 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4254 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4255 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4256 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4257 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4258 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4259 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4260 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4261 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4262 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4263 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4264 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4265 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4266 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4271 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4272 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4273 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4274 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4275 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4276 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4277 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4278 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4279 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4280 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4281 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4282 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4283 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4284 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4290 #---------------------------------------------------------------------------
4292 class ListCtrl(_core
.Control
):
4293 """Proxy of C++ ListCtrl class"""
4294 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4295 __repr__
= _swig_repr
4296 def __init__(self
, *args
, **kwargs
):
4298 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4299 Size size=DefaultSize, long style=LC_ICON,
4300 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4302 _controls_
.ListCtrl_swiginit(self
,_controls_
.new_ListCtrl(*args
, **kwargs
))
4303 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4305 def Create(*args
, **kwargs
):
4307 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4308 Size size=DefaultSize, long style=LC_ICON,
4309 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4311 Do the 2nd phase and create the GUI control.
4313 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4315 def _setCallbackInfo(*args
, **kwargs
):
4316 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4317 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4319 def GetColumn(*args
, **kwargs
):
4320 """GetColumn(self, int col) -> ListItem"""
4321 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4322 if val
is not None: val
.thisown
= 1
4325 def SetColumn(*args
, **kwargs
):
4326 """SetColumn(self, int col, ListItem item) -> bool"""
4327 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4329 def GetColumnWidth(*args
, **kwargs
):
4330 """GetColumnWidth(self, int col) -> int"""
4331 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4333 def SetColumnWidth(*args
, **kwargs
):
4334 """SetColumnWidth(self, int col, int width) -> bool"""
4335 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4337 def GetCountPerPage(*args
, **kwargs
):
4338 """GetCountPerPage(self) -> int"""
4339 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4341 def GetViewRect(*args
, **kwargs
):
4342 """GetViewRect(self) -> Rect"""
4343 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4345 def GetEditControl(*args
, **kwargs
):
4346 """GetEditControl(self) -> TextCtrl"""
4347 return _controls_
.ListCtrl_GetEditControl(*args
, **kwargs
)
4349 def GetItem(*args
, **kwargs
):
4350 """GetItem(self, long itemId, int col=0) -> ListItem"""
4351 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4352 if val
is not None: val
.thisown
= 1
4355 def SetItem(*args
, **kwargs
):
4356 """SetItem(self, ListItem info) -> bool"""
4357 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4359 def SetStringItem(*args
, **kwargs
):
4360 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4361 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4363 def GetItemState(*args
, **kwargs
):
4364 """GetItemState(self, long item, long stateMask) -> int"""
4365 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4367 def SetItemState(*args
, **kwargs
):
4368 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4369 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4371 def SetItemImage(*args
, **kwargs
):
4372 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4373 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4375 def SetItemColumnImage(*args
, **kwargs
):
4376 """SetItemColumnImage(self, long item, long column, int image) -> bool"""
4377 return _controls_
.ListCtrl_SetItemColumnImage(*args
, **kwargs
)
4379 def GetItemText(*args
, **kwargs
):
4380 """GetItemText(self, long item) -> String"""
4381 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4383 def SetItemText(*args
, **kwargs
):
4384 """SetItemText(self, long item, String str)"""
4385 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4387 def GetItemData(*args
, **kwargs
):
4388 """GetItemData(self, long item) -> long"""
4389 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4391 def SetItemData(*args
, **kwargs
):
4392 """SetItemData(self, long item, long data) -> bool"""
4393 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4395 def GetItemPosition(*args
, **kwargs
):
4396 """GetItemPosition(self, long item) -> Point"""
4397 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4399 def GetItemRect(*args
, **kwargs
):
4400 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4401 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4403 def SetItemPosition(*args
, **kwargs
):
4404 """SetItemPosition(self, long item, Point pos) -> bool"""
4405 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4407 def GetItemCount(*args
, **kwargs
):
4408 """GetItemCount(self) -> int"""
4409 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4411 def GetColumnCount(*args
, **kwargs
):
4412 """GetColumnCount(self) -> int"""
4413 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4415 def GetItemSpacing(*args
, **kwargs
):
4416 """GetItemSpacing(self) -> Size"""
4417 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4419 GetItemSpacing
= wx
._deprecated
(GetItemSpacing
)
4420 def GetSelectedItemCount(*args
, **kwargs
):
4421 """GetSelectedItemCount(self) -> int"""
4422 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4424 def GetTextColour(*args
, **kwargs
):
4425 """GetTextColour(self) -> Colour"""
4426 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4428 def SetTextColour(*args
, **kwargs
):
4429 """SetTextColour(self, Colour col)"""
4430 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4432 def GetTopItem(*args
, **kwargs
):
4433 """GetTopItem(self) -> long"""
4434 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4436 def SetSingleStyle(*args
, **kwargs
):
4437 """SetSingleStyle(self, long style, bool add=True)"""
4438 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4440 def GetNextItem(*args
, **kwargs
):
4441 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4442 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4444 def GetImageList(*args
, **kwargs
):
4445 """GetImageList(self, int which) -> ImageList"""
4446 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4448 def SetImageList(*args
, **kwargs
):
4449 """SetImageList(self, ImageList imageList, int which)"""
4450 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4452 def AssignImageList(*args
, **kwargs
):
4453 """AssignImageList(self, ImageList imageList, int which)"""
4454 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4456 def InReportView(*args
, **kwargs
):
4457 """InReportView(self) -> bool"""
4458 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4460 def IsVirtual(*args
, **kwargs
):
4461 """IsVirtual(self) -> bool"""
4462 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4464 def RefreshItem(*args
, **kwargs
):
4465 """RefreshItem(self, long item)"""
4466 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4468 def RefreshItems(*args
, **kwargs
):
4469 """RefreshItems(self, long itemFrom, long itemTo)"""
4470 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4472 def Arrange(*args
, **kwargs
):
4473 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4474 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4476 def DeleteItem(*args
, **kwargs
):
4477 """DeleteItem(self, long item) -> bool"""
4478 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4480 def DeleteAllItems(*args
, **kwargs
):
4481 """DeleteAllItems(self) -> bool"""
4482 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4484 def DeleteColumn(*args
, **kwargs
):
4485 """DeleteColumn(self, int col) -> bool"""
4486 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4488 def DeleteAllColumns(*args
, **kwargs
):
4489 """DeleteAllColumns(self) -> bool"""
4490 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4492 def ClearAll(*args
, **kwargs
):
4493 """ClearAll(self)"""
4494 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4496 def EditLabel(*args
, **kwargs
):
4497 """EditLabel(self, long item) -> TextCtrl"""
4498 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4500 def EndEditLabel(*args
, **kwargs
):
4501 """EndEditLabel(self, bool cancel) -> bool"""
4502 return _controls_
.ListCtrl_EndEditLabel(*args
, **kwargs
)
4504 def EnsureVisible(*args
, **kwargs
):
4505 """EnsureVisible(self, long item) -> bool"""
4506 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4508 def FindItem(*args
, **kwargs
):
4509 """FindItem(self, long start, String str, bool partial=False) -> long"""
4510 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4512 def FindItemData(*args
, **kwargs
):
4513 """FindItemData(self, long start, long data) -> long"""
4514 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4516 def FindItemAtPos(*args
, **kwargs
):
4517 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4518 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4520 def HitTest(*args
, **kwargs
):
4522 HitTest(Point point) -> (item, where)
4524 Determines which item (if any) is at the specified point, giving
4525 in the second return value (see wx.LIST_HITTEST flags.)
4527 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4529 def InsertItem(*args
, **kwargs
):
4530 """InsertItem(self, ListItem info) -> long"""
4531 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4533 def InsertStringItem(*args
, **kwargs
):
4534 """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long"""
4535 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4537 def InsertImageItem(*args
, **kwargs
):
4538 """InsertImageItem(self, long index, int imageIndex) -> long"""
4539 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4541 def InsertImageStringItem(*args
, **kwargs
):
4542 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4543 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4545 def InsertColumnItem(*args
, **kwargs
):
4546 """InsertColumnItem(self, long col, ListItem info) -> long"""
4547 return _controls_
.ListCtrl_InsertColumnItem(*args
, **kwargs
)
4549 InsertColumnInfo
= InsertColumnItem
4550 def InsertColumn(*args
, **kwargs
):
4552 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4553 int width=-1) -> long
4555 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4557 def SetItemCount(*args
, **kwargs
):
4558 """SetItemCount(self, long count)"""
4559 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4561 def ScrollList(*args
, **kwargs
):
4562 """ScrollList(self, int dx, int dy) -> bool"""
4563 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4565 def SetItemTextColour(*args
, **kwargs
):
4566 """SetItemTextColour(self, long item, Colour col)"""
4567 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4569 def GetItemTextColour(*args
, **kwargs
):
4570 """GetItemTextColour(self, long item) -> Colour"""
4571 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4573 def SetItemBackgroundColour(*args
, **kwargs
):
4574 """SetItemBackgroundColour(self, long item, Colour col)"""
4575 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4577 def GetItemBackgroundColour(*args
, **kwargs
):
4578 """GetItemBackgroundColour(self, long item) -> Colour"""
4579 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4581 def SetItemFont(*args
, **kwargs
):
4582 """SetItemFont(self, long item, Font f)"""
4583 return _controls_
.ListCtrl_SetItemFont(*args
, **kwargs
)
4585 def GetItemFont(*args
, **kwargs
):
4586 """GetItemFont(self, long item) -> Font"""
4587 return _controls_
.ListCtrl_GetItemFont(*args
, **kwargs
)
4591 def Select(self
, idx
, on
=1):
4592 '''[de]select an item'''
4593 if on
: state
= wx
.LIST_STATE_SELECTED
4595 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4597 def Focus(self
, idx
):
4598 '''Focus and show the given item'''
4599 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4600 self
.EnsureVisible(idx
)
4602 def GetFocusedItem(self
):
4603 '''get the currently focused item or -1 if none'''
4604 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4606 def GetFirstSelected(self
, *args
):
4607 '''return first selected item, or -1 when none'''
4608 return self
.GetNextSelected(-1)
4610 def GetNextSelected(self
, item
):
4611 '''return subsequent selected items, or -1 when no more'''
4612 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4614 def IsSelected(self
, idx
):
4615 '''return True if the item is selected'''
4616 return (self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) & wx
.LIST_STATE_SELECTED
) != 0
4618 def SetColumnImage(self
, col
, image
):
4619 item
= self
.GetColumn(col
)
4620 # preserve all other attributes too
4621 item
.SetMask( wx
.LIST_MASK_STATE |
4623 wx
.LIST_MASK_IMAGE |
4626 wx
.LIST_MASK_WIDTH |
4627 wx
.LIST_MASK_FORMAT
)
4628 item
.SetImage(image
)
4629 self
.SetColumn(col
, item
)
4631 def ClearColumnImage(self
, col
):
4632 self
.SetColumnImage(col
, -1)
4634 def Append(self
, entry
):
4635 '''Append an item to the list control. The entry parameter should be a
4636 sequence with an item for each column'''
4642 pos
= self
.GetItemCount()
4643 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4644 for i
in range(1, len(entry
)):
4645 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4648 def SortItems(*args
, **kwargs
):
4649 """SortItems(self, PyObject func) -> bool"""
4650 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4652 def GetMainWindow(*args
, **kwargs
):
4653 """GetMainWindow(self) -> Window"""
4654 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4656 def GetClassDefaultAttributes(*args
, **kwargs
):
4658 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4660 Get the default attributes for this class. This is useful if you want
4661 to use the same font or colour in your own control as in a standard
4662 control -- which is a much better idea than hard coding specific
4663 colours or fonts which might look completely out of place on the
4664 user's system, especially if it uses themes.
4666 The variant parameter is only relevant under Mac currently and is
4667 ignore under other platforms. Under Mac, it will change the size of
4668 the returned font. See `wx.Window.SetWindowVariant` for more about
4671 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4673 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4674 ListCtrl_swigregister
= _controls_
.ListCtrl_swigregister
4675 ListCtrl_swigregister(ListCtrl
)
4677 def PreListCtrl(*args
, **kwargs
):
4678 """PreListCtrl() -> ListCtrl"""
4679 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4682 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4684 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4686 Get the default attributes for this class. This is useful if you want
4687 to use the same font or colour in your own control as in a standard
4688 control -- which is a much better idea than hard coding specific
4689 colours or fonts which might look completely out of place on the
4690 user's system, especially if it uses themes.
4692 The variant parameter is only relevant under Mac currently and is
4693 ignore under other platforms. Under Mac, it will change the size of
4694 the returned font. See `wx.Window.SetWindowVariant` for more about
4697 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4699 #---------------------------------------------------------------------------
4701 class ListView(ListCtrl
):
4702 """Proxy of C++ ListView class"""
4703 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4704 __repr__
= _swig_repr
4705 def __init__(self
, *args
, **kwargs
):
4707 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4708 Size size=DefaultSize, long style=LC_REPORT,
4709 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4711 _controls_
.ListView_swiginit(self
,_controls_
.new_ListView(*args
, **kwargs
))
4712 self
._setOORInfo
(self
)
4714 def Create(*args
, **kwargs
):
4716 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4717 Size size=DefaultSize, long style=LC_REPORT,
4718 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4720 Do the 2nd phase and create the GUI control.
4722 return _controls_
.ListView_Create(*args
, **kwargs
)
4724 def Select(*args
, **kwargs
):
4725 """Select(self, long n, bool on=True)"""
4726 return _controls_
.ListView_Select(*args
, **kwargs
)
4728 def Focus(*args
, **kwargs
):
4729 """Focus(self, long index)"""
4730 return _controls_
.ListView_Focus(*args
, **kwargs
)
4732 def GetFocusedItem(*args
, **kwargs
):
4733 """GetFocusedItem(self) -> long"""
4734 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4736 def GetNextSelected(*args
, **kwargs
):
4737 """GetNextSelected(self, long item) -> long"""
4738 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4740 def GetFirstSelected(*args
, **kwargs
):
4741 """GetFirstSelected(self) -> long"""
4742 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4744 def IsSelected(*args
, **kwargs
):
4745 """IsSelected(self, long index) -> bool"""
4746 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4748 def SetColumnImage(*args
, **kwargs
):
4749 """SetColumnImage(self, int col, int image)"""
4750 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4752 def ClearColumnImage(*args
, **kwargs
):
4753 """ClearColumnImage(self, int col)"""
4754 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4756 ListView_swigregister
= _controls_
.ListView_swigregister
4757 ListView_swigregister(ListView
)
4759 def PreListView(*args
, **kwargs
):
4760 """PreListView() -> ListView"""
4761 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4764 #---------------------------------------------------------------------------
4766 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4767 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4768 TR_NO_LINES
= _controls_
.TR_NO_LINES
4769 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4770 TR_SINGLE
= _controls_
.TR_SINGLE
4771 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4772 TR_EXTENDED
= _controls_
.TR_EXTENDED
4773 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4774 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4775 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4776 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4777 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4778 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4779 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4782 wxTR_AQUA_BUTTONS
= 0
4784 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4785 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4786 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4787 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4788 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4789 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4790 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4791 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4792 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4793 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4794 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4795 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4796 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4797 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4798 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4799 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4800 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4801 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4802 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4803 #---------------------------------------------------------------------------
4805 class TreeItemId(object):
4806 """Proxy of C++ TreeItemId class"""
4807 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4808 __repr__
= _swig_repr
4809 def __init__(self
, *args
, **kwargs
):
4810 """__init__(self) -> TreeItemId"""
4811 _controls_
.TreeItemId_swiginit(self
,_controls_
.new_TreeItemId(*args
, **kwargs
))
4812 __swig_destroy__
= _controls_
.delete_TreeItemId
4813 __del__
= lambda self
: None;
4814 def IsOk(*args
, **kwargs
):
4815 """IsOk(self) -> bool"""
4816 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4818 def __eq__(*args
, **kwargs
):
4819 """__eq__(self, TreeItemId other) -> bool"""
4820 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4822 def __ne__(*args
, **kwargs
):
4823 """__ne__(self, TreeItemId other) -> bool"""
4824 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4826 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4828 def __nonzero__(self
): return self
.IsOk()
4829 TreeItemId_swigregister
= _controls_
.TreeItemId_swigregister
4830 TreeItemId_swigregister(TreeItemId
)
4831 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4833 class TreeItemData(object):
4834 """Proxy of C++ TreeItemData class"""
4835 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4836 __repr__
= _swig_repr
4837 def __init__(self
, *args
, **kwargs
):
4838 """__init__(self, PyObject obj=None) -> TreeItemData"""
4839 _controls_
.TreeItemData_swiginit(self
,_controls_
.new_TreeItemData(*args
, **kwargs
))
4840 __swig_destroy__
= _controls_
.delete_TreeItemData
4841 __del__
= lambda self
: None;
4842 def GetData(*args
, **kwargs
):
4843 """GetData(self) -> PyObject"""
4844 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4846 def SetData(*args
, **kwargs
):
4847 """SetData(self, PyObject obj)"""
4848 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4850 def GetId(*args
, **kwargs
):
4851 """GetId(self) -> TreeItemId"""
4852 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4854 def SetId(*args
, **kwargs
):
4855 """SetId(self, TreeItemId id)"""
4856 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4858 def Destroy(*args
, **kwargs
):
4860 val
= _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4864 TreeItemData_swigregister
= _controls_
.TreeItemData_swigregister
4865 TreeItemData_swigregister(TreeItemData
)
4867 #---------------------------------------------------------------------------
4869 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4870 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4871 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4872 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4873 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4874 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4875 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4876 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4877 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4878 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4879 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4880 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4881 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4882 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4883 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4884 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4885 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4886 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4887 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4888 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4889 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
4890 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4891 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4892 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4893 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4894 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4895 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4896 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4897 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4898 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4899 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4900 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4901 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4902 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4903 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4904 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4905 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4906 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4907 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4908 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4909 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4910 EVT_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
4912 class TreeEvent(_core
.NotifyEvent
):
4913 """Proxy of C++ TreeEvent class"""
4914 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4915 __repr__
= _swig_repr
4916 def __init__(self
, *args
, **kwargs
):
4917 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4918 _controls_
.TreeEvent_swiginit(self
,_controls_
.new_TreeEvent(*args
, **kwargs
))
4919 def GetItem(*args
, **kwargs
):
4920 """GetItem(self) -> TreeItemId"""
4921 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4923 def SetItem(*args
, **kwargs
):
4924 """SetItem(self, TreeItemId item)"""
4925 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4927 def GetOldItem(*args
, **kwargs
):
4928 """GetOldItem(self) -> TreeItemId"""
4929 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4931 def SetOldItem(*args
, **kwargs
):
4932 """SetOldItem(self, TreeItemId item)"""
4933 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4935 def GetPoint(*args
, **kwargs
):
4936 """GetPoint(self) -> Point"""
4937 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4939 def SetPoint(*args
, **kwargs
):
4940 """SetPoint(self, Point pt)"""
4941 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4943 def GetKeyEvent(*args
, **kwargs
):
4944 """GetKeyEvent(self) -> KeyEvent"""
4945 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4947 def GetKeyCode(*args
, **kwargs
):
4948 """GetKeyCode(self) -> int"""
4949 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4951 def SetKeyEvent(*args
, **kwargs
):
4952 """SetKeyEvent(self, KeyEvent evt)"""
4953 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4955 def GetLabel(*args
, **kwargs
):
4956 """GetLabel(self) -> String"""
4957 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4959 def SetLabel(*args
, **kwargs
):
4960 """SetLabel(self, String label)"""
4961 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4963 def IsEditCancelled(*args
, **kwargs
):
4964 """IsEditCancelled(self) -> bool"""
4965 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4967 def SetEditCanceled(*args
, **kwargs
):
4968 """SetEditCanceled(self, bool editCancelled)"""
4969 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4971 def SetToolTip(*args
, **kwargs
):
4972 """SetToolTip(self, String toolTip)"""
4973 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4975 def GetToolTip(*args
, **kwargs
):
4976 """GetToolTip(self) -> String"""
4977 return _controls_
.TreeEvent_GetToolTip(*args
, **kwargs
)
4979 TreeEvent_swigregister
= _controls_
.TreeEvent_swigregister
4980 TreeEvent_swigregister(TreeEvent
)
4982 #---------------------------------------------------------------------------
4984 class TreeCtrl(_core
.Control
):
4985 """Proxy of C++ TreeCtrl class"""
4986 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4987 __repr__
= _swig_repr
4988 def __init__(self
, *args
, **kwargs
):
4990 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4991 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4992 Validator validator=DefaultValidator,
4993 String name=TreeCtrlNameStr) -> TreeCtrl
4995 _controls_
.TreeCtrl_swiginit(self
,_controls_
.new_TreeCtrl(*args
, **kwargs
))
4996 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4998 def Create(*args
, **kwargs
):
5000 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5001 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5002 Validator validator=DefaultValidator,
5003 String name=TreeCtrlNameStr) -> bool
5005 Do the 2nd phase and create the GUI control.
5007 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5009 def _setCallbackInfo(*args
, **kwargs
):
5010 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5011 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5013 def GetCount(*args
, **kwargs
):
5014 """GetCount(self) -> unsigned int"""
5015 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5017 def GetIndent(*args
, **kwargs
):
5018 """GetIndent(self) -> unsigned int"""
5019 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5021 def SetIndent(*args
, **kwargs
):
5022 """SetIndent(self, unsigned int indent)"""
5023 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5025 def GetSpacing(*args
, **kwargs
):
5026 """GetSpacing(self) -> unsigned int"""
5027 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5029 def SetSpacing(*args
, **kwargs
):
5030 """SetSpacing(self, unsigned int spacing)"""
5031 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5033 def GetImageList(*args
, **kwargs
):
5034 """GetImageList(self) -> ImageList"""
5035 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5037 def GetStateImageList(*args
, **kwargs
):
5038 """GetStateImageList(self) -> ImageList"""
5039 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5041 def SetImageList(*args
, **kwargs
):
5042 """SetImageList(self, ImageList imageList)"""
5043 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5045 def SetStateImageList(*args
, **kwargs
):
5046 """SetStateImageList(self, ImageList imageList)"""
5047 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5049 def AssignImageList(*args
, **kwargs
):
5050 """AssignImageList(self, ImageList imageList)"""
5051 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5053 def AssignStateImageList(*args
, **kwargs
):
5054 """AssignStateImageList(self, ImageList imageList)"""
5055 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5057 def GetItemText(*args
, **kwargs
):
5058 """GetItemText(self, TreeItemId item) -> String"""
5059 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5061 def GetItemImage(*args
, **kwargs
):
5062 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5063 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5065 def GetItemData(*args
, **kwargs
):
5066 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5067 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5069 def GetItemPyData(*args
, **kwargs
):
5070 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5071 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5073 GetPyData
= GetItemPyData
5074 def GetItemTextColour(*args
, **kwargs
):
5075 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5076 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5078 def GetItemBackgroundColour(*args
, **kwargs
):
5079 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5080 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5082 def GetItemFont(*args
, **kwargs
):
5083 """GetItemFont(self, TreeItemId item) -> Font"""
5084 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5086 def SetItemText(*args
, **kwargs
):
5087 """SetItemText(self, TreeItemId item, String text)"""
5088 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5090 def SetItemImage(*args
, **kwargs
):
5091 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5092 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5094 def SetItemData(*args
, **kwargs
):
5095 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5096 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5098 def SetItemPyData(*args
, **kwargs
):
5099 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5100 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5102 SetPyData
= SetItemPyData
5103 def SetItemHasChildren(*args
, **kwargs
):
5104 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5105 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5107 def SetItemBold(*args
, **kwargs
):
5108 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5109 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5111 def SetItemDropHighlight(*args
, **kwargs
):
5112 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5113 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5115 def SetItemTextColour(*args
, **kwargs
):
5116 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5117 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5119 def SetItemBackgroundColour(*args
, **kwargs
):
5120 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5121 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5123 def SetItemFont(*args
, **kwargs
):
5124 """SetItemFont(self, TreeItemId item, Font font)"""
5125 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5127 def IsVisible(*args
, **kwargs
):
5128 """IsVisible(self, TreeItemId item) -> bool"""
5129 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5131 def ItemHasChildren(*args
, **kwargs
):
5132 """ItemHasChildren(self, TreeItemId item) -> bool"""
5133 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5135 def IsExpanded(*args
, **kwargs
):
5136 """IsExpanded(self, TreeItemId item) -> bool"""
5137 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5139 def IsSelected(*args
, **kwargs
):
5140 """IsSelected(self, TreeItemId item) -> bool"""
5141 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5143 def IsBold(*args
, **kwargs
):
5144 """IsBold(self, TreeItemId item) -> bool"""
5145 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5147 def GetChildrenCount(*args
, **kwargs
):
5148 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5149 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5151 def GetRootItem(*args
, **kwargs
):
5152 """GetRootItem(self) -> TreeItemId"""
5153 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5155 def GetSelection(*args
, **kwargs
):
5156 """GetSelection(self) -> TreeItemId"""
5157 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5159 def GetSelections(*args
, **kwargs
):
5160 """GetSelections(self) -> PyObject"""
5161 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5163 def GetItemParent(*args
, **kwargs
):
5164 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5165 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5167 def GetFirstChild(*args
, **kwargs
):
5168 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5169 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5171 def GetNextChild(*args
, **kwargs
):
5172 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5173 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5175 def GetLastChild(*args
, **kwargs
):
5176 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5177 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5179 def GetNextSibling(*args
, **kwargs
):
5180 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5181 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5183 def GetPrevSibling(*args
, **kwargs
):
5184 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5185 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5187 def GetFirstVisibleItem(*args
, **kwargs
):
5188 """GetFirstVisibleItem(self) -> TreeItemId"""
5189 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5191 def GetNextVisible(*args
, **kwargs
):
5192 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5193 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5195 def GetPrevVisible(*args
, **kwargs
):
5196 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5197 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5199 def AddRoot(*args
, **kwargs
):
5200 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5201 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5203 def PrependItem(*args
, **kwargs
):
5205 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5206 TreeItemData data=None) -> TreeItemId
5208 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5210 def InsertItem(*args
, **kwargs
):
5212 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5213 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5215 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5217 def InsertItemBefore(*args
, **kwargs
):
5219 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5220 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5222 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5224 def AppendItem(*args
, **kwargs
):
5226 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5227 TreeItemData data=None) -> TreeItemId
5229 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5231 def Delete(*args
, **kwargs
):
5232 """Delete(self, TreeItemId item)"""
5233 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5235 def DeleteChildren(*args
, **kwargs
):
5236 """DeleteChildren(self, TreeItemId item)"""
5237 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5239 def DeleteAllItems(*args
, **kwargs
):
5240 """DeleteAllItems(self)"""
5241 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5243 def Expand(*args
, **kwargs
):
5244 """Expand(self, TreeItemId item)"""
5245 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5247 def Collapse(*args
, **kwargs
):
5248 """Collapse(self, TreeItemId item)"""
5249 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5251 def CollapseAndReset(*args
, **kwargs
):
5252 """CollapseAndReset(self, TreeItemId item)"""
5253 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5255 def Toggle(*args
, **kwargs
):
5256 """Toggle(self, TreeItemId item)"""
5257 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5259 def Unselect(*args
, **kwargs
):
5260 """Unselect(self)"""
5261 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5263 def UnselectItem(*args
, **kwargs
):
5264 """UnselectItem(self, TreeItemId item)"""
5265 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5267 def UnselectAll(*args
, **kwargs
):
5268 """UnselectAll(self)"""
5269 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5271 def SelectItem(*args
, **kwargs
):
5272 """SelectItem(self, TreeItemId item, bool select=True)"""
5273 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5275 def ToggleItemSelection(*args
, **kwargs
):
5276 """ToggleItemSelection(self, TreeItemId item)"""
5277 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5279 def EnsureVisible(*args
, **kwargs
):
5280 """EnsureVisible(self, TreeItemId item)"""
5281 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5283 def ScrollTo(*args
, **kwargs
):
5284 """ScrollTo(self, TreeItemId item)"""
5285 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5287 def EditLabel(*args
, **kwargs
):
5288 """EditLabel(self, TreeItemId item)"""
5289 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5291 def GetEditControl(*args
, **kwargs
):
5292 """GetEditControl(self) -> TextCtrl"""
5293 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5295 def EndEditLabel(*args
, **kwargs
):
5296 """EndEditLabel(self, TreeItemId item, bool discardChanges=False)"""
5297 return _controls_
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
5299 def SortChildren(*args
, **kwargs
):
5300 """SortChildren(self, TreeItemId item)"""
5301 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5303 def HitTest(*args
, **kwargs
):
5305 HitTest(Point point) -> (item, where)
5307 Determine which item (if any) belongs the given point. The coordinates
5308 specified are relative to the client area of tree ctrl and the where return
5309 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5312 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5314 def GetBoundingRect(*args
, **kwargs
):
5315 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5316 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5318 def SetState(*args
, **kwargs
):
5319 """SetState(self, TreeItemId node, int state)"""
5320 return _controls_
.TreeCtrl_SetState(*args
, **kwargs
)
5322 def GetState(*args
, **kwargs
):
5323 """GetState(self, TreeItemId node) -> int"""
5324 return _controls_
.TreeCtrl_GetState(*args
, **kwargs
)
5326 def GetClassDefaultAttributes(*args
, **kwargs
):
5328 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5330 Get the default attributes for this class. This is useful if you want
5331 to use the same font or colour in your own control as in a standard
5332 control -- which is a much better idea than hard coding specific
5333 colours or fonts which might look completely out of place on the
5334 user's system, especially if it uses themes.
5336 The variant parameter is only relevant under Mac currently and is
5337 ignore under other platforms. Under Mac, it will change the size of
5338 the returned font. See `wx.Window.SetWindowVariant` for more about
5341 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5343 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5344 TreeCtrl_swigregister
= _controls_
.TreeCtrl_swigregister
5345 TreeCtrl_swigregister(TreeCtrl
)
5347 def PreTreeCtrl(*args
, **kwargs
):
5348 """PreTreeCtrl() -> TreeCtrl"""
5349 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5352 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5354 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5356 Get the default attributes for this class. This is useful if you want
5357 to use the same font or colour in your own control as in a standard
5358 control -- which is a much better idea than hard coding specific
5359 colours or fonts which might look completely out of place on the
5360 user's system, especially if it uses themes.
5362 The variant parameter is only relevant under Mac currently and is
5363 ignore under other platforms. Under Mac, it will change the size of
5364 the returned font. See `wx.Window.SetWindowVariant` for more about
5367 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5369 #---------------------------------------------------------------------------
5371 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5372 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5373 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5374 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5375 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5376 class GenericDirCtrl(_core
.Control
):
5377 """Proxy of C++ GenericDirCtrl class"""
5378 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5379 __repr__
= _swig_repr
5380 def __init__(self
, *args
, **kwargs
):
5382 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5383 Point pos=DefaultPosition, Size size=DefaultSize,
5384 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5385 String filter=EmptyString,
5386 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5388 _controls_
.GenericDirCtrl_swiginit(self
,_controls_
.new_GenericDirCtrl(*args
, **kwargs
))
5389 self
._setOORInfo
(self
)
5391 def Create(*args
, **kwargs
):
5393 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5394 Point pos=DefaultPosition, Size size=DefaultSize,
5395 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5396 String filter=EmptyString,
5397 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5399 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5401 def ExpandPath(*args
, **kwargs
):
5402 """ExpandPath(self, String path) -> bool"""
5403 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5405 def GetDefaultPath(*args
, **kwargs
):
5406 """GetDefaultPath(self) -> String"""
5407 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5409 def SetDefaultPath(*args
, **kwargs
):
5410 """SetDefaultPath(self, String path)"""
5411 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5413 def GetPath(*args
, **kwargs
):
5414 """GetPath(self) -> String"""
5415 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5417 def GetFilePath(*args
, **kwargs
):
5418 """GetFilePath(self) -> String"""
5419 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5421 def SetPath(*args
, **kwargs
):
5422 """SetPath(self, String path)"""
5423 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5425 def ShowHidden(*args
, **kwargs
):
5426 """ShowHidden(self, bool show)"""
5427 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5429 def GetShowHidden(*args
, **kwargs
):
5430 """GetShowHidden(self) -> bool"""
5431 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5433 def GetFilter(*args
, **kwargs
):
5434 """GetFilter(self) -> String"""
5435 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5437 def SetFilter(*args
, **kwargs
):
5438 """SetFilter(self, String filter)"""
5439 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5441 def GetFilterIndex(*args
, **kwargs
):
5442 """GetFilterIndex(self) -> int"""
5443 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5445 def SetFilterIndex(*args
, **kwargs
):
5446 """SetFilterIndex(self, int n)"""
5447 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5449 def GetRootId(*args
, **kwargs
):
5450 """GetRootId(self) -> TreeItemId"""
5451 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5453 def GetTreeCtrl(*args
, **kwargs
):
5454 """GetTreeCtrl(self) -> TreeCtrl"""
5455 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5457 def GetFilterListCtrl(*args
, **kwargs
):
5458 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5459 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5461 def FindChild(*args
, **kwargs
):
5463 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5465 Find the child that matches the first part of 'path'. E.g. if a child
5466 path is "/usr" and 'path' is "/usr/include" then the child for
5467 /usr is returned. If the path string has been used (we're at the
5468 leaf), done is set to True.
5471 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5473 def DoResize(*args
, **kwargs
):
5474 """DoResize(self)"""
5475 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5477 def ReCreateTree(*args
, **kwargs
):
5478 """ReCreateTree(self)"""
5479 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5481 GenericDirCtrl_swigregister
= _controls_
.GenericDirCtrl_swigregister
5482 GenericDirCtrl_swigregister(GenericDirCtrl
)
5483 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5485 def PreGenericDirCtrl(*args
, **kwargs
):
5486 """PreGenericDirCtrl() -> GenericDirCtrl"""
5487 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5490 class DirFilterListCtrl(Choice
):
5491 """Proxy of C++ DirFilterListCtrl class"""
5492 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5493 __repr__
= _swig_repr
5494 def __init__(self
, *args
, **kwargs
):
5496 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5497 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5499 _controls_
.DirFilterListCtrl_swiginit(self
,_controls_
.new_DirFilterListCtrl(*args
, **kwargs
))
5500 self
._setOORInfo
(self
)
5502 def Create(*args
, **kwargs
):
5504 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5505 Size size=DefaultSize, long style=0) -> bool
5507 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5509 def FillFilterList(*args
, **kwargs
):
5510 """FillFilterList(self, String filter, int defaultFilter)"""
5511 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5513 DirFilterListCtrl_swigregister
= _controls_
.DirFilterListCtrl_swigregister
5514 DirFilterListCtrl_swigregister(DirFilterListCtrl
)
5516 def PreDirFilterListCtrl(*args
, **kwargs
):
5517 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5518 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5521 #---------------------------------------------------------------------------
5523 class PyControl(_core
.Control
):
5524 """Proxy of C++ PyControl class"""
5525 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5526 __repr__
= _swig_repr
5527 def __init__(self
, *args
, **kwargs
):
5529 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5530 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5531 String name=ControlNameStr) -> PyControl
5533 _controls_
.PyControl_swiginit(self
,_controls_
.new_PyControl(*args
, **kwargs
))
5534 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5536 def _setCallbackInfo(*args
, **kwargs
):
5537 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5538 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5540 def SetBestSize(*args
, **kwargs
):
5541 """SetBestSize(self, Size size)"""
5542 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5544 def DoEraseBackground(*args
, **kwargs
):
5545 """DoEraseBackground(self, DC dc) -> bool"""
5546 return _controls_
.PyControl_DoEraseBackground(*args
, **kwargs
)
5548 def DoMoveWindow(*args
, **kwargs
):
5549 """DoMoveWindow(self, int x, int y, int width, int height)"""
5550 return _controls_
.PyControl_DoMoveWindow(*args
, **kwargs
)
5552 def DoSetSize(*args
, **kwargs
):
5553 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5554 return _controls_
.PyControl_DoSetSize(*args
, **kwargs
)
5556 def DoSetClientSize(*args
, **kwargs
):
5557 """DoSetClientSize(self, int width, int height)"""
5558 return _controls_
.PyControl_DoSetClientSize(*args
, **kwargs
)
5560 def DoSetVirtualSize(*args
, **kwargs
):
5561 """DoSetVirtualSize(self, int x, int y)"""
5562 return _controls_
.PyControl_DoSetVirtualSize(*args
, **kwargs
)
5564 def DoGetSize(*args
, **kwargs
):
5565 """DoGetSize() -> (width, height)"""
5566 return _controls_
.PyControl_DoGetSize(*args
, **kwargs
)
5568 def DoGetClientSize(*args
, **kwargs
):
5569 """DoGetClientSize() -> (width, height)"""
5570 return _controls_
.PyControl_DoGetClientSize(*args
, **kwargs
)
5572 def DoGetPosition(*args
, **kwargs
):
5573 """DoGetPosition() -> (x,y)"""
5574 return _controls_
.PyControl_DoGetPosition(*args
, **kwargs
)
5576 def DoGetVirtualSize(*args
, **kwargs
):
5577 """DoGetVirtualSize(self) -> Size"""
5578 return _controls_
.PyControl_DoGetVirtualSize(*args
, **kwargs
)
5580 def DoGetBestSize(*args
, **kwargs
):
5581 """DoGetBestSize(self) -> Size"""
5582 return _controls_
.PyControl_DoGetBestSize(*args
, **kwargs
)
5584 def GetDefaultAttributes(*args
, **kwargs
):
5585 """GetDefaultAttributes(self) -> VisualAttributes"""
5586 return _controls_
.PyControl_GetDefaultAttributes(*args
, **kwargs
)
5588 def OnInternalIdle(*args
, **kwargs
):
5589 """OnInternalIdle(self)"""
5590 return _controls_
.PyControl_OnInternalIdle(*args
, **kwargs
)
5592 def base_DoMoveWindow(*args
, **kw
):
5593 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
5594 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
5595 "Please use PyScrolledWindow.DoMoveWindow instead.")
5597 def base_DoSetSize(*args
, **kw
):
5598 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
5599 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
5600 "Please use PyScrolledWindow.DoSetSize instead.")
5602 def base_DoSetClientSize(*args
, **kw
):
5603 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
5604 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
5605 "Please use PyScrolledWindow.DoSetClientSize instead.")
5607 def base_DoSetVirtualSize(*args
, **kw
):
5608 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
5609 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
5610 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
5612 def base_DoGetSize(*args
, **kw
):
5613 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
5614 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
5615 "Please use PyScrolledWindow.DoGetSize instead.")
5617 def base_DoGetClientSize(*args
, **kw
):
5618 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
5619 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
5620 "Please use PyScrolledWindow.DoGetClientSize instead.")
5622 def base_DoGetPosition(*args
, **kw
):
5623 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
5624 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
5625 "Please use PyScrolledWindow.DoGetPosition instead.")
5627 def base_DoGetVirtualSize(*args
, **kw
):
5628 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
5629 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
5630 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
5632 def base_DoGetBestSize(*args
, **kw
):
5633 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
5634 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
5635 "Please use PyScrolledWindow.DoGetBestSize instead.")
5637 def base_InitDialog(*args
, **kw
):
5638 return PyScrolledWindow
.InitDialog(*args
, **kw
)
5639 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
5640 "Please use PyScrolledWindow.InitDialog instead.")
5642 def base_TransferDataToWindow(*args
, **kw
):
5643 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
5644 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
5645 "Please use PyScrolledWindow.TransferDataToWindow instead.")
5647 def base_TransferDataFromWindow(*args
, **kw
):
5648 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
5649 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
5650 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
5652 def base_Validate(*args
, **kw
):
5653 return PyScrolledWindow
.Validate(*args
, **kw
)
5654 base_Validate
= wx
._deprecated
(base_Validate
,
5655 "Please use PyScrolledWindow.Validate instead.")
5657 def base_AcceptsFocus(*args
, **kw
):
5658 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
5659 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
5660 "Please use PyScrolledWindow.AcceptsFocus instead.")
5662 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
5663 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
5664 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
5665 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
5667 def base_GetMaxSize(*args
, **kw
):
5668 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
5669 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
5670 "Please use PyScrolledWindow.GetMaxSize instead.")
5672 def base_AddChild(*args
, **kw
):
5673 return PyScrolledWindow
.AddChild(*args
, **kw
)
5674 base_AddChild
= wx
._deprecated
(base_AddChild
,
5675 "Please use PyScrolledWindow.AddChild instead.")
5677 def base_RemoveChild(*args
, **kw
):
5678 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
5679 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
5680 "Please use PyScrolledWindow.RemoveChild instead.")
5682 def base_ShouldInheritColours(*args
, **kw
):
5683 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
5684 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
5685 "Please use PyScrolledWindow.ShouldInheritColours instead.")
5687 def base_GetDefaultAttributes(*args
, **kw
):
5688 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
5689 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
5690 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
5692 def base_OnInternalIdle(*args
, **kw
):
5693 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
5694 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
5695 "Please use PyScrolledWindow.OnInternalIdle instead.")
5697 PyControl_swigregister
= _controls_
.PyControl_swigregister
5698 PyControl_swigregister(PyControl
)
5700 def PrePyControl(*args
, **kwargs
):
5701 """PrePyControl() -> PyControl"""
5702 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5705 #---------------------------------------------------------------------------
5707 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5708 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5709 wxEVT_HELP
= _controls_
.wxEVT_HELP
5710 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5711 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5712 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5713 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5714 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5716 class HelpEvent(_core
.CommandEvent
):
5718 A help event is sent when the user has requested context-sensitive
5719 help. This can either be caused by the application requesting
5720 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5721 the system generating a WM_HELP message when the user pressed F1 or
5722 clicked on the query button in a dialog caption.
5724 A help event is sent to the window that the user clicked on, and is
5725 propagated up the window hierarchy until the event is processed or
5726 there are no more event handlers. The application should call
5727 event.GetId to check the identity of the clicked-on window, and then
5728 either show some suitable help or call event.Skip if the identifier is
5729 unrecognised. Calling Skip is important because it allows wxWindows to
5730 generate further events for ancestors of the clicked-on
5731 window. Otherwise it would be impossible to show help for container
5732 windows, since processing would stop after the first window found.
5734 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5735 __repr__
= _swig_repr
5736 def __init__(self
, *args
, **kwargs
):
5737 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5738 _controls_
.HelpEvent_swiginit(self
,_controls_
.new_HelpEvent(*args
, **kwargs
))
5739 def GetPosition(*args
, **kwargs
):
5741 GetPosition(self) -> Point
5743 Returns the left-click position of the mouse, in screen
5744 coordinates. This allows the application to position the help
5747 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5749 def SetPosition(*args
, **kwargs
):
5751 SetPosition(self, Point pos)
5753 Sets the left-click position of the mouse, in screen coordinates.
5755 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5757 def GetLink(*args
, **kwargs
):
5759 GetLink(self) -> String
5761 Get an optional link to further help
5763 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5765 def SetLink(*args
, **kwargs
):
5767 SetLink(self, String link)
5769 Set an optional link to further help
5771 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5773 def GetTarget(*args
, **kwargs
):
5775 GetTarget(self) -> String
5777 Get an optional target to display help in. E.g. a window specification
5779 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5781 def SetTarget(*args
, **kwargs
):
5783 SetTarget(self, String target)
5785 Set an optional target to display help in. E.g. a window specification
5787 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5789 HelpEvent_swigregister
= _controls_
.HelpEvent_swigregister
5790 HelpEvent_swigregister(HelpEvent
)
5792 class ContextHelp(_core
.Object
):
5794 This class changes the cursor to a query and puts the application into
5795 a 'context-sensitive help mode'. When the user left-clicks on a window
5796 within the specified window, a ``EVT_HELP`` event is sent to that
5797 control, and the application may respond to it by popping up some
5800 There are a couple of ways to invoke this behaviour implicitly:
5802 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5803 (Windows only). This will put a question mark in the titlebar,
5804 and Windows will put the application into context-sensitive help
5805 mode automatically, with further programming.
5807 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5808 to create a context help object. Normally you will write your
5809 application so that this button is only added to a dialog for
5810 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5813 :see: `wx.ContextHelpButton`
5816 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5817 __repr__
= _swig_repr
5818 def __init__(self
, *args
, **kwargs
):
5820 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5822 Constructs a context help object, calling BeginContextHelp if doNow is
5825 If window is None, the top window is used.
5827 _controls_
.ContextHelp_swiginit(self
,_controls_
.new_ContextHelp(*args
, **kwargs
))
5828 __swig_destroy__
= _controls_
.delete_ContextHelp
5829 __del__
= lambda self
: None;
5830 def BeginContextHelp(*args
, **kwargs
):
5832 BeginContextHelp(self, Window window=None) -> bool
5834 Puts the application into context-sensitive help mode. window is the
5835 window which will be used to catch events; if NULL, the top window
5838 Returns true if the application was successfully put into
5839 context-sensitive help mode. This function only returns when the event
5842 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5844 def EndContextHelp(*args
, **kwargs
):
5846 EndContextHelp(self) -> bool
5848 Ends context-sensitive help mode. Not normally called by the
5851 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5853 ContextHelp_swigregister
= _controls_
.ContextHelp_swigregister
5854 ContextHelp_swigregister(ContextHelp
)
5856 class ContextHelpButton(BitmapButton
):
5858 Instances of this class may be used to add a question mark button that
5859 when pressed, puts the application into context-help mode. It does
5860 this by creating a wx.ContextHelp object which itself generates a
5861 ``EVT_HELP`` event when the user clicks on a window.
5863 On Windows, you may add a question-mark icon to a dialog by use of the
5864 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5865 will have to add a button explicitly, usually next to OK, Cancel or
5868 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5871 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5872 __repr__
= _swig_repr
5873 def __init__(self
, *args
, **kwargs
):
5875 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5876 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5878 Constructor, creating and showing a context help button.
5880 _controls_
.ContextHelpButton_swiginit(self
,_controls_
.new_ContextHelpButton(*args
, **kwargs
))
5881 self
._setOORInfo
(self
)
5883 ContextHelpButton_swigregister
= _controls_
.ContextHelpButton_swigregister
5884 ContextHelpButton_swigregister(ContextHelpButton
)
5886 class HelpProvider(object):
5888 wx.HelpProvider is an abstract class used by a program
5889 implementing context-sensitive help to show the help text for the
5892 The current help provider must be explicitly set by the
5893 application using wx.HelpProvider.Set().
5895 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5896 def __init__(self
): raise AttributeError, "No constructor defined"
5897 __repr__
= _swig_repr
5898 __swig_destroy__
= _controls_
.delete_HelpProvider
5899 __del__
= lambda self
: None;
5900 def Set(*args
, **kwargs
):
5902 Set(HelpProvider helpProvider) -> HelpProvider
5904 Sset the current, application-wide help provider. Returns the previous
5905 one. Unlike some other classes, the help provider is not created on
5906 demand. This must be explicitly done by the application.
5908 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5910 Set
= staticmethod(Set
)
5911 def Get(*args
, **kwargs
):
5913 Get() -> HelpProvider
5915 Return the current application-wide help provider.
5917 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5919 Get
= staticmethod(Get
)
5920 def GetHelp(*args
, **kwargs
):
5922 GetHelp(self, Window window) -> String
5924 Gets the help string for this window. Its interpretation is dependent
5925 on the help provider except that empty string always means that no
5926 help is associated with the window.
5928 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5930 def ShowHelp(*args
, **kwargs
):
5932 ShowHelp(self, Window window) -> bool
5934 Shows help for the given window. Uses GetHelp internally if
5935 applicable. Returns True if it was done, or False if no help was
5936 available for this window.
5938 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5940 def AddHelp(*args
, **kwargs
):
5942 AddHelp(self, Window window, String text)
5944 Associates the text with the given window.
5946 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5948 def AddHelpById(*args
, **kwargs
):
5950 AddHelpById(self, int id, String text)
5952 This version associates the given text with all windows with this
5953 id. May be used to set the same help string for all Cancel buttons in
5954 the application, for example.
5956 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5958 def RemoveHelp(*args
, **kwargs
):
5960 RemoveHelp(self, Window window)
5962 Removes the association between the window pointer and the help
5963 text. This is called by the wx.Window destructor. Without this, the
5964 table of help strings will fill up and when window pointers are
5965 reused, the wrong help string will be found.
5967 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5969 def Destroy(*args
, **kwargs
):
5971 val
= _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5975 HelpProvider_swigregister
= _controls_
.HelpProvider_swigregister
5976 HelpProvider_swigregister(HelpProvider
)
5978 def HelpProvider_Set(*args
, **kwargs
):
5980 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5982 Sset the current, application-wide help provider. Returns the previous
5983 one. Unlike some other classes, the help provider is not created on
5984 demand. This must be explicitly done by the application.
5986 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5988 def HelpProvider_Get(*args
):
5990 HelpProvider_Get() -> HelpProvider
5992 Return the current application-wide help provider.
5994 return _controls_
.HelpProvider_Get(*args
)
5996 class SimpleHelpProvider(HelpProvider
):
5998 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5999 supports only plain text help strings, and shows the string associated
6000 with the control (if any) in a tooltip.
6002 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6003 __repr__
= _swig_repr
6004 def __init__(self
, *args
, **kwargs
):
6006 __init__(self) -> SimpleHelpProvider
6008 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6009 supports only plain text help strings, and shows the string associated
6010 with the control (if any) in a tooltip.
6012 _controls_
.SimpleHelpProvider_swiginit(self
,_controls_
.new_SimpleHelpProvider(*args
, **kwargs
))
6013 SimpleHelpProvider_swigregister
= _controls_
.SimpleHelpProvider_swigregister
6014 SimpleHelpProvider_swigregister(SimpleHelpProvider
)
6016 #---------------------------------------------------------------------------
6018 class DragImage(_core
.Object
):
6019 """Proxy of C++ DragImage class"""
6020 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6021 __repr__
= _swig_repr
6022 def __init__(self
, *args
, **kwargs
):
6023 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6024 _controls_
.DragImage_swiginit(self
,_controls_
.new_DragImage(*args
, **kwargs
))
6025 __swig_destroy__
= _controls_
.delete_DragImage
6026 __del__
= lambda self
: None;
6027 def SetBackingBitmap(*args
, **kwargs
):
6028 """SetBackingBitmap(self, Bitmap bitmap)"""
6029 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6031 def BeginDrag(*args
, **kwargs
):
6033 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6034 Rect rect=None) -> bool
6036 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6038 def BeginDragBounded(*args
, **kwargs
):
6039 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6040 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6042 def EndDrag(*args
, **kwargs
):
6043 """EndDrag(self) -> bool"""
6044 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6046 def Move(*args
, **kwargs
):
6047 """Move(self, Point pt) -> bool"""
6048 return _controls_
.DragImage_Move(*args
, **kwargs
)
6050 def Show(*args
, **kwargs
):
6051 """Show(self) -> bool"""
6052 return _controls_
.DragImage_Show(*args
, **kwargs
)
6054 def Hide(*args
, **kwargs
):
6055 """Hide(self) -> bool"""
6056 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6058 def GetImageRect(*args
, **kwargs
):
6059 """GetImageRect(self, Point pos) -> Rect"""
6060 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6062 def DoDrawImage(*args
, **kwargs
):
6063 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6064 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6066 def UpdateBackingFromWindow(*args
, **kwargs
):
6067 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6068 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6070 def RedrawImage(*args
, **kwargs
):
6071 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6072 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6074 DragImage_swigregister
= _controls_
.DragImage_swigregister
6075 DragImage_swigregister(DragImage
)
6077 def DragIcon(*args
, **kwargs
):
6078 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6079 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6082 def DragString(*args
, **kwargs
):
6083 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6084 val
= _controls_
.new_DragString(*args
, **kwargs
)
6087 def DragTreeItem(*args
, **kwargs
):
6088 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6089 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6092 def DragListItem(*args
, **kwargs
):
6093 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6094 val
= _controls_
.new_DragListItem(*args
, **kwargs
)
6097 #---------------------------------------------------------------------------
6099 DP_DEFAULT
= _controls_
.DP_DEFAULT
6100 DP_SPIN
= _controls_
.DP_SPIN
6101 DP_DROPDOWN
= _controls_
.DP_DROPDOWN
6102 DP_SHOWCENTURY
= _controls_
.DP_SHOWCENTURY
6103 DP_ALLOWNONE
= _controls_
.DP_ALLOWNONE
6104 class DatePickerCtrl(_core
.Control
):
6106 This control allows the user to select a date. Unlike
6107 `wx.calendar.CalendarCtrl`, which is a relatively big control,
6108 `wx.DatePickerCtrl` is implemented as a small window showing the
6109 currently selected date. The control can be edited using the keyboard,
6110 and can also display a popup window for more user-friendly date
6111 selection, depending on the styles used and the platform.
6113 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6114 __repr__
= _swig_repr
6115 def __init__(self
, *args
, **kwargs
):
6117 __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6118 Point pos=DefaultPosition, Size size=DefaultSize,
6119 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6120 Validator validator=DefaultValidator,
6121 String name=DatePickerCtrlNameStr) -> DatePickerCtrl
6123 Create a new DatePickerCtrl.
6125 _controls_
.DatePickerCtrl_swiginit(self
,_controls_
.new_DatePickerCtrl(*args
, **kwargs
))
6126 self
._setOORInfo
(self
)
6128 def Create(*args
, **kwargs
):
6130 Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6131 Point pos=DefaultPosition, Size size=DefaultSize,
6132 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6133 Validator validator=DefaultValidator,
6134 String name=DatePickerCtrlNameStr) -> bool
6136 Create the GUI parts of the DatePickerCtrl, for use in 2-phase
6139 return _controls_
.DatePickerCtrl_Create(*args
, **kwargs
)
6141 def SetValue(*args
, **kwargs
):
6143 SetValue(self, DateTime dt)
6145 Changes the current value of the control. The date should be valid and
6146 included in the currently selected range, if any.
6148 Calling this method does not result in a date change event.
6150 return _controls_
.DatePickerCtrl_SetValue(*args
, **kwargs
)
6152 def GetValue(*args
, **kwargs
):
6154 GetValue(self) -> DateTime
6156 Returns the currently selected date. If there is no selection or the
6157 selection is outside of the current range, an invalid `wx.DateTime`
6160 return _controls_
.DatePickerCtrl_GetValue(*args
, **kwargs
)
6162 def SetRange(*args
, **kwargs
):
6164 SetRange(self, DateTime dt1, DateTime dt2)
6166 Sets the valid range for the date selection. If dt1 is valid, it
6167 becomes the earliest date (inclusive) accepted by the control. If dt2
6168 is valid, it becomes the latest possible date.
6170 If the current value of the control is outside of the newly set range
6171 bounds, the behaviour is undefined.
6173 return _controls_
.DatePickerCtrl_SetRange(*args
, **kwargs
)
6175 def GetLowerLimit(*args
, **kwargs
):
6177 GetLowerLimit(self) -> DateTime
6179 Get the lower limit of the valid range for the date selection, if any.
6180 If there is no range or there is no lower limit, then the
6181 `wx.DateTime` value returned will be invalid.
6183 return _controls_
.DatePickerCtrl_GetLowerLimit(*args
, **kwargs
)
6185 def GetUpperLimit(*args
, **kwargs
):
6187 GetUpperLimit(self) -> DateTime
6189 Get the upper limit of the valid range for the date selection, if any.
6190 If there is no range or there is no upper limit, then the
6191 `wx.DateTime` value returned will be invalid.
6193 return _controls_
.DatePickerCtrl_GetUpperLimit(*args
, **kwargs
)
6195 DatePickerCtrl_swigregister
= _controls_
.DatePickerCtrl_swigregister
6196 DatePickerCtrl_swigregister(DatePickerCtrl
)
6197 DatePickerCtrlNameStr
= cvar
.DatePickerCtrlNameStr
6199 def PreDatePickerCtrl(*args
, **kwargs
):
6201 PreDatePickerCtrl() -> DatePickerCtrl
6203 Precreate a DatePickerCtrl for use in 2-phase creation.
6205 val
= _controls_
.new_PreDatePickerCtrl(*args
, **kwargs
)