1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
58 BU_LEFT
= _controls_
.BU_LEFT
59 BU_TOP
= _controls_
.BU_TOP
60 BU_RIGHT
= _controls_
.BU_RIGHT
61 BU_BOTTOM
= _controls_
.BU_BOTTOM
62 BU_ALIGN_MASK
= _controls_
.BU_ALIGN_MASK
63 BU_EXACTFIT
= _controls_
.BU_EXACTFIT
64 BU_AUTODRAW
= _controls_
.BU_AUTODRAW
65 class Button(_core
.Control
):
67 A button is a control that contains a text string, and is one of the most
68 common elements of a GUI. It may be placed on a dialog box or panel, or
69 indeed almost any other window.
71 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
73 def __init__(self
, *args
, **kwargs
):
75 __init__(self, Window parent, int id=-1, String label=EmptyString,
76 Point pos=DefaultPosition, Size size=DefaultSize,
77 long style=0, Validator validator=DefaultValidator,
78 String name=ButtonNameStr) -> Button
80 Create and show a button. The preferred way to create standard
81 buttons is to use a standard ID and an empty label. In this case
82 wxWigets will automatically use a stock label that coresponds to the
83 ID given. In additon, the button will be decorated with stock icons
86 _controls_
.Button_swiginit(self
,_controls_
.new_Button(*args
, **kwargs
))
87 self
._setOORInfo
(self
)
89 def Create(*args
, **kwargs
):
91 Create(self, Window parent, int id=-1, String label=EmptyString,
92 Point pos=DefaultPosition, Size size=DefaultSize,
93 long style=0, Validator validator=DefaultValidator,
94 String name=ButtonNameStr) -> bool
96 Acutally create the GUI Button for 2-phase creation.
98 return _controls_
.Button_Create(*args
, **kwargs
)
100 def SetDefault(*args
, **kwargs
):
104 This sets the button to be the default item for the panel or dialog box.
106 return _controls_
.Button_SetDefault(*args
, **kwargs
)
108 def GetDefaultSize(*args
, **kwargs
):
110 GetDefaultSize() -> Size
112 Returns the default button size for this platform.
114 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
116 GetDefaultSize
= staticmethod(GetDefaultSize
)
117 def GetClassDefaultAttributes(*args
, **kwargs
):
119 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
121 Get the default attributes for this class. This is useful if you want
122 to use the same font or colour in your own control as in a standard
123 control -- which is a much better idea than hard coding specific
124 colours or fonts which might look completely out of place on the
125 user's system, especially if it uses themes.
127 The variant parameter is only relevant under Mac currently and is
128 ignore under other platforms. Under Mac, it will change the size of
129 the returned font. See `wx.Window.SetWindowVariant` for more about
132 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
134 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
135 Button_swigregister
= _controls_
.Button_swigregister
136 Button_swigregister(Button
)
137 cvar
= _controls_
.cvar
138 ButtonNameStr
= cvar
.ButtonNameStr
140 def PreButton(*args
, **kwargs
):
142 PreButton() -> Button
144 Precreate a Button for 2-phase creation.
146 val
= _controls_
.new_PreButton(*args
, **kwargs
)
149 def Button_GetDefaultSize(*args
):
151 Button_GetDefaultSize() -> Size
153 Returns the default button size for this platform.
155 return _controls_
.Button_GetDefaultSize(*args
)
157 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
159 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
161 Get the default attributes for this class. This is useful if you want
162 to use the same font or colour in your own control as in a standard
163 control -- which is a much better idea than hard coding specific
164 colours or fonts which might look completely out of place on the
165 user's system, especially if it uses themes.
167 The variant parameter is only relevant under Mac currently and is
168 ignore under other platforms. Under Mac, it will change the size of
169 the returned font. See `wx.Window.SetWindowVariant` for more about
172 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
174 class BitmapButton(Button
):
176 A Button that contains a bitmap. A bitmap button can be supplied with a
177 single bitmap, and wxWidgets will draw all button states using this bitmap. If
178 the application needs more control, additional bitmaps for the selected state,
179 unpressed focused state, and greyed-out state may be supplied.
181 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
182 __repr__
= _swig_repr
183 def __init__(self
, *args
, **kwargs
):
185 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
186 Point pos=DefaultPosition, Size size=DefaultSize,
187 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
188 String name=ButtonNameStr) -> BitmapButton
190 Create and show a button with a bitmap for the label.
192 _controls_
.BitmapButton_swiginit(self
,_controls_
.new_BitmapButton(*args
, **kwargs
))
193 self
._setOORInfo
(self
)
195 def Create(*args
, **kwargs
):
197 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
198 Point pos=DefaultPosition, Size size=DefaultSize,
199 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
200 String name=ButtonNameStr) -> bool
202 Acutally create the GUI BitmapButton for 2-phase creation.
204 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
206 def GetBitmapLabel(*args
, **kwargs
):
208 GetBitmapLabel(self) -> Bitmap
210 Returns the label bitmap (the one passed to the constructor).
212 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
214 def GetBitmapDisabled(*args
, **kwargs
):
216 GetBitmapDisabled(self) -> Bitmap
218 Returns the bitmap for the disabled state.
220 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
222 def GetBitmapFocus(*args
, **kwargs
):
224 GetBitmapFocus(self) -> Bitmap
226 Returns the bitmap for the focused state.
228 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
230 def GetBitmapSelected(*args
, **kwargs
):
232 GetBitmapSelected(self) -> Bitmap
234 Returns the bitmap for the selected state.
236 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
238 def GetBitmapHover(*args
, **kwargs
):
240 GetBitmapHover(self) -> Bitmap
242 Returns the bitmap used when the mouse is over the button, may be invalid.
244 return _controls_
.BitmapButton_GetBitmapHover(*args
, **kwargs
)
246 def SetBitmapDisabled(*args
, **kwargs
):
248 SetBitmapDisabled(self, Bitmap bitmap)
250 Sets the bitmap for the disabled button appearance.
252 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
254 def SetBitmapFocus(*args
, **kwargs
):
256 SetBitmapFocus(self, Bitmap bitmap)
258 Sets the bitmap for the button appearance when it has the keyboard focus.
260 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
262 def SetBitmapSelected(*args
, **kwargs
):
264 SetBitmapSelected(self, Bitmap bitmap)
266 Sets the bitmap for the selected (depressed) button appearance.
268 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
270 def SetBitmapLabel(*args
, **kwargs
):
272 SetBitmapLabel(self, Bitmap bitmap)
274 Sets the bitmap label for the button. This is the bitmap used for the
275 unselected state, and for all other states if no other bitmaps are provided.
277 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
279 def SetBitmapHover(*args
, **kwargs
):
281 SetBitmapHover(self, Bitmap hover)
283 Sets the bitmap to be shown when the mouse is over the button. This function
284 is new since wxWidgets version 2.7.0 and the hover bitmap is currently only
287 return _controls_
.BitmapButton_SetBitmapHover(*args
, **kwargs
)
289 def SetMargins(*args
, **kwargs
):
290 """SetMargins(self, int x, int y)"""
291 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
293 def GetMarginX(*args
, **kwargs
):
294 """GetMarginX(self) -> int"""
295 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
297 def GetMarginY(*args
, **kwargs
):
298 """GetMarginY(self) -> int"""
299 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
301 BitmapButton_swigregister
= _controls_
.BitmapButton_swigregister
302 BitmapButton_swigregister(BitmapButton
)
304 def PreBitmapButton(*args
, **kwargs
):
306 PreBitmapButton() -> BitmapButton
308 Precreate a BitmapButton for 2-phase creation.
310 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
313 #---------------------------------------------------------------------------
315 CHK_2STATE
= _controls_
.CHK_2STATE
316 CHK_3STATE
= _controls_
.CHK_3STATE
317 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
318 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
319 CHK_CHECKED
= _controls_
.CHK_CHECKED
320 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
321 class CheckBox(_core
.Control
):
323 A checkbox is a labelled box which by default is either on (the
324 checkmark is visible) or off (no checkmark). Optionally (When the
325 wx.CHK_3STATE style flag is set) it can have a third state, called the
326 mixed or undetermined state. Often this is used as a "Does Not
329 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
330 __repr__
= _swig_repr
331 def __init__(self
, *args
, **kwargs
):
333 __init__(self, Window parent, int id=-1, String label=EmptyString,
334 Point pos=DefaultPosition, Size size=DefaultSize,
335 long style=0, Validator validator=DefaultValidator,
336 String name=CheckBoxNameStr) -> CheckBox
338 Creates and shows a CheckBox control
340 _controls_
.CheckBox_swiginit(self
,_controls_
.new_CheckBox(*args
, **kwargs
))
341 self
._setOORInfo
(self
)
343 def Create(*args
, **kwargs
):
345 Create(self, Window parent, int id=-1, String label=EmptyString,
346 Point pos=DefaultPosition, Size size=DefaultSize,
347 long style=0, Validator validator=DefaultValidator,
348 String name=CheckBoxNameStr) -> bool
350 Actually create the GUI CheckBox for 2-phase creation.
352 return _controls_
.CheckBox_Create(*args
, **kwargs
)
354 def GetValue(*args
, **kwargs
):
356 GetValue(self) -> bool
358 Gets the state of a 2-state CheckBox. Returns True if it is checked,
361 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
363 def IsChecked(*args
, **kwargs
):
365 IsChecked(self) -> bool
367 Similar to GetValue, but raises an exception if it is not a 2-state
370 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
372 def SetValue(*args
, **kwargs
):
374 SetValue(self, bool state)
376 Set the state of a 2-state CheckBox. Pass True for checked, False for
379 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
381 def Get3StateValue(*args
, **kwargs
):
383 Get3StateValue(self) -> int
385 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
386 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
387 the undetermined state. Raises an exceptiion when the function is
388 used with a 2-state CheckBox.
390 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
392 def Set3StateValue(*args
, **kwargs
):
394 Set3StateValue(self, int state)
396 Sets the CheckBox to the given state. The state parameter can be one
397 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
398 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
399 exception when the CheckBox is a 2-state checkbox and setting the
400 state to wx.CHK_UNDETERMINED.
402 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
404 def Is3State(*args
, **kwargs
):
406 Is3State(self) -> bool
408 Returns whether or not the CheckBox is a 3-state CheckBox.
410 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
412 def Is3rdStateAllowedForUser(*args
, **kwargs
):
414 Is3rdStateAllowedForUser(self) -> bool
416 Returns whether or not the user can set the CheckBox to the third
419 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
421 def GetClassDefaultAttributes(*args
, **kwargs
):
423 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
425 Get the default attributes for this class. This is useful if you want
426 to use the same font or colour in your own control as in a standard
427 control -- which is a much better idea than hard coding specific
428 colours or fonts which might look completely out of place on the
429 user's system, especially if it uses themes.
431 The variant parameter is only relevant under Mac currently and is
432 ignore under other platforms. Under Mac, it will change the size of
433 the returned font. See `wx.Window.SetWindowVariant` for more about
436 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
438 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
439 CheckBox_swigregister
= _controls_
.CheckBox_swigregister
440 CheckBox_swigregister(CheckBox
)
441 CheckBoxNameStr
= cvar
.CheckBoxNameStr
443 def PreCheckBox(*args
, **kwargs
):
445 PreCheckBox() -> CheckBox
447 Precreate a CheckBox for 2-phase creation.
449 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
452 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
454 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
456 Get the default attributes for this class. This is useful if you want
457 to use the same font or colour in your own control as in a standard
458 control -- which is a much better idea than hard coding specific
459 colours or fonts which might look completely out of place on the
460 user's system, especially if it uses themes.
462 The variant parameter is only relevant under Mac currently and is
463 ignore under other platforms. Under Mac, it will change the size of
464 the returned font. See `wx.Window.SetWindowVariant` for more about
467 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
469 #---------------------------------------------------------------------------
471 class Choice(_core
.ControlWithItems
):
473 A Choice control is used to select one of a list of strings.
474 Unlike a `wx.ListBox`, only the selection is visible until the
475 user pulls down the menu of choices.
477 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
478 __repr__
= _swig_repr
479 def __init__(self
, *args
, **kwargs
):
481 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
482 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
483 String name=ChoiceNameStr) -> Choice
485 Create and show a Choice control
487 _controls_
.Choice_swiginit(self
,_controls_
.new_Choice(*args
, **kwargs
))
488 self
._setOORInfo
(self
)
490 def Create(*args
, **kwargs
):
492 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
493 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
494 String name=ChoiceNameStr) -> bool
496 Actually create the GUI Choice control for 2-phase creation
498 return _controls_
.Choice_Create(*args
, **kwargs
)
500 def GetCurrentSelection(*args
, **kwargs
):
502 GetCurrentSelection(self) -> int
504 Unlike `GetSelection` which only returns the accepted selection value,
505 i.e. the selection in the control once the user closes the dropdown
506 list, this function returns the current selection. That is, while the
507 dropdown list is shown, it returns the currently selected item in
508 it. When it is not shown, its result is the same as for the other
511 return _controls_
.Choice_GetCurrentSelection(*args
, **kwargs
)
513 def GetClassDefaultAttributes(*args
, **kwargs
):
515 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
517 Get the default attributes for this class. This is useful if you want
518 to use the same font or colour in your own control as in a standard
519 control -- which is a much better idea than hard coding specific
520 colours or fonts which might look completely out of place on the
521 user's system, especially if it uses themes.
523 The variant parameter is only relevant under Mac currently and is
524 ignore under other platforms. Under Mac, it will change the size of
525 the returned font. See `wx.Window.SetWindowVariant` for more about
528 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
530 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
531 Choice_swigregister
= _controls_
.Choice_swigregister
532 Choice_swigregister(Choice
)
533 ChoiceNameStr
= cvar
.ChoiceNameStr
535 def PreChoice(*args
, **kwargs
):
537 PreChoice() -> Choice
539 Precreate a Choice control for 2-phase creation.
541 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
544 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
546 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
548 Get the default attributes for this class. This is useful if you want
549 to use the same font or colour in your own control as in a standard
550 control -- which is a much better idea than hard coding specific
551 colours or fonts which might look completely out of place on the
552 user's system, especially if it uses themes.
554 The variant parameter is only relevant under Mac currently and is
555 ignore under other platforms. Under Mac, it will change the size of
556 the returned font. See `wx.Window.SetWindowVariant` for more about
559 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
561 #---------------------------------------------------------------------------
563 class ComboBox(_core
.Control
,_core
.ItemContainer
):
565 A combobox is like a combination of an edit control and a
566 listbox. It can be displayed as static list with editable or
567 read-only text field; or a drop-down list with text field.
569 A combobox permits a single selection only. Combobox items are
572 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
573 __repr__
= _swig_repr
574 def __init__(self
, *args
, **kwargs
):
576 __init__(Window parent, int id, String value=EmptyString,
577 Point pos=DefaultPosition, Size size=DefaultSize,
578 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
579 String name=ComboBoxNameStr) -> ComboBox
581 Constructor, creates and shows a ComboBox control.
583 _controls_
.ComboBox_swiginit(self
,_controls_
.new_ComboBox(*args
, **kwargs
))
584 self
._setOORInfo
(self
)
586 def Create(*args
, **kwargs
):
588 Create(Window parent, int id, String value=EmptyString,
589 Point pos=DefaultPosition, Size size=DefaultSize,
590 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
591 String name=ChoiceNameStr) -> bool
593 Actually create the GUI wxComboBox control for 2-phase creation
595 return _controls_
.ComboBox_Create(*args
, **kwargs
)
597 def GetValue(*args
, **kwargs
):
599 GetValue(self) -> String
601 Returns the current value in the combobox text field.
603 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
605 def SetValue(*args
, **kwargs
):
606 """SetValue(self, String value)"""
607 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
609 def Copy(*args
, **kwargs
):
613 Copies the selected text to the clipboard.
615 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
617 def Cut(*args
, **kwargs
):
621 Copies the selected text to the clipboard and removes the selection.
623 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
625 def Paste(*args
, **kwargs
):
629 Pastes text from the clipboard to the text field.
631 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
633 def SetInsertionPoint(*args
, **kwargs
):
635 SetInsertionPoint(self, long pos)
637 Sets the insertion point in the combobox text field.
639 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
641 def GetInsertionPoint(*args
, **kwargs
):
643 GetInsertionPoint(self) -> long
645 Returns the insertion point for the combobox's text field.
647 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
649 def GetLastPosition(*args
, **kwargs
):
651 GetLastPosition(self) -> long
653 Returns the last position in the combobox text field.
655 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
657 def Replace(*args
, **kwargs
):
659 Replace(self, long from, long to, String value)
661 Replaces the text between two positions with the given text, in the
664 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
666 def SetMark(*args
, **kwargs
):
668 SetMark(self, long from, long to)
670 Selects the text between the two positions in the combobox text field.
672 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
674 def GetCurrentSelection(*args
, **kwargs
):
676 GetCurrentSelection(self) -> int
678 Unlike `GetSelection` which only returns the accepted selection value,
679 i.e. the selection in the control once the user closes the dropdown
680 list, this function returns the current selection. That is, while the
681 dropdown list is shown, it returns the currently selected item in
682 it. When it is not shown, its result is the same as for the other
685 return _controls_
.ComboBox_GetCurrentSelection(*args
, **kwargs
)
687 def SetStringSelection(*args
, **kwargs
):
689 SetStringSelection(self, String string) -> bool
691 Select the item with the specifed string
693 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
695 def SetEditable(*args
, **kwargs
):
696 """SetEditable(self, bool editable)"""
697 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
699 def SetInsertionPointEnd(*args
, **kwargs
):
701 SetInsertionPointEnd(self)
703 Sets the insertion point at the end of the combobox text field.
705 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
707 def Remove(*args
, **kwargs
):
709 Remove(self, long from, long to)
711 Removes the text between the two positions in the combobox text field.
713 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
715 def IsEditable(*args
, **kwargs
):
717 IsEditable(self) -> bool
719 Returns True if the combo is ediatable (not read-only.)
721 return _controls_
.ComboBox_IsEditable(*args
, **kwargs
)
723 def Undo(*args
, **kwargs
):
727 Redoes the last undo in the text field. Windows only.
729 return _controls_
.ComboBox_Undo(*args
, **kwargs
)
731 def Redo(*args
, **kwargs
):
735 Undoes the last edit in the text field. Windows only.
737 return _controls_
.ComboBox_Redo(*args
, **kwargs
)
739 def SelectAll(*args
, **kwargs
):
743 Select all the text in the combo's text field.
745 return _controls_
.ComboBox_SelectAll(*args
, **kwargs
)
747 def CanCopy(*args
, **kwargs
):
749 CanCopy(self) -> bool
751 Returns True if the combobox is editable and there is a text selection
752 to copy to the clipboard. Only available on Windows.
754 return _controls_
.ComboBox_CanCopy(*args
, **kwargs
)
756 def CanCut(*args
, **kwargs
):
760 Returns True if the combobox is editable and there is a text selection
761 to copy to the clipboard. Only available on Windows.
763 return _controls_
.ComboBox_CanCut(*args
, **kwargs
)
765 def CanPaste(*args
, **kwargs
):
767 CanPaste(self) -> bool
769 Returns True if the combobox is editable and there is text on the
770 clipboard that can be pasted into the text field. Only available on
773 return _controls_
.ComboBox_CanPaste(*args
, **kwargs
)
775 def CanUndo(*args
, **kwargs
):
777 CanUndo(self) -> bool
779 Returns True if the combobox is editable and the last edit can be
780 undone. Only available on Windows.
782 return _controls_
.ComboBox_CanUndo(*args
, **kwargs
)
784 def CanRedo(*args
, **kwargs
):
786 CanRedo(self) -> bool
788 Returns True if the combobox is editable and the last undo can be
789 redone. Only available on Windows.
791 return _controls_
.ComboBox_CanRedo(*args
, **kwargs
)
793 def GetClassDefaultAttributes(*args
, **kwargs
):
795 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
797 Get the default attributes for this class. This is useful if you want
798 to use the same font or colour in your own control as in a standard
799 control -- which is a much better idea than hard coding specific
800 colours or fonts which might look completely out of place on the
801 user's system, especially if it uses themes.
803 The variant parameter is only relevant under Mac currently and is
804 ignore under other platforms. Under Mac, it will change the size of
805 the returned font. See `wx.Window.SetWindowVariant` for more about
808 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
810 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
811 ComboBox_swigregister
= _controls_
.ComboBox_swigregister
812 ComboBox_swigregister(ComboBox
)
813 ComboBoxNameStr
= cvar
.ComboBoxNameStr
815 def PreComboBox(*args
, **kwargs
):
817 PreComboBox() -> ComboBox
819 Precreate a ComboBox control for 2-phase creation.
821 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
824 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
826 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
828 Get the default attributes for this class. This is useful if you want
829 to use the same font or colour in your own control as in a standard
830 control -- which is a much better idea than hard coding specific
831 colours or fonts which might look completely out of place on the
832 user's system, especially if it uses themes.
834 The variant parameter is only relevant under Mac currently and is
835 ignore under other platforms. Under Mac, it will change the size of
836 the returned font. See `wx.Window.SetWindowVariant` for more about
839 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
841 #---------------------------------------------------------------------------
843 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
844 GA_VERTICAL
= _controls_
.GA_VERTICAL
845 GA_SMOOTH
= _controls_
.GA_SMOOTH
846 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
847 class Gauge(_core
.Control
):
848 """Proxy of C++ Gauge class"""
849 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
850 __repr__
= _swig_repr
851 def __init__(self
, *args
, **kwargs
):
853 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
854 Size size=DefaultSize, long style=GA_HORIZONTAL,
855 Validator validator=DefaultValidator,
856 String name=GaugeNameStr) -> Gauge
858 _controls_
.Gauge_swiginit(self
,_controls_
.new_Gauge(*args
, **kwargs
))
859 self
._setOORInfo
(self
)
861 def Create(*args
, **kwargs
):
863 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
864 Size size=DefaultSize, long style=GA_HORIZONTAL,
865 Validator validator=DefaultValidator,
866 String name=GaugeNameStr) -> bool
868 return _controls_
.Gauge_Create(*args
, **kwargs
)
870 def SetRange(*args
, **kwargs
):
871 """SetRange(self, int range)"""
872 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
874 def GetRange(*args
, **kwargs
):
875 """GetRange(self) -> int"""
876 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
878 def SetValue(*args
, **kwargs
):
879 """SetValue(self, int pos)"""
880 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
882 def GetValue(*args
, **kwargs
):
883 """GetValue(self) -> int"""
884 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
886 def IsVertical(*args
, **kwargs
):
887 """IsVertical(self) -> bool"""
888 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
890 def SetShadowWidth(*args
, **kwargs
):
891 """SetShadowWidth(self, int w)"""
892 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
894 def GetShadowWidth(*args
, **kwargs
):
895 """GetShadowWidth(self) -> int"""
896 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
898 def SetBezelFace(*args
, **kwargs
):
899 """SetBezelFace(self, int w)"""
900 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
902 def GetBezelFace(*args
, **kwargs
):
903 """GetBezelFace(self) -> int"""
904 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
906 def GetClassDefaultAttributes(*args
, **kwargs
):
908 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
910 Get the default attributes for this class. This is useful if you want
911 to use the same font or colour in your own control as in a standard
912 control -- which is a much better idea than hard coding specific
913 colours or fonts which might look completely out of place on the
914 user's system, especially if it uses themes.
916 The variant parameter is only relevant under Mac currently and is
917 ignore under other platforms. Under Mac, it will change the size of
918 the returned font. See `wx.Window.SetWindowVariant` for more about
921 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
923 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
924 Gauge_swigregister
= _controls_
.Gauge_swigregister
925 Gauge_swigregister(Gauge
)
926 GaugeNameStr
= cvar
.GaugeNameStr
928 def PreGauge(*args
, **kwargs
):
929 """PreGauge() -> Gauge"""
930 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
933 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
935 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
937 Get the default attributes for this class. This is useful if you want
938 to use the same font or colour in your own control as in a standard
939 control -- which is a much better idea than hard coding specific
940 colours or fonts which might look completely out of place on the
941 user's system, especially if it uses themes.
943 The variant parameter is only relevant under Mac currently and is
944 ignore under other platforms. Under Mac, it will change the size of
945 the returned font. See `wx.Window.SetWindowVariant` for more about
948 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
950 #---------------------------------------------------------------------------
952 class StaticBox(_core
.Control
):
953 """Proxy of C++ StaticBox class"""
954 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
955 __repr__
= _swig_repr
956 def __init__(self
, *args
, **kwargs
):
958 __init__(self, Window parent, int id=-1, String label=EmptyString,
959 Point pos=DefaultPosition, Size size=DefaultSize,
960 long style=0, String name=StaticBoxNameStr) -> StaticBox
962 _controls_
.StaticBox_swiginit(self
,_controls_
.new_StaticBox(*args
, **kwargs
))
963 self
._setOORInfo
(self
)
965 def Create(*args
, **kwargs
):
967 Create(self, Window parent, int id=-1, String label=EmptyString,
968 Point pos=DefaultPosition, Size size=DefaultSize,
969 long style=0, String name=StaticBoxNameStr) -> bool
971 return _controls_
.StaticBox_Create(*args
, **kwargs
)
973 def GetClassDefaultAttributes(*args
, **kwargs
):
975 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
977 Get the default attributes for this class. This is useful if you want
978 to use the same font or colour in your own control as in a standard
979 control -- which is a much better idea than hard coding specific
980 colours or fonts which might look completely out of place on the
981 user's system, especially if it uses themes.
983 The variant parameter is only relevant under Mac currently and is
984 ignore under other platforms. Under Mac, it will change the size of
985 the returned font. See `wx.Window.SetWindowVariant` for more about
988 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
990 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
991 StaticBox_swigregister
= _controls_
.StaticBox_swigregister
992 StaticBox_swigregister(StaticBox
)
993 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
994 StaticBoxNameStr
= cvar
.StaticBoxNameStr
995 StaticTextNameStr
= cvar
.StaticTextNameStr
997 def PreStaticBox(*args
, **kwargs
):
998 """PreStaticBox() -> StaticBox"""
999 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
1002 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
1004 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1006 Get the default attributes for this class. This is useful if you want
1007 to use the same font or colour in your own control as in a standard
1008 control -- which is a much better idea than hard coding specific
1009 colours or fonts which might look completely out of place on the
1010 user's system, especially if it uses themes.
1012 The variant parameter is only relevant under Mac currently and is
1013 ignore under other platforms. Under Mac, it will change the size of
1014 the returned font. See `wx.Window.SetWindowVariant` for more about
1017 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1019 #---------------------------------------------------------------------------
1021 class StaticLine(_core
.Control
):
1022 """Proxy of C++ StaticLine class"""
1023 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1024 __repr__
= _swig_repr
1025 def __init__(self
, *args
, **kwargs
):
1027 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1028 Size size=DefaultSize, long style=LI_HORIZONTAL,
1029 String name=StaticTextNameStr) -> StaticLine
1031 _controls_
.StaticLine_swiginit(self
,_controls_
.new_StaticLine(*args
, **kwargs
))
1032 self
._setOORInfo
(self
)
1034 def Create(*args
, **kwargs
):
1036 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1037 Size size=DefaultSize, long style=LI_HORIZONTAL,
1038 String name=StaticTextNameStr) -> bool
1040 return _controls_
.StaticLine_Create(*args
, **kwargs
)
1042 def IsVertical(*args
, **kwargs
):
1043 """IsVertical(self) -> bool"""
1044 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
1046 def GetDefaultSize(*args
, **kwargs
):
1047 """GetDefaultSize() -> int"""
1048 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1050 GetDefaultSize
= staticmethod(GetDefaultSize
)
1051 def GetClassDefaultAttributes(*args
, **kwargs
):
1053 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1055 Get the default attributes for this class. This is useful if you want
1056 to use the same font or colour in your own control as in a standard
1057 control -- which is a much better idea than hard coding specific
1058 colours or fonts which might look completely out of place on the
1059 user's system, especially if it uses themes.
1061 The variant parameter is only relevant under Mac currently and is
1062 ignore under other platforms. Under Mac, it will change the size of
1063 the returned font. See `wx.Window.SetWindowVariant` for more about
1066 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1068 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1069 StaticLine_swigregister
= _controls_
.StaticLine_swigregister
1070 StaticLine_swigregister(StaticLine
)
1072 def PreStaticLine(*args
, **kwargs
):
1073 """PreStaticLine() -> StaticLine"""
1074 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1077 def StaticLine_GetDefaultSize(*args
):
1078 """StaticLine_GetDefaultSize() -> int"""
1079 return _controls_
.StaticLine_GetDefaultSize(*args
)
1081 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1083 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1085 Get the default attributes for this class. This is useful if you want
1086 to use the same font or colour in your own control as in a standard
1087 control -- which is a much better idea than hard coding specific
1088 colours or fonts which might look completely out of place on the
1089 user's system, especially if it uses themes.
1091 The variant parameter is only relevant under Mac currently and is
1092 ignore under other platforms. Under Mac, it will change the size of
1093 the returned font. See `wx.Window.SetWindowVariant` for more about
1096 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1098 #---------------------------------------------------------------------------
1100 class StaticText(_core
.Control
):
1101 """Proxy of C++ StaticText class"""
1102 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1103 __repr__
= _swig_repr
1104 def __init__(self
, *args
, **kwargs
):
1106 __init__(self, Window parent, int id=-1, String label=EmptyString,
1107 Point pos=DefaultPosition, Size size=DefaultSize,
1108 long style=0, String name=StaticTextNameStr) -> StaticText
1110 _controls_
.StaticText_swiginit(self
,_controls_
.new_StaticText(*args
, **kwargs
))
1111 self
._setOORInfo
(self
)
1113 def Create(*args
, **kwargs
):
1115 Create(self, Window parent, int id=-1, String label=EmptyString,
1116 Point pos=DefaultPosition, Size size=DefaultSize,
1117 long style=0, String name=StaticTextNameStr) -> bool
1119 return _controls_
.StaticText_Create(*args
, **kwargs
)
1121 def Wrap(*args
, **kwargs
):
1123 Wrap(self, int width)
1125 This functions wraps the control's label so that each of its lines
1126 becomes at most ``width`` pixels wide if possible (the lines are
1127 broken at words boundaries so it might not be the case if words are
1128 too long). If ``width`` is negative, no wrapping is done.
1130 return _controls_
.StaticText_Wrap(*args
, **kwargs
)
1132 def GetClassDefaultAttributes(*args
, **kwargs
):
1134 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1136 Get the default attributes for this class. This is useful if you want
1137 to use the same font or colour in your own control as in a standard
1138 control -- which is a much better idea than hard coding specific
1139 colours or fonts which might look completely out of place on the
1140 user's system, especially if it uses themes.
1142 The variant parameter is only relevant under Mac currently and is
1143 ignore under other platforms. Under Mac, it will change the size of
1144 the returned font. See `wx.Window.SetWindowVariant` for more about
1147 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1149 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1150 StaticText_swigregister
= _controls_
.StaticText_swigregister
1151 StaticText_swigregister(StaticText
)
1153 def PreStaticText(*args
, **kwargs
):
1154 """PreStaticText() -> StaticText"""
1155 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1158 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1160 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1162 Get the default attributes for this class. This is useful if you want
1163 to use the same font or colour in your own control as in a standard
1164 control -- which is a much better idea than hard coding specific
1165 colours or fonts which might look completely out of place on the
1166 user's system, especially if it uses themes.
1168 The variant parameter is only relevant under Mac currently and is
1169 ignore under other platforms. Under Mac, it will change the size of
1170 the returned font. See `wx.Window.SetWindowVariant` for more about
1173 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1175 #---------------------------------------------------------------------------
1177 class StaticBitmap(_core
.Control
):
1178 """Proxy of C++ StaticBitmap class"""
1179 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1180 __repr__
= _swig_repr
1181 def __init__(self
, *args
, **kwargs
):
1183 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1184 Point pos=DefaultPosition, Size size=DefaultSize,
1185 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1187 _controls_
.StaticBitmap_swiginit(self
,_controls_
.new_StaticBitmap(*args
, **kwargs
))
1188 self
._setOORInfo
(self
)
1190 def Create(*args
, **kwargs
):
1192 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1193 Point pos=DefaultPosition, Size size=DefaultSize,
1194 long style=0, String name=StaticBitmapNameStr) -> bool
1196 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1198 def GetBitmap(*args
, **kwargs
):
1199 """GetBitmap(self) -> Bitmap"""
1200 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1202 def SetBitmap(*args
, **kwargs
):
1203 """SetBitmap(self, Bitmap bitmap)"""
1204 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1206 def SetIcon(*args
, **kwargs
):
1207 """SetIcon(self, Icon icon)"""
1208 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1210 def GetClassDefaultAttributes(*args
, **kwargs
):
1212 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1214 Get the default attributes for this class. This is useful if you want
1215 to use the same font or colour in your own control as in a standard
1216 control -- which is a much better idea than hard coding specific
1217 colours or fonts which might look completely out of place on the
1218 user's system, especially if it uses themes.
1220 The variant parameter is only relevant under Mac currently and is
1221 ignore under other platforms. Under Mac, it will change the size of
1222 the returned font. See `wx.Window.SetWindowVariant` for more about
1225 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1227 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1228 StaticBitmap_swigregister
= _controls_
.StaticBitmap_swigregister
1229 StaticBitmap_swigregister(StaticBitmap
)
1231 def PreStaticBitmap(*args
, **kwargs
):
1232 """PreStaticBitmap() -> StaticBitmap"""
1233 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1236 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1238 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1240 Get the default attributes for this class. This is useful if you want
1241 to use the same font or colour in your own control as in a standard
1242 control -- which is a much better idea than hard coding specific
1243 colours or fonts which might look completely out of place on the
1244 user's system, especially if it uses themes.
1246 The variant parameter is only relevant under Mac currently and is
1247 ignore under other platforms. Under Mac, it will change the size of
1248 the returned font. See `wx.Window.SetWindowVariant` for more about
1251 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1253 #---------------------------------------------------------------------------
1255 class ListBox(_core
.ControlWithItems
):
1256 """Proxy of C++ ListBox class"""
1257 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1258 __repr__
= _swig_repr
1259 def __init__(self
, *args
, **kwargs
):
1261 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1262 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1263 long style=0, Validator validator=DefaultValidator,
1264 String name=ListBoxNameStr) -> ListBox
1266 _controls_
.ListBox_swiginit(self
,_controls_
.new_ListBox(*args
, **kwargs
))
1267 self
._setOORInfo
(self
)
1269 def Create(*args
, **kwargs
):
1271 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1272 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1273 long style=0, Validator validator=DefaultValidator,
1274 String name=ListBoxNameStr) -> bool
1276 return _controls_
.ListBox_Create(*args
, **kwargs
)
1278 def Insert(*args
, **kwargs
):
1280 Insert(self, String item, int pos, PyObject clientData=None)
1282 Insert an item into the control before the item at the ``pos`` index,
1283 optionally associating some data object with the item.
1285 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1287 def InsertItems(*args
, **kwargs
):
1288 """InsertItems(self, wxArrayString items, int pos)"""
1289 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1291 def Set(*args
, **kwargs
):
1292 """Set(self, wxArrayString items)"""
1293 return _controls_
.ListBox_Set(*args
, **kwargs
)
1295 def IsSelected(*args
, **kwargs
):
1296 """IsSelected(self, int n) -> bool"""
1297 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1299 def SetSelection(*args
, **kwargs
):
1300 """SetSelection(self, int n, bool select=True)"""
1301 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1303 def Select(*args
, **kwargs
):
1307 This is the same as `SetSelection` and exists only because it is
1308 slightly more natural for controls which support multiple selection.
1310 return _controls_
.ListBox_Select(*args
, **kwargs
)
1312 def Deselect(*args
, **kwargs
):
1313 """Deselect(self, int n)"""
1314 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1316 def DeselectAll(*args
, **kwargs
):
1317 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1318 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1320 def SetStringSelection(*args
, **kwargs
):
1321 """SetStringSelection(self, String s, bool select=True) -> bool"""
1322 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1324 def GetSelections(*args
, **kwargs
):
1325 """GetSelections(self) -> PyObject"""
1326 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1328 def SetFirstItem(*args
, **kwargs
):
1329 """SetFirstItem(self, int n)"""
1330 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1332 def SetFirstItemStr(*args
, **kwargs
):
1333 """SetFirstItemStr(self, String s)"""
1334 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1336 def EnsureVisible(*args
, **kwargs
):
1337 """EnsureVisible(self, int n)"""
1338 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1340 def AppendAndEnsureVisible(*args
, **kwargs
):
1341 """AppendAndEnsureVisible(self, String s)"""
1342 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1344 def IsSorted(*args
, **kwargs
):
1345 """IsSorted(self) -> bool"""
1346 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1348 def HitTest(*args
, **kwargs
):
1350 HitTest(self, Point pt) -> int
1352 Test where the given (in client coords) point lies
1354 return _controls_
.ListBox_HitTest(*args
, **kwargs
)
1356 def SetItemForegroundColour(*args
, **kwargs
):
1357 """SetItemForegroundColour(self, int item, Colour c)"""
1358 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1360 def SetItemBackgroundColour(*args
, **kwargs
):
1361 """SetItemBackgroundColour(self, int item, Colour c)"""
1362 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1364 def SetItemFont(*args
, **kwargs
):
1365 """SetItemFont(self, int item, Font f)"""
1366 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1368 def GetClassDefaultAttributes(*args
, **kwargs
):
1370 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1372 Get the default attributes for this class. This is useful if you want
1373 to use the same font or colour in your own control as in a standard
1374 control -- which is a much better idea than hard coding specific
1375 colours or fonts which might look completely out of place on the
1376 user's system, especially if it uses themes.
1378 The variant parameter is only relevant under Mac currently and is
1379 ignore under other platforms. Under Mac, it will change the size of
1380 the returned font. See `wx.Window.SetWindowVariant` for more about
1383 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1385 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1386 ListBox_swigregister
= _controls_
.ListBox_swigregister
1387 ListBox_swigregister(ListBox
)
1388 ListBoxNameStr
= cvar
.ListBoxNameStr
1390 def PreListBox(*args
, **kwargs
):
1391 """PreListBox() -> ListBox"""
1392 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1395 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1397 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1399 Get the default attributes for this class. This is useful if you want
1400 to use the same font or colour in your own control as in a standard
1401 control -- which is a much better idea than hard coding specific
1402 colours or fonts which might look completely out of place on the
1403 user's system, especially if it uses themes.
1405 The variant parameter is only relevant under Mac currently and is
1406 ignore under other platforms. Under Mac, it will change the size of
1407 the returned font. See `wx.Window.SetWindowVariant` for more about
1410 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1412 #---------------------------------------------------------------------------
1414 class CheckListBox(ListBox
):
1415 """Proxy of C++ CheckListBox class"""
1416 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1417 __repr__
= _swig_repr
1418 def __init__(self
, *args
, **kwargs
):
1420 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1421 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1422 long style=0, Validator validator=DefaultValidator,
1423 String name=ListBoxNameStr) -> CheckListBox
1425 _controls_
.CheckListBox_swiginit(self
,_controls_
.new_CheckListBox(*args
, **kwargs
))
1426 self
._setOORInfo
(self
)
1428 def Create(*args
, **kwargs
):
1430 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1431 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1432 long style=0, Validator validator=DefaultValidator,
1433 String name=ListBoxNameStr) -> bool
1435 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1437 def IsChecked(*args
, **kwargs
):
1438 """IsChecked(self, int index) -> bool"""
1439 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1441 def Check(*args
, **kwargs
):
1442 """Check(self, int index, int check=True)"""
1443 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1445 CheckListBox_swigregister
= _controls_
.CheckListBox_swigregister
1446 CheckListBox_swigregister(CheckListBox
)
1448 def PreCheckListBox(*args
, **kwargs
):
1449 """PreCheckListBox() -> CheckListBox"""
1450 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1453 #---------------------------------------------------------------------------
1455 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1456 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1457 TE_READONLY
= _controls_
.TE_READONLY
1458 TE_MULTILINE
= _controls_
.TE_MULTILINE
1459 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1460 TE_LEFT
= _controls_
.TE_LEFT
1461 TE_CENTER
= _controls_
.TE_CENTER
1462 TE_RIGHT
= _controls_
.TE_RIGHT
1463 TE_CENTRE
= _controls_
.TE_CENTRE
1464 TE_RICH
= _controls_
.TE_RICH
1465 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1466 TE_PASSWORD
= _controls_
.TE_PASSWORD
1467 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1468 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1469 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1470 TE_CHARWRAP
= _controls_
.TE_CHARWRAP
1471 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1472 TE_BESTWRAP
= _controls_
.TE_BESTWRAP
1473 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1474 TE_RICH2
= _controls_
.TE_RICH2
1475 TE_CAPITALIZE
= _controls_
.TE_CAPITALIZE
1476 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1477 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1478 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1479 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1480 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1481 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1482 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1483 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1484 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1485 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1486 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1487 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1488 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1489 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1490 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1491 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1492 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1493 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1494 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1495 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1496 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1497 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1498 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1499 OutOfRangeTextCoord
= _controls_
.OutOfRangeTextCoord
1500 InvalidTextCoord
= _controls_
.InvalidTextCoord
1501 class TextAttr(object):
1502 """Proxy of C++ TextAttr class"""
1503 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1504 __repr__
= _swig_repr
1505 def __init__(self
, *args
, **kwargs
):
1507 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1508 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1510 _controls_
.TextAttr_swiginit(self
,_controls_
.new_TextAttr(*args
, **kwargs
))
1511 __swig_destroy__
= _controls_
.delete_TextAttr
1512 __del__
= lambda self
: None;
1513 def Init(*args
, **kwargs
):
1515 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1517 def SetTextColour(*args
, **kwargs
):
1518 """SetTextColour(self, Colour colText)"""
1519 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1521 def SetBackgroundColour(*args
, **kwargs
):
1522 """SetBackgroundColour(self, Colour colBack)"""
1523 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1525 def SetFont(*args
, **kwargs
):
1526 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1527 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1529 def SetAlignment(*args
, **kwargs
):
1530 """SetAlignment(self, int alignment)"""
1531 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1533 def SetTabs(*args
, **kwargs
):
1534 """SetTabs(self, wxArrayInt tabs)"""
1535 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1537 def SetLeftIndent(*args
, **kwargs
):
1538 """SetLeftIndent(self, int indent, int subIndent=0)"""
1539 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1541 def SetRightIndent(*args
, **kwargs
):
1542 """SetRightIndent(self, int indent)"""
1543 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1545 def SetFlags(*args
, **kwargs
):
1546 """SetFlags(self, long flags)"""
1547 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1549 def HasTextColour(*args
, **kwargs
):
1550 """HasTextColour(self) -> bool"""
1551 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1553 def HasBackgroundColour(*args
, **kwargs
):
1554 """HasBackgroundColour(self) -> bool"""
1555 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1557 def HasFont(*args
, **kwargs
):
1558 """HasFont(self) -> bool"""
1559 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1561 def HasAlignment(*args
, **kwargs
):
1562 """HasAlignment(self) -> bool"""
1563 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1565 def HasTabs(*args
, **kwargs
):
1566 """HasTabs(self) -> bool"""
1567 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1569 def HasLeftIndent(*args
, **kwargs
):
1570 """HasLeftIndent(self) -> bool"""
1571 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1573 def HasRightIndent(*args
, **kwargs
):
1574 """HasRightIndent(self) -> bool"""
1575 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1577 def HasFlag(*args
, **kwargs
):
1578 """HasFlag(self, long flag) -> bool"""
1579 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1581 def GetTextColour(*args
, **kwargs
):
1582 """GetTextColour(self) -> Colour"""
1583 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1585 def GetBackgroundColour(*args
, **kwargs
):
1586 """GetBackgroundColour(self) -> Colour"""
1587 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1589 def GetFont(*args
, **kwargs
):
1590 """GetFont(self) -> Font"""
1591 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1593 def GetAlignment(*args
, **kwargs
):
1594 """GetAlignment(self) -> int"""
1595 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1597 def GetTabs(*args
, **kwargs
):
1598 """GetTabs(self) -> wxArrayInt"""
1599 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1601 def GetLeftIndent(*args
, **kwargs
):
1602 """GetLeftIndent(self) -> long"""
1603 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1605 def GetLeftSubIndent(*args
, **kwargs
):
1606 """GetLeftSubIndent(self) -> long"""
1607 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1609 def GetRightIndent(*args
, **kwargs
):
1610 """GetRightIndent(self) -> long"""
1611 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1613 def GetFlags(*args
, **kwargs
):
1614 """GetFlags(self) -> long"""
1615 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1617 def IsDefault(*args
, **kwargs
):
1618 """IsDefault(self) -> bool"""
1619 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1621 def Combine(*args
, **kwargs
):
1622 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1623 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1625 Combine
= staticmethod(Combine
)
1626 TextAttr_swigregister
= _controls_
.TextAttr_swigregister
1627 TextAttr_swigregister(TextAttr
)
1628 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1630 def TextAttr_Combine(*args
, **kwargs
):
1631 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1632 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1634 class TextCtrl(_core
.Control
):
1635 """Proxy of C++ TextCtrl class"""
1636 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1637 __repr__
= _swig_repr
1638 def __init__(self
, *args
, **kwargs
):
1640 __init__(self, Window parent, int id=-1, String value=EmptyString,
1641 Point pos=DefaultPosition, Size size=DefaultSize,
1642 long style=0, Validator validator=DefaultValidator,
1643 String name=TextCtrlNameStr) -> TextCtrl
1645 _controls_
.TextCtrl_swiginit(self
,_controls_
.new_TextCtrl(*args
, **kwargs
))
1646 self
._setOORInfo
(self
)
1648 def Create(*args
, **kwargs
):
1650 Create(self, Window parent, int id=-1, String value=EmptyString,
1651 Point pos=DefaultPosition, Size size=DefaultSize,
1652 long style=0, Validator validator=DefaultValidator,
1653 String name=TextCtrlNameStr) -> bool
1655 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1657 def GetValue(*args
, **kwargs
):
1658 """GetValue(self) -> String"""
1659 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1661 def SetValue(*args
, **kwargs
):
1662 """SetValue(self, String value)"""
1663 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1665 def GetRange(*args
, **kwargs
):
1666 """GetRange(self, long from, long to) -> String"""
1667 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1669 def GetLineLength(*args
, **kwargs
):
1670 """GetLineLength(self, long lineNo) -> int"""
1671 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1673 def GetLineText(*args
, **kwargs
):
1674 """GetLineText(self, long lineNo) -> String"""
1675 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1677 def GetNumberOfLines(*args
, **kwargs
):
1678 """GetNumberOfLines(self) -> int"""
1679 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1681 def IsModified(*args
, **kwargs
):
1682 """IsModified(self) -> bool"""
1683 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1685 def IsEditable(*args
, **kwargs
):
1686 """IsEditable(self) -> bool"""
1687 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1689 def IsSingleLine(*args
, **kwargs
):
1690 """IsSingleLine(self) -> bool"""
1691 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1693 def IsMultiLine(*args
, **kwargs
):
1694 """IsMultiLine(self) -> bool"""
1695 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1697 def GetSelection(*args
, **kwargs
):
1699 GetSelection() -> (from, to)
1701 If the return values from and to are the same, there is no selection.
1703 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1705 def GetStringSelection(*args
, **kwargs
):
1706 """GetStringSelection(self) -> String"""
1707 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1709 def Clear(*args
, **kwargs
):
1711 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1713 def Replace(*args
, **kwargs
):
1714 """Replace(self, long from, long to, String value)"""
1715 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1717 def Remove(*args
, **kwargs
):
1718 """Remove(self, long from, long to)"""
1719 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1721 def LoadFile(*args
, **kwargs
):
1722 """LoadFile(self, String file) -> bool"""
1723 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1725 def SaveFile(*args
, **kwargs
):
1726 """SaveFile(self, String file=EmptyString) -> bool"""
1727 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1729 def MarkDirty(*args
, **kwargs
):
1730 """MarkDirty(self)"""
1731 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1733 def DiscardEdits(*args
, **kwargs
):
1734 """DiscardEdits(self)"""
1735 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1737 def SetMaxLength(*args
, **kwargs
):
1738 """SetMaxLength(self, unsigned long len)"""
1739 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1741 def WriteText(*args
, **kwargs
):
1742 """WriteText(self, String text)"""
1743 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1745 def AppendText(*args
, **kwargs
):
1746 """AppendText(self, String text)"""
1747 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1749 def EmulateKeyPress(*args
, **kwargs
):
1750 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1751 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1753 def SetStyle(*args
, **kwargs
):
1754 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1755 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1757 def GetStyle(*args
, **kwargs
):
1758 """GetStyle(self, long position, TextAttr style) -> bool"""
1759 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1761 def SetDefaultStyle(*args
, **kwargs
):
1762 """SetDefaultStyle(self, TextAttr style) -> bool"""
1763 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1765 def GetDefaultStyle(*args
, **kwargs
):
1766 """GetDefaultStyle(self) -> TextAttr"""
1767 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1769 def XYToPosition(*args
, **kwargs
):
1770 """XYToPosition(self, long x, long y) -> long"""
1771 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1773 def PositionToXY(*args
, **kwargs
):
1774 """PositionToXY(long pos) -> (x, y)"""
1775 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1777 def ShowPosition(*args
, **kwargs
):
1778 """ShowPosition(self, long pos)"""
1779 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1781 def HitTest(*args
, **kwargs
):
1783 HitTest(Point pt) -> (result, col, row)
1785 Find the row, col coresponding to the character at the point given in
1786 pixels. NB: pt is in device coords but is not adjusted for the client
1787 area origin nor scrolling.
1789 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1791 def HitTestPos(*args
, **kwargs
):
1793 HitTestPos(Point pt) -> (result, position)
1795 Find the character position in the text coresponding to the point
1796 given in pixels. NB: pt is in device coords but is not adjusted for
1797 the client area origin nor scrolling.
1799 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1801 def Copy(*args
, **kwargs
):
1803 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1805 def Cut(*args
, **kwargs
):
1807 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1809 def Paste(*args
, **kwargs
):
1811 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1813 def CanCopy(*args
, **kwargs
):
1814 """CanCopy(self) -> bool"""
1815 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1817 def CanCut(*args
, **kwargs
):
1818 """CanCut(self) -> bool"""
1819 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1821 def CanPaste(*args
, **kwargs
):
1822 """CanPaste(self) -> bool"""
1823 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1825 def Undo(*args
, **kwargs
):
1827 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1829 def Redo(*args
, **kwargs
):
1831 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1833 def CanUndo(*args
, **kwargs
):
1834 """CanUndo(self) -> bool"""
1835 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1837 def CanRedo(*args
, **kwargs
):
1838 """CanRedo(self) -> bool"""
1839 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1841 def SetInsertionPoint(*args
, **kwargs
):
1842 """SetInsertionPoint(self, long pos)"""
1843 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1845 def SetInsertionPointEnd(*args
, **kwargs
):
1846 """SetInsertionPointEnd(self)"""
1847 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1849 def GetInsertionPoint(*args
, **kwargs
):
1850 """GetInsertionPoint(self) -> long"""
1851 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1853 def GetLastPosition(*args
, **kwargs
):
1854 """GetLastPosition(self) -> long"""
1855 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1857 def SetSelection(*args
, **kwargs
):
1858 """SetSelection(self, long from, long to)"""
1859 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1861 def SelectAll(*args
, **kwargs
):
1862 """SelectAll(self)"""
1863 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1865 def SetEditable(*args
, **kwargs
):
1866 """SetEditable(self, bool editable)"""
1867 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1869 def write(*args
, **kwargs
):
1870 """write(self, String text)"""
1871 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1873 def GetString(*args
, **kwargs
):
1874 """GetString(self, long from, long to) -> String"""
1875 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1877 def GetClassDefaultAttributes(*args
, **kwargs
):
1879 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1881 Get the default attributes for this class. This is useful if you want
1882 to use the same font or colour in your own control as in a standard
1883 control -- which is a much better idea than hard coding specific
1884 colours or fonts which might look completely out of place on the
1885 user's system, especially if it uses themes.
1887 The variant parameter is only relevant under Mac currently and is
1888 ignore under other platforms. Under Mac, it will change the size of
1889 the returned font. See `wx.Window.SetWindowVariant` for more about
1892 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1894 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1895 TextCtrl_swigregister
= _controls_
.TextCtrl_swigregister
1896 TextCtrl_swigregister(TextCtrl
)
1898 def PreTextCtrl(*args
, **kwargs
):
1899 """PreTextCtrl() -> TextCtrl"""
1900 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1903 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1905 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1907 Get the default attributes for this class. This is useful if you want
1908 to use the same font or colour in your own control as in a standard
1909 control -- which is a much better idea than hard coding specific
1910 colours or fonts which might look completely out of place on the
1911 user's system, especially if it uses themes.
1913 The variant parameter is only relevant under Mac currently and is
1914 ignore under other platforms. Under Mac, it will change the size of
1915 the returned font. See `wx.Window.SetWindowVariant` for more about
1918 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1920 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1921 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1922 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1923 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1924 class TextUrlEvent(_core
.CommandEvent
):
1925 """Proxy of C++ TextUrlEvent class"""
1926 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1927 __repr__
= _swig_repr
1928 def __init__(self
, *args
, **kwargs
):
1929 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1930 _controls_
.TextUrlEvent_swiginit(self
,_controls_
.new_TextUrlEvent(*args
, **kwargs
))
1931 def GetMouseEvent(*args
, **kwargs
):
1932 """GetMouseEvent(self) -> MouseEvent"""
1933 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1935 def GetURLStart(*args
, **kwargs
):
1936 """GetURLStart(self) -> long"""
1937 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1939 def GetURLEnd(*args
, **kwargs
):
1940 """GetURLEnd(self) -> long"""
1941 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1943 TextUrlEvent_swigregister
= _controls_
.TextUrlEvent_swigregister
1944 TextUrlEvent_swigregister(TextUrlEvent
)
1946 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1947 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1948 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1949 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1951 #---------------------------------------------------------------------------
1953 class ScrollBar(_core
.Control
):
1954 """Proxy of C++ ScrollBar 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
):
1959 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1960 Size size=DefaultSize, long style=SB_HORIZONTAL,
1961 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1963 _controls_
.ScrollBar_swiginit(self
,_controls_
.new_ScrollBar(*args
, **kwargs
))
1964 self
._setOORInfo
(self
)
1966 def Create(*args
, **kwargs
):
1968 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1969 Size size=DefaultSize, long style=SB_HORIZONTAL,
1970 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1972 Do the 2nd phase and create the GUI control.
1974 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1976 def GetThumbPosition(*args
, **kwargs
):
1977 """GetThumbPosition(self) -> int"""
1978 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1980 def GetThumbSize(*args
, **kwargs
):
1981 """GetThumbSize(self) -> int"""
1982 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1984 GetThumbLength
= GetThumbSize
1985 def GetPageSize(*args
, **kwargs
):
1986 """GetPageSize(self) -> int"""
1987 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
1989 def GetRange(*args
, **kwargs
):
1990 """GetRange(self) -> int"""
1991 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
1993 def IsVertical(*args
, **kwargs
):
1994 """IsVertical(self) -> bool"""
1995 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
1997 def SetThumbPosition(*args
, **kwargs
):
1998 """SetThumbPosition(self, int viewStart)"""
1999 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2001 def GetClassDefaultAttributes(*args
, **kwargs
):
2003 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2005 Get the default attributes for this class. This is useful if you want
2006 to use the same font or colour in your own control as in a standard
2007 control -- which is a much better idea than hard coding specific
2008 colours or fonts which might look completely out of place on the
2009 user's system, especially if it uses themes.
2011 The variant parameter is only relevant under Mac currently and is
2012 ignore under other platforms. Under Mac, it will change the size of
2013 the returned font. See `wx.Window.SetWindowVariant` for more about
2016 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2018 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2019 ScrollBar_swigregister
= _controls_
.ScrollBar_swigregister
2020 ScrollBar_swigregister(ScrollBar
)
2021 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2023 def PreScrollBar(*args
, **kwargs
):
2024 """PreScrollBar() -> ScrollBar"""
2025 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2028 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2030 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2032 Get the default attributes for this class. This is useful if you want
2033 to use the same font or colour in your own control as in a standard
2034 control -- which is a much better idea than hard coding specific
2035 colours or fonts which might look completely out of place on the
2036 user's system, especially if it uses themes.
2038 The variant parameter is only relevant under Mac currently and is
2039 ignore under other platforms. Under Mac, it will change the size of
2040 the returned font. See `wx.Window.SetWindowVariant` for more about
2043 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2045 #---------------------------------------------------------------------------
2047 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2048 SP_VERTICAL
= _controls_
.SP_VERTICAL
2049 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2050 SP_WRAP
= _controls_
.SP_WRAP
2051 class SpinButton(_core
.Control
):
2052 """Proxy of C++ SpinButton class"""
2053 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2054 __repr__
= _swig_repr
2055 def __init__(self
, *args
, **kwargs
):
2057 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2058 Size size=DefaultSize, long style=SP_HORIZONTAL,
2059 String name=SPIN_BUTTON_NAME) -> SpinButton
2061 _controls_
.SpinButton_swiginit(self
,_controls_
.new_SpinButton(*args
, **kwargs
))
2062 self
._setOORInfo
(self
)
2064 def Create(*args
, **kwargs
):
2066 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2067 Size size=DefaultSize, long style=SP_HORIZONTAL,
2068 String name=SPIN_BUTTON_NAME) -> bool
2070 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2072 def GetValue(*args
, **kwargs
):
2073 """GetValue(self) -> int"""
2074 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2076 def GetMin(*args
, **kwargs
):
2077 """GetMin(self) -> int"""
2078 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2080 def GetMax(*args
, **kwargs
):
2081 """GetMax(self) -> int"""
2082 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2084 def SetValue(*args
, **kwargs
):
2085 """SetValue(self, int val)"""
2086 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2088 def SetMin(*args
, **kwargs
):
2089 """SetMin(self, int minVal)"""
2090 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2092 def SetMax(*args
, **kwargs
):
2093 """SetMax(self, int maxVal)"""
2094 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2096 def SetRange(*args
, **kwargs
):
2097 """SetRange(self, int minVal, int maxVal)"""
2098 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2100 def IsVertical(*args
, **kwargs
):
2101 """IsVertical(self) -> bool"""
2102 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2104 def GetClassDefaultAttributes(*args
, **kwargs
):
2106 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2108 Get the default attributes for this class. This is useful if you want
2109 to use the same font or colour in your own control as in a standard
2110 control -- which is a much better idea than hard coding specific
2111 colours or fonts which might look completely out of place on the
2112 user's system, especially if it uses themes.
2114 The variant parameter is only relevant under Mac currently and is
2115 ignore under other platforms. Under Mac, it will change the size of
2116 the returned font. See `wx.Window.SetWindowVariant` for more about
2119 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2121 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2122 SpinButton_swigregister
= _controls_
.SpinButton_swigregister
2123 SpinButton_swigregister(SpinButton
)
2124 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2125 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2127 def PreSpinButton(*args
, **kwargs
):
2128 """PreSpinButton() -> SpinButton"""
2129 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2132 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2134 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2136 Get the default attributes for this class. This is useful if you want
2137 to use the same font or colour in your own control as in a standard
2138 control -- which is a much better idea than hard coding specific
2139 colours or fonts which might look completely out of place on the
2140 user's system, especially if it uses themes.
2142 The variant parameter is only relevant under Mac currently and is
2143 ignore under other platforms. Under Mac, it will change the size of
2144 the returned font. See `wx.Window.SetWindowVariant` for more about
2147 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2149 class SpinCtrl(_core
.Control
):
2150 """Proxy of C++ SpinCtrl class"""
2151 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2152 __repr__
= _swig_repr
2153 def __init__(self
, *args
, **kwargs
):
2155 __init__(self, Window parent, int id=-1, String value=EmptyString,
2156 Point pos=DefaultPosition, Size size=DefaultSize,
2157 long style=SP_ARROW_KEYS, int min=0, int max=100,
2158 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2160 _controls_
.SpinCtrl_swiginit(self
,_controls_
.new_SpinCtrl(*args
, **kwargs
))
2161 self
._setOORInfo
(self
)
2163 def Create(*args
, **kwargs
):
2165 Create(self, Window parent, int id=-1, String value=EmptyString,
2166 Point pos=DefaultPosition, Size size=DefaultSize,
2167 long style=SP_ARROW_KEYS, int min=0, int max=100,
2168 int initial=0, String name=SpinCtrlNameStr) -> bool
2170 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2172 def GetValue(*args
, **kwargs
):
2173 """GetValue(self) -> int"""
2174 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2176 def SetValue(*args
, **kwargs
):
2177 """SetValue(self, int value)"""
2178 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2180 def SetValueString(*args
, **kwargs
):
2181 """SetValueString(self, String text)"""
2182 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2184 def SetRange(*args
, **kwargs
):
2185 """SetRange(self, int minVal, int maxVal)"""
2186 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2188 def GetMin(*args
, **kwargs
):
2189 """GetMin(self) -> int"""
2190 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2192 def GetMax(*args
, **kwargs
):
2193 """GetMax(self) -> int"""
2194 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2196 def SetSelection(*args
, **kwargs
):
2197 """SetSelection(self, long from, long to)"""
2198 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2200 def GetClassDefaultAttributes(*args
, **kwargs
):
2202 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2204 Get the default attributes for this class. This is useful if you want
2205 to use the same font or colour in your own control as in a standard
2206 control -- which is a much better idea than hard coding specific
2207 colours or fonts which might look completely out of place on the
2208 user's system, especially if it uses themes.
2210 The variant parameter is only relevant under Mac currently and is
2211 ignore under other platforms. Under Mac, it will change the size of
2212 the returned font. See `wx.Window.SetWindowVariant` for more about
2215 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2217 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2218 SpinCtrl_swigregister
= _controls_
.SpinCtrl_swigregister
2219 SpinCtrl_swigregister(SpinCtrl
)
2221 def PreSpinCtrl(*args
, **kwargs
):
2222 """PreSpinCtrl() -> SpinCtrl"""
2223 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2226 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2228 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2230 Get the default attributes for this class. This is useful if you want
2231 to use the same font or colour in your own control as in a standard
2232 control -- which is a much better idea than hard coding specific
2233 colours or fonts which might look completely out of place on the
2234 user's system, especially if it uses themes.
2236 The variant parameter is only relevant under Mac currently and is
2237 ignore under other platforms. Under Mac, it will change the size of
2238 the returned font. See `wx.Window.SetWindowVariant` for more about
2241 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2243 class SpinEvent(_core
.NotifyEvent
):
2244 """Proxy of C++ SpinEvent class"""
2245 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2246 __repr__
= _swig_repr
2247 def __init__(self
, *args
, **kwargs
):
2248 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2249 _controls_
.SpinEvent_swiginit(self
,_controls_
.new_SpinEvent(*args
, **kwargs
))
2250 def GetPosition(*args
, **kwargs
):
2251 """GetPosition(self) -> int"""
2252 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2254 def SetPosition(*args
, **kwargs
):
2255 """SetPosition(self, int pos)"""
2256 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2258 SpinEvent_swigregister
= _controls_
.SpinEvent_swigregister
2259 SpinEvent_swigregister(SpinEvent
)
2261 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2262 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2263 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2264 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2265 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2267 #---------------------------------------------------------------------------
2269 class RadioBox(_core
.Control
):
2270 """Proxy of C++ RadioBox class"""
2271 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2272 __repr__
= _swig_repr
2273 def __init__(self
, *args
, **kwargs
):
2275 __init__(self, Window parent, int id=-1, String label=EmptyString,
2276 Point pos=DefaultPosition, Size size=DefaultSize,
2277 wxArrayString choices=wxPyEmptyStringArray,
2278 int majorDimension=0, long style=RA_HORIZONTAL,
2279 Validator validator=DefaultValidator,
2280 String name=RadioBoxNameStr) -> RadioBox
2282 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2283 _controls_
.RadioBox_swiginit(self
,_controls_
.new_RadioBox(*args
, **kwargs
))
2284 self
._setOORInfo
(self
)
2286 def Create(*args
, **kwargs
):
2288 Create(self, Window parent, int id=-1, String label=EmptyString,
2289 Point pos=DefaultPosition, Size size=DefaultSize,
2290 wxArrayString choices=wxPyEmptyStringArray,
2291 int majorDimension=0, long style=RA_HORIZONTAL,
2292 Validator validator=DefaultValidator,
2293 String name=RadioBoxNameStr) -> bool
2295 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2297 def SetSelection(*args
, **kwargs
):
2298 """SetSelection(self, int n)"""
2299 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2301 def GetSelection(*args
, **kwargs
):
2302 """GetSelection(self) -> int"""
2303 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2305 def GetStringSelection(*args
, **kwargs
):
2306 """GetStringSelection(self) -> String"""
2307 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2309 def SetStringSelection(*args
, **kwargs
):
2310 """SetStringSelection(self, String s) -> bool"""
2311 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2313 def GetCount(*args
, **kwargs
):
2314 """GetCount(self) -> size_t"""
2315 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2317 def FindString(*args
, **kwargs
):
2318 """FindString(self, String s) -> int"""
2319 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2321 def GetString(*args
, **kwargs
):
2322 """GetString(self, int n) -> String"""
2323 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2325 def SetString(*args
, **kwargs
):
2326 """SetString(self, int n, String label)"""
2327 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2329 GetItemLabel
= GetString
2330 SetItemLabel
= SetString
2331 def EnableItem(*args
, **kwargs
):
2332 """EnableItem(self, int n, bool enable=True)"""
2333 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2335 def ShowItem(*args
, **kwargs
):
2336 """ShowItem(self, int n, bool show=True)"""
2337 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2339 def GetColumnCount(*args
, **kwargs
):
2340 """GetColumnCount(self) -> int"""
2341 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2343 def GetRowCount(*args
, **kwargs
):
2344 """GetRowCount(self) -> int"""
2345 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2347 def GetNextItem(*args
, **kwargs
):
2348 """GetNextItem(self, int item, int dir, long style) -> int"""
2349 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2351 def GetClassDefaultAttributes(*args
, **kwargs
):
2353 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2355 Get the default attributes for this class. This is useful if you want
2356 to use the same font or colour in your own control as in a standard
2357 control -- which is a much better idea than hard coding specific
2358 colours or fonts which might look completely out of place on the
2359 user's system, especially if it uses themes.
2361 The variant parameter is only relevant under Mac currently and is
2362 ignore under other platforms. Under Mac, it will change the size of
2363 the returned font. See `wx.Window.SetWindowVariant` for more about
2366 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2368 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2369 RadioBox_swigregister
= _controls_
.RadioBox_swigregister
2370 RadioBox_swigregister(RadioBox
)
2371 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2372 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2374 def PreRadioBox(*args
, **kwargs
):
2375 """PreRadioBox() -> RadioBox"""
2376 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2379 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2381 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2383 Get the default attributes for this class. This is useful if you want
2384 to use the same font or colour in your own control as in a standard
2385 control -- which is a much better idea than hard coding specific
2386 colours or fonts which might look completely out of place on the
2387 user's system, especially if it uses themes.
2389 The variant parameter is only relevant under Mac currently and is
2390 ignore under other platforms. Under Mac, it will change the size of
2391 the returned font. See `wx.Window.SetWindowVariant` for more about
2394 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2396 #---------------------------------------------------------------------------
2398 class RadioButton(_core
.Control
):
2399 """Proxy of C++ RadioButton class"""
2400 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2401 __repr__
= _swig_repr
2402 def __init__(self
, *args
, **kwargs
):
2404 __init__(self, Window parent, int id=-1, String label=EmptyString,
2405 Point pos=DefaultPosition, Size size=DefaultSize,
2406 long style=0, Validator validator=DefaultValidator,
2407 String name=RadioButtonNameStr) -> RadioButton
2409 _controls_
.RadioButton_swiginit(self
,_controls_
.new_RadioButton(*args
, **kwargs
))
2410 self
._setOORInfo
(self
)
2412 def Create(*args
, **kwargs
):
2414 Create(self, Window parent, int id=-1, String label=EmptyString,
2415 Point pos=DefaultPosition, Size size=DefaultSize,
2416 long style=0, Validator validator=DefaultValidator,
2417 String name=RadioButtonNameStr) -> bool
2419 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2421 def GetValue(*args
, **kwargs
):
2422 """GetValue(self) -> bool"""
2423 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2425 def SetValue(*args
, **kwargs
):
2426 """SetValue(self, bool value)"""
2427 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2429 def GetClassDefaultAttributes(*args
, **kwargs
):
2431 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2433 Get the default attributes for this class. This is useful if you want
2434 to use the same font or colour in your own control as in a standard
2435 control -- which is a much better idea than hard coding specific
2436 colours or fonts which might look completely out of place on the
2437 user's system, especially if it uses themes.
2439 The variant parameter is only relevant under Mac currently and is
2440 ignore under other platforms. Under Mac, it will change the size of
2441 the returned font. See `wx.Window.SetWindowVariant` for more about
2444 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2446 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2447 RadioButton_swigregister
= _controls_
.RadioButton_swigregister
2448 RadioButton_swigregister(RadioButton
)
2450 def PreRadioButton(*args
, **kwargs
):
2451 """PreRadioButton() -> RadioButton"""
2452 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2455 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2457 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2459 Get the default attributes for this class. This is useful if you want
2460 to use the same font or colour in your own control as in a standard
2461 control -- which is a much better idea than hard coding specific
2462 colours or fonts which might look completely out of place on the
2463 user's system, especially if it uses themes.
2465 The variant parameter is only relevant under Mac currently and is
2466 ignore under other platforms. Under Mac, it will change the size of
2467 the returned font. See `wx.Window.SetWindowVariant` for more about
2470 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2472 #---------------------------------------------------------------------------
2474 SL_HORIZONTAL
= _controls_
.SL_HORIZONTAL
2475 SL_VERTICAL
= _controls_
.SL_VERTICAL
2476 SL_TICKS
= _controls_
.SL_TICKS
2477 SL_AUTOTICKS
= _controls_
.SL_AUTOTICKS
2478 SL_LABELS
= _controls_
.SL_LABELS
2479 SL_LEFT
= _controls_
.SL_LEFT
2480 SL_TOP
= _controls_
.SL_TOP
2481 SL_RIGHT
= _controls_
.SL_RIGHT
2482 SL_BOTTOM
= _controls_
.SL_BOTTOM
2483 SL_BOTH
= _controls_
.SL_BOTH
2484 SL_SELRANGE
= _controls_
.SL_SELRANGE
2485 SL_INVERSE
= _controls_
.SL_INVERSE
2486 class Slider(_core
.Control
):
2487 """Proxy of C++ Slider class"""
2488 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2489 __repr__
= _swig_repr
2490 def __init__(self
, *args
, **kwargs
):
2492 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2493 int maxValue=100, Point pos=DefaultPosition,
2494 Size size=DefaultSize, long style=SL_HORIZONTAL,
2495 Validator validator=DefaultValidator,
2496 String name=SliderNameStr) -> Slider
2498 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2499 _controls_
.Slider_swiginit(self
,_controls_
.new_Slider(*args
, **kwargs
))
2500 self
._setOORInfo
(self
)
2502 def Create(*args
, **kwargs
):
2504 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2505 int maxValue=100, Point pos=DefaultPosition,
2506 Size size=DefaultSize, long style=SL_HORIZONTAL,
2507 Validator validator=DefaultValidator,
2508 String name=SliderNameStr) -> bool
2510 return _controls_
.Slider_Create(*args
, **kwargs
)
2512 def GetValue(*args
, **kwargs
):
2513 """GetValue(self) -> int"""
2514 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2516 def SetValue(*args
, **kwargs
):
2517 """SetValue(self, int value)"""
2518 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2520 def SetRange(*args
, **kwargs
):
2521 """SetRange(self, int minValue, int maxValue)"""
2522 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2524 def GetMin(*args
, **kwargs
):
2525 """GetMin(self) -> int"""
2526 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2528 def GetMax(*args
, **kwargs
):
2529 """GetMax(self) -> int"""
2530 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2532 def SetMin(*args
, **kwargs
):
2533 """SetMin(self, int minValue)"""
2534 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2536 def SetMax(*args
, **kwargs
):
2537 """SetMax(self, int maxValue)"""
2538 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2540 def SetLineSize(*args
, **kwargs
):
2541 """SetLineSize(self, int lineSize)"""
2542 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2544 def SetPageSize(*args
, **kwargs
):
2545 """SetPageSize(self, int pageSize)"""
2546 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2548 def GetLineSize(*args
, **kwargs
):
2549 """GetLineSize(self) -> int"""
2550 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2552 def GetPageSize(*args
, **kwargs
):
2553 """GetPageSize(self) -> int"""
2554 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2556 def SetThumbLength(*args
, **kwargs
):
2557 """SetThumbLength(self, int lenPixels)"""
2558 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2560 def GetThumbLength(*args
, **kwargs
):
2561 """GetThumbLength(self) -> int"""
2562 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2564 def SetTickFreq(*args
, **kwargs
):
2565 """SetTickFreq(self, int n, int pos=1)"""
2566 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2568 def GetTickFreq(*args
, **kwargs
):
2569 """GetTickFreq(self) -> int"""
2570 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2572 def ClearTicks(*args
, **kwargs
):
2573 """ClearTicks(self)"""
2574 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2576 def SetTick(*args
, **kwargs
):
2577 """SetTick(self, int tickPos)"""
2578 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2580 def ClearSel(*args
, **kwargs
):
2581 """ClearSel(self)"""
2582 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2584 def GetSelEnd(*args
, **kwargs
):
2585 """GetSelEnd(self) -> int"""
2586 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2588 def GetSelStart(*args
, **kwargs
):
2589 """GetSelStart(self) -> int"""
2590 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2592 def SetSelection(*args
, **kwargs
):
2593 """SetSelection(self, int min, int max)"""
2594 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2596 def GetClassDefaultAttributes(*args
, **kwargs
):
2598 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2600 Get the default attributes for this class. This is useful if you want
2601 to use the same font or colour in your own control as in a standard
2602 control -- which is a much better idea than hard coding specific
2603 colours or fonts which might look completely out of place on the
2604 user's system, especially if it uses themes.
2606 The variant parameter is only relevant under Mac currently and is
2607 ignore under other platforms. Under Mac, it will change the size of
2608 the returned font. See `wx.Window.SetWindowVariant` for more about
2611 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2613 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2614 Slider_swigregister
= _controls_
.Slider_swigregister
2615 Slider_swigregister(Slider
)
2616 SliderNameStr
= cvar
.SliderNameStr
2618 def PreSlider(*args
, **kwargs
):
2619 """PreSlider() -> Slider"""
2620 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2623 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2625 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2627 Get the default attributes for this class. This is useful if you want
2628 to use the same font or colour in your own control as in a standard
2629 control -- which is a much better idea than hard coding specific
2630 colours or fonts which might look completely out of place on the
2631 user's system, especially if it uses themes.
2633 The variant parameter is only relevant under Mac currently and is
2634 ignore under other platforms. Under Mac, it will change the size of
2635 the returned font. See `wx.Window.SetWindowVariant` for more about
2638 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2640 #---------------------------------------------------------------------------
2642 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2643 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2645 class ToggleButton(_core
.Control
):
2646 """Proxy of C++ ToggleButton class"""
2647 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2648 __repr__
= _swig_repr
2649 def __init__(self
, *args
, **kwargs
):
2651 __init__(self, Window parent, int id=-1, String label=EmptyString,
2652 Point pos=DefaultPosition, Size size=DefaultSize,
2653 long style=0, Validator validator=DefaultValidator,
2654 String name=ToggleButtonNameStr) -> ToggleButton
2656 _controls_
.ToggleButton_swiginit(self
,_controls_
.new_ToggleButton(*args
, **kwargs
))
2657 self
._setOORInfo
(self
)
2659 def Create(*args
, **kwargs
):
2661 Create(self, Window parent, int id=-1, String label=EmptyString,
2662 Point pos=DefaultPosition, Size size=DefaultSize,
2663 long style=0, Validator validator=DefaultValidator,
2664 String name=ToggleButtonNameStr) -> bool
2666 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2668 def SetValue(*args
, **kwargs
):
2669 """SetValue(self, bool value)"""
2670 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2672 def GetValue(*args
, **kwargs
):
2673 """GetValue(self) -> bool"""
2674 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2676 def GetClassDefaultAttributes(*args
, **kwargs
):
2678 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2680 Get the default attributes for this class. This is useful if you want
2681 to use the same font or colour in your own control as in a standard
2682 control -- which is a much better idea than hard coding specific
2683 colours or fonts which might look completely out of place on the
2684 user's system, especially if it uses themes.
2686 The variant parameter is only relevant under Mac currently and is
2687 ignore under other platforms. Under Mac, it will change the size of
2688 the returned font. See `wx.Window.SetWindowVariant` for more about
2691 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2693 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2694 ToggleButton_swigregister
= _controls_
.ToggleButton_swigregister
2695 ToggleButton_swigregister(ToggleButton
)
2696 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2698 def PreToggleButton(*args
, **kwargs
):
2699 """PreToggleButton() -> ToggleButton"""
2700 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2703 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2705 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2707 Get the default attributes for this class. This is useful if you want
2708 to use the same font or colour in your own control as in a standard
2709 control -- which is a much better idea than hard coding specific
2710 colours or fonts which might look completely out of place on the
2711 user's system, especially if it uses themes.
2713 The variant parameter is only relevant under Mac currently and is
2714 ignore under other platforms. Under Mac, it will change the size of
2715 the returned font. See `wx.Window.SetWindowVariant` for more about
2718 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2720 #---------------------------------------------------------------------------
2722 BK_DEFAULT
= _controls_
.BK_DEFAULT
2723 BK_TOP
= _controls_
.BK_TOP
2724 BK_BOTTOM
= _controls_
.BK_BOTTOM
2725 BK_LEFT
= _controls_
.BK_LEFT
2726 BK_RIGHT
= _controls_
.BK_RIGHT
2727 BK_ALIGN_MASK
= _controls_
.BK_ALIGN_MASK
2728 class BookCtrlBase(_core
.Control
):
2729 """Proxy of C++ BookCtrlBase class"""
2730 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2731 def __init__(self
): raise AttributeError, "No constructor defined"
2732 __repr__
= _swig_repr
2733 def GetPageCount(*args
, **kwargs
):
2734 """GetPageCount(self) -> size_t"""
2735 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2737 def GetPage(*args
, **kwargs
):
2738 """GetPage(self, size_t n) -> Window"""
2739 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2741 def GetCurrentPage(*args
, **kwargs
):
2742 """GetCurrentPage(self) -> Window"""
2743 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2745 def GetSelection(*args
, **kwargs
):
2746 """GetSelection(self) -> int"""
2747 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2749 def SetPageText(*args
, **kwargs
):
2750 """SetPageText(self, size_t n, String strText) -> bool"""
2751 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2753 def GetPageText(*args
, **kwargs
):
2754 """GetPageText(self, size_t n) -> String"""
2755 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2757 def SetImageList(*args
, **kwargs
):
2758 """SetImageList(self, ImageList imageList)"""
2759 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2761 def AssignImageList(*args
, **kwargs
):
2762 """AssignImageList(self, ImageList imageList)"""
2763 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2765 def GetImageList(*args
, **kwargs
):
2766 """GetImageList(self) -> ImageList"""
2767 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2769 def GetPageImage(*args
, **kwargs
):
2770 """GetPageImage(self, size_t n) -> int"""
2771 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2773 def SetPageImage(*args
, **kwargs
):
2774 """SetPageImage(self, size_t n, int imageId) -> bool"""
2775 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2777 def SetPageSize(*args
, **kwargs
):
2778 """SetPageSize(self, Size size)"""
2779 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2781 def CalcSizeFromPage(*args
, **kwargs
):
2782 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2783 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2785 def GetInternalBorder(*args
, **kwargs
):
2786 """GetInternalBorder(self) -> size_t"""
2787 return _controls_
.BookCtrlBase_GetInternalBorder(*args
, **kwargs
)
2789 def SetInternalBorder(*args
, **kwargs
):
2790 """SetInternalBorder(self, size_t internalBorder)"""
2791 return _controls_
.BookCtrlBase_SetInternalBorder(*args
, **kwargs
)
2793 def IsVertical(*args
, **kwargs
):
2794 """IsVertical(self) -> bool"""
2795 return _controls_
.BookCtrlBase_IsVertical(*args
, **kwargs
)
2797 def SetFitToCurrentPage(*args
, **kwargs
):
2798 """SetFitToCurrentPage(self, bool fit)"""
2799 return _controls_
.BookCtrlBase_SetFitToCurrentPage(*args
, **kwargs
)
2801 def GetFitToCurrentPage(*args
, **kwargs
):
2802 """GetFitToCurrentPage(self) -> bool"""
2803 return _controls_
.BookCtrlBase_GetFitToCurrentPage(*args
, **kwargs
)
2805 def DeletePage(*args
, **kwargs
):
2806 """DeletePage(self, size_t n) -> bool"""
2807 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2809 def RemovePage(*args
, **kwargs
):
2810 """RemovePage(self, size_t n) -> bool"""
2811 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
2813 def DeleteAllPages(*args
, **kwargs
):
2814 """DeleteAllPages(self) -> bool"""
2815 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
2817 def AddPage(*args
, **kwargs
):
2818 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2819 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
2821 def InsertPage(*args
, **kwargs
):
2823 InsertPage(self, size_t n, Window page, String text, bool select=False,
2824 int imageId=-1) -> bool
2826 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
2828 def SetSelection(*args
, **kwargs
):
2829 """SetSelection(self, size_t n) -> int"""
2830 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
2832 def AdvanceSelection(*args
, **kwargs
):
2833 """AdvanceSelection(self, bool forward=True)"""
2834 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
2836 def GetClassDefaultAttributes(*args
, **kwargs
):
2838 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2840 Get the default attributes for this class. This is useful if you want
2841 to use the same font or colour in your own control as in a standard
2842 control -- which is a much better idea than hard coding specific
2843 colours or fonts which might look completely out of place on the
2844 user's system, especially if it uses themes.
2846 The variant parameter is only relevant under Mac currently and is
2847 ignore under other platforms. Under Mac, it will change the size of
2848 the returned font. See `wx.Window.SetWindowVariant` for more about
2851 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2853 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2854 BookCtrlBase_swigregister
= _controls_
.BookCtrlBase_swigregister
2855 BookCtrlBase_swigregister(BookCtrlBase
)
2856 NotebookNameStr
= cvar
.NotebookNameStr
2858 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
2860 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2862 Get the default attributes for this class. This is useful if you want
2863 to use the same font or colour in your own control as in a standard
2864 control -- which is a much better idea than hard coding specific
2865 colours or fonts which might look completely out of place on the
2866 user's system, especially if it uses themes.
2868 The variant parameter is only relevant under Mac currently and is
2869 ignore under other platforms. Under Mac, it will change the size of
2870 the returned font. See `wx.Window.SetWindowVariant` for more about
2873 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2875 class BookCtrlBaseEvent(_core
.NotifyEvent
):
2876 """Proxy of C++ BookCtrlBaseEvent class"""
2877 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2878 __repr__
= _swig_repr
2879 def __init__(self
, *args
, **kwargs
):
2881 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2882 int nOldSel=-1) -> BookCtrlBaseEvent
2884 _controls_
.BookCtrlBaseEvent_swiginit(self
,_controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
))
2885 def GetSelection(*args
, **kwargs
):
2887 GetSelection(self) -> int
2889 Returns item index for a listbox or choice selection event (not valid
2892 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
2894 def SetSelection(*args
, **kwargs
):
2895 """SetSelection(self, int nSel)"""
2896 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
2898 def GetOldSelection(*args
, **kwargs
):
2899 """GetOldSelection(self) -> int"""
2900 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
2902 def SetOldSelection(*args
, **kwargs
):
2903 """SetOldSelection(self, int nOldSel)"""
2904 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
2906 BookCtrlBaseEvent_swigregister
= _controls_
.BookCtrlBaseEvent_swigregister
2907 BookCtrlBaseEvent_swigregister(BookCtrlBaseEvent
)
2909 #---------------------------------------------------------------------------
2911 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2912 NB_TOP
= _controls_
.NB_TOP
2913 NB_LEFT
= _controls_
.NB_LEFT
2914 NB_RIGHT
= _controls_
.NB_RIGHT
2915 NB_BOTTOM
= _controls_
.NB_BOTTOM
2916 NB_MULTILINE
= _controls_
.NB_MULTILINE
2917 NB_NOPAGETHEME
= _controls_
.NB_NOPAGETHEME
2918 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2919 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2920 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2921 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2922 class Notebook(BookCtrlBase
):
2923 """Proxy of C++ Notebook class"""
2924 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2925 __repr__
= _swig_repr
2926 def __init__(self
, *args
, **kwargs
):
2928 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2929 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
2931 _controls_
.Notebook_swiginit(self
,_controls_
.new_Notebook(*args
, **kwargs
))
2932 self
._setOORInfo
(self
)
2934 def Create(*args
, **kwargs
):
2936 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2937 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
2939 return _controls_
.Notebook_Create(*args
, **kwargs
)
2941 def GetRowCount(*args
, **kwargs
):
2942 """GetRowCount(self) -> int"""
2943 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2945 def SetPadding(*args
, **kwargs
):
2946 """SetPadding(self, Size padding)"""
2947 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2949 def SetTabSize(*args
, **kwargs
):
2950 """SetTabSize(self, Size sz)"""
2951 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
2953 def HitTest(*args
, **kwargs
):
2955 HitTest(Point pt) -> (tab, where)
2957 Returns the tab which is hit, and flags indicating where using
2958 wx.NB_HITTEST flags.
2960 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
2962 def GetThemeBackgroundColour(*args
, **kwargs
):
2963 """GetThemeBackgroundColour(self) -> Colour"""
2964 return _controls_
.Notebook_GetThemeBackgroundColour(*args
, **kwargs
)
2966 def GetClassDefaultAttributes(*args
, **kwargs
):
2968 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2970 Get the default attributes for this class. This is useful if you want
2971 to use the same font or colour in your own control as in a standard
2972 control -- which is a much better idea than hard coding specific
2973 colours or fonts which might look completely out of place on the
2974 user's system, especially if it uses themes.
2976 The variant parameter is only relevant under Mac currently and is
2977 ignore under other platforms. Under Mac, it will change the size of
2978 the returned font. See `wx.Window.SetWindowVariant` for more about
2981 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
2983 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2984 Notebook_swigregister
= _controls_
.Notebook_swigregister
2985 Notebook_swigregister(Notebook
)
2987 def PreNotebook(*args
, **kwargs
):
2988 """PreNotebook() -> Notebook"""
2989 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
2992 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
2994 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2996 Get the default attributes for this class. This is useful if you want
2997 to use the same font or colour in your own control as in a standard
2998 control -- which is a much better idea than hard coding specific
2999 colours or fonts which might look completely out of place on the
3000 user's system, especially if it uses themes.
3002 The variant parameter is only relevant under Mac currently and is
3003 ignore under other platforms. Under Mac, it will change the size of
3004 the returned font. See `wx.Window.SetWindowVariant` for more about
3007 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3009 class NotebookEvent(BookCtrlBaseEvent
):
3010 """Proxy of C++ NotebookEvent class"""
3011 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3012 __repr__
= _swig_repr
3013 def __init__(self
, *args
, **kwargs
):
3015 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3016 int nOldSel=-1) -> NotebookEvent
3018 _controls_
.NotebookEvent_swiginit(self
,_controls_
.new_NotebookEvent(*args
, **kwargs
))
3019 NotebookEvent_swigregister
= _controls_
.NotebookEvent_swigregister
3020 NotebookEvent_swigregister(NotebookEvent
)
3022 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3023 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3025 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3026 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3028 #----------------------------------------------------------------------------
3030 class NotebookPage(wx
.Panel
):
3032 There is an old (and apparently unsolvable) bug when placing a
3033 window with a nonstandard background colour in a wx.Notebook on
3034 wxGTK1, as the notbooks's background colour would always be used
3035 when the window is refreshed. The solution is to place a panel in
3036 the notbook and the coloured window on the panel, sized to cover
3037 the panel. This simple class does that for you, just put an
3038 instance of this in the notebook and make your regular window a
3039 child of this one and it will handle the resize for you.
3041 def __init__(self
, parent
, id=-1,
3042 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3043 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3044 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3046 self
.Bind(wx
.EVT_SIZE
, self
.OnSize
)
3048 def OnSize(self
, evt
):
3049 if self
.child
is None:
3050 children
= self
.GetChildren()
3052 self
.child
= children
[0]
3054 self
.child
.SetPosition((0,0))
3055 self
.child
.SetSize(self
.GetSize())
3058 #---------------------------------------------------------------------------
3060 LB_DEFAULT
= _controls_
.LB_DEFAULT
3061 LB_TOP
= _controls_
.LB_TOP
3062 LB_BOTTOM
= _controls_
.LB_BOTTOM
3063 LB_LEFT
= _controls_
.LB_LEFT
3064 LB_RIGHT
= _controls_
.LB_RIGHT
3065 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3066 class Listbook(BookCtrlBase
):
3067 """Proxy of C++ Listbook class"""
3068 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3069 __repr__
= _swig_repr
3070 def __init__(self
, *args
, **kwargs
):
3072 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3073 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3075 _controls_
.Listbook_swiginit(self
,_controls_
.new_Listbook(*args
, **kwargs
))
3076 self
._setOORInfo
(self
)
3078 def Create(*args
, **kwargs
):
3080 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3081 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3083 return _controls_
.Listbook_Create(*args
, **kwargs
)
3085 def GetListView(*args
, **kwargs
):
3086 """GetListView(self) -> ListView"""
3087 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3089 Listbook_swigregister
= _controls_
.Listbook_swigregister
3090 Listbook_swigregister(Listbook
)
3092 def PreListbook(*args
, **kwargs
):
3093 """PreListbook() -> Listbook"""
3094 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3097 class ListbookEvent(BookCtrlBaseEvent
):
3098 """Proxy of C++ ListbookEvent class"""
3099 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3100 __repr__
= _swig_repr
3101 def __init__(self
, *args
, **kwargs
):
3103 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3104 int nOldSel=-1) -> ListbookEvent
3106 _controls_
.ListbookEvent_swiginit(self
,_controls_
.new_ListbookEvent(*args
, **kwargs
))
3107 ListbookEvent_swigregister
= _controls_
.ListbookEvent_swigregister
3108 ListbookEvent_swigregister(ListbookEvent
)
3110 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3111 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3112 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3113 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3115 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3116 CHB_TOP
= _controls_
.CHB_TOP
3117 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3118 CHB_LEFT
= _controls_
.CHB_LEFT
3119 CHB_RIGHT
= _controls_
.CHB_RIGHT
3120 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3121 class Choicebook(BookCtrlBase
):
3122 """Proxy of C++ Choicebook class"""
3123 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3124 __repr__
= _swig_repr
3125 def __init__(self
, *args
, **kwargs
):
3127 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3128 long style=0, String name=EmptyString) -> Choicebook
3130 _controls_
.Choicebook_swiginit(self
,_controls_
.new_Choicebook(*args
, **kwargs
))
3131 self
._setOORInfo
(self
)
3133 def Create(*args
, **kwargs
):
3135 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3136 long style=0, String name=EmptyString) -> bool
3138 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3140 def GetChoiceCtrl(*args
, **kwargs
):
3141 """GetChoiceCtrl(self) -> Choice"""
3142 return _controls_
.Choicebook_GetChoiceCtrl(*args
, **kwargs
)
3144 Choicebook_swigregister
= _controls_
.Choicebook_swigregister
3145 Choicebook_swigregister(Choicebook
)
3147 def PreChoicebook(*args
, **kwargs
):
3148 """PreChoicebook() -> Choicebook"""
3149 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3152 class ChoicebookEvent(BookCtrlBaseEvent
):
3153 """Proxy of C++ ChoicebookEvent class"""
3154 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3155 __repr__
= _swig_repr
3156 def __init__(self
, *args
, **kwargs
):
3158 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3159 int nOldSel=-1) -> ChoicebookEvent
3161 _controls_
.ChoicebookEvent_swiginit(self
,_controls_
.new_ChoicebookEvent(*args
, **kwargs
))
3162 ChoicebookEvent_swigregister
= _controls_
.ChoicebookEvent_swigregister
3163 ChoicebookEvent_swigregister(ChoicebookEvent
)
3165 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3166 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3167 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3168 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3170 #---------------------------------------------------------------------------
3172 class Treebook(BookCtrlBase
):
3173 """Proxy of C++ Treebook class"""
3174 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3175 __repr__
= _swig_repr
3176 def __init__(self
, *args
, **kwargs
):
3178 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3179 long style=BK_DEFAULT,
3180 String name=EmptyString) -> Treebook
3182 _controls_
.Treebook_swiginit(self
,_controls_
.new_Treebook(*args
, **kwargs
))
3183 self
._setOORInfo
(self
)
3185 def Create(*args
, **kwargs
):
3187 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3188 long style=BK_DEFAULT,
3189 String name=EmptyString) -> bool
3191 return _controls_
.Treebook_Create(*args
, **kwargs
)
3193 def InsertSubPage(*args
, **kwargs
):
3195 InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
3196 int imageId=NOT_FOUND) -> bool
3198 return _controls_
.Treebook_InsertSubPage(*args
, **kwargs
)
3200 def AddSubPage(*args
, **kwargs
):
3201 """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3202 return _controls_
.Treebook_AddSubPage(*args
, **kwargs
)
3204 def IsNodeExpanded(*args
, **kwargs
):
3205 """IsNodeExpanded(self, size_t pos) -> bool"""
3206 return _controls_
.Treebook_IsNodeExpanded(*args
, **kwargs
)
3208 def ExpandNode(*args
, **kwargs
):
3209 """ExpandNode(self, size_t pos, bool expand=True) -> bool"""
3210 return _controls_
.Treebook_ExpandNode(*args
, **kwargs
)
3212 def CollapseNode(*args
, **kwargs
):
3213 """CollapseNode(self, size_t pos) -> bool"""
3214 return _controls_
.Treebook_CollapseNode(*args
, **kwargs
)
3216 def GetPageParent(*args
, **kwargs
):
3217 """GetPageParent(self, size_t pos) -> int"""
3218 return _controls_
.Treebook_GetPageParent(*args
, **kwargs
)
3220 def GetTreeCtrl(*args
, **kwargs
):
3221 """GetTreeCtrl(self) -> wxTreeCtrl"""
3222 return _controls_
.Treebook_GetTreeCtrl(*args
, **kwargs
)
3224 Treebook_swigregister
= _controls_
.Treebook_swigregister
3225 Treebook_swigregister(Treebook
)
3227 def PreTreebook(*args
, **kwargs
):
3228 """PreTreebook() -> Treebook"""
3229 val
= _controls_
.new_PreTreebook(*args
, **kwargs
)
3232 class TreebookEvent(BookCtrlBaseEvent
):
3233 """Proxy of C++ TreebookEvent class"""
3234 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3235 __repr__
= _swig_repr
3236 def __init__(self
, *args
, **kwargs
):
3238 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3239 int nOldSel=NOT_FOUND) -> TreebookEvent
3241 _controls_
.TreebookEvent_swiginit(self
,_controls_
.new_TreebookEvent(*args
, **kwargs
))
3242 TreebookEvent_swigregister
= _controls_
.TreebookEvent_swigregister
3243 TreebookEvent_swigregister(TreebookEvent
)
3245 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
3246 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
3247 wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
3248 wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
3249 EVT_TREEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
, 1 )
3250 EVT_TREEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
, 1)
3251 EVT_TREEBOOK_NODE_COLLAPSED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
, 1 )
3252 EVT_TREEBOOK_NODE_EXPANDED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
, 1 )
3254 #---------------------------------------------------------------------------
3256 class Toolbook(BookCtrlBase
):
3257 """Proxy of C++ Toolbook class"""
3258 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3259 __repr__
= _swig_repr
3260 def __init__(self
, *args
, **kwargs
):
3262 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3263 long style=BK_DEFAULT,
3264 String name=EmptyString) -> Toolbook
3266 _controls_
.Toolbook_swiginit(self
,_controls_
.new_Toolbook(*args
, **kwargs
))
3267 self
._setOORInfo
(self
)
3269 def Create(*args
, **kwargs
):
3271 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3272 long style=0, String name=wxEmptyString) -> bool
3274 return _controls_
.Toolbook_Create(*args
, **kwargs
)
3276 def GetToolBar(*args
, **kwargs
):
3277 """GetToolBar(self) -> ToolBarBase"""
3278 return _controls_
.Toolbook_GetToolBar(*args
, **kwargs
)
3280 def Realize(*args
, **kwargs
):
3282 return _controls_
.Toolbook_Realize(*args
, **kwargs
)
3284 Toolbook_swigregister
= _controls_
.Toolbook_swigregister
3285 Toolbook_swigregister(Toolbook
)
3287 def PreToolbook(*args
, **kwargs
):
3288 """PreToolbook() -> Toolbook"""
3289 val
= _controls_
.new_PreToolbook(*args
, **kwargs
)
3292 class ToolbookEvent(BookCtrlBaseEvent
):
3293 """Proxy of C++ ToolbookEvent class"""
3294 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3295 __repr__
= _swig_repr
3296 def __init__(self
, *args
, **kwargs
):
3298 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3299 int nOldSel=NOT_FOUND) -> ToolbookEvent
3301 _controls_
.ToolbookEvent_swiginit(self
,_controls_
.new_ToolbookEvent(*args
, **kwargs
))
3302 ToolbookEvent_swigregister
= _controls_
.ToolbookEvent_swigregister
3303 ToolbookEvent_swigregister(ToolbookEvent
)
3305 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
3306 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
3307 EVT_TOOLBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
, 1)
3308 EVT_TOOLBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
, 1)
3310 #---------------------------------------------------------------------------
3312 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3313 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3314 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3315 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3316 TB_VERTICAL
= _controls_
.TB_VERTICAL
3317 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3318 TB_FLAT
= _controls_
.TB_FLAT
3319 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3320 TB_NOICONS
= _controls_
.TB_NOICONS
3321 TB_TEXT
= _controls_
.TB_TEXT
3322 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3323 TB_NOALIGN
= _controls_
.TB_NOALIGN
3324 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3325 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3326 class ToolBarToolBase(_core
.Object
):
3327 """Proxy of C++ ToolBarToolBase class"""
3328 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3329 def __init__(self
): raise AttributeError, "No constructor defined"
3330 __repr__
= _swig_repr
3331 def GetId(*args
, **kwargs
):
3332 """GetId(self) -> int"""
3333 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3335 def GetControl(*args
, **kwargs
):
3336 """GetControl(self) -> Control"""
3337 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3339 def GetToolBar(*args
, **kwargs
):
3340 """GetToolBar(self) -> ToolBarBase"""
3341 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3343 def IsButton(*args
, **kwargs
):
3344 """IsButton(self) -> int"""
3345 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3347 def IsControl(*args
, **kwargs
):
3348 """IsControl(self) -> int"""
3349 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3351 def IsSeparator(*args
, **kwargs
):
3352 """IsSeparator(self) -> int"""
3353 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3355 def GetStyle(*args
, **kwargs
):
3356 """GetStyle(self) -> int"""
3357 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3359 def GetKind(*args
, **kwargs
):
3360 """GetKind(self) -> int"""
3361 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3363 def IsEnabled(*args
, **kwargs
):
3364 """IsEnabled(self) -> bool"""
3365 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3367 def IsToggled(*args
, **kwargs
):
3368 """IsToggled(self) -> bool"""
3369 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3371 def CanBeToggled(*args
, **kwargs
):
3372 """CanBeToggled(self) -> bool"""
3373 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3375 def GetNormalBitmap(*args
, **kwargs
):
3376 """GetNormalBitmap(self) -> Bitmap"""
3377 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3379 def GetDisabledBitmap(*args
, **kwargs
):
3380 """GetDisabledBitmap(self) -> Bitmap"""
3381 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3383 def GetBitmap(*args
, **kwargs
):
3384 """GetBitmap(self) -> Bitmap"""
3385 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3387 def GetLabel(*args
, **kwargs
):
3388 """GetLabel(self) -> String"""
3389 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3391 def GetShortHelp(*args
, **kwargs
):
3392 """GetShortHelp(self) -> String"""
3393 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3395 def GetLongHelp(*args
, **kwargs
):
3396 """GetLongHelp(self) -> String"""
3397 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3399 def Enable(*args
, **kwargs
):
3400 """Enable(self, bool enable) -> bool"""
3401 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3403 def Toggle(*args
, **kwargs
):
3405 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3407 def SetToggle(*args
, **kwargs
):
3408 """SetToggle(self, bool toggle) -> bool"""
3409 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3411 def SetShortHelp(*args
, **kwargs
):
3412 """SetShortHelp(self, String help) -> bool"""
3413 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3415 def SetLongHelp(*args
, **kwargs
):
3416 """SetLongHelp(self, String help) -> bool"""
3417 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3419 def SetNormalBitmap(*args
, **kwargs
):
3420 """SetNormalBitmap(self, Bitmap bmp)"""
3421 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3423 def SetDisabledBitmap(*args
, **kwargs
):
3424 """SetDisabledBitmap(self, Bitmap bmp)"""
3425 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3427 def SetLabel(*args
, **kwargs
):
3428 """SetLabel(self, String label)"""
3429 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3431 def Detach(*args
, **kwargs
):
3433 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3435 def Attach(*args
, **kwargs
):
3436 """Attach(self, ToolBarBase tbar)"""
3437 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3439 def GetClientData(*args
, **kwargs
):
3440 """GetClientData(self) -> PyObject"""
3441 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3443 def SetClientData(*args
, **kwargs
):
3444 """SetClientData(self, PyObject clientData)"""
3445 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3447 GetBitmap1
= GetNormalBitmap
3448 GetBitmap2
= GetDisabledBitmap
3449 SetBitmap1
= SetNormalBitmap
3450 SetBitmap2
= SetDisabledBitmap
3452 ToolBarToolBase_swigregister
= _controls_
.ToolBarToolBase_swigregister
3453 ToolBarToolBase_swigregister(ToolBarToolBase
)
3455 class ToolBarBase(_core
.Control
):
3456 """Proxy of C++ ToolBarBase class"""
3457 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3458 def __init__(self
): raise AttributeError, "No constructor defined"
3459 __repr__
= _swig_repr
3460 def DoAddTool(*args
, **kwargs
):
3462 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3463 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3464 String longHelp=EmptyString,
3465 PyObject clientData=None) -> ToolBarToolBase
3467 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3469 def DoInsertTool(*args
, **kwargs
):
3471 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3472 int kind=ITEM_NORMAL,
3473 String shortHelp=EmptyString, String longHelp=EmptyString,
3474 PyObject clientData=None) -> ToolBarToolBase
3476 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3478 # These match the original Add methods for this class, kept for
3479 # backwards compatibility with versions < 2.3.3.
3482 def AddTool(self
, id, bitmap
,
3483 pushedBitmap
= wx
.NullBitmap
,
3486 shortHelpString
= '',
3487 longHelpString
= '') :
3488 '''Old style method to add a tool to the toolbar.'''
3489 kind
= wx
.ITEM_NORMAL
3490 if isToggle
: kind
= wx
.ITEM_CHECK
3491 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3492 shortHelpString
, longHelpString
, clientData
)
3494 def AddSimpleTool(self
, id, bitmap
,
3495 shortHelpString
= '',
3496 longHelpString
= '',
3498 '''Old style method to add a tool to the toolbar.'''
3499 kind
= wx
.ITEM_NORMAL
3500 if isToggle
: kind
= wx
.ITEM_CHECK
3501 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3502 shortHelpString
, longHelpString
, None)
3504 def InsertTool(self
, pos
, id, bitmap
,
3505 pushedBitmap
= wx
.NullBitmap
,
3508 shortHelpString
= '',
3509 longHelpString
= ''):
3510 '''Old style method to insert a tool in the toolbar.'''
3511 kind
= wx
.ITEM_NORMAL
3512 if isToggle
: kind
= wx
.ITEM_CHECK
3513 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3514 shortHelpString
, longHelpString
, clientData
)
3516 def InsertSimpleTool(self
, pos
, id, bitmap
,
3517 shortHelpString
= '',
3518 longHelpString
= '',
3520 '''Old style method to insert a tool in the toolbar.'''
3521 kind
= wx
.ITEM_NORMAL
3522 if isToggle
: kind
= wx
.ITEM_CHECK
3523 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3524 shortHelpString
, longHelpString
, None)
3527 # The following are the new toolbar Add methods starting with
3528 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3529 # able to keep backwards compatibility with using the above
3530 # methods. Eventually these should migrate to be the methods used
3531 # primarily and lose the 'Label' in the name...
3533 def AddLabelTool(self
, id, label
, bitmap
,
3534 bmpDisabled
= wx
.NullBitmap
,
3535 kind
= wx
.ITEM_NORMAL
,
3536 shortHelp
= '', longHelp
= '',
3539 The full AddTool() function.
3541 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3542 is created and used as the disabled image.
3544 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3545 shortHelp
, longHelp
, clientData
)
3548 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3549 bmpDisabled
= wx
.NullBitmap
,
3550 kind
= wx
.ITEM_NORMAL
,
3551 shortHelp
= '', longHelp
= '',
3554 Insert the new tool at the given position, if pos == GetToolsCount(), it
3555 is equivalent to AddTool()
3557 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3558 shortHelp
, longHelp
, clientData
)
3560 def AddCheckLabelTool(self
, id, label
, bitmap
,
3561 bmpDisabled
= wx
.NullBitmap
,
3562 shortHelp
= '', longHelp
= '',
3564 '''Add a check tool, i.e. a tool which can be toggled'''
3565 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3566 shortHelp
, longHelp
, clientData
)
3568 def AddRadioLabelTool(self
, id, label
, bitmap
,
3569 bmpDisabled
= wx
.NullBitmap
,
3570 shortHelp
= '', longHelp
= '',
3573 Add a radio tool, i.e. a tool which can be toggled and releases any
3574 other toggled radio tools in the same group when it happens
3576 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3577 shortHelp
, longHelp
, clientData
)
3580 # For consistency with the backwards compatible methods above, here are
3581 # some non-'Label' versions of the Check and Radio methods
3583 def AddCheckTool(self
, id, bitmap
,
3584 bmpDisabled
= wx
.NullBitmap
,
3585 shortHelp
= '', longHelp
= '',
3587 '''Add a check tool, i.e. a tool which can be toggled'''
3588 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3589 shortHelp
, longHelp
, clientData
)
3591 def AddRadioTool(self
, id, bitmap
,
3592 bmpDisabled
= wx
.NullBitmap
,
3593 shortHelp
= '', longHelp
= '',
3596 Add a radio tool, i.e. a tool which can be toggled and releases any
3597 other toggled radio tools in the same group when it happens
3599 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3600 shortHelp
, longHelp
, clientData
)
3602 def AddToolItem(*args
, **kwargs
):
3603 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3604 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3606 def InsertToolItem(*args
, **kwargs
):
3607 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3608 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3610 def AddControl(*args
, **kwargs
):
3611 """AddControl(self, Control control) -> ToolBarToolBase"""
3612 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3614 def InsertControl(*args
, **kwargs
):
3615 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3616 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3618 def FindControl(*args
, **kwargs
):
3619 """FindControl(self, int id) -> Control"""
3620 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3622 def AddSeparator(*args
, **kwargs
):
3623 """AddSeparator(self) -> ToolBarToolBase"""
3624 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3626 def InsertSeparator(*args
, **kwargs
):
3627 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3628 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3630 def RemoveTool(*args
, **kwargs
):
3631 """RemoveTool(self, int id) -> ToolBarToolBase"""
3632 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3634 def DeleteToolByPos(*args
, **kwargs
):
3635 """DeleteToolByPos(self, size_t pos) -> bool"""
3636 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3638 def DeleteTool(*args
, **kwargs
):
3639 """DeleteTool(self, int id) -> bool"""
3640 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3642 def ClearTools(*args
, **kwargs
):
3643 """ClearTools(self)"""
3644 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3646 def Realize(*args
, **kwargs
):
3647 """Realize(self) -> bool"""
3648 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3650 def EnableTool(*args
, **kwargs
):
3651 """EnableTool(self, int id, bool enable)"""
3652 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3654 def ToggleTool(*args
, **kwargs
):
3655 """ToggleTool(self, int id, bool toggle)"""
3656 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3658 def SetToggle(*args
, **kwargs
):
3659 """SetToggle(self, int id, bool toggle)"""
3660 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3662 def GetToolClientData(*args
, **kwargs
):
3663 """GetToolClientData(self, int id) -> PyObject"""
3664 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3666 def SetToolClientData(*args
, **kwargs
):
3667 """SetToolClientData(self, int id, PyObject clientData)"""
3668 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3670 def GetToolPos(*args
, **kwargs
):
3671 """GetToolPos(self, int id) -> int"""
3672 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3674 def GetToolState(*args
, **kwargs
):
3675 """GetToolState(self, int id) -> bool"""
3676 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3678 def GetToolEnabled(*args
, **kwargs
):
3679 """GetToolEnabled(self, int id) -> bool"""
3680 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3682 def SetToolShortHelp(*args
, **kwargs
):
3683 """SetToolShortHelp(self, int id, String helpString)"""
3684 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3686 def GetToolShortHelp(*args
, **kwargs
):
3687 """GetToolShortHelp(self, int id) -> String"""
3688 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3690 def SetToolLongHelp(*args
, **kwargs
):
3691 """SetToolLongHelp(self, int id, String helpString)"""
3692 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3694 def GetToolLongHelp(*args
, **kwargs
):
3695 """GetToolLongHelp(self, int id) -> String"""
3696 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3698 def SetMarginsXY(*args
, **kwargs
):
3699 """SetMarginsXY(self, int x, int y)"""
3700 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3702 def SetMargins(*args
, **kwargs
):
3703 """SetMargins(self, Size size)"""
3704 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3706 def SetToolPacking(*args
, **kwargs
):
3707 """SetToolPacking(self, int packing)"""
3708 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3710 def SetToolSeparation(*args
, **kwargs
):
3711 """SetToolSeparation(self, int separation)"""
3712 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3714 def GetToolMargins(*args
, **kwargs
):
3715 """GetToolMargins(self) -> Size"""
3716 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3718 def GetMargins(*args
, **kwargs
):
3719 """GetMargins(self) -> Size"""
3720 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3722 def GetToolPacking(*args
, **kwargs
):
3723 """GetToolPacking(self) -> int"""
3724 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3726 def GetToolSeparation(*args
, **kwargs
):
3727 """GetToolSeparation(self) -> int"""
3728 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3730 def SetRows(*args
, **kwargs
):
3731 """SetRows(self, int nRows)"""
3732 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3734 def SetMaxRowsCols(*args
, **kwargs
):
3735 """SetMaxRowsCols(self, int rows, int cols)"""
3736 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3738 def GetMaxRows(*args
, **kwargs
):
3739 """GetMaxRows(self) -> int"""
3740 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3742 def GetMaxCols(*args
, **kwargs
):
3743 """GetMaxCols(self) -> int"""
3744 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3746 def SetToolBitmapSize(*args
, **kwargs
):
3747 """SetToolBitmapSize(self, Size size)"""
3748 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3750 def GetToolBitmapSize(*args
, **kwargs
):
3751 """GetToolBitmapSize(self) -> Size"""
3752 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3754 def GetToolSize(*args
, **kwargs
):
3755 """GetToolSize(self) -> Size"""
3756 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3758 def FindToolForPosition(*args
, **kwargs
):
3759 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3760 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3762 def FindById(*args
, **kwargs
):
3763 """FindById(self, int toolid) -> ToolBarToolBase"""
3764 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3766 def IsVertical(*args
, **kwargs
):
3767 """IsVertical(self) -> bool"""
3768 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3770 def GetToolsCount(*args
, **kwargs
):
3771 """GetToolsCount(self) -> size_t"""
3772 return _controls_
.ToolBarBase_GetToolsCount(*args
, **kwargs
)
3774 ToolBarBase_swigregister
= _controls_
.ToolBarBase_swigregister
3775 ToolBarBase_swigregister(ToolBarBase
)
3777 class ToolBar(ToolBarBase
):
3778 """Proxy of C++ ToolBar class"""
3779 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3780 __repr__
= _swig_repr
3781 def __init__(self
, *args
, **kwargs
):
3783 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3784 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3785 String name=wxPyToolBarNameStr) -> ToolBar
3787 _controls_
.ToolBar_swiginit(self
,_controls_
.new_ToolBar(*args
, **kwargs
))
3788 self
._setOORInfo
(self
)
3790 def Create(*args
, **kwargs
):
3792 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3793 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3794 String name=wxPyToolBarNameStr) -> bool
3796 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3798 def FindToolForPosition(*args
, **kwargs
):
3799 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3800 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3802 def GetClassDefaultAttributes(*args
, **kwargs
):
3804 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3806 Get the default attributes for this class. This is useful if you want
3807 to use the same font or colour in your own control as in a standard
3808 control -- which is a much better idea than hard coding specific
3809 colours or fonts which might look completely out of place on the
3810 user's system, especially if it uses themes.
3812 The variant parameter is only relevant under Mac currently and is
3813 ignore under other platforms. Under Mac, it will change the size of
3814 the returned font. See `wx.Window.SetWindowVariant` for more about
3817 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3819 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3820 ToolBar_swigregister
= _controls_
.ToolBar_swigregister
3821 ToolBar_swigregister(ToolBar
)
3823 def PreToolBar(*args
, **kwargs
):
3824 """PreToolBar() -> ToolBar"""
3825 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3828 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3830 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3832 Get the default attributes for this class. This is useful if you want
3833 to use the same font or colour in your own control as in a standard
3834 control -- which is a much better idea than hard coding specific
3835 colours or fonts which might look completely out of place on the
3836 user's system, especially if it uses themes.
3838 The variant parameter is only relevant under Mac currently and is
3839 ignore under other platforms. Under Mac, it will change the size of
3840 the returned font. See `wx.Window.SetWindowVariant` for more about
3843 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3845 #---------------------------------------------------------------------------
3847 LC_VRULES
= _controls_
.LC_VRULES
3848 LC_HRULES
= _controls_
.LC_HRULES
3849 LC_ICON
= _controls_
.LC_ICON
3850 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3851 LC_LIST
= _controls_
.LC_LIST
3852 LC_REPORT
= _controls_
.LC_REPORT
3853 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3854 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3855 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3856 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3857 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3858 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3859 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3860 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3861 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3862 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3863 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3864 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3865 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3866 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3867 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3868 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3869 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3870 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3871 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3872 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3873 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3874 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3875 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3876 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3877 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3878 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3879 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3880 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3881 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3882 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3883 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3884 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3885 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3886 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3887 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3888 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3889 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3890 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3891 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3892 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3893 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3894 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3895 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3896 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3897 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3898 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3899 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3900 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3901 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3902 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3903 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3904 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3905 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3906 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3907 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3908 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3909 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3910 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3911 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3912 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3913 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3914 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3915 #---------------------------------------------------------------------------
3917 class ListItemAttr(object):
3918 """Proxy of C++ ListItemAttr class"""
3919 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3920 __repr__
= _swig_repr
3921 def __init__(self
, *args
, **kwargs
):
3923 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3924 Font font=wxNullFont) -> ListItemAttr
3926 _controls_
.ListItemAttr_swiginit(self
,_controls_
.new_ListItemAttr(*args
, **kwargs
))
3927 __swig_destroy__
= _controls_
.delete_ListItemAttr
3928 __del__
= lambda self
: None;
3929 def SetTextColour(*args
, **kwargs
):
3930 """SetTextColour(self, Colour colText)"""
3931 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3933 def SetBackgroundColour(*args
, **kwargs
):
3934 """SetBackgroundColour(self, Colour colBack)"""
3935 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3937 def SetFont(*args
, **kwargs
):
3938 """SetFont(self, Font font)"""
3939 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3941 def HasTextColour(*args
, **kwargs
):
3942 """HasTextColour(self) -> bool"""
3943 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3945 def HasBackgroundColour(*args
, **kwargs
):
3946 """HasBackgroundColour(self) -> bool"""
3947 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3949 def HasFont(*args
, **kwargs
):
3950 """HasFont(self) -> bool"""
3951 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3953 def GetTextColour(*args
, **kwargs
):
3954 """GetTextColour(self) -> Colour"""
3955 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3957 def GetBackgroundColour(*args
, **kwargs
):
3958 """GetBackgroundColour(self) -> Colour"""
3959 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3961 def GetFont(*args
, **kwargs
):
3962 """GetFont(self) -> Font"""
3963 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
3965 def AssignFrom(*args
, **kwargs
):
3966 """AssignFrom(self, ListItemAttr source)"""
3967 return _controls_
.ListItemAttr_AssignFrom(*args
, **kwargs
)
3969 def Destroy(*args
, **kwargs
):
3971 val
= _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
3975 ListItemAttr_swigregister
= _controls_
.ListItemAttr_swigregister
3976 ListItemAttr_swigregister(ListItemAttr
)
3977 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3979 #---------------------------------------------------------------------------
3981 class ListItem(_core
.Object
):
3982 """Proxy of C++ ListItem class"""
3983 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3984 __repr__
= _swig_repr
3985 def __init__(self
, *args
, **kwargs
):
3986 """__init__(self) -> ListItem"""
3987 _controls_
.ListItem_swiginit(self
,_controls_
.new_ListItem(*args
, **kwargs
))
3988 __swig_destroy__
= _controls_
.delete_ListItem
3989 __del__
= lambda self
: None;
3990 def Clear(*args
, **kwargs
):
3992 return _controls_
.ListItem_Clear(*args
, **kwargs
)
3994 def ClearAttributes(*args
, **kwargs
):
3995 """ClearAttributes(self)"""
3996 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
3998 def SetMask(*args
, **kwargs
):
3999 """SetMask(self, long mask)"""
4000 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4002 def SetId(*args
, **kwargs
):
4003 """SetId(self, long id)"""
4004 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4006 def SetColumn(*args
, **kwargs
):
4007 """SetColumn(self, int col)"""
4008 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4010 def SetState(*args
, **kwargs
):
4011 """SetState(self, long state)"""
4012 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4014 def SetStateMask(*args
, **kwargs
):
4015 """SetStateMask(self, long stateMask)"""
4016 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4018 def SetText(*args
, **kwargs
):
4019 """SetText(self, String text)"""
4020 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4022 def SetImage(*args
, **kwargs
):
4023 """SetImage(self, int image)"""
4024 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4026 def SetData(*args
, **kwargs
):
4027 """SetData(self, long data)"""
4028 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4030 def SetWidth(*args
, **kwargs
):
4031 """SetWidth(self, int width)"""
4032 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4034 def SetAlign(*args
, **kwargs
):
4035 """SetAlign(self, int align)"""
4036 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4038 def SetTextColour(*args
, **kwargs
):
4039 """SetTextColour(self, Colour colText)"""
4040 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4042 def SetBackgroundColour(*args
, **kwargs
):
4043 """SetBackgroundColour(self, Colour colBack)"""
4044 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4046 def SetFont(*args
, **kwargs
):
4047 """SetFont(self, Font font)"""
4048 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4050 def GetMask(*args
, **kwargs
):
4051 """GetMask(self) -> long"""
4052 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4054 def GetId(*args
, **kwargs
):
4055 """GetId(self) -> long"""
4056 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4058 def GetColumn(*args
, **kwargs
):
4059 """GetColumn(self) -> int"""
4060 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4062 def GetState(*args
, **kwargs
):
4063 """GetState(self) -> long"""
4064 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4066 def GetText(*args
, **kwargs
):
4067 """GetText(self) -> String"""
4068 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4070 def GetImage(*args
, **kwargs
):
4071 """GetImage(self) -> int"""
4072 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4074 def GetData(*args
, **kwargs
):
4075 """GetData(self) -> long"""
4076 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4078 def GetWidth(*args
, **kwargs
):
4079 """GetWidth(self) -> int"""
4080 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4082 def GetAlign(*args
, **kwargs
):
4083 """GetAlign(self) -> int"""
4084 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4086 def GetAttributes(*args
, **kwargs
):
4087 """GetAttributes(self) -> ListItemAttr"""
4088 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4090 def HasAttributes(*args
, **kwargs
):
4091 """HasAttributes(self) -> bool"""
4092 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4094 def GetTextColour(*args
, **kwargs
):
4095 """GetTextColour(self) -> Colour"""
4096 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4098 def GetBackgroundColour(*args
, **kwargs
):
4099 """GetBackgroundColour(self) -> Colour"""
4100 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4102 def GetFont(*args
, **kwargs
):
4103 """GetFont(self) -> Font"""
4104 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4106 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4107 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4108 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4109 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4110 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4111 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4112 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4113 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4114 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4115 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4116 ListItem_swigregister
= _controls_
.ListItem_swigregister
4117 ListItem_swigregister(ListItem
)
4119 #---------------------------------------------------------------------------
4121 class ListEvent(_core
.NotifyEvent
):
4122 """Proxy of C++ ListEvent class"""
4123 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4124 __repr__
= _swig_repr
4125 def __init__(self
, *args
, **kwargs
):
4126 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4127 _controls_
.ListEvent_swiginit(self
,_controls_
.new_ListEvent(*args
, **kwargs
))
4128 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4129 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4130 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4131 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4132 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4133 m_item
= property(_controls_
.ListEvent_m_item_get
)
4134 def GetKeyCode(*args
, **kwargs
):
4135 """GetKeyCode(self) -> int"""
4136 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4138 GetCode
= GetKeyCode
4139 def GetIndex(*args
, **kwargs
):
4140 """GetIndex(self) -> long"""
4141 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4143 def GetColumn(*args
, **kwargs
):
4144 """GetColumn(self) -> int"""
4145 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4147 def GetPoint(*args
, **kwargs
):
4148 """GetPoint(self) -> Point"""
4149 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4151 GetPosition
= GetPoint
4152 def GetLabel(*args
, **kwargs
):
4153 """GetLabel(self) -> String"""
4154 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4156 def GetText(*args
, **kwargs
):
4157 """GetText(self) -> String"""
4158 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4160 def GetImage(*args
, **kwargs
):
4161 """GetImage(self) -> int"""
4162 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4164 def GetData(*args
, **kwargs
):
4165 """GetData(self) -> long"""
4166 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4168 def GetMask(*args
, **kwargs
):
4169 """GetMask(self) -> long"""
4170 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4172 def GetItem(*args
, **kwargs
):
4173 """GetItem(self) -> ListItem"""
4174 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4176 def GetCacheFrom(*args
, **kwargs
):
4177 """GetCacheFrom(self) -> long"""
4178 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4180 def GetCacheTo(*args
, **kwargs
):
4181 """GetCacheTo(self) -> long"""
4182 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4184 def IsEditCancelled(*args
, **kwargs
):
4185 """IsEditCancelled(self) -> bool"""
4186 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4188 def SetEditCanceled(*args
, **kwargs
):
4189 """SetEditCanceled(self, bool editCancelled)"""
4190 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4192 ListEvent_swigregister
= _controls_
.ListEvent_swigregister
4193 ListEvent_swigregister(ListEvent
)
4195 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4196 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4197 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4198 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4199 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4200 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4201 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4202 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4203 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4204 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4205 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4206 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4207 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4208 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4209 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4210 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4211 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4212 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4213 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4214 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4215 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4216 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4217 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4218 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4219 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4220 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4225 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4226 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4227 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4228 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4229 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4230 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4231 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4232 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4233 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4234 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4235 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4236 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4237 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4238 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4244 #---------------------------------------------------------------------------
4246 class ListCtrl(_core
.Control
):
4247 """Proxy of C++ ListCtrl class"""
4248 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4249 __repr__
= _swig_repr
4250 def __init__(self
, *args
, **kwargs
):
4252 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4253 Size size=DefaultSize, long style=LC_ICON,
4254 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4256 _controls_
.ListCtrl_swiginit(self
,_controls_
.new_ListCtrl(*args
, **kwargs
))
4257 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4259 def Create(*args
, **kwargs
):
4261 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4262 Size size=DefaultSize, long style=LC_ICON,
4263 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4265 Do the 2nd phase and create the GUI control.
4267 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4269 def _setCallbackInfo(*args
, **kwargs
):
4270 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4271 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4273 def GetColumn(*args
, **kwargs
):
4274 """GetColumn(self, int col) -> ListItem"""
4275 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4276 if val
is not None: val
.thisown
= 1
4279 def SetColumn(*args
, **kwargs
):
4280 """SetColumn(self, int col, ListItem item) -> bool"""
4281 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4283 def GetColumnWidth(*args
, **kwargs
):
4284 """GetColumnWidth(self, int col) -> int"""
4285 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4287 def SetColumnWidth(*args
, **kwargs
):
4288 """SetColumnWidth(self, int col, int width) -> bool"""
4289 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4291 def GetCountPerPage(*args
, **kwargs
):
4292 """GetCountPerPage(self) -> int"""
4293 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4295 def GetViewRect(*args
, **kwargs
):
4296 """GetViewRect(self) -> Rect"""
4297 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4299 def GetEditControl(*args
, **kwargs
):
4300 """GetEditControl(self) -> TextCtrl"""
4301 return _controls_
.ListCtrl_GetEditControl(*args
, **kwargs
)
4303 def GetItem(*args
, **kwargs
):
4304 """GetItem(self, long itemId, int col=0) -> ListItem"""
4305 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4306 if val
is not None: val
.thisown
= 1
4309 def SetItem(*args
, **kwargs
):
4310 """SetItem(self, ListItem info) -> bool"""
4311 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4313 def SetStringItem(*args
, **kwargs
):
4314 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4315 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4317 def GetItemState(*args
, **kwargs
):
4318 """GetItemState(self, long item, long stateMask) -> int"""
4319 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4321 def SetItemState(*args
, **kwargs
):
4322 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4323 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4325 def SetItemImage(*args
, **kwargs
):
4326 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4327 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4329 def SetItemColumnImage(*args
, **kwargs
):
4330 """SetItemColumnImage(self, long item, long column, int image) -> bool"""
4331 return _controls_
.ListCtrl_SetItemColumnImage(*args
, **kwargs
)
4333 def GetItemText(*args
, **kwargs
):
4334 """GetItemText(self, long item) -> String"""
4335 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4337 def SetItemText(*args
, **kwargs
):
4338 """SetItemText(self, long item, String str)"""
4339 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4341 def GetItemData(*args
, **kwargs
):
4342 """GetItemData(self, long item) -> long"""
4343 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4345 def SetItemData(*args
, **kwargs
):
4346 """SetItemData(self, long item, long data) -> bool"""
4347 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4349 def GetItemPosition(*args
, **kwargs
):
4350 """GetItemPosition(self, long item) -> Point"""
4351 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4353 def GetItemRect(*args
, **kwargs
):
4354 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4355 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4357 def SetItemPosition(*args
, **kwargs
):
4358 """SetItemPosition(self, long item, Point pos) -> bool"""
4359 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4361 def GetItemCount(*args
, **kwargs
):
4362 """GetItemCount(self) -> int"""
4363 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4365 def GetColumnCount(*args
, **kwargs
):
4366 """GetColumnCount(self) -> int"""
4367 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4369 def GetItemSpacing(*args
, **kwargs
):
4370 """GetItemSpacing(self) -> Size"""
4371 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4373 def SetItemSpacing(*args
, **kwargs
):
4374 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4375 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4377 def GetSelectedItemCount(*args
, **kwargs
):
4378 """GetSelectedItemCount(self) -> int"""
4379 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4381 def GetTextColour(*args
, **kwargs
):
4382 """GetTextColour(self) -> Colour"""
4383 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4385 def SetTextColour(*args
, **kwargs
):
4386 """SetTextColour(self, Colour col)"""
4387 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4389 def GetTopItem(*args
, **kwargs
):
4390 """GetTopItem(self) -> long"""
4391 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4393 def SetSingleStyle(*args
, **kwargs
):
4394 """SetSingleStyle(self, long style, bool add=True)"""
4395 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4397 def GetNextItem(*args
, **kwargs
):
4398 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4399 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4401 def GetImageList(*args
, **kwargs
):
4402 """GetImageList(self, int which) -> ImageList"""
4403 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4405 def SetImageList(*args
, **kwargs
):
4406 """SetImageList(self, ImageList imageList, int which)"""
4407 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4409 def AssignImageList(*args
, **kwargs
):
4410 """AssignImageList(self, ImageList imageList, int which)"""
4411 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4413 def InReportView(*args
, **kwargs
):
4414 """InReportView(self) -> bool"""
4415 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4417 def IsVirtual(*args
, **kwargs
):
4418 """IsVirtual(self) -> bool"""
4419 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4421 def RefreshItem(*args
, **kwargs
):
4422 """RefreshItem(self, long item)"""
4423 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4425 def RefreshItems(*args
, **kwargs
):
4426 """RefreshItems(self, long itemFrom, long itemTo)"""
4427 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4429 def Arrange(*args
, **kwargs
):
4430 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4431 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4433 def DeleteItem(*args
, **kwargs
):
4434 """DeleteItem(self, long item) -> bool"""
4435 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4437 def DeleteAllItems(*args
, **kwargs
):
4438 """DeleteAllItems(self) -> bool"""
4439 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4441 def DeleteColumn(*args
, **kwargs
):
4442 """DeleteColumn(self, int col) -> bool"""
4443 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4445 def DeleteAllColumns(*args
, **kwargs
):
4446 """DeleteAllColumns(self) -> bool"""
4447 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4449 def ClearAll(*args
, **kwargs
):
4450 """ClearAll(self)"""
4451 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4453 def EditLabel(*args
, **kwargs
):
4454 """EditLabel(self, long item)"""
4455 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4457 def EnsureVisible(*args
, **kwargs
):
4458 """EnsureVisible(self, long item) -> bool"""
4459 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4461 def FindItem(*args
, **kwargs
):
4462 """FindItem(self, long start, String str, bool partial=False) -> long"""
4463 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4465 def FindItemData(*args
, **kwargs
):
4466 """FindItemData(self, long start, long data) -> long"""
4467 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4469 def FindItemAtPos(*args
, **kwargs
):
4470 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4471 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4473 def HitTest(*args
, **kwargs
):
4475 HitTest(Point point) -> (item, where)
4477 Determines which item (if any) is at the specified point, giving
4478 in the second return value (see wx.LIST_HITTEST flags.)
4480 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4482 def InsertItem(*args
, **kwargs
):
4483 """InsertItem(self, ListItem info) -> long"""
4484 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4486 def InsertStringItem(*args
, **kwargs
):
4487 """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long"""
4488 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4490 def InsertImageItem(*args
, **kwargs
):
4491 """InsertImageItem(self, long index, int imageIndex) -> long"""
4492 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4494 def InsertImageStringItem(*args
, **kwargs
):
4495 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4496 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4498 def InsertColumnItem(*args
, **kwargs
):
4499 """InsertColumnItem(self, long col, ListItem info) -> long"""
4500 return _controls_
.ListCtrl_InsertColumnItem(*args
, **kwargs
)
4502 InsertColumnInfo
= InsertColumnItem
4503 def InsertColumn(*args
, **kwargs
):
4505 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4506 int width=-1) -> long
4508 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4510 def SetItemCount(*args
, **kwargs
):
4511 """SetItemCount(self, long count)"""
4512 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4514 def ScrollList(*args
, **kwargs
):
4515 """ScrollList(self, int dx, int dy) -> bool"""
4516 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4518 def SetItemTextColour(*args
, **kwargs
):
4519 """SetItemTextColour(self, long item, Colour col)"""
4520 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4522 def GetItemTextColour(*args
, **kwargs
):
4523 """GetItemTextColour(self, long item) -> Colour"""
4524 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4526 def SetItemBackgroundColour(*args
, **kwargs
):
4527 """SetItemBackgroundColour(self, long item, Colour col)"""
4528 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4530 def GetItemBackgroundColour(*args
, **kwargs
):
4531 """GetItemBackgroundColour(self, long item) -> Colour"""
4532 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4534 def SetItemFont(*args
, **kwargs
):
4535 """SetItemFont(self, long item, Font f)"""
4536 return _controls_
.ListCtrl_SetItemFont(*args
, **kwargs
)
4538 def GetItemFont(*args
, **kwargs
):
4539 """GetItemFont(self, long item) -> Font"""
4540 return _controls_
.ListCtrl_GetItemFont(*args
, **kwargs
)
4544 def Select(self
, idx
, on
=1):
4545 '''[de]select an item'''
4546 if on
: state
= wx
.LIST_STATE_SELECTED
4548 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4550 def Focus(self
, idx
):
4551 '''Focus and show the given item'''
4552 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4553 self
.EnsureVisible(idx
)
4555 def GetFocusedItem(self
):
4556 '''get the currently focused item or -1 if none'''
4557 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4559 def GetFirstSelected(self
, *args
):
4560 '''return first selected item, or -1 when none'''
4561 return self
.GetNextSelected(-1)
4563 def GetNextSelected(self
, item
):
4564 '''return subsequent selected items, or -1 when no more'''
4565 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4567 def IsSelected(self
, idx
):
4568 '''return True if the item is selected'''
4569 return (self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) & wx
.LIST_STATE_SELECTED
) != 0
4571 def SetColumnImage(self
, col
, image
):
4572 item
= self
.GetColumn(col
)
4573 # preserve all other attributes too
4574 item
.SetMask( wx
.LIST_MASK_STATE |
4576 wx
.LIST_MASK_IMAGE |
4579 wx
.LIST_MASK_WIDTH |
4580 wx
.LIST_MASK_FORMAT
)
4581 item
.SetImage(image
)
4582 self
.SetColumn(col
, item
)
4584 def ClearColumnImage(self
, col
):
4585 self
.SetColumnImage(col
, -1)
4587 def Append(self
, entry
):
4588 '''Append an item to the list control. The entry parameter should be a
4589 sequence with an item for each column'''
4595 pos
= self
.GetItemCount()
4596 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4597 for i
in range(1, len(entry
)):
4598 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4601 def SortItems(*args
, **kwargs
):
4602 """SortItems(self, PyObject func) -> bool"""
4603 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4605 def GetMainWindow(*args
, **kwargs
):
4606 """GetMainWindow(self) -> Window"""
4607 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4609 def GetClassDefaultAttributes(*args
, **kwargs
):
4611 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4613 Get the default attributes for this class. This is useful if you want
4614 to use the same font or colour in your own control as in a standard
4615 control -- which is a much better idea than hard coding specific
4616 colours or fonts which might look completely out of place on the
4617 user's system, especially if it uses themes.
4619 The variant parameter is only relevant under Mac currently and is
4620 ignore under other platforms. Under Mac, it will change the size of
4621 the returned font. See `wx.Window.SetWindowVariant` for more about
4624 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4626 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4627 ListCtrl_swigregister
= _controls_
.ListCtrl_swigregister
4628 ListCtrl_swigregister(ListCtrl
)
4630 def PreListCtrl(*args
, **kwargs
):
4631 """PreListCtrl() -> ListCtrl"""
4632 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4635 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4637 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4639 Get the default attributes for this class. This is useful if you want
4640 to use the same font or colour in your own control as in a standard
4641 control -- which is a much better idea than hard coding specific
4642 colours or fonts which might look completely out of place on the
4643 user's system, especially if it uses themes.
4645 The variant parameter is only relevant under Mac currently and is
4646 ignore under other platforms. Under Mac, it will change the size of
4647 the returned font. See `wx.Window.SetWindowVariant` for more about
4650 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4652 #---------------------------------------------------------------------------
4654 class ListView(ListCtrl
):
4655 """Proxy of C++ ListView class"""
4656 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4657 __repr__
= _swig_repr
4658 def __init__(self
, *args
, **kwargs
):
4660 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4661 Size size=DefaultSize, long style=LC_REPORT,
4662 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4664 _controls_
.ListView_swiginit(self
,_controls_
.new_ListView(*args
, **kwargs
))
4665 self
._setOORInfo
(self
)
4667 def Create(*args
, **kwargs
):
4669 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4670 Size size=DefaultSize, long style=LC_REPORT,
4671 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4673 Do the 2nd phase and create the GUI control.
4675 return _controls_
.ListView_Create(*args
, **kwargs
)
4677 def Select(*args
, **kwargs
):
4678 """Select(self, long n, bool on=True)"""
4679 return _controls_
.ListView_Select(*args
, **kwargs
)
4681 def Focus(*args
, **kwargs
):
4682 """Focus(self, long index)"""
4683 return _controls_
.ListView_Focus(*args
, **kwargs
)
4685 def GetFocusedItem(*args
, **kwargs
):
4686 """GetFocusedItem(self) -> long"""
4687 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4689 def GetNextSelected(*args
, **kwargs
):
4690 """GetNextSelected(self, long item) -> long"""
4691 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4693 def GetFirstSelected(*args
, **kwargs
):
4694 """GetFirstSelected(self) -> long"""
4695 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4697 def IsSelected(*args
, **kwargs
):
4698 """IsSelected(self, long index) -> bool"""
4699 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4701 def SetColumnImage(*args
, **kwargs
):
4702 """SetColumnImage(self, int col, int image)"""
4703 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4705 def ClearColumnImage(*args
, **kwargs
):
4706 """ClearColumnImage(self, int col)"""
4707 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4709 ListView_swigregister
= _controls_
.ListView_swigregister
4710 ListView_swigregister(ListView
)
4712 def PreListView(*args
, **kwargs
):
4713 """PreListView() -> ListView"""
4714 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4717 #---------------------------------------------------------------------------
4719 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4720 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4721 TR_NO_LINES
= _controls_
.TR_NO_LINES
4722 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4723 TR_SINGLE
= _controls_
.TR_SINGLE
4724 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4725 TR_EXTENDED
= _controls_
.TR_EXTENDED
4726 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4727 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4728 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4729 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4730 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4731 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4732 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4733 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
4734 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
4735 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4736 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4737 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4738 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4739 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4740 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4741 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4742 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4743 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4744 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4745 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4746 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4747 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4748 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4749 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4750 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4751 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4752 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4753 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4754 #---------------------------------------------------------------------------
4756 class TreeItemId(object):
4757 """Proxy of C++ TreeItemId class"""
4758 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4759 __repr__
= _swig_repr
4760 def __init__(self
, *args
, **kwargs
):
4761 """__init__(self) -> TreeItemId"""
4762 _controls_
.TreeItemId_swiginit(self
,_controls_
.new_TreeItemId(*args
, **kwargs
))
4763 __swig_destroy__
= _controls_
.delete_TreeItemId
4764 __del__
= lambda self
: None;
4765 def IsOk(*args
, **kwargs
):
4766 """IsOk(self) -> bool"""
4767 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4769 def __eq__(*args
, **kwargs
):
4770 """__eq__(self, TreeItemId other) -> bool"""
4771 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4773 def __ne__(*args
, **kwargs
):
4774 """__ne__(self, TreeItemId other) -> bool"""
4775 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4777 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4779 def __nonzero__(self
): return self
.IsOk()
4780 TreeItemId_swigregister
= _controls_
.TreeItemId_swigregister
4781 TreeItemId_swigregister(TreeItemId
)
4782 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4784 class TreeItemData(object):
4785 """Proxy of C++ TreeItemData class"""
4786 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4787 __repr__
= _swig_repr
4788 def __init__(self
, *args
, **kwargs
):
4789 """__init__(self, PyObject obj=None) -> TreeItemData"""
4790 _controls_
.TreeItemData_swiginit(self
,_controls_
.new_TreeItemData(*args
, **kwargs
))
4791 __swig_destroy__
= _controls_
.delete_TreeItemData
4792 __del__
= lambda self
: None;
4793 def GetData(*args
, **kwargs
):
4794 """GetData(self) -> PyObject"""
4795 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4797 def SetData(*args
, **kwargs
):
4798 """SetData(self, PyObject obj)"""
4799 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4801 def GetId(*args
, **kwargs
):
4802 """GetId(self) -> TreeItemId"""
4803 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4805 def SetId(*args
, **kwargs
):
4806 """SetId(self, TreeItemId id)"""
4807 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4809 def Destroy(*args
, **kwargs
):
4811 val
= _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4815 TreeItemData_swigregister
= _controls_
.TreeItemData_swigregister
4816 TreeItemData_swigregister(TreeItemData
)
4818 #---------------------------------------------------------------------------
4820 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4821 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4822 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4823 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4824 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4825 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4826 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4827 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4828 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4829 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4830 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4831 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4832 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4833 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4834 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4835 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4836 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4837 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4838 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4839 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4840 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
4841 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4842 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4843 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4844 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4845 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4846 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4847 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4848 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4849 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4850 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4851 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4852 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4853 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4854 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4855 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4856 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4857 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4858 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4859 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4860 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4861 EVT_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
4863 class TreeEvent(_core
.NotifyEvent
):
4864 """Proxy of C++ TreeEvent class"""
4865 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4866 __repr__
= _swig_repr
4867 def __init__(self
, *args
, **kwargs
):
4868 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4869 _controls_
.TreeEvent_swiginit(self
,_controls_
.new_TreeEvent(*args
, **kwargs
))
4870 def GetItem(*args
, **kwargs
):
4871 """GetItem(self) -> TreeItemId"""
4872 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4874 def SetItem(*args
, **kwargs
):
4875 """SetItem(self, TreeItemId item)"""
4876 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4878 def GetOldItem(*args
, **kwargs
):
4879 """GetOldItem(self) -> TreeItemId"""
4880 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4882 def SetOldItem(*args
, **kwargs
):
4883 """SetOldItem(self, TreeItemId item)"""
4884 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4886 def GetPoint(*args
, **kwargs
):
4887 """GetPoint(self) -> Point"""
4888 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4890 def SetPoint(*args
, **kwargs
):
4891 """SetPoint(self, Point pt)"""
4892 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4894 def GetKeyEvent(*args
, **kwargs
):
4895 """GetKeyEvent(self) -> KeyEvent"""
4896 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4898 def GetKeyCode(*args
, **kwargs
):
4899 """GetKeyCode(self) -> int"""
4900 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4902 def SetKeyEvent(*args
, **kwargs
):
4903 """SetKeyEvent(self, KeyEvent evt)"""
4904 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4906 def GetLabel(*args
, **kwargs
):
4907 """GetLabel(self) -> String"""
4908 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4910 def SetLabel(*args
, **kwargs
):
4911 """SetLabel(self, String label)"""
4912 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4914 def IsEditCancelled(*args
, **kwargs
):
4915 """IsEditCancelled(self) -> bool"""
4916 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4918 def SetEditCanceled(*args
, **kwargs
):
4919 """SetEditCanceled(self, bool editCancelled)"""
4920 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4922 def SetToolTip(*args
, **kwargs
):
4923 """SetToolTip(self, String toolTip)"""
4924 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4926 def GetToolTip(*args
, **kwargs
):
4927 """GetToolTip(self) -> String"""
4928 return _controls_
.TreeEvent_GetToolTip(*args
, **kwargs
)
4930 TreeEvent_swigregister
= _controls_
.TreeEvent_swigregister
4931 TreeEvent_swigregister(TreeEvent
)
4933 #---------------------------------------------------------------------------
4935 class TreeCtrl(_core
.Control
):
4936 """Proxy of C++ TreeCtrl class"""
4937 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4938 __repr__
= _swig_repr
4939 def __init__(self
, *args
, **kwargs
):
4941 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4942 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4943 Validator validator=DefaultValidator,
4944 String name=TreeCtrlNameStr) -> TreeCtrl
4946 _controls_
.TreeCtrl_swiginit(self
,_controls_
.new_TreeCtrl(*args
, **kwargs
))
4947 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4949 def Create(*args
, **kwargs
):
4951 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4952 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4953 Validator validator=DefaultValidator,
4954 String name=TreeCtrlNameStr) -> bool
4956 Do the 2nd phase and create the GUI control.
4958 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
4960 def _setCallbackInfo(*args
, **kwargs
):
4961 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4962 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4964 def GetCount(*args
, **kwargs
):
4965 """GetCount(self) -> size_t"""
4966 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
4968 def GetIndent(*args
, **kwargs
):
4969 """GetIndent(self) -> unsigned int"""
4970 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
4972 def SetIndent(*args
, **kwargs
):
4973 """SetIndent(self, unsigned int indent)"""
4974 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
4976 def GetSpacing(*args
, **kwargs
):
4977 """GetSpacing(self) -> unsigned int"""
4978 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4980 def SetSpacing(*args
, **kwargs
):
4981 """SetSpacing(self, unsigned int spacing)"""
4982 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4984 def GetImageList(*args
, **kwargs
):
4985 """GetImageList(self) -> ImageList"""
4986 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
4988 def GetStateImageList(*args
, **kwargs
):
4989 """GetStateImageList(self) -> ImageList"""
4990 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4992 def SetImageList(*args
, **kwargs
):
4993 """SetImageList(self, ImageList imageList)"""
4994 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
4996 def SetStateImageList(*args
, **kwargs
):
4997 """SetStateImageList(self, ImageList imageList)"""
4998 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5000 def AssignImageList(*args
, **kwargs
):
5001 """AssignImageList(self, ImageList imageList)"""
5002 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5004 def AssignStateImageList(*args
, **kwargs
):
5005 """AssignStateImageList(self, ImageList imageList)"""
5006 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5008 def GetItemText(*args
, **kwargs
):
5009 """GetItemText(self, TreeItemId item) -> String"""
5010 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5012 def GetItemImage(*args
, **kwargs
):
5013 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5014 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5016 def GetItemData(*args
, **kwargs
):
5017 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5018 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5020 def GetItemPyData(*args
, **kwargs
):
5021 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5022 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5024 GetPyData
= GetItemPyData
5025 def GetItemTextColour(*args
, **kwargs
):
5026 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5027 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5029 def GetItemBackgroundColour(*args
, **kwargs
):
5030 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5031 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5033 def GetItemFont(*args
, **kwargs
):
5034 """GetItemFont(self, TreeItemId item) -> Font"""
5035 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5037 def SetItemText(*args
, **kwargs
):
5038 """SetItemText(self, TreeItemId item, String text)"""
5039 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5041 def SetItemImage(*args
, **kwargs
):
5042 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5043 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5045 def SetItemData(*args
, **kwargs
):
5046 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5047 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5049 def SetItemPyData(*args
, **kwargs
):
5050 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5051 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5053 SetPyData
= SetItemPyData
5054 def SetItemHasChildren(*args
, **kwargs
):
5055 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5056 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5058 def SetItemBold(*args
, **kwargs
):
5059 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5060 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5062 def SetItemDropHighlight(*args
, **kwargs
):
5063 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5064 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5066 def SetItemTextColour(*args
, **kwargs
):
5067 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5068 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5070 def SetItemBackgroundColour(*args
, **kwargs
):
5071 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5072 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5074 def SetItemFont(*args
, **kwargs
):
5075 """SetItemFont(self, TreeItemId item, Font font)"""
5076 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5078 def IsVisible(*args
, **kwargs
):
5079 """IsVisible(self, TreeItemId item) -> bool"""
5080 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5082 def ItemHasChildren(*args
, **kwargs
):
5083 """ItemHasChildren(self, TreeItemId item) -> bool"""
5084 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5086 def IsExpanded(*args
, **kwargs
):
5087 """IsExpanded(self, TreeItemId item) -> bool"""
5088 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5090 def IsSelected(*args
, **kwargs
):
5091 """IsSelected(self, TreeItemId item) -> bool"""
5092 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5094 def IsBold(*args
, **kwargs
):
5095 """IsBold(self, TreeItemId item) -> bool"""
5096 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5098 def GetChildrenCount(*args
, **kwargs
):
5099 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5100 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5102 def GetRootItem(*args
, **kwargs
):
5103 """GetRootItem(self) -> TreeItemId"""
5104 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5106 def GetSelection(*args
, **kwargs
):
5107 """GetSelection(self) -> TreeItemId"""
5108 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5110 def GetSelections(*args
, **kwargs
):
5111 """GetSelections(self) -> PyObject"""
5112 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5114 def GetItemParent(*args
, **kwargs
):
5115 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5116 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5118 def GetFirstChild(*args
, **kwargs
):
5119 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5120 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5122 def GetNextChild(*args
, **kwargs
):
5123 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5124 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5126 def GetLastChild(*args
, **kwargs
):
5127 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5128 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5130 def GetNextSibling(*args
, **kwargs
):
5131 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5132 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5134 def GetPrevSibling(*args
, **kwargs
):
5135 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5136 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5138 def GetFirstVisibleItem(*args
, **kwargs
):
5139 """GetFirstVisibleItem(self) -> TreeItemId"""
5140 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5142 def GetNextVisible(*args
, **kwargs
):
5143 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5144 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5146 def GetPrevVisible(*args
, **kwargs
):
5147 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5148 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5150 def AddRoot(*args
, **kwargs
):
5151 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5152 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5154 def PrependItem(*args
, **kwargs
):
5156 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5157 TreeItemData data=None) -> TreeItemId
5159 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5161 def InsertItem(*args
, **kwargs
):
5163 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5164 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5166 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5168 def InsertItemBefore(*args
, **kwargs
):
5170 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5171 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5173 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5175 def AppendItem(*args
, **kwargs
):
5177 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5178 TreeItemData data=None) -> TreeItemId
5180 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5182 def Delete(*args
, **kwargs
):
5183 """Delete(self, TreeItemId item)"""
5184 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5186 def DeleteChildren(*args
, **kwargs
):
5187 """DeleteChildren(self, TreeItemId item)"""
5188 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5190 def DeleteAllItems(*args
, **kwargs
):
5191 """DeleteAllItems(self)"""
5192 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5194 def Expand(*args
, **kwargs
):
5195 """Expand(self, TreeItemId item)"""
5196 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5198 def Collapse(*args
, **kwargs
):
5199 """Collapse(self, TreeItemId item)"""
5200 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5202 def CollapseAndReset(*args
, **kwargs
):
5203 """CollapseAndReset(self, TreeItemId item)"""
5204 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5206 def Toggle(*args
, **kwargs
):
5207 """Toggle(self, TreeItemId item)"""
5208 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5210 def Unselect(*args
, **kwargs
):
5211 """Unselect(self)"""
5212 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5214 def UnselectItem(*args
, **kwargs
):
5215 """UnselectItem(self, TreeItemId item)"""
5216 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5218 def UnselectAll(*args
, **kwargs
):
5219 """UnselectAll(self)"""
5220 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5222 def SelectItem(*args
, **kwargs
):
5223 """SelectItem(self, TreeItemId item, bool select=True)"""
5224 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5226 def ToggleItemSelection(*args
, **kwargs
):
5227 """ToggleItemSelection(self, TreeItemId item)"""
5228 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5230 def EnsureVisible(*args
, **kwargs
):
5231 """EnsureVisible(self, TreeItemId item)"""
5232 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5234 def ScrollTo(*args
, **kwargs
):
5235 """ScrollTo(self, TreeItemId item)"""
5236 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5238 def EditLabel(*args
, **kwargs
):
5239 """EditLabel(self, TreeItemId item)"""
5240 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5242 def GetEditControl(*args
, **kwargs
):
5243 """GetEditControl(self) -> TextCtrl"""
5244 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5246 def SortChildren(*args
, **kwargs
):
5247 """SortChildren(self, TreeItemId item)"""
5248 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5250 def HitTest(*args
, **kwargs
):
5252 HitTest(Point point) -> (item, where)
5254 Determine which item (if any) belongs the given point. The coordinates
5255 specified are relative to the client area of tree ctrl and the where return
5256 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5259 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5261 def GetBoundingRect(*args
, **kwargs
):
5262 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5263 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5265 def GetClassDefaultAttributes(*args
, **kwargs
):
5267 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5269 Get the default attributes for this class. This is useful if you want
5270 to use the same font or colour in your own control as in a standard
5271 control -- which is a much better idea than hard coding specific
5272 colours or fonts which might look completely out of place on the
5273 user's system, especially if it uses themes.
5275 The variant parameter is only relevant under Mac currently and is
5276 ignore under other platforms. Under Mac, it will change the size of
5277 the returned font. See `wx.Window.SetWindowVariant` for more about
5280 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5282 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5283 TreeCtrl_swigregister
= _controls_
.TreeCtrl_swigregister
5284 TreeCtrl_swigregister(TreeCtrl
)
5286 def PreTreeCtrl(*args
, **kwargs
):
5287 """PreTreeCtrl() -> TreeCtrl"""
5288 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5291 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5293 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5295 Get the default attributes for this class. This is useful if you want
5296 to use the same font or colour in your own control as in a standard
5297 control -- which is a much better idea than hard coding specific
5298 colours or fonts which might look completely out of place on the
5299 user's system, especially if it uses themes.
5301 The variant parameter is only relevant under Mac currently and is
5302 ignore under other platforms. Under Mac, it will change the size of
5303 the returned font. See `wx.Window.SetWindowVariant` for more about
5306 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5308 #---------------------------------------------------------------------------
5310 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5311 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5312 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5313 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5314 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5315 class GenericDirCtrl(_core
.Control
):
5316 """Proxy of C++ GenericDirCtrl class"""
5317 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5318 __repr__
= _swig_repr
5319 def __init__(self
, *args
, **kwargs
):
5321 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5322 Point pos=DefaultPosition, Size size=DefaultSize,
5323 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5324 String filter=EmptyString,
5325 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5327 _controls_
.GenericDirCtrl_swiginit(self
,_controls_
.new_GenericDirCtrl(*args
, **kwargs
))
5328 self
._setOORInfo
(self
)
5330 def Create(*args
, **kwargs
):
5332 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5333 Point pos=DefaultPosition, Size size=DefaultSize,
5334 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5335 String filter=EmptyString,
5336 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5338 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5340 def ExpandPath(*args
, **kwargs
):
5341 """ExpandPath(self, String path) -> bool"""
5342 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5344 def GetDefaultPath(*args
, **kwargs
):
5345 """GetDefaultPath(self) -> String"""
5346 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5348 def SetDefaultPath(*args
, **kwargs
):
5349 """SetDefaultPath(self, String path)"""
5350 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5352 def GetPath(*args
, **kwargs
):
5353 """GetPath(self) -> String"""
5354 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5356 def GetFilePath(*args
, **kwargs
):
5357 """GetFilePath(self) -> String"""
5358 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5360 def SetPath(*args
, **kwargs
):
5361 """SetPath(self, String path)"""
5362 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5364 def ShowHidden(*args
, **kwargs
):
5365 """ShowHidden(self, bool show)"""
5366 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5368 def GetShowHidden(*args
, **kwargs
):
5369 """GetShowHidden(self) -> bool"""
5370 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5372 def GetFilter(*args
, **kwargs
):
5373 """GetFilter(self) -> String"""
5374 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5376 def SetFilter(*args
, **kwargs
):
5377 """SetFilter(self, String filter)"""
5378 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5380 def GetFilterIndex(*args
, **kwargs
):
5381 """GetFilterIndex(self) -> int"""
5382 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5384 def SetFilterIndex(*args
, **kwargs
):
5385 """SetFilterIndex(self, int n)"""
5386 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5388 def GetRootId(*args
, **kwargs
):
5389 """GetRootId(self) -> TreeItemId"""
5390 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5392 def GetTreeCtrl(*args
, **kwargs
):
5393 """GetTreeCtrl(self) -> TreeCtrl"""
5394 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5396 def GetFilterListCtrl(*args
, **kwargs
):
5397 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5398 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5400 def FindChild(*args
, **kwargs
):
5402 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5404 Find the child that matches the first part of 'path'. E.g. if a child
5405 path is "/usr" and 'path' is "/usr/include" then the child for
5406 /usr is returned. If the path string has been used (we're at the
5407 leaf), done is set to True.
5410 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5412 def DoResize(*args
, **kwargs
):
5413 """DoResize(self)"""
5414 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5416 def ReCreateTree(*args
, **kwargs
):
5417 """ReCreateTree(self)"""
5418 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5420 GenericDirCtrl_swigregister
= _controls_
.GenericDirCtrl_swigregister
5421 GenericDirCtrl_swigregister(GenericDirCtrl
)
5422 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5424 def PreGenericDirCtrl(*args
, **kwargs
):
5425 """PreGenericDirCtrl() -> GenericDirCtrl"""
5426 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5429 class DirFilterListCtrl(Choice
):
5430 """Proxy of C++ DirFilterListCtrl class"""
5431 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5432 __repr__
= _swig_repr
5433 def __init__(self
, *args
, **kwargs
):
5435 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5436 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5438 _controls_
.DirFilterListCtrl_swiginit(self
,_controls_
.new_DirFilterListCtrl(*args
, **kwargs
))
5439 self
._setOORInfo
(self
)
5441 def Create(*args
, **kwargs
):
5443 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5444 Size size=DefaultSize, long style=0) -> bool
5446 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5448 def FillFilterList(*args
, **kwargs
):
5449 """FillFilterList(self, String filter, int defaultFilter)"""
5450 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5452 DirFilterListCtrl_swigregister
= _controls_
.DirFilterListCtrl_swigregister
5453 DirFilterListCtrl_swigregister(DirFilterListCtrl
)
5455 def PreDirFilterListCtrl(*args
, **kwargs
):
5456 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5457 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5460 #---------------------------------------------------------------------------
5462 class PyControl(_core
.Control
):
5463 """Proxy of C++ PyControl class"""
5464 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5465 __repr__
= _swig_repr
5466 def __init__(self
, *args
, **kwargs
):
5468 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5469 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5470 String name=ControlNameStr) -> PyControl
5472 _controls_
.PyControl_swiginit(self
,_controls_
.new_PyControl(*args
, **kwargs
))
5473 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5475 def _setCallbackInfo(*args
, **kwargs
):
5476 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5477 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5479 def SetBestSize(*args
, **kwargs
):
5480 """SetBestSize(self, Size size)"""
5481 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5483 def DoEraseBackground(*args
, **kwargs
):
5484 """DoEraseBackground(self, DC dc) -> bool"""
5485 return _controls_
.PyControl_DoEraseBackground(*args
, **kwargs
)
5487 def DoMoveWindow(*args
, **kwargs
):
5488 """DoMoveWindow(self, int x, int y, int width, int height)"""
5489 return _controls_
.PyControl_DoMoveWindow(*args
, **kwargs
)
5491 def DoSetSize(*args
, **kwargs
):
5492 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5493 return _controls_
.PyControl_DoSetSize(*args
, **kwargs
)
5495 def DoSetClientSize(*args
, **kwargs
):
5496 """DoSetClientSize(self, int width, int height)"""
5497 return _controls_
.PyControl_DoSetClientSize(*args
, **kwargs
)
5499 def DoSetVirtualSize(*args
, **kwargs
):
5500 """DoSetVirtualSize(self, int x, int y)"""
5501 return _controls_
.PyControl_DoSetVirtualSize(*args
, **kwargs
)
5503 def DoGetSize(*args
, **kwargs
):
5504 """DoGetSize() -> (width, height)"""
5505 return _controls_
.PyControl_DoGetSize(*args
, **kwargs
)
5507 def DoGetClientSize(*args
, **kwargs
):
5508 """DoGetClientSize() -> (width, height)"""
5509 return _controls_
.PyControl_DoGetClientSize(*args
, **kwargs
)
5511 def DoGetPosition(*args
, **kwargs
):
5512 """DoGetPosition() -> (x,y)"""
5513 return _controls_
.PyControl_DoGetPosition(*args
, **kwargs
)
5515 def DoGetVirtualSize(*args
, **kwargs
):
5516 """DoGetVirtualSize(self) -> Size"""
5517 return _controls_
.PyControl_DoGetVirtualSize(*args
, **kwargs
)
5519 def DoGetBestSize(*args
, **kwargs
):
5520 """DoGetBestSize(self) -> Size"""
5521 return _controls_
.PyControl_DoGetBestSize(*args
, **kwargs
)
5523 def GetDefaultAttributes(*args
, **kwargs
):
5524 """GetDefaultAttributes(self) -> VisualAttributes"""
5525 return _controls_
.PyControl_GetDefaultAttributes(*args
, **kwargs
)
5527 def OnInternalIdle(*args
, **kwargs
):
5528 """OnInternalIdle(self)"""
5529 return _controls_
.PyControl_OnInternalIdle(*args
, **kwargs
)
5531 def base_DoMoveWindow(*args
, **kw
):
5532 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
5533 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
5534 "Please use PyScrolledWindow.DoMoveWindow instead.")
5536 def base_DoSetSize(*args
, **kw
):
5537 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
5538 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
5539 "Please use PyScrolledWindow.DoSetSize instead.")
5541 def base_DoSetClientSize(*args
, **kw
):
5542 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
5543 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
5544 "Please use PyScrolledWindow.DoSetClientSize instead.")
5546 def base_DoSetVirtualSize(*args
, **kw
):
5547 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
5548 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
5549 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
5551 def base_DoGetSize(*args
, **kw
):
5552 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
5553 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
5554 "Please use PyScrolledWindow.DoGetSize instead.")
5556 def base_DoGetClientSize(*args
, **kw
):
5557 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
5558 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
5559 "Please use PyScrolledWindow.DoGetClientSize instead.")
5561 def base_DoGetPosition(*args
, **kw
):
5562 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
5563 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
5564 "Please use PyScrolledWindow.DoGetPosition instead.")
5566 def base_DoGetVirtualSize(*args
, **kw
):
5567 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
5568 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
5569 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
5571 def base_DoGetBestSize(*args
, **kw
):
5572 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
5573 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
5574 "Please use PyScrolledWindow.DoGetBestSize instead.")
5576 def base_InitDialog(*args
, **kw
):
5577 return PyScrolledWindow
.InitDialog(*args
, **kw
)
5578 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
5579 "Please use PyScrolledWindow.InitDialog instead.")
5581 def base_TransferDataToWindow(*args
, **kw
):
5582 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
5583 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
5584 "Please use PyScrolledWindow.TransferDataToWindow instead.")
5586 def base_TransferDataFromWindow(*args
, **kw
):
5587 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
5588 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
5589 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
5591 def base_Validate(*args
, **kw
):
5592 return PyScrolledWindow
.Validate(*args
, **kw
)
5593 base_Validate
= wx
._deprecated
(base_Validate
,
5594 "Please use PyScrolledWindow.Validate instead.")
5596 def base_AcceptsFocus(*args
, **kw
):
5597 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
5598 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
5599 "Please use PyScrolledWindow.AcceptsFocus instead.")
5601 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
5602 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
5603 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
5604 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
5606 def base_GetMaxSize(*args
, **kw
):
5607 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
5608 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
5609 "Please use PyScrolledWindow.GetMaxSize instead.")
5611 def base_AddChild(*args
, **kw
):
5612 return PyScrolledWindow
.AddChild(*args
, **kw
)
5613 base_AddChild
= wx
._deprecated
(base_AddChild
,
5614 "Please use PyScrolledWindow.AddChild instead.")
5616 def base_RemoveChild(*args
, **kw
):
5617 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
5618 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
5619 "Please use PyScrolledWindow.RemoveChild instead.")
5621 def base_ShouldInheritColours(*args
, **kw
):
5622 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
5623 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
5624 "Please use PyScrolledWindow.ShouldInheritColours instead.")
5626 def base_GetDefaultAttributes(*args
, **kw
):
5627 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
5628 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
5629 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
5631 def base_OnInternalIdle(*args
, **kw
):
5632 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
5633 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
5634 "Please use PyScrolledWindow.OnInternalIdle instead.")
5636 PyControl_swigregister
= _controls_
.PyControl_swigregister
5637 PyControl_swigregister(PyControl
)
5639 def PrePyControl(*args
, **kwargs
):
5640 """PrePyControl() -> PyControl"""
5641 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5644 #---------------------------------------------------------------------------
5646 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5647 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5648 wxEVT_HELP
= _controls_
.wxEVT_HELP
5649 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5650 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5651 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5652 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5653 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5655 class HelpEvent(_core
.CommandEvent
):
5657 A help event is sent when the user has requested context-sensitive
5658 help. This can either be caused by the application requesting
5659 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5660 the system generating a WM_HELP message when the user pressed F1 or
5661 clicked on the query button in a dialog caption.
5663 A help event is sent to the window that the user clicked on, and is
5664 propagated up the window hierarchy until the event is processed or
5665 there are no more event handlers. The application should call
5666 event.GetId to check the identity of the clicked-on window, and then
5667 either show some suitable help or call event.Skip if the identifier is
5668 unrecognised. Calling Skip is important because it allows wxWindows to
5669 generate further events for ancestors of the clicked-on
5670 window. Otherwise it would be impossible to show help for container
5671 windows, since processing would stop after the first window found.
5673 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5674 __repr__
= _swig_repr
5675 def __init__(self
, *args
, **kwargs
):
5676 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5677 _controls_
.HelpEvent_swiginit(self
,_controls_
.new_HelpEvent(*args
, **kwargs
))
5678 def GetPosition(*args
, **kwargs
):
5680 GetPosition(self) -> Point
5682 Returns the left-click position of the mouse, in screen
5683 coordinates. This allows the application to position the help
5686 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5688 def SetPosition(*args
, **kwargs
):
5690 SetPosition(self, Point pos)
5692 Sets the left-click position of the mouse, in screen coordinates.
5694 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5696 def GetLink(*args
, **kwargs
):
5698 GetLink(self) -> String
5700 Get an optional link to further help
5702 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5704 def SetLink(*args
, **kwargs
):
5706 SetLink(self, String link)
5708 Set an optional link to further help
5710 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5712 def GetTarget(*args
, **kwargs
):
5714 GetTarget(self) -> String
5716 Get an optional target to display help in. E.g. a window specification
5718 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5720 def SetTarget(*args
, **kwargs
):
5722 SetTarget(self, String target)
5724 Set an optional target to display help in. E.g. a window specification
5726 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5728 HelpEvent_swigregister
= _controls_
.HelpEvent_swigregister
5729 HelpEvent_swigregister(HelpEvent
)
5731 class ContextHelp(_core
.Object
):
5733 This class changes the cursor to a query and puts the application into
5734 a 'context-sensitive help mode'. When the user left-clicks on a window
5735 within the specified window, a ``EVT_HELP`` event is sent to that
5736 control, and the application may respond to it by popping up some
5739 There are a couple of ways to invoke this behaviour implicitly:
5741 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5742 (Windows only). This will put a question mark in the titlebar,
5743 and Windows will put the application into context-sensitive help
5744 mode automatically, with further programming.
5746 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5747 to create a context help object. Normally you will write your
5748 application so that this button is only added to a dialog for
5749 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5752 :see: `wx.ContextHelpButton`
5755 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5756 __repr__
= _swig_repr
5757 def __init__(self
, *args
, **kwargs
):
5759 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5761 Constructs a context help object, calling BeginContextHelp if doNow is
5764 If window is None, the top window is used.
5766 _controls_
.ContextHelp_swiginit(self
,_controls_
.new_ContextHelp(*args
, **kwargs
))
5767 __swig_destroy__
= _controls_
.delete_ContextHelp
5768 __del__
= lambda self
: None;
5769 def BeginContextHelp(*args
, **kwargs
):
5771 BeginContextHelp(self, Window window=None) -> bool
5773 Puts the application into context-sensitive help mode. window is the
5774 window which will be used to catch events; if NULL, the top window
5777 Returns true if the application was successfully put into
5778 context-sensitive help mode. This function only returns when the event
5781 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5783 def EndContextHelp(*args
, **kwargs
):
5785 EndContextHelp(self) -> bool
5787 Ends context-sensitive help mode. Not normally called by the
5790 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5792 ContextHelp_swigregister
= _controls_
.ContextHelp_swigregister
5793 ContextHelp_swigregister(ContextHelp
)
5795 class ContextHelpButton(BitmapButton
):
5797 Instances of this class may be used to add a question mark button that
5798 when pressed, puts the application into context-help mode. It does
5799 this by creating a wx.ContextHelp object which itself generates a
5800 ``EVT_HELP`` event when the user clicks on a window.
5802 On Windows, you may add a question-mark icon to a dialog by use of the
5803 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5804 will have to add a button explicitly, usually next to OK, Cancel or
5807 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5810 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5811 __repr__
= _swig_repr
5812 def __init__(self
, *args
, **kwargs
):
5814 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5815 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5817 Constructor, creating and showing a context help button.
5819 _controls_
.ContextHelpButton_swiginit(self
,_controls_
.new_ContextHelpButton(*args
, **kwargs
))
5820 self
._setOORInfo
(self
)
5822 ContextHelpButton_swigregister
= _controls_
.ContextHelpButton_swigregister
5823 ContextHelpButton_swigregister(ContextHelpButton
)
5825 class HelpProvider(object):
5827 wx.HelpProvider is an abstract class used by a program
5828 implementing context-sensitive help to show the help text for the
5831 The current help provider must be explicitly set by the
5832 application using wx.HelpProvider.Set().
5834 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5835 def __init__(self
): raise AttributeError, "No constructor defined"
5836 __repr__
= _swig_repr
5837 def Set(*args
, **kwargs
):
5839 Set(HelpProvider helpProvider) -> HelpProvider
5841 Sset the current, application-wide help provider. Returns the previous
5842 one. Unlike some other classes, the help provider is not created on
5843 demand. This must be explicitly done by the application.
5845 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5847 Set
= staticmethod(Set
)
5848 def Get(*args
, **kwargs
):
5850 Get() -> HelpProvider
5852 Return the current application-wide help provider.
5854 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5856 Get
= staticmethod(Get
)
5857 def GetHelp(*args
, **kwargs
):
5859 GetHelp(self, Window window) -> String
5861 Gets the help string for this window. Its interpretation is dependent
5862 on the help provider except that empty string always means that no
5863 help is associated with the window.
5865 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5867 def ShowHelp(*args
, **kwargs
):
5869 ShowHelp(self, Window window) -> bool
5871 Shows help for the given window. Uses GetHelp internally if
5872 applicable. Returns True if it was done, or False if no help was
5873 available for this window.
5875 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5877 def AddHelp(*args
, **kwargs
):
5879 AddHelp(self, Window window, String text)
5881 Associates the text with the given window.
5883 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5885 def AddHelpById(*args
, **kwargs
):
5887 AddHelpById(self, int id, String text)
5889 This version associates the given text with all windows with this
5890 id. May be used to set the same help string for all Cancel buttons in
5891 the application, for example.
5893 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5895 def RemoveHelp(*args
, **kwargs
):
5897 RemoveHelp(self, Window window)
5899 Removes the association between the window pointer and the help
5900 text. This is called by the wx.Window destructor. Without this, the
5901 table of help strings will fill up and when window pointers are
5902 reused, the wrong help string will be found.
5904 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5906 def Destroy(*args
, **kwargs
):
5908 val
= _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5912 HelpProvider_swigregister
= _controls_
.HelpProvider_swigregister
5913 HelpProvider_swigregister(HelpProvider
)
5915 def HelpProvider_Set(*args
, **kwargs
):
5917 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5919 Sset the current, application-wide help provider. Returns the previous
5920 one. Unlike some other classes, the help provider is not created on
5921 demand. This must be explicitly done by the application.
5923 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5925 def HelpProvider_Get(*args
):
5927 HelpProvider_Get() -> HelpProvider
5929 Return the current application-wide help provider.
5931 return _controls_
.HelpProvider_Get(*args
)
5933 class SimpleHelpProvider(HelpProvider
):
5935 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5936 supports only plain text help strings, and shows the string associated
5937 with the control (if any) in a tooltip.
5939 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5940 __repr__
= _swig_repr
5941 def __init__(self
, *args
, **kwargs
):
5943 __init__(self) -> SimpleHelpProvider
5945 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5946 supports only plain text help strings, and shows the string associated
5947 with the control (if any) in a tooltip.
5949 _controls_
.SimpleHelpProvider_swiginit(self
,_controls_
.new_SimpleHelpProvider(*args
, **kwargs
))
5950 SimpleHelpProvider_swigregister
= _controls_
.SimpleHelpProvider_swigregister
5951 SimpleHelpProvider_swigregister(SimpleHelpProvider
)
5953 #---------------------------------------------------------------------------
5955 class DragImage(_core
.Object
):
5956 """Proxy of C++ DragImage class"""
5957 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5958 __repr__
= _swig_repr
5959 def __init__(self
, *args
, **kwargs
):
5960 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5961 _controls_
.DragImage_swiginit(self
,_controls_
.new_DragImage(*args
, **kwargs
))
5962 __swig_destroy__
= _controls_
.delete_DragImage
5963 __del__
= lambda self
: None;
5964 def SetBackingBitmap(*args
, **kwargs
):
5965 """SetBackingBitmap(self, Bitmap bitmap)"""
5966 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5968 def BeginDrag(*args
, **kwargs
):
5970 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
5971 Rect rect=None) -> bool
5973 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
5975 def BeginDragBounded(*args
, **kwargs
):
5976 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
5977 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
5979 def EndDrag(*args
, **kwargs
):
5980 """EndDrag(self) -> bool"""
5981 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
5983 def Move(*args
, **kwargs
):
5984 """Move(self, Point pt) -> bool"""
5985 return _controls_
.DragImage_Move(*args
, **kwargs
)
5987 def Show(*args
, **kwargs
):
5988 """Show(self) -> bool"""
5989 return _controls_
.DragImage_Show(*args
, **kwargs
)
5991 def Hide(*args
, **kwargs
):
5992 """Hide(self) -> bool"""
5993 return _controls_
.DragImage_Hide(*args
, **kwargs
)
5995 def GetImageRect(*args
, **kwargs
):
5996 """GetImageRect(self, Point pos) -> Rect"""
5997 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
5999 def DoDrawImage(*args
, **kwargs
):
6000 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6001 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6003 def UpdateBackingFromWindow(*args
, **kwargs
):
6004 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6005 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6007 def RedrawImage(*args
, **kwargs
):
6008 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6009 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6011 DragImage_swigregister
= _controls_
.DragImage_swigregister
6012 DragImage_swigregister(DragImage
)
6014 def DragIcon(*args
, **kwargs
):
6015 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6016 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6019 def DragString(*args
, **kwargs
):
6020 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6021 val
= _controls_
.new_DragString(*args
, **kwargs
)
6024 def DragTreeItem(*args
, **kwargs
):
6025 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6026 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6029 def DragListItem(*args
, **kwargs
):
6030 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6031 val
= _controls_
.new_DragListItem(*args
, **kwargs
)
6034 #---------------------------------------------------------------------------
6036 DP_DEFAULT
= _controls_
.DP_DEFAULT
6037 DP_SPIN
= _controls_
.DP_SPIN
6038 DP_DROPDOWN
= _controls_
.DP_DROPDOWN
6039 DP_SHOWCENTURY
= _controls_
.DP_SHOWCENTURY
6040 DP_ALLOWNONE
= _controls_
.DP_ALLOWNONE
6041 class DatePickerCtrl(_core
.Control
):
6043 This control allows the user to select a date. Unlike
6044 `wx.calendar.CalendarCtrl`, which is a relatively big control,
6045 `wx.DatePickerCtrl` is implemented as a small window showing the
6046 currently selected date. The control can be edited using the keyboard,
6047 and can also display a popup window for more user-friendly date
6048 selection, depending on the styles used and the platform.
6050 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6051 __repr__
= _swig_repr
6052 def __init__(self
, *args
, **kwargs
):
6054 __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6055 Point pos=DefaultPosition, Size size=DefaultSize,
6056 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6057 Validator validator=DefaultValidator,
6058 String name=DatePickerCtrlNameStr) -> DatePickerCtrl
6060 Create a new DatePickerCtrl.
6062 _controls_
.DatePickerCtrl_swiginit(self
,_controls_
.new_DatePickerCtrl(*args
, **kwargs
))
6063 self
._setOORInfo
(self
)
6065 def Create(*args
, **kwargs
):
6067 Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6068 Point pos=DefaultPosition, Size size=DefaultSize,
6069 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6070 Validator validator=DefaultValidator,
6071 String name=DatePickerCtrlNameStr) -> bool
6073 Create the GUI parts of the DatePickerCtrl, for use in 2-phase
6076 return _controls_
.DatePickerCtrl_Create(*args
, **kwargs
)
6078 def SetValue(*args
, **kwargs
):
6080 SetValue(self, DateTime dt)
6082 Changes the current value of the control. The date should be valid and
6083 included in the currently selected range, if any.
6085 Calling this method does not result in a date change event.
6087 return _controls_
.DatePickerCtrl_SetValue(*args
, **kwargs
)
6089 def GetValue(*args
, **kwargs
):
6091 GetValue(self) -> DateTime
6093 Returns the currently selected date. If there is no selection or the
6094 selection is outside of the current range, an invalid `wx.DateTime`
6097 return _controls_
.DatePickerCtrl_GetValue(*args
, **kwargs
)
6099 def SetRange(*args
, **kwargs
):
6101 SetRange(self, DateTime dt1, DateTime dt2)
6103 Sets the valid range for the date selection. If dt1 is valid, it
6104 becomes the earliest date (inclusive) accepted by the control. If dt2
6105 is valid, it becomes the latest possible date.
6107 If the current value of the control is outside of the newly set range
6108 bounds, the behaviour is undefined.
6110 return _controls_
.DatePickerCtrl_SetRange(*args
, **kwargs
)
6112 def GetLowerLimit(*args
, **kwargs
):
6114 GetLowerLimit(self) -> DateTime
6116 Get the lower limit of the valid range for the date selection, if any.
6117 If there is no range or there is no lower limit, then the
6118 `wx.DateTime` value returned will be invalid.
6120 return _controls_
.DatePickerCtrl_GetLowerLimit(*args
, **kwargs
)
6122 def GetUpperLimit(*args
, **kwargs
):
6124 GetUpperLimit(self) -> DateTime
6126 Get the upper limit of the valid range for the date selection, if any.
6127 If there is no range or there is no upper limit, then the
6128 `wx.DateTime` value returned will be invalid.
6130 return _controls_
.DatePickerCtrl_GetUpperLimit(*args
, **kwargs
)
6132 DatePickerCtrl_swigregister
= _controls_
.DatePickerCtrl_swigregister
6133 DatePickerCtrl_swigregister(DatePickerCtrl
)
6134 DatePickerCtrlNameStr
= cvar
.DatePickerCtrlNameStr
6136 def PreDatePickerCtrl(*args
, **kwargs
):
6138 PreDatePickerCtrl() -> DatePickerCtrl
6140 Precreate a DatePickerCtrl for use in 2-phase creation.
6142 val
= _controls_
.new_PreDatePickerCtrl(*args
, **kwargs
)