1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 __docfilter__
= wx
.__docfilter
__
9 #---------------------------------------------------------------------------
11 BU_LEFT
= _controls_
.BU_LEFT
12 BU_TOP
= _controls_
.BU_TOP
13 BU_RIGHT
= _controls_
.BU_RIGHT
14 BU_BOTTOM
= _controls_
.BU_BOTTOM
15 BU_EXACTFIT
= _controls_
.BU_EXACTFIT
16 BU_AUTODRAW
= _controls_
.BU_AUTODRAW
17 class Button(_core
.Control
):
19 A button is a control that contains a text string, and is one of the most
20 common elements of a GUI. It may be placed on a dialog box or panel, or
21 indeed almost any other window.
24 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
25 def __init__(self
, *args
, **kwargs
):
27 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
28 Size size=DefaultSize, long style=0,
29 Validator validator=DefaultValidator, String name=ButtonNameStr) -> Button
31 Create and show a button.
33 newobj
= _controls_
.new_Button(*args
, **kwargs
)
34 self
.this
= newobj
.this
37 self
._setOORInfo
(self
)
39 def Create(*args
, **kwargs
):
41 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
42 Size size=DefaultSize, long style=0,
43 Validator validator=DefaultValidator, String name=ButtonNameStr) -> bool
45 Acutally create the GUI Button for 2-phase creation.
47 return _controls_
.Button_Create(*args
, **kwargs
)
49 def SetDefault(*args
, **kwargs
):
53 This sets the button to be the default item for the panel or dialog box.
55 return _controls_
.Button_SetDefault(*args
, **kwargs
)
57 def GetDefaultSize(*args
, **kwargs
):
58 """Button.GetDefaultSize() -> Size"""
59 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
61 GetDefaultSize
= staticmethod(GetDefaultSize
)
63 class ButtonPtr(Button
):
64 def __init__(self
, this
):
66 if not hasattr(self
,"thisown"): self
.thisown
= 0
67 self
.__class
__ = Button
68 _controls_
.Button_swigregister(ButtonPtr
)
69 cvar
= _controls_
.cvar
70 ButtonNameStr
= cvar
.ButtonNameStr
72 def PreButton(*args
, **kwargs
):
76 Precreate a Button for 2-phase creation.
78 val
= _controls_
.new_PreButton(*args
, **kwargs
)
82 def Button_GetDefaultSize(*args
, **kwargs
):
83 """Button_GetDefaultSize() -> Size"""
84 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
86 class BitmapButton(Button
):
88 A Button that contains a bitmap. A bitmap button can be supplied with a
89 single bitmap, and wxWindows will draw all button states using this bitmap. If
90 the application needs more control, additional bitmaps for the selected state,
91 unpressed focused state, and greyed-out state may be supplied.
95 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
96 def __init__(self
, *args
, **kwargs
):
98 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
99 Size size=DefaultSize, long style=BU_AUTODRAW,
100 Validator validator=DefaultValidator,
101 String name=ButtonNameStr) -> BitmapButton
103 Create and show a button with a bitmap for the label.
105 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
106 self
.this
= newobj
.this
109 self
._setOORInfo
(self
)
111 def Create(*args
, **kwargs
):
113 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
114 Size size=DefaultSize, long style=BU_AUTODRAW,
115 Validator validator=DefaultValidator,
116 String name=ButtonNameStr) -> bool
118 Acutally create the GUI BitmapButton for 2-phase creation.
120 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
122 def GetBitmapLabel(*args
, **kwargs
):
124 GetBitmapLabel(self) -> Bitmap
126 Returns the label bitmap (the one passed to the constructor).
128 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
130 def GetBitmapDisabled(*args
, **kwargs
):
132 GetBitmapDisabled(self) -> Bitmap
134 Returns the bitmap for the disabled state.
136 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
138 def GetBitmapFocus(*args
, **kwargs
):
140 GetBitmapFocus(self) -> Bitmap
142 Returns the bitmap for the focused state.
144 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
146 def GetBitmapSelected(*args
, **kwargs
):
148 GetBitmapSelected(self) -> Bitmap
150 Returns the bitmap for the selected state.
152 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
154 def SetBitmapDisabled(*args
, **kwargs
):
156 SetBitmapDisabled(self, Bitmap bitmap)
158 Sets the bitmap for the disabled button appearance.
160 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
162 def SetBitmapFocus(*args
, **kwargs
):
164 SetBitmapFocus(self, Bitmap bitmap)
166 Sets the bitmap for the button appearance when it has the keyboard focus.
168 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
170 def SetBitmapSelected(*args
, **kwargs
):
172 SetBitmapSelected(self, Bitmap bitmap)
174 Sets the bitmap for the selected (depressed) button appearance.
176 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
178 def SetBitmapLabel(*args
, **kwargs
):
180 SetBitmapLabel(self, Bitmap bitmap)
182 Sets the bitmap label for the button. This is the bitmap used for the
183 unselected state, and for all other states if no other bitmaps are provided.
185 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
187 def SetMargins(*args
, **kwargs
):
188 """SetMargins(self, int x, int y)"""
189 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
191 def GetMarginX(*args
, **kwargs
):
192 """GetMarginX(self) -> int"""
193 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
195 def GetMarginY(*args
, **kwargs
):
196 """GetMarginY(self) -> int"""
197 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
200 class BitmapButtonPtr(BitmapButton
):
201 def __init__(self
, this
):
203 if not hasattr(self
,"thisown"): self
.thisown
= 0
204 self
.__class
__ = BitmapButton
205 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
207 def PreBitmapButton(*args
, **kwargs
):
209 PreBitmapButton() -> BitmapButton
211 Precreate a BitmapButton for 2-phase creation.
213 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
217 #---------------------------------------------------------------------------
219 CHK_2STATE
= _controls_
.CHK_2STATE
220 CHK_3STATE
= _controls_
.CHK_3STATE
221 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
222 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
223 CHK_CHECKED
= _controls_
.CHK_CHECKED
224 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
225 class CheckBox(_core
.Control
):
227 A checkbox is a labelled box which by default is either on (checkmark is
228 visible) or off (no checkmark). Optionally (When the wxCHK_3STATE style flag
229 is set) it can have a third state, called the mixed or undetermined
230 state. Often this is used as a "Does Not Apply" state.
233 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
234 def __init__(self
, *args
, **kwargs
):
236 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
237 Size size=DefaultSize, long style=0,
238 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox
240 Creates and shows a CheckBox control
242 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
243 self
.this
= newobj
.this
246 self
._setOORInfo
(self
)
248 def Create(*args
, **kwargs
):
250 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
251 Size size=DefaultSize, long style=0,
252 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool
254 Actually create the GUI CheckBox for 2-phase creation.
256 return _controls_
.CheckBox_Create(*args
, **kwargs
)
258 def GetValue(*args
, **kwargs
):
260 GetValue(self) -> bool
262 Gets the state of a 2-state CheckBox. Returns True if it is checked,
265 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
267 def IsChecked(*args
, **kwargs
):
269 IsChecked(self) -> bool
271 Similar to GetValue, but raises an exception if it is not a 2-state CheckBox.
273 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
275 def SetValue(*args
, **kwargs
):
277 SetValue(self, bool state)
279 Set the state of a 2-state CheckBox. Pass True for checked,
282 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
284 def Get3StateValue(*args
, **kwargs
):
286 Get3StateValue(self) -> int
288 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked, wx.CHK_CHECKED when
289 it is checked and wx.CHK_UNDETERMINED when it's in the undetermined state.
290 Raises an exceptiion when the function is used with a 2-state CheckBox.
292 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
294 def Set3StateValue(*args
, **kwargs
):
296 Set3StateValue(self, int state)
298 Sets the CheckBox to the given state. The state parameter can be
299 one of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED
300 (Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
301 exception when the CheckBox is a 2-state checkbox and setting the state
302 to wx.CHK_UNDETERMINED.
304 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
306 def Is3State(*args
, **kwargs
):
308 Is3State(self) -> bool
310 Returns whether or not the CheckBox is a 3-state CheckBox.
312 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
314 def Is3rdStateAllowedForUser(*args
, **kwargs
):
316 Is3rdStateAllowedForUser(self) -> bool
318 Returns whether or not the user can set the CheckBox to the third state.
320 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
323 class CheckBoxPtr(CheckBox
):
324 def __init__(self
, this
):
326 if not hasattr(self
,"thisown"): self
.thisown
= 0
327 self
.__class
__ = CheckBox
328 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
329 CheckBoxNameStr
= cvar
.CheckBoxNameStr
331 def PreCheckBox(*args
, **kwargs
):
333 PreCheckBox() -> CheckBox
335 Precreate a CheckBox for 2-phase creation.
337 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
341 #---------------------------------------------------------------------------
343 class Choice(_core
.ControlWithItems
):
345 A Choice control is used to select one of a list of strings. Unlike a ListBox,
346 only the selection is visible until the user pulls down the menu of choices.
349 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
350 def __init__(self
, *args
, **kwargs
):
352 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
353 List choices=[], long style=0, Validator validator=DefaultValidator,
354 String name=ChoiceNameStr) -> Choice
356 Create and show a Choice control
358 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
359 self
.this
= newobj
.this
362 self
._setOORInfo
(self
)
364 def Create(*args
, **kwargs
):
366 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
367 List choices=[], long style=0, Validator validator=DefaultValidator,
368 String name=ChoiceNameStr) -> bool
370 Actually create the GUI Choice control for 2-phase creation
372 return _controls_
.Choice_Create(*args
, **kwargs
)
374 def SetSelection(*args
, **kwargs
):
376 SetSelection(self, int n)
378 Select the n'th item (zero based) in the list.
380 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
382 def SetStringSelection(*args
, **kwargs
):
384 SetStringSelection(self, String string)
386 Select the item with the specifed string
388 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
390 def SetString(*args
, **kwargs
):
392 SetString(self, int n, String string)
394 Set the label for the n'th item (zero based) in the list.
396 return _controls_
.Choice_SetString(*args
, **kwargs
)
398 Select
= SetSelection
400 class ChoicePtr(Choice
):
401 def __init__(self
, this
):
403 if not hasattr(self
,"thisown"): self
.thisown
= 0
404 self
.__class
__ = Choice
405 _controls_
.Choice_swigregister(ChoicePtr
)
406 ChoiceNameStr
= cvar
.ChoiceNameStr
408 def PreChoice(*args
, **kwargs
):
410 PreChoice() -> Choice
412 Precreate a Choice control for 2-phase creation.
414 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
418 #---------------------------------------------------------------------------
420 class ComboBox(_core
.Control
,_core
.ItemContainer
):
422 A combobox is like a combination of an edit control and a listbox. It can be
423 displayed as static list with editable or read-only text field; or a drop-down
424 list with text field.
427 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
428 def __init__(self
, *args
, **kwargs
):
430 __init__(Window parent, int id, String value=EmptyString,
431 Point pos=DefaultPosition, Size size=DefaultSize,
432 List choices=[], long style=0, Validator validator=DefaultValidator,
433 String name=ComboBoxNameStr) -> ComboBox
435 Constructor, creates and shows a ComboBox control.
437 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
438 self
.this
= newobj
.this
441 self
._setOORInfo
(self
)
443 def Create(*args
, **kwargs
):
445 Create(Window parent, int id, String value=EmptyString,
446 Point pos=DefaultPosition, Size size=DefaultSize,
447 List choices=[], long style=0, Validator validator=DefaultValidator,
448 String name=ChoiceNameStr) -> bool
450 Actually create the GUI wxComboBox control for 2-phase creation
452 return _controls_
.ComboBox_Create(*args
, **kwargs
)
454 def GetValue(*args
, **kwargs
):
456 GetValue(self) -> String
458 Returns the current value in the combobox text field.
460 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
462 def SetValue(*args
, **kwargs
):
463 """SetValue(self, String value)"""
464 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
466 def Copy(*args
, **kwargs
):
470 Copies the selected text to the clipboard.
472 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
474 def Cut(*args
, **kwargs
):
478 Copies the selected text to the clipboard and removes the selection.
480 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
482 def Paste(*args
, **kwargs
):
486 Pastes text from the clipboard to the text field.
488 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
490 def SetInsertionPoint(*args
, **kwargs
):
492 SetInsertionPoint(self, long pos)
494 Sets the insertion point in the combobox text field.
496 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
498 def GetInsertionPoint(*args
, **kwargs
):
500 GetInsertionPoint(self) -> long
502 Returns the insertion point for the combobox's text field.
504 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
506 def GetLastPosition(*args
, **kwargs
):
508 GetLastPosition(self) -> long
510 Returns the last position in the combobox text field.
512 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
514 def Replace(*args
, **kwargs
):
516 Replace(self, long from, long to, String value)
518 Replaces the text between two positions with the given text, in the
521 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
523 def SetSelection(*args
, **kwargs
):
525 SetSelection(self, int n)
527 Selects the text between the two positions, in the combobox text field.
529 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
531 def SetMark(*args
, **kwargs
):
532 """SetMark(self, long from, long to)"""
533 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
535 def SetEditable(*args
, **kwargs
):
536 """SetEditable(self, bool editable)"""
537 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
539 def SetInsertionPointEnd(*args
, **kwargs
):
541 SetInsertionPointEnd(self)
543 Sets the insertion point at the end of the combobox text field.
545 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
547 def Remove(*args
, **kwargs
):
549 Remove(self, long from, long to)
551 Removes the text between the two positions in the combobox text field.
553 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
556 class ComboBoxPtr(ComboBox
):
557 def __init__(self
, this
):
559 if not hasattr(self
,"thisown"): self
.thisown
= 0
560 self
.__class
__ = ComboBox
561 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
562 ComboBoxNameStr
= cvar
.ComboBoxNameStr
564 def PreComboBox(*args
, **kwargs
):
566 PreComboBox() -> ComboBox
568 Precreate a ComboBox control for 2-phase creation.
570 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
574 #---------------------------------------------------------------------------
576 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
577 GA_VERTICAL
= _controls_
.GA_VERTICAL
578 GA_SMOOTH
= _controls_
.GA_SMOOTH
579 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
580 class Gauge(_core
.Control
):
582 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
583 def __init__(self
, *args
, **kwargs
):
585 __init__(self, Window parent, int id, int range, Point pos=DefaultPosition,
586 Size size=DefaultSize, long style=GA_HORIZONTAL,
587 Validator validator=DefaultValidator,
588 String name=GaugeNameStr) -> Gauge
590 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
591 self
.this
= newobj
.this
594 self
._setOORInfo
(self
)
596 def Create(*args
, **kwargs
):
598 Create(self, Window parent, int id, int range, Point pos=DefaultPosition,
599 Size size=DefaultSize, long style=GA_HORIZONTAL,
600 Validator validator=DefaultValidator,
601 String name=GaugeNameStr) -> bool
603 return _controls_
.Gauge_Create(*args
, **kwargs
)
605 def SetRange(*args
, **kwargs
):
606 """SetRange(self, int range)"""
607 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
609 def GetRange(*args
, **kwargs
):
610 """GetRange(self) -> int"""
611 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
613 def SetValue(*args
, **kwargs
):
614 """SetValue(self, int pos)"""
615 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
617 def GetValue(*args
, **kwargs
):
618 """GetValue(self) -> int"""
619 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
621 def IsVertical(*args
, **kwargs
):
622 """IsVertical(self) -> bool"""
623 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
625 def SetShadowWidth(*args
, **kwargs
):
626 """SetShadowWidth(self, int w)"""
627 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
629 def GetShadowWidth(*args
, **kwargs
):
630 """GetShadowWidth(self) -> int"""
631 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
633 def SetBezelFace(*args
, **kwargs
):
634 """SetBezelFace(self, int w)"""
635 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
637 def GetBezelFace(*args
, **kwargs
):
638 """GetBezelFace(self) -> int"""
639 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
642 class GaugePtr(Gauge
):
643 def __init__(self
, this
):
645 if not hasattr(self
,"thisown"): self
.thisown
= 0
646 self
.__class
__ = Gauge
647 _controls_
.Gauge_swigregister(GaugePtr
)
648 GaugeNameStr
= cvar
.GaugeNameStr
650 def PreGauge(*args
, **kwargs
):
651 """PreGauge() -> Gauge"""
652 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
656 #---------------------------------------------------------------------------
658 class StaticBox(_core
.Control
):
660 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
661 def __init__(self
, *args
, **kwargs
):
663 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
664 Size size=DefaultSize, long style=0,
665 String name=StaticBoxNameStr) -> StaticBox
667 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
668 self
.this
= newobj
.this
671 self
._setOORInfo
(self
)
673 def Create(*args
, **kwargs
):
675 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
676 Size size=DefaultSize, long style=0,
677 String name=StaticBoxNameStr) -> bool
679 return _controls_
.StaticBox_Create(*args
, **kwargs
)
682 class StaticBoxPtr(StaticBox
):
683 def __init__(self
, this
):
685 if not hasattr(self
,"thisown"): self
.thisown
= 0
686 self
.__class
__ = StaticBox
687 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
688 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
689 StaticBoxNameStr
= cvar
.StaticBoxNameStr
690 StaticTextNameStr
= cvar
.StaticTextNameStr
692 def PreStaticBox(*args
, **kwargs
):
693 """PreStaticBox() -> StaticBox"""
694 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
698 #---------------------------------------------------------------------------
700 class StaticLine(_core
.Control
):
702 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
703 def __init__(self
, *args
, **kwargs
):
705 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
706 long style=LI_HORIZONTAL,
707 String name=StaticTextNameStr) -> StaticLine
709 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
710 self
.this
= newobj
.this
713 self
._setOORInfo
(self
)
715 def Create(*args
, **kwargs
):
717 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
718 long style=LI_HORIZONTAL,
719 String name=StaticTextNameStr) -> bool
721 return _controls_
.StaticLine_Create(*args
, **kwargs
)
723 def IsVertical(*args
, **kwargs
):
724 """IsVertical(self) -> bool"""
725 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
727 def GetDefaultSize(*args
, **kwargs
):
728 """StaticLine.GetDefaultSize() -> int"""
729 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
731 GetDefaultSize
= staticmethod(GetDefaultSize
)
733 class StaticLinePtr(StaticLine
):
734 def __init__(self
, this
):
736 if not hasattr(self
,"thisown"): self
.thisown
= 0
737 self
.__class
__ = StaticLine
738 _controls_
.StaticLine_swigregister(StaticLinePtr
)
740 def PreStaticLine(*args
, **kwargs
):
741 """PreStaticLine() -> StaticLine"""
742 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
746 def StaticLine_GetDefaultSize(*args
, **kwargs
):
747 """StaticLine_GetDefaultSize() -> int"""
748 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
750 #---------------------------------------------------------------------------
752 class StaticText(_core
.Control
):
754 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
755 def __init__(self
, *args
, **kwargs
):
757 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
758 Size size=DefaultSize, long style=0,
759 String name=StaticTextNameStr) -> StaticText
761 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
762 self
.this
= newobj
.this
765 self
._setOORInfo
(self
)
767 def Create(*args
, **kwargs
):
769 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
770 Size size=DefaultSize, long style=0,
771 String name=StaticTextNameStr) -> bool
773 return _controls_
.StaticText_Create(*args
, **kwargs
)
776 class StaticTextPtr(StaticText
):
777 def __init__(self
, this
):
779 if not hasattr(self
,"thisown"): self
.thisown
= 0
780 self
.__class
__ = StaticText
781 _controls_
.StaticText_swigregister(StaticTextPtr
)
783 def PreStaticText(*args
, **kwargs
):
784 """PreStaticText() -> StaticText"""
785 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
789 #---------------------------------------------------------------------------
791 class StaticBitmap(_core
.Control
):
793 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
794 def __init__(self
, *args
, **kwargs
):
796 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
797 Size size=DefaultSize, long style=0,
798 String name=StaticBitmapNameStr) -> StaticBitmap
800 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
801 self
.this
= newobj
.this
804 self
._setOORInfo
(self
)
806 def Create(*args
, **kwargs
):
808 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
809 Size size=DefaultSize, long style=0,
810 String name=StaticBitmapNameStr) -> bool
812 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
814 def GetBitmap(*args
, **kwargs
):
815 """GetBitmap(self) -> Bitmap"""
816 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
818 def SetBitmap(*args
, **kwargs
):
819 """SetBitmap(self, Bitmap bitmap)"""
820 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
822 def SetIcon(*args
, **kwargs
):
823 """SetIcon(self, Icon icon)"""
824 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
827 class StaticBitmapPtr(StaticBitmap
):
828 def __init__(self
, this
):
830 if not hasattr(self
,"thisown"): self
.thisown
= 0
831 self
.__class
__ = StaticBitmap
832 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
834 def PreStaticBitmap(*args
, **kwargs
):
835 """PreStaticBitmap() -> StaticBitmap"""
836 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
840 #---------------------------------------------------------------------------
842 class ListBox(_core
.ControlWithItems
):
844 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
845 def __init__(self
, *args
, **kwargs
):
847 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
848 wxArrayString choices=wxPyEmptyStringArray,
849 long style=0, Validator validator=DefaultValidator,
850 String name=ListBoxNameStr) -> ListBox
852 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
853 self
.this
= newobj
.this
856 self
._setOORInfo
(self
)
858 def Create(*args
, **kwargs
):
860 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
861 wxArrayString choices=wxPyEmptyStringArray,
862 long style=0, Validator validator=DefaultValidator,
863 String name=ListBoxNameStr) -> bool
865 return _controls_
.ListBox_Create(*args
, **kwargs
)
867 def Insert(*args
, **kwargs
):
869 Insert(self, String item, int pos, PyObject clientData=None)
871 Insert an item into the control before the item at the pos index,
872 optionally associating some data object with the item.
874 return _controls_
.ListBox_Insert(*args
, **kwargs
)
876 def InsertItems(*args
, **kwargs
):
877 """InsertItems(self, wxArrayString items, int pos)"""
878 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
880 def Set(*args
, **kwargs
):
881 """Set(self, wxArrayString items)"""
882 return _controls_
.ListBox_Set(*args
, **kwargs
)
884 def IsSelected(*args
, **kwargs
):
885 """IsSelected(self, int n) -> bool"""
886 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
888 def SetSelection(*args
, **kwargs
):
889 """SetSelection(self, int n, bool select=True)"""
890 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
892 def Select(*args
, **kwargs
):
896 Sets the item at index 'n' to be the selected item.
898 return _controls_
.ListBox_Select(*args
, **kwargs
)
900 def Deselect(*args
, **kwargs
):
901 """Deselect(self, int n)"""
902 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
904 def DeselectAll(*args
, **kwargs
):
905 """DeselectAll(self, int itemToLeaveSelected=-1)"""
906 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
908 def SetStringSelection(*args
, **kwargs
):
909 """SetStringSelection(self, String s, bool select=True) -> bool"""
910 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
912 def GetSelections(*args
, **kwargs
):
913 """GetSelections(self) -> PyObject"""
914 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
916 def SetFirstItem(*args
, **kwargs
):
917 """SetFirstItem(self, int n)"""
918 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
920 def SetFirstItemStr(*args
, **kwargs
):
921 """SetFirstItemStr(self, String s)"""
922 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
924 def EnsureVisible(*args
, **kwargs
):
925 """EnsureVisible(self, int n)"""
926 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
928 def AppendAndEnsureVisible(*args
, **kwargs
):
929 """AppendAndEnsureVisible(self, String s)"""
930 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
932 def IsSorted(*args
, **kwargs
):
933 """IsSorted(self) -> bool"""
934 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
936 def SetItemForegroundColour(*args
, **kwargs
):
937 """SetItemForegroundColour(self, int item, Colour c)"""
938 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
940 def SetItemBackgroundColour(*args
, **kwargs
):
941 """SetItemBackgroundColour(self, int item, Colour c)"""
942 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
944 def SetItemFont(*args
, **kwargs
):
945 """SetItemFont(self, int item, Font f)"""
946 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
948 def GetClassDefaultAttributes(*args
, **kwargs
):
950 ListBox.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
952 Get the default attributes for this class. This is useful if
953 you want to use the same font or colour in your own control as
954 in a standard control -- which is a much better idea than hard
955 coding specific colours or fonts which might look completely out
956 of place on the users system, especially if it uses themes.
958 The variant parameter is only relevant under Mac currently and is
959 ignore under other platforms. Under Mac, it will change the size of the
960 returned font. See SetWindowVariant for more about this.
962 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
964 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
966 class ListBoxPtr(ListBox
):
967 def __init__(self
, this
):
969 if not hasattr(self
,"thisown"): self
.thisown
= 0
970 self
.__class
__ = ListBox
971 _controls_
.ListBox_swigregister(ListBoxPtr
)
972 ListBoxNameStr
= cvar
.ListBoxNameStr
974 def PreListBox(*args
, **kwargs
):
975 """PreListBox() -> ListBox"""
976 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
980 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
982 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
984 Get the default attributes for this class. This is useful if
985 you want to use the same font or colour in your own control as
986 in a standard control -- which is a much better idea than hard
987 coding specific colours or fonts which might look completely out
988 of place on the users system, especially if it uses themes.
990 The variant parameter is only relevant under Mac currently and is
991 ignore under other platforms. Under Mac, it will change the size of the
992 returned font. See SetWindowVariant for more about this.
994 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
996 #---------------------------------------------------------------------------
998 class CheckListBox(ListBox
):
1000 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1001 def __init__(self
, *args
, **kwargs
):
1003 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1004 wxArrayString choices=wxPyEmptyStringArray,
1005 long style=0, Validator validator=DefaultValidator,
1006 String name=ListBoxNameStr) -> CheckListBox
1008 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1009 self
.this
= newobj
.this
1012 self
._setOORInfo
(self
)
1014 def Create(*args
, **kwargs
):
1016 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1017 wxArrayString choices=wxPyEmptyStringArray,
1018 long style=0, Validator validator=DefaultValidator,
1019 String name=ListBoxNameStr) -> bool
1021 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1023 def IsChecked(*args
, **kwargs
):
1024 """IsChecked(self, int index) -> bool"""
1025 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1027 def Check(*args
, **kwargs
):
1028 """Check(self, int index, int check=True)"""
1029 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1031 def HitTest(*args
, **kwargs
):
1033 HitTest(self, Point pt) -> int
1035 Test where the given (in client coords) point lies
1037 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1039 def HitTestXY(*args
, **kwargs
):
1041 HitTestXY(self, int x, int y) -> int
1043 Test where the given (in client coords) point lies
1045 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1048 class CheckListBoxPtr(CheckListBox
):
1049 def __init__(self
, this
):
1051 if not hasattr(self
,"thisown"): self
.thisown
= 0
1052 self
.__class
__ = CheckListBox
1053 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1055 def PreCheckListBox(*args
, **kwargs
):
1056 """PreCheckListBox() -> CheckListBox"""
1057 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1061 #---------------------------------------------------------------------------
1063 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1064 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1065 TE_READONLY
= _controls_
.TE_READONLY
1066 TE_MULTILINE
= _controls_
.TE_MULTILINE
1067 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1068 TE_LEFT
= _controls_
.TE_LEFT
1069 TE_CENTER
= _controls_
.TE_CENTER
1070 TE_RIGHT
= _controls_
.TE_RIGHT
1071 TE_CENTRE
= _controls_
.TE_CENTRE
1072 TE_RICH
= _controls_
.TE_RICH
1073 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1074 TE_PASSWORD
= _controls_
.TE_PASSWORD
1075 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1076 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1077 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1078 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1079 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1080 TE_RICH2
= _controls_
.TE_RICH2
1081 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1082 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1083 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1084 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1085 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1086 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1087 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1088 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1089 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1090 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1091 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1092 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1093 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1094 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1095 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1096 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1097 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1098 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1099 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1100 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1101 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1102 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1103 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1104 class TextAttr(object):
1106 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1107 def __init__(self
, *args
):
1109 __init__(self) -> TextAttr
1110 __init__(self, Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1111 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1113 newobj
= _controls_
.new_TextAttr(*args
)
1114 self
.this
= newobj
.this
1117 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1120 if self
.thisown
: destroy(self
)
1123 def Init(*args
, **kwargs
):
1125 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1127 def SetTextColour(*args
, **kwargs
):
1128 """SetTextColour(self, Colour colText)"""
1129 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1131 def SetBackgroundColour(*args
, **kwargs
):
1132 """SetBackgroundColour(self, Colour colBack)"""
1133 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1135 def SetFont(*args
, **kwargs
):
1136 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1137 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1139 def SetAlignment(*args
, **kwargs
):
1140 """SetAlignment(self, int alignment)"""
1141 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1143 def SetTabs(*args
, **kwargs
):
1144 """SetTabs(self, wxArrayInt tabs)"""
1145 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1147 def SetLeftIndent(*args
, **kwargs
):
1148 """SetLeftIndent(self, int indent)"""
1149 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1151 def SetRightIndent(*args
, **kwargs
):
1152 """SetRightIndent(self, int indent)"""
1153 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1155 def SetFlags(*args
, **kwargs
):
1156 """SetFlags(self, long flags)"""
1157 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1159 def HasTextColour(*args
, **kwargs
):
1160 """HasTextColour(self) -> bool"""
1161 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1163 def HasBackgroundColour(*args
, **kwargs
):
1164 """HasBackgroundColour(self) -> bool"""
1165 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1167 def HasFont(*args
, **kwargs
):
1168 """HasFont(self) -> bool"""
1169 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1171 def HasAlignment(*args
, **kwargs
):
1172 """HasAlignment(self) -> bool"""
1173 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1175 def HasTabs(*args
, **kwargs
):
1176 """HasTabs(self) -> bool"""
1177 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1179 def HasLeftIndent(*args
, **kwargs
):
1180 """HasLeftIndent(self) -> bool"""
1181 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1183 def HasRightIndent(*args
, **kwargs
):
1184 """HasRightIndent(self) -> bool"""
1185 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1187 def HasFlag(*args
, **kwargs
):
1188 """HasFlag(self, long flag) -> bool"""
1189 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1191 def GetTextColour(*args
, **kwargs
):
1192 """GetTextColour(self) -> Colour"""
1193 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1195 def GetBackgroundColour(*args
, **kwargs
):
1196 """GetBackgroundColour(self) -> Colour"""
1197 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1199 def GetFont(*args
, **kwargs
):
1200 """GetFont(self) -> Font"""
1201 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1203 def GetAlignment(*args
, **kwargs
):
1204 """GetAlignment(self) -> int"""
1205 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1207 def GetTabs(*args
, **kwargs
):
1208 """GetTabs(self) -> wxArrayInt"""
1209 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1211 def GetLeftIndent(*args
, **kwargs
):
1212 """GetLeftIndent(self) -> long"""
1213 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1215 def GetRightIndent(*args
, **kwargs
):
1216 """GetRightIndent(self) -> long"""
1217 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1219 def GetFlags(*args
, **kwargs
):
1220 """GetFlags(self) -> long"""
1221 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1223 def IsDefault(*args
, **kwargs
):
1224 """IsDefault(self) -> bool"""
1225 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1227 def Combine(*args
, **kwargs
):
1228 """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1229 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1231 Combine
= staticmethod(Combine
)
1233 class TextAttrPtr(TextAttr
):
1234 def __init__(self
, this
):
1236 if not hasattr(self
,"thisown"): self
.thisown
= 0
1237 self
.__class
__ = TextAttr
1238 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1239 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1241 def TextAttr_Combine(*args
, **kwargs
):
1242 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1243 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1245 class TextCtrl(_core
.Control
):
1247 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1248 def __init__(self
, *args
, **kwargs
):
1250 __init__(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1251 Size size=DefaultSize,
1252 long style=0, Validator validator=DefaultValidator,
1253 String name=TextCtrlNameStr) -> TextCtrl
1255 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1256 self
.this
= newobj
.this
1259 self
._setOORInfo
(self
)
1261 def Create(*args
, **kwargs
):
1263 Create(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1264 Size size=DefaultSize,
1265 long style=0, Validator validator=DefaultValidator,
1266 String name=TextCtrlNameStr) -> bool
1268 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1270 def GetValue(*args
, **kwargs
):
1271 """GetValue(self) -> String"""
1272 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1274 def SetValue(*args
, **kwargs
):
1275 """SetValue(self, String value)"""
1276 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1278 def GetRange(*args
, **kwargs
):
1279 """GetRange(self, long from, long to) -> String"""
1280 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1282 def GetLineLength(*args
, **kwargs
):
1283 """GetLineLength(self, long lineNo) -> int"""
1284 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1286 def GetLineText(*args
, **kwargs
):
1287 """GetLineText(self, long lineNo) -> String"""
1288 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1290 def GetNumberOfLines(*args
, **kwargs
):
1291 """GetNumberOfLines(self) -> int"""
1292 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1294 def IsModified(*args
, **kwargs
):
1295 """IsModified(self) -> bool"""
1296 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1298 def IsEditable(*args
, **kwargs
):
1299 """IsEditable(self) -> bool"""
1300 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1302 def IsSingleLine(*args
, **kwargs
):
1303 """IsSingleLine(self) -> bool"""
1304 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1306 def IsMultiLine(*args
, **kwargs
):
1307 """IsMultiLine(self) -> bool"""
1308 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1310 def GetSelection(*args
, **kwargs
):
1312 GetSelection() -> (from, to)
1314 If the return values from and to are the same, there is no selection.
1316 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1318 def GetStringSelection(*args
, **kwargs
):
1319 """GetStringSelection(self) -> String"""
1320 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1322 def Clear(*args
, **kwargs
):
1324 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1326 def Replace(*args
, **kwargs
):
1327 """Replace(self, long from, long to, String value)"""
1328 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1330 def Remove(*args
, **kwargs
):
1331 """Remove(self, long from, long to)"""
1332 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1334 def LoadFile(*args
, **kwargs
):
1335 """LoadFile(self, String file) -> bool"""
1336 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1338 def SaveFile(*args
, **kwargs
):
1339 """SaveFile(self, String file=EmptyString) -> bool"""
1340 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1342 def MarkDirty(*args
, **kwargs
):
1343 """MarkDirty(self)"""
1344 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1346 def DiscardEdits(*args
, **kwargs
):
1347 """DiscardEdits(self)"""
1348 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1350 def SetMaxLength(*args
, **kwargs
):
1351 """SetMaxLength(self, unsigned long len)"""
1352 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1354 def WriteText(*args
, **kwargs
):
1355 """WriteText(self, String text)"""
1356 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1358 def AppendText(*args
, **kwargs
):
1359 """AppendText(self, String text)"""
1360 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1362 def EmulateKeyPress(*args
, **kwargs
):
1363 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1364 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1366 def SetStyle(*args
, **kwargs
):
1367 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1368 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1370 def GetStyle(*args
, **kwargs
):
1371 """GetStyle(self, long position, TextAttr style) -> bool"""
1372 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1374 def SetDefaultStyle(*args
, **kwargs
):
1375 """SetDefaultStyle(self, TextAttr style) -> bool"""
1376 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1378 def GetDefaultStyle(*args
, **kwargs
):
1379 """GetDefaultStyle(self) -> TextAttr"""
1380 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1382 def XYToPosition(*args
, **kwargs
):
1383 """XYToPosition(self, long x, long y) -> long"""
1384 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1386 def PositionToXY(*args
, **kwargs
):
1387 """PositionToXY(long pos) -> (x, y)"""
1388 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1390 def ShowPosition(*args
, **kwargs
):
1391 """ShowPosition(self, long pos)"""
1392 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1394 def HitTest(*args
, **kwargs
):
1396 HitTest(Point pt) -> (result, row, col)
1398 Find the character at position given in pixels.
1399 NB: pt is in device coords (not adjusted for the client area
1400 origin nor scrolling)
1402 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1404 def Copy(*args
, **kwargs
):
1406 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1408 def Cut(*args
, **kwargs
):
1410 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1412 def Paste(*args
, **kwargs
):
1414 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1416 def CanCopy(*args
, **kwargs
):
1417 """CanCopy(self) -> bool"""
1418 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1420 def CanCut(*args
, **kwargs
):
1421 """CanCut(self) -> bool"""
1422 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1424 def CanPaste(*args
, **kwargs
):
1425 """CanPaste(self) -> bool"""
1426 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1428 def Undo(*args
, **kwargs
):
1430 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1432 def Redo(*args
, **kwargs
):
1434 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1436 def CanUndo(*args
, **kwargs
):
1437 """CanUndo(self) -> bool"""
1438 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1440 def CanRedo(*args
, **kwargs
):
1441 """CanRedo(self) -> bool"""
1442 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1444 def SetInsertionPoint(*args
, **kwargs
):
1445 """SetInsertionPoint(self, long pos)"""
1446 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1448 def SetInsertionPointEnd(*args
, **kwargs
):
1449 """SetInsertionPointEnd(self)"""
1450 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1452 def GetInsertionPoint(*args
, **kwargs
):
1453 """GetInsertionPoint(self) -> long"""
1454 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1456 def GetLastPosition(*args
, **kwargs
):
1457 """GetLastPosition(self) -> long"""
1458 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1460 def SetSelection(*args
, **kwargs
):
1461 """SetSelection(self, long from, long to)"""
1462 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1464 def SelectAll(*args
, **kwargs
):
1465 """SelectAll(self)"""
1466 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1468 def SetEditable(*args
, **kwargs
):
1469 """SetEditable(self, bool editable)"""
1470 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1472 def write(*args
, **kwargs
):
1473 """write(self, String text)"""
1474 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1476 def GetString(*args
, **kwargs
):
1477 """GetString(self, long from, long to) -> String"""
1478 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1481 class TextCtrlPtr(TextCtrl
):
1482 def __init__(self
, this
):
1484 if not hasattr(self
,"thisown"): self
.thisown
= 0
1485 self
.__class
__ = TextCtrl
1486 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
1488 def PreTextCtrl(*args
, **kwargs
):
1489 """PreTextCtrl() -> TextCtrl"""
1490 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1494 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1495 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1496 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1497 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1498 class TextUrlEvent(_core
.CommandEvent
):
1500 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1501 def __init__(self
, *args
, **kwargs
):
1502 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1503 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
1504 self
.this
= newobj
.this
1507 def GetMouseEvent(*args
, **kwargs
):
1508 """GetMouseEvent(self) -> MouseEvent"""
1509 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1511 def GetURLStart(*args
, **kwargs
):
1512 """GetURLStart(self) -> long"""
1513 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1515 def GetURLEnd(*args
, **kwargs
):
1516 """GetURLEnd(self) -> long"""
1517 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1520 class TextUrlEventPtr(TextUrlEvent
):
1521 def __init__(self
, this
):
1523 if not hasattr(self
,"thisown"): self
.thisown
= 0
1524 self
.__class
__ = TextUrlEvent
1525 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1527 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1528 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1529 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1530 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1532 #---------------------------------------------------------------------------
1534 class ScrollBar(_core
.Control
):
1536 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1537 def __init__(self
, *args
, **kwargs
):
1539 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1540 Size size=DefaultSize, long style=SB_HORIZONTAL,
1541 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1543 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
1544 self
.this
= newobj
.this
1547 self
._setOORInfo
(self
)
1549 def Create(*args
, **kwargs
):
1551 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1552 Size size=DefaultSize, long style=SB_HORIZONTAL,
1553 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1555 Do the 2nd phase and create the GUI control.
1557 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1559 def GetThumbPosition(*args
, **kwargs
):
1560 """GetThumbPosition(self) -> int"""
1561 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1563 def GetThumbSize(*args
, **kwargs
):
1564 """GetThumbSize(self) -> int"""
1565 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1567 GetThumbLength
= GetThumbSize
1568 def GetPageSize(*args
, **kwargs
):
1569 """GetPageSize(self) -> int"""
1570 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
1572 def GetRange(*args
, **kwargs
):
1573 """GetRange(self) -> int"""
1574 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
1576 def IsVertical(*args
, **kwargs
):
1577 """IsVertical(self) -> bool"""
1578 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
1580 def SetThumbPosition(*args
, **kwargs
):
1581 """SetThumbPosition(self, int viewStart)"""
1582 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1584 def SetScrollbar(*args
, **kwargs
):
1586 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
1589 Sets the scrollbar properties of a built-in scrollbar.
1591 orientation: Determines the scrollbar whose page size is to be
1592 set. May be wx.HORIZONTAL or wx.VERTICAL.
1594 position: The position of the scrollbar in scroll units.
1596 thumbSize: The size of the thumb, or visible portion of the
1597 scrollbar, in scroll units.
1599 range: The maximum position of the scrollbar.
1601 refresh: True to redraw the scrollbar, false otherwise.
1603 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1606 class ScrollBarPtr(ScrollBar
):
1607 def __init__(self
, this
):
1609 if not hasattr(self
,"thisown"): self
.thisown
= 0
1610 self
.__class
__ = ScrollBar
1611 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
1612 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1614 def PreScrollBar(*args
, **kwargs
):
1615 """PreScrollBar() -> ScrollBar"""
1616 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
1620 #---------------------------------------------------------------------------
1622 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
1623 SP_VERTICAL
= _controls_
.SP_VERTICAL
1624 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
1625 SP_WRAP
= _controls_
.SP_WRAP
1626 class SpinButton(_core
.Control
):
1628 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1629 def __init__(self
, *args
, **kwargs
):
1631 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1632 Size size=DefaultSize, long style=SP_HORIZONTAL,
1633 String name=SPIN_BUTTON_NAME) -> SpinButton
1635 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
1636 self
.this
= newobj
.this
1639 self
._setOORInfo
(self
)
1641 def Create(*args
, **kwargs
):
1643 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1644 Size size=DefaultSize, long style=SP_HORIZONTAL,
1645 String name=SPIN_BUTTON_NAME) -> bool
1647 return _controls_
.SpinButton_Create(*args
, **kwargs
)
1649 def GetValue(*args
, **kwargs
):
1650 """GetValue(self) -> int"""
1651 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
1653 def GetMin(*args
, **kwargs
):
1654 """GetMin(self) -> int"""
1655 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
1657 def GetMax(*args
, **kwargs
):
1658 """GetMax(self) -> int"""
1659 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
1661 def SetValue(*args
, **kwargs
):
1662 """SetValue(self, int val)"""
1663 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
1665 def SetMin(*args
, **kwargs
):
1666 """SetMin(self, int minVal)"""
1667 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
1669 def SetMax(*args
, **kwargs
):
1670 """SetMax(self, int maxVal)"""
1671 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
1673 def SetRange(*args
, **kwargs
):
1674 """SetRange(self, int minVal, int maxVal)"""
1675 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
1677 def IsVertical(*args
, **kwargs
):
1678 """IsVertical(self) -> bool"""
1679 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
1682 class SpinButtonPtr(SpinButton
):
1683 def __init__(self
, this
):
1685 if not hasattr(self
,"thisown"): self
.thisown
= 0
1686 self
.__class
__ = SpinButton
1687 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
1688 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1689 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1691 def PreSpinButton(*args
, **kwargs
):
1692 """PreSpinButton() -> SpinButton"""
1693 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
1697 class SpinCtrl(_core
.Control
):
1699 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1700 def __init__(self
, *args
, **kwargs
):
1702 __init__(self, Window parent, int id=-1, String value=EmptyString,
1703 Point pos=DefaultPosition, Size size=DefaultSize,
1704 long style=SP_ARROW_KEYS, int min=0, int max=100,
1705 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1707 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
1708 self
.this
= newobj
.this
1711 self
._setOORInfo
(self
)
1713 def Create(*args
, **kwargs
):
1715 Create(self, Window parent, int id=-1, String value=EmptyString,
1716 Point pos=DefaultPosition, Size size=DefaultSize,
1717 long style=SP_ARROW_KEYS, int min=0, int max=100,
1718 int initial=0, String name=SpinCtrlNameStr) -> bool
1720 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
1722 def GetValue(*args
, **kwargs
):
1723 """GetValue(self) -> int"""
1724 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
1726 def SetValue(*args
, **kwargs
):
1727 """SetValue(self, int value)"""
1728 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
1730 def SetValueString(*args
, **kwargs
):
1731 """SetValueString(self, String text)"""
1732 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
1734 def SetRange(*args
, **kwargs
):
1735 """SetRange(self, int minVal, int maxVal)"""
1736 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
1738 def GetMin(*args
, **kwargs
):
1739 """GetMin(self) -> int"""
1740 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
1742 def GetMax(*args
, **kwargs
):
1743 """GetMax(self) -> int"""
1744 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
1746 def SetSelection(*args
, **kwargs
):
1747 """SetSelection(self, long from, long to)"""
1748 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
1751 class SpinCtrlPtr(SpinCtrl
):
1752 def __init__(self
, this
):
1754 if not hasattr(self
,"thisown"): self
.thisown
= 0
1755 self
.__class
__ = SpinCtrl
1756 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
1758 def PreSpinCtrl(*args
, **kwargs
):
1759 """PreSpinCtrl() -> SpinCtrl"""
1760 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
1764 class SpinEvent(_core
.NotifyEvent
):
1766 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1767 def __init__(self
, *args
, **kwargs
):
1768 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1769 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
1770 self
.this
= newobj
.this
1773 def GetPosition(*args
, **kwargs
):
1774 """GetPosition(self) -> int"""
1775 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
1777 def SetPosition(*args
, **kwargs
):
1778 """SetPosition(self, int pos)"""
1779 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
1782 class SpinEventPtr(SpinEvent
):
1783 def __init__(self
, this
):
1785 if not hasattr(self
,"thisown"): self
.thisown
= 0
1786 self
.__class
__ = SpinEvent
1787 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
1789 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
1790 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1791 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1792 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1793 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1795 #---------------------------------------------------------------------------
1797 class RadioBox(_core
.Control
):
1799 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1800 def __init__(self
, *args
, **kwargs
):
1802 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
1803 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1804 int majorDimension=0,
1805 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1806 String name=RadioBoxNameStr) -> RadioBox
1808 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1809 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
1810 self
.this
= newobj
.this
1813 self
._setOORInfo
(self
)
1815 def Create(*args
, **kwargs
):
1817 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
1818 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1819 int majorDimension=0,
1820 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1821 String name=RadioBoxNameStr) -> bool
1823 return _controls_
.RadioBox_Create(*args
, **kwargs
)
1825 def SetSelection(*args
, **kwargs
):
1826 """SetSelection(self, int n)"""
1827 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
1829 def GetSelection(*args
, **kwargs
):
1830 """GetSelection(self) -> int"""
1831 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
1833 def GetStringSelection(*args
, **kwargs
):
1834 """GetStringSelection(self) -> String"""
1835 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
1837 def SetStringSelection(*args
, **kwargs
):
1838 """SetStringSelection(self, String s) -> bool"""
1839 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
1841 def GetCount(*args
, **kwargs
):
1842 """GetCount(self) -> int"""
1843 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
1845 def FindString(*args
, **kwargs
):
1846 """FindString(self, String s) -> int"""
1847 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
1849 def GetString(*args
, **kwargs
):
1850 """GetString(self, int n) -> String"""
1851 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
1853 def SetString(*args
, **kwargs
):
1854 """SetString(self, int n, String label)"""
1855 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
1857 GetItemLabel
= GetString
1858 SetItemLabel
= SetString
1859 def EnableItem(*args
, **kwargs
):
1860 """EnableItem(self, int n, bool enable=True)"""
1861 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
1863 def ShowItem(*args
, **kwargs
):
1864 """ShowItem(self, int n, bool show=True)"""
1865 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
1867 def GetColumnCount(*args
, **kwargs
):
1868 """GetColumnCount(self) -> int"""
1869 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
1871 def GetRowCount(*args
, **kwargs
):
1872 """GetRowCount(self) -> int"""
1873 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
1875 def GetNextItem(*args
, **kwargs
):
1876 """GetNextItem(self, int item, int dir, long style) -> int"""
1877 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
1880 class RadioBoxPtr(RadioBox
):
1881 def __init__(self
, this
):
1883 if not hasattr(self
,"thisown"): self
.thisown
= 0
1884 self
.__class
__ = RadioBox
1885 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
1886 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1887 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1889 def PreRadioBox(*args
, **kwargs
):
1890 """PreRadioBox() -> RadioBox"""
1891 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
1895 #---------------------------------------------------------------------------
1897 class RadioButton(_core
.Control
):
1899 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1900 def __init__(self
, *args
, **kwargs
):
1902 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
1903 Size size=DefaultSize, long style=0,
1904 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1906 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
1907 self
.this
= newobj
.this
1910 self
._setOORInfo
(self
)
1912 def Create(*args
, **kwargs
):
1914 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
1915 Size size=DefaultSize, long style=0,
1916 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1918 return _controls_
.RadioButton_Create(*args
, **kwargs
)
1920 def GetValue(*args
, **kwargs
):
1921 """GetValue(self) -> bool"""
1922 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
1924 def SetValue(*args
, **kwargs
):
1925 """SetValue(self, bool value)"""
1926 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
1929 class RadioButtonPtr(RadioButton
):
1930 def __init__(self
, this
):
1932 if not hasattr(self
,"thisown"): self
.thisown
= 0
1933 self
.__class
__ = RadioButton
1934 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
1936 def PreRadioButton(*args
, **kwargs
):
1937 """PreRadioButton() -> RadioButton"""
1938 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
1942 #---------------------------------------------------------------------------
1944 class Slider(_core
.Control
):
1946 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1947 def __init__(self
, *args
, **kwargs
):
1949 __init__(self, Window parent, int id, int value, int minValue, int maxValue,
1950 Point pos=DefaultPosition, Size size=DefaultSize,
1951 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1952 String name=SliderNameStr) -> Slider
1954 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1955 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
1956 self
.this
= newobj
.this
1959 self
._setOORInfo
(self
)
1961 def Create(*args
, **kwargs
):
1963 Create(self, Window parent, int id, int value, int minValue, int maxValue,
1964 Point pos=DefaultPosition, Size size=DefaultSize,
1965 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1966 String name=SliderNameStr) -> bool
1968 return _controls_
.Slider_Create(*args
, **kwargs
)
1970 def GetValue(*args
, **kwargs
):
1971 """GetValue(self) -> int"""
1972 return _controls_
.Slider_GetValue(*args
, **kwargs
)
1974 def SetValue(*args
, **kwargs
):
1975 """SetValue(self, int value)"""
1976 return _controls_
.Slider_SetValue(*args
, **kwargs
)
1978 def SetRange(*args
, **kwargs
):
1979 """SetRange(self, int minValue, int maxValue)"""
1980 return _controls_
.Slider_SetRange(*args
, **kwargs
)
1982 def GetMin(*args
, **kwargs
):
1983 """GetMin(self) -> int"""
1984 return _controls_
.Slider_GetMin(*args
, **kwargs
)
1986 def GetMax(*args
, **kwargs
):
1987 """GetMax(self) -> int"""
1988 return _controls_
.Slider_GetMax(*args
, **kwargs
)
1990 def SetMin(*args
, **kwargs
):
1991 """SetMin(self, int minValue)"""
1992 return _controls_
.Slider_SetMin(*args
, **kwargs
)
1994 def SetMax(*args
, **kwargs
):
1995 """SetMax(self, int maxValue)"""
1996 return _controls_
.Slider_SetMax(*args
, **kwargs
)
1998 def SetLineSize(*args
, **kwargs
):
1999 """SetLineSize(self, int lineSize)"""
2000 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2002 def SetPageSize(*args
, **kwargs
):
2003 """SetPageSize(self, int pageSize)"""
2004 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2006 def GetLineSize(*args
, **kwargs
):
2007 """GetLineSize(self) -> int"""
2008 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2010 def GetPageSize(*args
, **kwargs
):
2011 """GetPageSize(self) -> int"""
2012 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2014 def SetThumbLength(*args
, **kwargs
):
2015 """SetThumbLength(self, int lenPixels)"""
2016 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2018 def GetThumbLength(*args
, **kwargs
):
2019 """GetThumbLength(self) -> int"""
2020 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2022 def SetTickFreq(*args
, **kwargs
):
2023 """SetTickFreq(self, int n, int pos=1)"""
2024 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2026 def GetTickFreq(*args
, **kwargs
):
2027 """GetTickFreq(self) -> int"""
2028 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2030 def ClearTicks(*args
, **kwargs
):
2031 """ClearTicks(self)"""
2032 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2034 def SetTick(*args
, **kwargs
):
2035 """SetTick(self, int tickPos)"""
2036 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2038 def ClearSel(*args
, **kwargs
):
2039 """ClearSel(self)"""
2040 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2042 def GetSelEnd(*args
, **kwargs
):
2043 """GetSelEnd(self) -> int"""
2044 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2046 def GetSelStart(*args
, **kwargs
):
2047 """GetSelStart(self) -> int"""
2048 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2050 def SetSelection(*args
, **kwargs
):
2051 """SetSelection(self, int min, int max)"""
2052 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2055 class SliderPtr(Slider
):
2056 def __init__(self
, this
):
2058 if not hasattr(self
,"thisown"): self
.thisown
= 0
2059 self
.__class
__ = Slider
2060 _controls_
.Slider_swigregister(SliderPtr
)
2061 SliderNameStr
= cvar
.SliderNameStr
2063 def PreSlider(*args
, **kwargs
):
2064 """PreSlider() -> Slider"""
2065 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2069 #---------------------------------------------------------------------------
2071 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2072 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2074 class ToggleButton(_core
.Control
):
2076 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2077 def __init__(self
, *args
, **kwargs
):
2079 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2080 Size size=DefaultSize, long style=0,
2081 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2083 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2084 self
.this
= newobj
.this
2087 self
._setOORInfo
(self
)
2090 class ToggleButtonPtr(ToggleButton
):
2091 def __init__(self
, this
):
2093 if not hasattr(self
,"thisown"): self
.thisown
= 0
2094 self
.__class
__ = ToggleButton
2095 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2096 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2098 def PreToggleButton(*args
, **kwargs
):
2099 """PreToggleButton() -> ToggleButton"""
2100 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2104 #---------------------------------------------------------------------------
2106 class BookCtrl(_core
.Control
):
2107 def __init__(self
): raise RuntimeError, "No constructor defined"
2109 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2110 def GetPageCount(*args
, **kwargs
):
2111 """GetPageCount(self) -> size_t"""
2112 return _controls_
.BookCtrl_GetPageCount(*args
, **kwargs
)
2114 def GetPage(*args
, **kwargs
):
2115 """GetPage(self, size_t n) -> Window"""
2116 return _controls_
.BookCtrl_GetPage(*args
, **kwargs
)
2118 def GetSelection(*args
, **kwargs
):
2119 """GetSelection(self) -> int"""
2120 return _controls_
.BookCtrl_GetSelection(*args
, **kwargs
)
2122 def SetPageText(*args
, **kwargs
):
2123 """SetPageText(self, size_t n, String strText) -> bool"""
2124 return _controls_
.BookCtrl_SetPageText(*args
, **kwargs
)
2126 def GetPageText(*args
, **kwargs
):
2127 """GetPageText(self, size_t n) -> String"""
2128 return _controls_
.BookCtrl_GetPageText(*args
, **kwargs
)
2130 def SetImageList(*args
, **kwargs
):
2131 """SetImageList(self, ImageList imageList)"""
2132 return _controls_
.BookCtrl_SetImageList(*args
, **kwargs
)
2134 def AssignImageList(*args
, **kwargs
):
2135 """AssignImageList(self, ImageList imageList)"""
2136 return _controls_
.BookCtrl_AssignImageList(*args
, **kwargs
)
2138 def GetImageList(*args
, **kwargs
):
2139 """GetImageList(self) -> ImageList"""
2140 return _controls_
.BookCtrl_GetImageList(*args
, **kwargs
)
2142 def GetPageImage(*args
, **kwargs
):
2143 """GetPageImage(self, size_t n) -> int"""
2144 return _controls_
.BookCtrl_GetPageImage(*args
, **kwargs
)
2146 def SetPageImage(*args
, **kwargs
):
2147 """SetPageImage(self, size_t n, int imageId) -> bool"""
2148 return _controls_
.BookCtrl_SetPageImage(*args
, **kwargs
)
2150 def SetPageSize(*args
, **kwargs
):
2151 """SetPageSize(self, Size size)"""
2152 return _controls_
.BookCtrl_SetPageSize(*args
, **kwargs
)
2154 def CalcSizeFromPage(*args
, **kwargs
):
2155 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2156 return _controls_
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2158 def DeletePage(*args
, **kwargs
):
2159 """DeletePage(self, size_t n) -> bool"""
2160 return _controls_
.BookCtrl_DeletePage(*args
, **kwargs
)
2162 def RemovePage(*args
, **kwargs
):
2163 """RemovePage(self, size_t n) -> bool"""
2164 return _controls_
.BookCtrl_RemovePage(*args
, **kwargs
)
2166 def DeleteAllPages(*args
, **kwargs
):
2167 """DeleteAllPages(self) -> bool"""
2168 return _controls_
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2170 def AddPage(*args
, **kwargs
):
2171 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2172 return _controls_
.BookCtrl_AddPage(*args
, **kwargs
)
2174 def InsertPage(*args
, **kwargs
):
2176 InsertPage(self, size_t n, Window page, String text, bool select=False,
2177 int imageId=-1) -> bool
2179 return _controls_
.BookCtrl_InsertPage(*args
, **kwargs
)
2181 def SetSelection(*args
, **kwargs
):
2182 """SetSelection(self, size_t n) -> int"""
2183 return _controls_
.BookCtrl_SetSelection(*args
, **kwargs
)
2185 def AdvanceSelection(*args
, **kwargs
):
2186 """AdvanceSelection(self, bool forward=True)"""
2187 return _controls_
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2190 class BookCtrlPtr(BookCtrl
):
2191 def __init__(self
, this
):
2193 if not hasattr(self
,"thisown"): self
.thisown
= 0
2194 self
.__class
__ = BookCtrl
2195 _controls_
.BookCtrl_swigregister(BookCtrlPtr
)
2196 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2198 class BookCtrlEvent(_core
.NotifyEvent
):
2200 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2201 def __init__(self
, *args
, **kwargs
):
2203 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2204 int nOldSel=-1) -> BookCtrlEvent
2206 newobj
= _controls_
.new_BookCtrlEvent(*args
, **kwargs
)
2207 self
.this
= newobj
.this
2210 def GetSelection(*args
, **kwargs
):
2211 """GetSelection(self) -> int"""
2212 return _controls_
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2214 def SetSelection(*args
, **kwargs
):
2215 """SetSelection(self, int nSel)"""
2216 return _controls_
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2218 def GetOldSelection(*args
, **kwargs
):
2219 """GetOldSelection(self) -> int"""
2220 return _controls_
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2222 def SetOldSelection(*args
, **kwargs
):
2223 """SetOldSelection(self, int nOldSel)"""
2224 return _controls_
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2227 class BookCtrlEventPtr(BookCtrlEvent
):
2228 def __init__(self
, this
):
2230 if not hasattr(self
,"thisown"): self
.thisown
= 0
2231 self
.__class
__ = BookCtrlEvent
2232 _controls_
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2234 #---------------------------------------------------------------------------
2236 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2237 NB_TOP
= _controls_
.NB_TOP
2238 NB_LEFT
= _controls_
.NB_LEFT
2239 NB_RIGHT
= _controls_
.NB_RIGHT
2240 NB_BOTTOM
= _controls_
.NB_BOTTOM
2241 NB_MULTILINE
= _controls_
.NB_MULTILINE
2242 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2243 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2244 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2245 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2246 class Notebook(BookCtrl
):
2248 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2249 def __init__(self
, *args
, **kwargs
):
2251 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2252 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2254 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
2255 self
.this
= newobj
.this
2258 self
._setOORInfo
(self
)
2260 def Create(*args
, **kwargs
):
2262 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2263 long style=0, String name=NOTEBOOK_NAME) -> bool
2265 return _controls_
.Notebook_Create(*args
, **kwargs
)
2267 def GetRowCount(*args
, **kwargs
):
2268 """GetRowCount(self) -> int"""
2269 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2271 def SetPadding(*args
, **kwargs
):
2272 """SetPadding(self, Size padding)"""
2273 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2275 def SetTabSize(*args
, **kwargs
):
2276 """SetTabSize(self, Size sz)"""
2277 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
2279 def HitTest(*args
, **kwargs
):
2281 HitTest(Point pt) -> (tab, where)
2283 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2285 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
2287 def CalcSizeFromPage(*args
, **kwargs
):
2288 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2289 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2292 class NotebookPtr(Notebook
):
2293 def __init__(self
, this
):
2295 if not hasattr(self
,"thisown"): self
.thisown
= 0
2296 self
.__class
__ = Notebook
2297 _controls_
.Notebook_swigregister(NotebookPtr
)
2299 def PreNotebook(*args
, **kwargs
):
2300 """PreNotebook() -> Notebook"""
2301 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
2305 class NotebookEvent(BookCtrlEvent
):
2307 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2308 def __init__(self
, *args
, **kwargs
):
2310 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2311 int nOldSel=-1) -> NotebookEvent
2313 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
2314 self
.this
= newobj
.this
2318 class NotebookEventPtr(NotebookEvent
):
2319 def __init__(self
, this
):
2321 if not hasattr(self
,"thisown"): self
.thisown
= 0
2322 self
.__class
__ = NotebookEvent
2323 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
2325 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2326 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2328 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2329 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2331 #----------------------------------------------------------------------------
2333 class NotebookPage(wx
.Panel
):
2335 There is an old (and apparently unsolvable) bug when placing a
2336 window with a nonstandard background colour in a wxNotebook on
2337 wxGTK, as the notbooks's background colour would always be used
2338 when the window is refreshed. The solution is to place a panel in
2339 the notbook and the coloured window on the panel, sized to cover
2340 the panel. This simple class does that for you, just put an
2341 instance of this in the notebook and make your regular window a
2342 child of this one and it will handle the resize for you.
2344 def __init__(self
, parent
, id=-1,
2345 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2346 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2347 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2349 EVT_SIZE(self
, self
.OnSize
)
2351 def OnSize(self
, evt
):
2352 if self
.child
is None:
2353 children
= self
.GetChildren()
2355 self
.child
= children
[0]
2357 self
.child
.SetPosition((0,0))
2358 self
.child
.SetSize(self
.GetSize())
2361 #---------------------------------------------------------------------------
2363 LB_DEFAULT
= _controls_
.LB_DEFAULT
2364 LB_TOP
= _controls_
.LB_TOP
2365 LB_BOTTOM
= _controls_
.LB_BOTTOM
2366 LB_LEFT
= _controls_
.LB_LEFT
2367 LB_RIGHT
= _controls_
.LB_RIGHT
2368 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
2369 class Listbook(BookCtrl
):
2371 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2372 def __init__(self
, *args
, **kwargs
):
2374 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2375 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
2377 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
2378 self
.this
= newobj
.this
2381 self
._setOORInfo
(self
)
2383 def Create(*args
, **kwargs
):
2385 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2386 long style=0, String name=EmptyString) -> bool
2388 return _controls_
.Listbook_Create(*args
, **kwargs
)
2390 def IsVertical(*args
, **kwargs
):
2391 """IsVertical(self) -> bool"""
2392 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
2395 class ListbookPtr(Listbook
):
2396 def __init__(self
, this
):
2398 if not hasattr(self
,"thisown"): self
.thisown
= 0
2399 self
.__class
__ = Listbook
2400 _controls_
.Listbook_swigregister(ListbookPtr
)
2402 def PreListbook(*args
, **kwargs
):
2403 """PreListbook() -> Listbook"""
2404 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
2408 class ListbookEvent(BookCtrlEvent
):
2410 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2411 def __init__(self
, *args
, **kwargs
):
2413 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2414 int nOldSel=-1) -> ListbookEvent
2416 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
2417 self
.this
= newobj
.this
2421 class ListbookEventPtr(ListbookEvent
):
2422 def __init__(self
, this
):
2424 if not hasattr(self
,"thisown"): self
.thisown
= 0
2425 self
.__class
__ = ListbookEvent
2426 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
2428 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2429 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2430 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2431 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2433 #---------------------------------------------------------------------------
2435 class BookCtrlSizer(_core
.Sizer
):
2437 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2438 def __init__(self
, *args
, **kwargs
):
2439 """__init__(self, BookCtrl nb) -> BookCtrlSizer"""
2440 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
2441 self
.this
= newobj
.this
2444 self
._setOORInfo
(self
)
2446 def RecalcSizes(*args
, **kwargs
):
2447 """RecalcSizes(self)"""
2448 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2450 def CalcMin(*args
, **kwargs
):
2451 """CalcMin(self) -> Size"""
2452 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2454 def GetControl(*args
, **kwargs
):
2455 """GetControl(self) -> BookCtrl"""
2456 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2459 class BookCtrlSizerPtr(BookCtrlSizer
):
2460 def __init__(self
, this
):
2462 if not hasattr(self
,"thisown"): self
.thisown
= 0
2463 self
.__class
__ = BookCtrlSizer
2464 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2466 class NotebookSizer(_core
.Sizer
):
2468 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2469 def __init__(self
, *args
, **kwargs
):
2470 """__init__(self, Notebook nb) -> NotebookSizer"""
2471 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
2472 self
.this
= newobj
.this
2475 self
._setOORInfo
(self
)
2477 def RecalcSizes(*args
, **kwargs
):
2478 """RecalcSizes(self)"""
2479 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2481 def CalcMin(*args
, **kwargs
):
2482 """CalcMin(self) -> Size"""
2483 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
2485 def GetNotebook(*args
, **kwargs
):
2486 """GetNotebook(self) -> Notebook"""
2487 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2490 class NotebookSizerPtr(NotebookSizer
):
2491 def __init__(self
, this
):
2493 if not hasattr(self
,"thisown"): self
.thisown
= 0
2494 self
.__class
__ = NotebookSizer
2495 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
2497 #---------------------------------------------------------------------------
2499 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
2500 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
2501 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
2502 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
2503 TB_VERTICAL
= _controls_
.TB_VERTICAL
2504 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
2505 TB_FLAT
= _controls_
.TB_FLAT
2506 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
2507 TB_NOICONS
= _controls_
.TB_NOICONS
2508 TB_TEXT
= _controls_
.TB_TEXT
2509 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
2510 TB_NOALIGN
= _controls_
.TB_NOALIGN
2511 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
2512 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
2513 class ToolBarToolBase(_core
.Object
):
2514 def __init__(self
): raise RuntimeError, "No constructor defined"
2516 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2517 def GetId(*args
, **kwargs
):
2518 """GetId(self) -> int"""
2519 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
2521 def GetControl(*args
, **kwargs
):
2522 """GetControl(self) -> Control"""
2523 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2525 def GetToolBar(*args
, **kwargs
):
2526 """GetToolBar(self) -> ToolBarBase"""
2527 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2529 def IsButton(*args
, **kwargs
):
2530 """IsButton(self) -> int"""
2531 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2533 def IsControl(*args
, **kwargs
):
2534 """IsControl(self) -> int"""
2535 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2537 def IsSeparator(*args
, **kwargs
):
2538 """IsSeparator(self) -> int"""
2539 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2541 def GetStyle(*args
, **kwargs
):
2542 """GetStyle(self) -> int"""
2543 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2545 def GetKind(*args
, **kwargs
):
2546 """GetKind(self) -> int"""
2547 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2549 def IsEnabled(*args
, **kwargs
):
2550 """IsEnabled(self) -> bool"""
2551 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2553 def IsToggled(*args
, **kwargs
):
2554 """IsToggled(self) -> bool"""
2555 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2557 def CanBeToggled(*args
, **kwargs
):
2558 """CanBeToggled(self) -> bool"""
2559 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2561 def GetNormalBitmap(*args
, **kwargs
):
2562 """GetNormalBitmap(self) -> Bitmap"""
2563 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2565 def GetDisabledBitmap(*args
, **kwargs
):
2566 """GetDisabledBitmap(self) -> Bitmap"""
2567 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2569 def GetBitmap(*args
, **kwargs
):
2570 """GetBitmap(self) -> Bitmap"""
2571 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2573 def GetLabel(*args
, **kwargs
):
2574 """GetLabel(self) -> String"""
2575 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2577 def GetShortHelp(*args
, **kwargs
):
2578 """GetShortHelp(self) -> String"""
2579 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2581 def GetLongHelp(*args
, **kwargs
):
2582 """GetLongHelp(self) -> String"""
2583 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2585 def Enable(*args
, **kwargs
):
2586 """Enable(self, bool enable) -> bool"""
2587 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
2589 def Toggle(*args
, **kwargs
):
2591 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2593 def SetToggle(*args
, **kwargs
):
2594 """SetToggle(self, bool toggle) -> bool"""
2595 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2597 def SetShortHelp(*args
, **kwargs
):
2598 """SetShortHelp(self, String help) -> bool"""
2599 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2601 def SetLongHelp(*args
, **kwargs
):
2602 """SetLongHelp(self, String help) -> bool"""
2603 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2605 def SetNormalBitmap(*args
, **kwargs
):
2606 """SetNormalBitmap(self, Bitmap bmp)"""
2607 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2609 def SetDisabledBitmap(*args
, **kwargs
):
2610 """SetDisabledBitmap(self, Bitmap bmp)"""
2611 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2613 def SetLabel(*args
, **kwargs
):
2614 """SetLabel(self, String label)"""
2615 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2617 def Detach(*args
, **kwargs
):
2619 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
2621 def Attach(*args
, **kwargs
):
2622 """Attach(self, ToolBarBase tbar)"""
2623 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
2625 def GetClientData(*args
, **kwargs
):
2626 """GetClientData(self) -> PyObject"""
2627 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2629 def SetClientData(*args
, **kwargs
):
2630 """SetClientData(self, PyObject clientData)"""
2631 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2633 GetBitmap1
= GetNormalBitmap
2634 GetBitmap2
= GetDisabledBitmap
2635 SetBitmap1
= SetNormalBitmap
2636 SetBitmap2
= SetDisabledBitmap
2639 class ToolBarToolBasePtr(ToolBarToolBase
):
2640 def __init__(self
, this
):
2642 if not hasattr(self
,"thisown"): self
.thisown
= 0
2643 self
.__class
__ = ToolBarToolBase
2644 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2646 class ToolBarBase(_core
.Control
):
2647 def __init__(self
): raise RuntimeError, "No constructor defined"
2649 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2650 def DoAddTool(*args
, **kwargs
):
2652 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2653 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2654 String longHelp=EmptyString,
2655 PyObject clientData=None) -> ToolBarToolBase
2657 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2659 def DoInsertTool(*args
, **kwargs
):
2661 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2662 int kind=ITEM_NORMAL,
2663 String shortHelp=EmptyString, String longHelp=EmptyString,
2664 PyObject clientData=None) -> ToolBarToolBase
2666 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2668 # These match the original Add methods for this class, kept for
2669 # backwards compatibility with versions < 2.3.3.
2672 def AddTool(self
, id, bitmap
,
2673 pushedBitmap
= wx
.NullBitmap
,
2676 shortHelpString
= '',
2677 longHelpString
= '') :
2678 '''Old style method to add a tool to the toolbar.'''
2679 kind
= wx
.ITEM_NORMAL
2680 if isToggle
: kind
= wx
.ITEM_CHECK
2681 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2682 shortHelpString
, longHelpString
, clientData
)
2684 def AddSimpleTool(self
, id, bitmap
,
2685 shortHelpString
= '',
2686 longHelpString
= '',
2688 '''Old style method to add a tool to the toolbar.'''
2689 kind
= wx
.ITEM_NORMAL
2690 if isToggle
: kind
= wx
.ITEM_CHECK
2691 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2692 shortHelpString
, longHelpString
, None)
2694 def InsertTool(self
, pos
, id, bitmap
,
2695 pushedBitmap
= wx
.NullBitmap
,
2698 shortHelpString
= '',
2699 longHelpString
= ''):
2700 '''Old style method to insert a tool in the toolbar.'''
2701 kind
= wx
.ITEM_NORMAL
2702 if isToggle
: kind
= wx
.ITEM_CHECK
2703 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2704 shortHelpString
, longHelpString
, clientData
)
2706 def InsertSimpleTool(self
, pos
, id, bitmap
,
2707 shortHelpString
= '',
2708 longHelpString
= '',
2710 '''Old style method to insert a tool in the toolbar.'''
2711 kind
= wx
.ITEM_NORMAL
2712 if isToggle
: kind
= wx
.ITEM_CHECK
2713 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2714 shortHelpString
, longHelpString
, None)
2717 # The following are the new toolbar Add methods starting with
2718 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2719 # able to keep backwards compatibility with using the above
2720 # methods. Eventually these should migrate to be the methods used
2721 # primarily and lose the 'Label' in the name...
2723 def AddLabelTool(self
, id, label
, bitmap
,
2724 bmpDisabled
= wx
.NullBitmap
,
2725 kind
= wx
.ITEM_NORMAL
,
2726 shortHelp
= '', longHelp
= '',
2729 The full AddTool() function.
2731 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2732 is created and used as the disabled image.
2734 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2735 shortHelp
, longHelp
, clientData
)
2738 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2739 bmpDisabled
= wx
.NullBitmap
,
2740 kind
= wx
.ITEM_NORMAL
,
2741 shortHelp
= '', longHelp
= '',
2744 Insert the new tool at the given position, if pos == GetToolsCount(), it
2745 is equivalent to AddTool()
2747 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2748 shortHelp
, longHelp
, clientData
)
2750 def AddCheckLabelTool(self
, id, label
, bitmap
,
2751 bmpDisabled
= wx
.NullBitmap
,
2752 shortHelp
= '', longHelp
= '',
2754 '''Add a check tool, i.e. a tool which can be toggled'''
2755 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2756 shortHelp
, longHelp
, clientData
)
2758 def AddRadioLabelTool(self
, id, label
, bitmap
,
2759 bmpDisabled
= wx
.NullBitmap
,
2760 shortHelp
= '', longHelp
= '',
2763 Add a radio tool, i.e. a tool which can be toggled and releases any
2764 other toggled radio tools in the same group when it happens
2766 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2767 shortHelp
, longHelp
, clientData
)
2770 # For consistency with the backwards compatible methods above, here are
2771 # some non-'Label' versions of the Check and Radio methods
2772 def AddCheckTool(self
, id, bitmap
,
2773 bmpDisabled
= wx
.NullBitmap
,
2774 shortHelp
= '', longHelp
= '',
2776 '''Add a check tool, i.e. a tool which can be toggled'''
2777 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2778 shortHelp
, longHelp
, clientData
)
2780 def AddRadioTool(self
, id, bitmap
,
2781 bmpDisabled
= wx
.NullBitmap
,
2782 shortHelp
= '', longHelp
= '',
2785 Add a radio tool, i.e. a tool which can be toggled and releases any
2786 other toggled radio tools in the same group when it happens
2788 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2789 shortHelp
, longHelp
, clientData
)
2791 def AddToolItem(*args
, **kwargs
):
2792 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
2793 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2795 def InsertToolItem(*args
, **kwargs
):
2796 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2797 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2799 def AddControl(*args
, **kwargs
):
2800 """AddControl(self, Control control) -> ToolBarToolBase"""
2801 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
2803 def InsertControl(*args
, **kwargs
):
2804 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
2805 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
2807 def FindControl(*args
, **kwargs
):
2808 """FindControl(self, int id) -> Control"""
2809 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
2811 def AddSeparator(*args
, **kwargs
):
2812 """AddSeparator(self) -> ToolBarToolBase"""
2813 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2815 def InsertSeparator(*args
, **kwargs
):
2816 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
2817 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2819 def RemoveTool(*args
, **kwargs
):
2820 """RemoveTool(self, int id) -> ToolBarToolBase"""
2821 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2823 def DeleteToolByPos(*args
, **kwargs
):
2824 """DeleteToolByPos(self, size_t pos) -> bool"""
2825 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2827 def DeleteTool(*args
, **kwargs
):
2828 """DeleteTool(self, int id) -> bool"""
2829 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2831 def ClearTools(*args
, **kwargs
):
2832 """ClearTools(self)"""
2833 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
2835 def Realize(*args
, **kwargs
):
2836 """Realize(self) -> bool"""
2837 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
2839 def EnableTool(*args
, **kwargs
):
2840 """EnableTool(self, int id, bool enable)"""
2841 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
2843 def ToggleTool(*args
, **kwargs
):
2844 """ToggleTool(self, int id, bool toggle)"""
2845 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2847 def SetToggle(*args
, **kwargs
):
2848 """SetToggle(self, int id, bool toggle)"""
2849 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
2851 def GetToolClientData(*args
, **kwargs
):
2852 """GetToolClientData(self, int id) -> PyObject"""
2853 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2855 def SetToolClientData(*args
, **kwargs
):
2856 """SetToolClientData(self, int id, PyObject clientData)"""
2857 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2859 def GetToolPos(*args
, **kwargs
):
2860 """GetToolPos(self, int id) -> int"""
2861 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2863 def GetToolState(*args
, **kwargs
):
2864 """GetToolState(self, int id) -> bool"""
2865 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
2867 def GetToolEnabled(*args
, **kwargs
):
2868 """GetToolEnabled(self, int id) -> bool"""
2869 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2871 def SetToolShortHelp(*args
, **kwargs
):
2872 """SetToolShortHelp(self, int id, String helpString)"""
2873 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2875 def GetToolShortHelp(*args
, **kwargs
):
2876 """GetToolShortHelp(self, int id) -> String"""
2877 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2879 def SetToolLongHelp(*args
, **kwargs
):
2880 """SetToolLongHelp(self, int id, String helpString)"""
2881 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2883 def GetToolLongHelp(*args
, **kwargs
):
2884 """GetToolLongHelp(self, int id) -> String"""
2885 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2887 def SetMarginsXY(*args
, **kwargs
):
2888 """SetMarginsXY(self, int x, int y)"""
2889 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2891 def SetMargins(*args
, **kwargs
):
2892 """SetMargins(self, Size size)"""
2893 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
2895 def SetToolPacking(*args
, **kwargs
):
2896 """SetToolPacking(self, int packing)"""
2897 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2899 def SetToolSeparation(*args
, **kwargs
):
2900 """SetToolSeparation(self, int separation)"""
2901 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2903 def GetToolMargins(*args
, **kwargs
):
2904 """GetToolMargins(self) -> Size"""
2905 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2907 def GetMargins(*args
, **kwargs
):
2908 """GetMargins(self) -> Size"""
2909 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
2911 def GetToolPacking(*args
, **kwargs
):
2912 """GetToolPacking(self) -> int"""
2913 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2915 def GetToolSeparation(*args
, **kwargs
):
2916 """GetToolSeparation(self) -> int"""
2917 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2919 def SetRows(*args
, **kwargs
):
2920 """SetRows(self, int nRows)"""
2921 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
2923 def SetMaxRowsCols(*args
, **kwargs
):
2924 """SetMaxRowsCols(self, int rows, int cols)"""
2925 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2927 def GetMaxRows(*args
, **kwargs
):
2928 """GetMaxRows(self) -> int"""
2929 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2931 def GetMaxCols(*args
, **kwargs
):
2932 """GetMaxCols(self) -> int"""
2933 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2935 def SetToolBitmapSize(*args
, **kwargs
):
2936 """SetToolBitmapSize(self, Size size)"""
2937 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2939 def GetToolBitmapSize(*args
, **kwargs
):
2940 """GetToolBitmapSize(self) -> Size"""
2941 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2943 def GetToolSize(*args
, **kwargs
):
2944 """GetToolSize(self) -> Size"""
2945 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2947 def FindToolForPosition(*args
, **kwargs
):
2948 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
2949 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2951 def FindById(*args
, **kwargs
):
2952 """FindById(self, int toolid) -> ToolBarToolBase"""
2953 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
2955 def IsVertical(*args
, **kwargs
):
2956 """IsVertical(self) -> bool"""
2957 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
2960 class ToolBarBasePtr(ToolBarBase
):
2961 def __init__(self
, this
):
2963 if not hasattr(self
,"thisown"): self
.thisown
= 0
2964 self
.__class
__ = ToolBarBase
2965 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
2967 class ToolBar(ToolBarBase
):
2969 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2970 def __init__(self
, *args
, **kwargs
):
2972 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2973 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2974 String name=wxPyToolBarNameStr) -> ToolBar
2976 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
2977 self
.this
= newobj
.this
2980 self
._setOORInfo
(self
)
2982 def Create(*args
, **kwargs
):
2984 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2985 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2986 String name=wxPyToolBarNameStr) -> bool
2988 return _controls_
.ToolBar_Create(*args
, **kwargs
)
2990 def FindToolForPosition(*args
, **kwargs
):
2991 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
2992 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2995 class ToolBarPtr(ToolBar
):
2996 def __init__(self
, this
):
2998 if not hasattr(self
,"thisown"): self
.thisown
= 0
2999 self
.__class
__ = ToolBar
3000 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3002 def PreToolBar(*args
, **kwargs
):
3003 """PreToolBar() -> ToolBar"""
3004 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3008 #---------------------------------------------------------------------------
3010 LC_VRULES
= _controls_
.LC_VRULES
3011 LC_HRULES
= _controls_
.LC_HRULES
3012 LC_ICON
= _controls_
.LC_ICON
3013 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3014 LC_LIST
= _controls_
.LC_LIST
3015 LC_REPORT
= _controls_
.LC_REPORT
3016 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3017 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3018 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3019 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3020 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3021 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3022 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3023 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3024 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3025 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3026 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3027 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3028 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3029 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3030 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3031 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3032 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3033 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3034 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3035 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3036 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3037 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3038 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3039 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3040 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3041 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3042 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3043 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3044 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3045 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3046 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3047 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3048 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3049 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3050 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3051 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3052 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3053 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3054 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3055 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3056 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3057 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3058 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3059 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3060 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3061 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3062 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3063 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3064 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3065 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3066 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3067 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3068 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3069 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3070 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3071 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3072 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3073 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3074 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3075 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3076 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3077 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3078 #---------------------------------------------------------------------------
3080 class ListItemAttr(object):
3082 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3083 def __init__(self
, *args
, **kwargs
):
3085 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3086 Font font=wxNullFont) -> ListItemAttr
3088 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
3089 self
.this
= newobj
.this
3092 def SetTextColour(*args
, **kwargs
):
3093 """SetTextColour(self, Colour colText)"""
3094 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3096 def SetBackgroundColour(*args
, **kwargs
):
3097 """SetBackgroundColour(self, Colour colBack)"""
3098 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3100 def SetFont(*args
, **kwargs
):
3101 """SetFont(self, Font font)"""
3102 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3104 def HasTextColour(*args
, **kwargs
):
3105 """HasTextColour(self) -> bool"""
3106 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3108 def HasBackgroundColour(*args
, **kwargs
):
3109 """HasBackgroundColour(self) -> bool"""
3110 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3112 def HasFont(*args
, **kwargs
):
3113 """HasFont(self) -> bool"""
3114 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3116 def GetTextColour(*args
, **kwargs
):
3117 """GetTextColour(self) -> Colour"""
3118 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3120 def GetBackgroundColour(*args
, **kwargs
):
3121 """GetBackgroundColour(self) -> Colour"""
3122 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3124 def GetFont(*args
, **kwargs
):
3125 """GetFont(self) -> Font"""
3126 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
3128 def Destroy(*args
, **kwargs
):
3130 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
3133 class ListItemAttrPtr(ListItemAttr
):
3134 def __init__(self
, this
):
3136 if not hasattr(self
,"thisown"): self
.thisown
= 0
3137 self
.__class
__ = ListItemAttr
3138 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
3139 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3141 #---------------------------------------------------------------------------
3143 class ListItem(_core
.Object
):
3145 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3146 def __init__(self
, *args
, **kwargs
):
3147 """__init__(self) -> ListItem"""
3148 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
3149 self
.this
= newobj
.this
3152 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
3155 if self
.thisown
: destroy(self
)
3158 def Clear(*args
, **kwargs
):
3160 return _controls_
.ListItem_Clear(*args
, **kwargs
)
3162 def ClearAttributes(*args
, **kwargs
):
3163 """ClearAttributes(self)"""
3164 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
3166 def SetMask(*args
, **kwargs
):
3167 """SetMask(self, long mask)"""
3168 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
3170 def SetId(*args
, **kwargs
):
3171 """SetId(self, long id)"""
3172 return _controls_
.ListItem_SetId(*args
, **kwargs
)
3174 def SetColumn(*args
, **kwargs
):
3175 """SetColumn(self, int col)"""
3176 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
3178 def SetState(*args
, **kwargs
):
3179 """SetState(self, long state)"""
3180 return _controls_
.ListItem_SetState(*args
, **kwargs
)
3182 def SetStateMask(*args
, **kwargs
):
3183 """SetStateMask(self, long stateMask)"""
3184 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
3186 def SetText(*args
, **kwargs
):
3187 """SetText(self, String text)"""
3188 return _controls_
.ListItem_SetText(*args
, **kwargs
)
3190 def SetImage(*args
, **kwargs
):
3191 """SetImage(self, int image)"""
3192 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
3194 def SetData(*args
, **kwargs
):
3195 """SetData(self, long data)"""
3196 return _controls_
.ListItem_SetData(*args
, **kwargs
)
3198 def SetWidth(*args
, **kwargs
):
3199 """SetWidth(self, int width)"""
3200 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
3202 def SetAlign(*args
, **kwargs
):
3203 """SetAlign(self, int align)"""
3204 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
3206 def SetTextColour(*args
, **kwargs
):
3207 """SetTextColour(self, Colour colText)"""
3208 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
3210 def SetBackgroundColour(*args
, **kwargs
):
3211 """SetBackgroundColour(self, Colour colBack)"""
3212 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3214 def SetFont(*args
, **kwargs
):
3215 """SetFont(self, Font font)"""
3216 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
3218 def GetMask(*args
, **kwargs
):
3219 """GetMask(self) -> long"""
3220 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
3222 def GetId(*args
, **kwargs
):
3223 """GetId(self) -> long"""
3224 return _controls_
.ListItem_GetId(*args
, **kwargs
)
3226 def GetColumn(*args
, **kwargs
):
3227 """GetColumn(self) -> int"""
3228 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
3230 def GetState(*args
, **kwargs
):
3231 """GetState(self) -> long"""
3232 return _controls_
.ListItem_GetState(*args
, **kwargs
)
3234 def GetText(*args
, **kwargs
):
3235 """GetText(self) -> String"""
3236 return _controls_
.ListItem_GetText(*args
, **kwargs
)
3238 def GetImage(*args
, **kwargs
):
3239 """GetImage(self) -> int"""
3240 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
3242 def GetData(*args
, **kwargs
):
3243 """GetData(self) -> long"""
3244 return _controls_
.ListItem_GetData(*args
, **kwargs
)
3246 def GetWidth(*args
, **kwargs
):
3247 """GetWidth(self) -> int"""
3248 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
3250 def GetAlign(*args
, **kwargs
):
3251 """GetAlign(self) -> int"""
3252 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
3254 def GetAttributes(*args
, **kwargs
):
3255 """GetAttributes(self) -> ListItemAttr"""
3256 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
3258 def HasAttributes(*args
, **kwargs
):
3259 """HasAttributes(self) -> bool"""
3260 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
3262 def GetTextColour(*args
, **kwargs
):
3263 """GetTextColour(self) -> Colour"""
3264 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
3266 def GetBackgroundColour(*args
, **kwargs
):
3267 """GetBackgroundColour(self) -> Colour"""
3268 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3270 def GetFont(*args
, **kwargs
):
3271 """GetFont(self) -> Font"""
3272 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
3274 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
3275 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
3276 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
3277 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
3278 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
3279 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
3280 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
3281 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
3282 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
3283 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
3285 class ListItemPtr(ListItem
):
3286 def __init__(self
, this
):
3288 if not hasattr(self
,"thisown"): self
.thisown
= 0
3289 self
.__class
__ = ListItem
3290 _controls_
.ListItem_swigregister(ListItemPtr
)
3292 #---------------------------------------------------------------------------
3294 class ListEvent(_core
.NotifyEvent
):
3296 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3297 def __init__(self
, *args
, **kwargs
):
3298 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3299 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
3300 self
.this
= newobj
.this
3303 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
3304 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
3305 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
3306 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
3307 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
3308 m_item
= property(_controls_
.ListEvent_m_item_get
)
3309 def GetKeyCode(*args
, **kwargs
):
3310 """GetKeyCode(self) -> int"""
3311 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
3313 GetCode
= GetKeyCode
3314 def GetIndex(*args
, **kwargs
):
3315 """GetIndex(self) -> long"""
3316 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
3318 def GetColumn(*args
, **kwargs
):
3319 """GetColumn(self) -> int"""
3320 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
3322 def GetPoint(*args
, **kwargs
):
3323 """GetPoint(self) -> Point"""
3324 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
3326 GetPosition
= GetPoint
3327 def GetLabel(*args
, **kwargs
):
3328 """GetLabel(self) -> String"""
3329 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
3331 def GetText(*args
, **kwargs
):
3332 """GetText(self) -> String"""
3333 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
3335 def GetImage(*args
, **kwargs
):
3336 """GetImage(self) -> int"""
3337 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
3339 def GetData(*args
, **kwargs
):
3340 """GetData(self) -> long"""
3341 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
3343 def GetMask(*args
, **kwargs
):
3344 """GetMask(self) -> long"""
3345 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
3347 def GetItem(*args
, **kwargs
):
3348 """GetItem(self) -> ListItem"""
3349 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
3351 def GetCacheFrom(*args
, **kwargs
):
3352 """GetCacheFrom(self) -> long"""
3353 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3355 def GetCacheTo(*args
, **kwargs
):
3356 """GetCacheTo(self) -> long"""
3357 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
3359 def IsEditCancelled(*args
, **kwargs
):
3360 """IsEditCancelled(self) -> bool"""
3361 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3363 def SetEditCanceled(*args
, **kwargs
):
3364 """SetEditCanceled(self, bool editCancelled)"""
3365 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3368 class ListEventPtr(ListEvent
):
3369 def __init__(self
, this
):
3371 if not hasattr(self
,"thisown"): self
.thisown
= 0
3372 self
.__class
__ = ListEvent
3373 _controls_
.ListEvent_swigregister(ListEventPtr
)
3375 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3376 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3377 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3378 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3379 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
3380 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3381 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
3382 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
3383 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3384 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3385 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
3386 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
3387 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
3388 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3389 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3390 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3391 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
3392 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3393 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3394 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
3395 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
3396 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3397 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3398 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3399 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3400 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3401 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3402 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3403 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3404 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3405 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3406 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3407 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3408 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3409 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3410 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3411 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3412 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3413 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3414 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3415 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3416 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3417 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3418 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3420 #---------------------------------------------------------------------------
3422 class ListCtrl(_core
.Control
):
3424 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3425 def __init__(self
, *args
, **kwargs
):
3427 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3428 Size size=DefaultSize, long style=LC_ICON,
3429 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3431 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
3432 self
.this
= newobj
.this
3435 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3437 def Create(*args
, **kwargs
):
3439 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3440 Size size=DefaultSize, long style=LC_ICON,
3441 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3443 Do the 2nd phase and create the GUI control.
3445 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
3447 def _setCallbackInfo(*args
, **kwargs
):
3448 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3449 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3451 def SetForegroundColour(*args
, **kwargs
):
3452 """SetForegroundColour(self, Colour col) -> bool"""
3453 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3455 def SetBackgroundColour(*args
, **kwargs
):
3456 """SetBackgroundColour(self, Colour col) -> bool"""
3457 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3459 def GetColumn(*args
, **kwargs
):
3460 """GetColumn(self, int col) -> ListItem"""
3461 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
3462 if val
is not None: val
.thisown
= 1
3465 def SetColumn(*args
, **kwargs
):
3466 """SetColumn(self, int col, ListItem item) -> bool"""
3467 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
3469 def GetColumnWidth(*args
, **kwargs
):
3470 """GetColumnWidth(self, int col) -> int"""
3471 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3473 def SetColumnWidth(*args
, **kwargs
):
3474 """SetColumnWidth(self, int col, int width) -> bool"""
3475 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3477 def GetCountPerPage(*args
, **kwargs
):
3478 """GetCountPerPage(self) -> int"""
3479 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3481 def GetViewRect(*args
, **kwargs
):
3482 """GetViewRect(self) -> Rect"""
3483 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
3485 def GetItem(*args
, **kwargs
):
3486 """GetItem(self, long itemId, int col=0) -> ListItem"""
3487 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
3488 if val
is not None: val
.thisown
= 1
3491 def SetItem(*args
, **kwargs
):
3492 """SetItem(self, ListItem info) -> bool"""
3493 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
3495 def SetStringItem(*args
, **kwargs
):
3496 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
3497 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
3499 def GetItemState(*args
, **kwargs
):
3500 """GetItemState(self, long item, long stateMask) -> int"""
3501 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
3503 def SetItemState(*args
, **kwargs
):
3504 """SetItemState(self, long item, long state, long stateMask) -> bool"""
3505 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
3507 def SetItemImage(*args
, **kwargs
):
3508 """SetItemImage(self, long item, int image, int selImage) -> bool"""
3509 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
3511 def GetItemText(*args
, **kwargs
):
3512 """GetItemText(self, long item) -> String"""
3513 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
3515 def SetItemText(*args
, **kwargs
):
3516 """SetItemText(self, long item, String str)"""
3517 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
3519 def GetItemData(*args
, **kwargs
):
3520 """GetItemData(self, long item) -> long"""
3521 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
3523 def SetItemData(*args
, **kwargs
):
3524 """SetItemData(self, long item, long data) -> bool"""
3525 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
3527 def GetItemPosition(*args
, **kwargs
):
3528 """GetItemPosition(self, long item) -> Point"""
3529 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3531 def GetItemRect(*args
, **kwargs
):
3532 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3533 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
3535 def SetItemPosition(*args
, **kwargs
):
3536 """SetItemPosition(self, long item, Point pos) -> bool"""
3537 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3539 def GetItemCount(*args
, **kwargs
):
3540 """GetItemCount(self) -> int"""
3541 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
3543 def GetColumnCount(*args
, **kwargs
):
3544 """GetColumnCount(self) -> int"""
3545 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3547 def GetItemSpacing(*args
, **kwargs
):
3548 """GetItemSpacing(self) -> Size"""
3549 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3551 def SetItemSpacing(*args
, **kwargs
):
3552 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
3553 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3555 def GetSelectedItemCount(*args
, **kwargs
):
3556 """GetSelectedItemCount(self) -> int"""
3557 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3559 def GetTextColour(*args
, **kwargs
):
3560 """GetTextColour(self) -> Colour"""
3561 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
3563 def SetTextColour(*args
, **kwargs
):
3564 """SetTextColour(self, Colour col)"""
3565 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
3567 def GetTopItem(*args
, **kwargs
):
3568 """GetTopItem(self) -> long"""
3569 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
3571 def SetSingleStyle(*args
, **kwargs
):
3572 """SetSingleStyle(self, long style, bool add=True)"""
3573 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3575 def SetWindowStyleFlag(*args
, **kwargs
):
3577 SetWindowStyleFlag(self, long style)
3579 Sets the style of the window. Please note that some styles cannot
3580 be changed after the window creation and that Refresh() might
3581 need to be called after changing the others for the change to
3582 take place immediately.
3584 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3586 def GetNextItem(*args
, **kwargs
):
3587 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3588 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
3590 def GetImageList(*args
, **kwargs
):
3591 """GetImageList(self, int which) -> ImageList"""
3592 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
3594 def SetImageList(*args
, **kwargs
):
3595 """SetImageList(self, ImageList imageList, int which)"""
3596 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
3598 def AssignImageList(*args
, **kwargs
):
3599 """AssignImageList(self, ImageList imageList, int which)"""
3600 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
3602 def InReportView(*args
, **kwargs
):
3603 """InReportView(self) -> bool"""
3604 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
3606 def IsVirtual(*args
, **kwargs
):
3607 """IsVirtual(self) -> bool"""
3608 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
3610 def RefreshItem(*args
, **kwargs
):
3611 """RefreshItem(self, long item)"""
3612 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
3614 def RefreshItems(*args
, **kwargs
):
3615 """RefreshItems(self, long itemFrom, long itemTo)"""
3616 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
3618 def Arrange(*args
, **kwargs
):
3619 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
3620 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
3622 def DeleteItem(*args
, **kwargs
):
3623 """DeleteItem(self, long item) -> bool"""
3624 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
3626 def DeleteAllItems(*args
, **kwargs
):
3627 """DeleteAllItems(self) -> bool"""
3628 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3630 def DeleteColumn(*args
, **kwargs
):
3631 """DeleteColumn(self, int col) -> bool"""
3632 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3634 def DeleteAllColumns(*args
, **kwargs
):
3635 """DeleteAllColumns(self) -> bool"""
3636 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3638 def ClearAll(*args
, **kwargs
):
3639 """ClearAll(self)"""
3640 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
3642 def EditLabel(*args
, **kwargs
):
3643 """EditLabel(self, long item)"""
3644 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
3646 def EnsureVisible(*args
, **kwargs
):
3647 """EnsureVisible(self, long item) -> bool"""
3648 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3650 def FindItem(*args
, **kwargs
):
3651 """FindItem(self, long start, String str, bool partial=False) -> long"""
3652 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
3654 def FindItemData(*args
, **kwargs
):
3655 """FindItemData(self, long start, long data) -> long"""
3656 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
3658 def FindItemAtPos(*args
, **kwargs
):
3659 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
3660 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3662 def HitTest(*args
, **kwargs
):
3664 HitTest(Point point) -> (item, where)
3666 Determines which item (if any) is at the specified point,
3667 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3669 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
3671 def InsertItem(*args
, **kwargs
):
3672 """InsertItem(self, ListItem info) -> long"""
3673 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
3675 def InsertStringItem(*args
, **kwargs
):
3676 """InsertStringItem(self, long index, String label) -> long"""
3677 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3679 def InsertImageItem(*args
, **kwargs
):
3680 """InsertImageItem(self, long index, int imageIndex) -> long"""
3681 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3683 def InsertImageStringItem(*args
, **kwargs
):
3684 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
3685 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3687 def InsertColumnInfo(*args
, **kwargs
):
3688 """InsertColumnInfo(self, long col, ListItem info) -> long"""
3689 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3691 def InsertColumn(*args
, **kwargs
):
3693 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
3694 int width=-1) -> long
3696 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
3698 def SetItemCount(*args
, **kwargs
):
3699 """SetItemCount(self, long count)"""
3700 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
3702 def ScrollList(*args
, **kwargs
):
3703 """ScrollList(self, int dx, int dy) -> bool"""
3704 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
3706 def SetItemTextColour(*args
, **kwargs
):
3707 """SetItemTextColour(self, long item, Colour col)"""
3708 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3710 def GetItemTextColour(*args
, **kwargs
):
3711 """GetItemTextColour(self, long item) -> Colour"""
3712 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3714 def SetItemBackgroundColour(*args
, **kwargs
):
3715 """SetItemBackgroundColour(self, long item, Colour col)"""
3716 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3718 def GetItemBackgroundColour(*args
, **kwargs
):
3719 """GetItemBackgroundColour(self, long item) -> Colour"""
3720 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3724 def Select(self
, idx
, on
=1):
3725 '''[de]select an item'''
3726 if on
: state
= wx
.LIST_STATE_SELECTED
3728 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3730 def Focus(self
, idx
):
3731 '''Focus and show the given item'''
3732 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3733 self
.EnsureVisible(idx
)
3735 def GetFocusedItem(self
):
3736 '''get the currently focused item or -1 if none'''
3737 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3739 def GetFirstSelected(self
, *args
):
3740 '''return first selected item, or -1 when none'''
3741 return self
.GetNextSelected(-1)
3743 def GetNextSelected(self
, item
):
3744 '''return subsequent selected items, or -1 when no more'''
3745 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3747 def IsSelected(self
, idx
):
3748 '''return True if the item is selected'''
3749 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3751 def SetColumnImage(self
, col
, image
):
3752 item
= self
.GetColumn(col
)
3753 # preserve all other attributes too
3754 item
.SetMask( wx
.LIST_MASK_STATE |
3756 wx
.LIST_MASK_IMAGE |
3759 wx
.LIST_MASK_WIDTH |
3760 wx
.LIST_MASK_FORMAT
)
3761 item
.SetImage(image
)
3762 self
.SetColumn(col
, item
)
3764 def ClearColumnImage(self
, col
):
3765 self
.SetColumnImage(col
, -1)
3767 def Append(self
, entry
):
3768 '''Append an item to the list control. The entry parameter should be a
3769 sequence with an item for each column'''
3775 pos
= self
.GetItemCount()
3776 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3777 for i
in range(1, len(entry
)):
3778 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3781 def SortItems(*args
, **kwargs
):
3782 """SortItems(self, PyObject func) -> bool"""
3783 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
3785 def GetMainWindow(*args
, **kwargs
):
3786 """GetMainWindow(self) -> Window"""
3787 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3789 def GetClassDefaultAttributes(*args
, **kwargs
):
3791 ListCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3793 Get the default attributes for this class. This is useful if
3794 you want to use the same font or colour in your own control as
3795 in a standard control -- which is a much better idea than hard
3796 coding specific colours or fonts which might look completely out
3797 of place on the users system, especially if it uses themes.
3799 The variant parameter is only relevant under Mac currently and is
3800 ignore under other platforms. Under Mac, it will change the size of the
3801 returned font. See SetWindowVariant for more about this.
3803 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3805 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3807 class ListCtrlPtr(ListCtrl
):
3808 def __init__(self
, this
):
3810 if not hasattr(self
,"thisown"): self
.thisown
= 0
3811 self
.__class
__ = ListCtrl
3812 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
3814 def PreListCtrl(*args
, **kwargs
):
3815 """PreListCtrl() -> ListCtrl"""
3816 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
3820 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
3822 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3824 Get the default attributes for this class. This is useful if
3825 you want to use the same font or colour in your own control as
3826 in a standard control -- which is a much better idea than hard
3827 coding specific colours or fonts which might look completely out
3828 of place on the users system, especially if it uses themes.
3830 The variant parameter is only relevant under Mac currently and is
3831 ignore under other platforms. Under Mac, it will change the size of the
3832 returned font. See SetWindowVariant for more about this.
3834 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3836 #---------------------------------------------------------------------------
3838 class ListView(ListCtrl
):
3840 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3841 def __init__(self
, *args
, **kwargs
):
3843 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3844 Size size=DefaultSize, long style=LC_REPORT,
3845 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3847 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
3848 self
.this
= newobj
.this
3851 self
._setOORInfo
(self
)
3853 def Create(*args
, **kwargs
):
3855 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3856 Size size=DefaultSize, long style=LC_REPORT,
3857 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3859 Do the 2nd phase and create the GUI control.
3861 return _controls_
.ListView_Create(*args
, **kwargs
)
3863 def Select(*args
, **kwargs
):
3864 """Select(self, long n, bool on=True)"""
3865 return _controls_
.ListView_Select(*args
, **kwargs
)
3867 def Focus(*args
, **kwargs
):
3868 """Focus(self, long index)"""
3869 return _controls_
.ListView_Focus(*args
, **kwargs
)
3871 def GetFocusedItem(*args
, **kwargs
):
3872 """GetFocusedItem(self) -> long"""
3873 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
3875 def GetNextSelected(*args
, **kwargs
):
3876 """GetNextSelected(self, long item) -> long"""
3877 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
3879 def GetFirstSelected(*args
, **kwargs
):
3880 """GetFirstSelected(self) -> long"""
3881 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
3883 def IsSelected(*args
, **kwargs
):
3884 """IsSelected(self, long index) -> bool"""
3885 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
3887 def SetColumnImage(*args
, **kwargs
):
3888 """SetColumnImage(self, int col, int image)"""
3889 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
3891 def ClearColumnImage(*args
, **kwargs
):
3892 """ClearColumnImage(self, int col)"""
3893 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
3896 class ListViewPtr(ListView
):
3897 def __init__(self
, this
):
3899 if not hasattr(self
,"thisown"): self
.thisown
= 0
3900 self
.__class
__ = ListView
3901 _controls_
.ListView_swigregister(ListViewPtr
)
3903 def PreListView(*args
, **kwargs
):
3904 """PreListView() -> ListView"""
3905 val
= _controls_
.new_PreListView(*args
, **kwargs
)
3909 #---------------------------------------------------------------------------
3911 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
3912 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
3913 TR_NO_LINES
= _controls_
.TR_NO_LINES
3914 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
3915 TR_SINGLE
= _controls_
.TR_SINGLE
3916 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
3917 TR_EXTENDED
= _controls_
.TR_EXTENDED
3918 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
3919 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
3920 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
3921 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
3922 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
3923 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
3924 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
3925 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
3926 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
3927 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
3928 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
3929 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
3930 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
3931 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
3932 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
3933 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
3934 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
3935 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
3936 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
3937 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
3938 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
3939 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
3940 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
3941 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
3942 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
3943 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
3944 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
3945 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
3946 #---------------------------------------------------------------------------
3948 class TreeItemId(object):
3950 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3951 def __init__(self
, *args
, **kwargs
):
3952 """__init__(self) -> TreeItemId"""
3953 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
3954 self
.this
= newobj
.this
3957 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
3960 if self
.thisown
: destroy(self
)
3963 def IsOk(*args
, **kwargs
):
3964 """IsOk(self) -> bool"""
3965 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
3967 def __eq__(*args
, **kwargs
):
3968 """__eq__(self, TreeItemId other) -> bool"""
3969 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
3971 def __ne__(*args
, **kwargs
):
3972 """__ne__(self, TreeItemId other) -> bool"""
3973 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
3975 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
3977 def __nonzero__(self
): return self
.IsOk()
3979 class TreeItemIdPtr(TreeItemId
):
3980 def __init__(self
, this
):
3982 if not hasattr(self
,"thisown"): self
.thisown
= 0
3983 self
.__class
__ = TreeItemId
3984 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
3985 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
3987 class TreeItemData(object):
3989 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3990 def __init__(self
, *args
, **kwargs
):
3991 """__init__(self, PyObject obj=None) -> TreeItemData"""
3992 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
3993 self
.this
= newobj
.this
3996 def GetData(*args
, **kwargs
):
3997 """GetData(self) -> PyObject"""
3998 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4000 def SetData(*args
, **kwargs
):
4001 """SetData(self, PyObject obj)"""
4002 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4004 def GetId(*args
, **kwargs
):
4005 """GetId(self) -> TreeItemId"""
4006 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4008 def SetId(*args
, **kwargs
):
4009 """SetId(self, TreeItemId id)"""
4010 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4012 def Destroy(*args
, **kwargs
):
4014 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4017 class TreeItemDataPtr(TreeItemData
):
4018 def __init__(self
, this
):
4020 if not hasattr(self
,"thisown"): self
.thisown
= 0
4021 self
.__class
__ = TreeItemData
4022 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
4024 #---------------------------------------------------------------------------
4026 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4027 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4028 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4029 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4030 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4031 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4032 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4033 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4034 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4035 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4036 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4037 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4038 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4039 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4040 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4041 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4042 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4043 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4044 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4045 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4046 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4047 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4048 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4049 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4050 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4051 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4052 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4053 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4054 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4055 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4056 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4057 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4058 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4059 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4060 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4061 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4062 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4063 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4064 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4065 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4067 class TreeEvent(_core
.NotifyEvent
):
4069 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4070 def __init__(self
, *args
, **kwargs
):
4071 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4072 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
4073 self
.this
= newobj
.this
4076 def GetItem(*args
, **kwargs
):
4077 """GetItem(self) -> TreeItemId"""
4078 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4080 def SetItem(*args
, **kwargs
):
4081 """SetItem(self, TreeItemId item)"""
4082 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4084 def GetOldItem(*args
, **kwargs
):
4085 """GetOldItem(self) -> TreeItemId"""
4086 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4088 def SetOldItem(*args
, **kwargs
):
4089 """SetOldItem(self, TreeItemId item)"""
4090 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4092 def GetPoint(*args
, **kwargs
):
4093 """GetPoint(self) -> Point"""
4094 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4096 def SetPoint(*args
, **kwargs
):
4097 """SetPoint(self, Point pt)"""
4098 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4100 def GetKeyEvent(*args
, **kwargs
):
4101 """GetKeyEvent(self) -> KeyEvent"""
4102 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4104 def GetKeyCode(*args
, **kwargs
):
4105 """GetKeyCode(self) -> int"""
4106 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4108 def SetKeyEvent(*args
, **kwargs
):
4109 """SetKeyEvent(self, KeyEvent evt)"""
4110 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4112 def GetLabel(*args
, **kwargs
):
4113 """GetLabel(self) -> String"""
4114 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4116 def SetLabel(*args
, **kwargs
):
4117 """SetLabel(self, String label)"""
4118 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4120 def IsEditCancelled(*args
, **kwargs
):
4121 """IsEditCancelled(self) -> bool"""
4122 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4124 def SetEditCanceled(*args
, **kwargs
):
4125 """SetEditCanceled(self, bool editCancelled)"""
4126 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4128 def SetToolTip(*args
, **kwargs
):
4129 """SetToolTip(self, String toolTip)"""
4130 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4133 class TreeEventPtr(TreeEvent
):
4134 def __init__(self
, this
):
4136 if not hasattr(self
,"thisown"): self
.thisown
= 0
4137 self
.__class
__ = TreeEvent
4138 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
4140 #---------------------------------------------------------------------------
4142 class TreeCtrl(_core
.Control
):
4144 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4145 def __init__(self
, *args
, **kwargs
):
4147 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4148 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4149 Validator validator=DefaultValidator,
4150 String name=TreeCtrlNameStr) -> TreeCtrl
4152 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
4153 self
.this
= newobj
.this
4156 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4158 def Create(*args
, **kwargs
):
4160 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4161 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4162 Validator validator=DefaultValidator,
4163 String name=TreeCtrlNameStr) -> bool
4165 Do the 2nd phase and create the GUI control.
4167 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
4169 def _setCallbackInfo(*args
, **kwargs
):
4170 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4171 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4173 def GetCount(*args
, **kwargs
):
4174 """GetCount(self) -> size_t"""
4175 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
4177 def GetIndent(*args
, **kwargs
):
4178 """GetIndent(self) -> unsigned int"""
4179 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
4181 def SetIndent(*args
, **kwargs
):
4182 """SetIndent(self, unsigned int indent)"""
4183 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
4185 def GetSpacing(*args
, **kwargs
):
4186 """GetSpacing(self) -> unsigned int"""
4187 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4189 def SetSpacing(*args
, **kwargs
):
4190 """SetSpacing(self, unsigned int spacing)"""
4191 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4193 def GetImageList(*args
, **kwargs
):
4194 """GetImageList(self) -> ImageList"""
4195 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
4197 def GetStateImageList(*args
, **kwargs
):
4198 """GetStateImageList(self) -> ImageList"""
4199 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4201 def SetImageList(*args
, **kwargs
):
4202 """SetImageList(self, ImageList imageList)"""
4203 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
4205 def SetStateImageList(*args
, **kwargs
):
4206 """SetStateImageList(self, ImageList imageList)"""
4207 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4209 def AssignImageList(*args
, **kwargs
):
4210 """AssignImageList(self, ImageList imageList)"""
4211 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4213 def AssignStateImageList(*args
, **kwargs
):
4214 """AssignStateImageList(self, ImageList imageList)"""
4215 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4217 def GetItemText(*args
, **kwargs
):
4218 """GetItemText(self, TreeItemId item) -> String"""
4219 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
4221 def GetItemImage(*args
, **kwargs
):
4222 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4223 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4225 def GetItemData(*args
, **kwargs
):
4226 """GetItemData(self, TreeItemId item) -> TreeItemData"""
4227 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
4229 def GetItemPyData(*args
, **kwargs
):
4230 """GetItemPyData(self, TreeItemId item) -> PyObject"""
4231 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4233 GetPyData
= GetItemPyData
4234 def GetItemTextColour(*args
, **kwargs
):
4235 """GetItemTextColour(self, TreeItemId item) -> Colour"""
4236 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4238 def GetItemBackgroundColour(*args
, **kwargs
):
4239 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
4240 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4242 def GetItemFont(*args
, **kwargs
):
4243 """GetItemFont(self, TreeItemId item) -> Font"""
4244 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4246 def SetItemText(*args
, **kwargs
):
4247 """SetItemText(self, TreeItemId item, String text)"""
4248 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
4250 def SetItemImage(*args
, **kwargs
):
4251 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4252 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4254 def SetItemData(*args
, **kwargs
):
4255 """SetItemData(self, TreeItemId item, TreeItemData data)"""
4256 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
4258 def SetItemPyData(*args
, **kwargs
):
4259 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
4260 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4262 SetPyData
= SetItemPyData
4263 def SetItemHasChildren(*args
, **kwargs
):
4264 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
4265 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4267 def SetItemBold(*args
, **kwargs
):
4268 """SetItemBold(self, TreeItemId item, bool bold=True)"""
4269 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4271 def SetItemTextColour(*args
, **kwargs
):
4272 """SetItemTextColour(self, TreeItemId item, Colour col)"""
4273 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4275 def SetItemBackgroundColour(*args
, **kwargs
):
4276 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
4277 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4279 def SetItemFont(*args
, **kwargs
):
4280 """SetItemFont(self, TreeItemId item, Font font)"""
4281 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4283 def IsVisible(*args
, **kwargs
):
4284 """IsVisible(self, TreeItemId item) -> bool"""
4285 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
4287 def ItemHasChildren(*args
, **kwargs
):
4288 """ItemHasChildren(self, TreeItemId item) -> bool"""
4289 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4291 def IsExpanded(*args
, **kwargs
):
4292 """IsExpanded(self, TreeItemId item) -> bool"""
4293 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4295 def IsSelected(*args
, **kwargs
):
4296 """IsSelected(self, TreeItemId item) -> bool"""
4297 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
4299 def IsBold(*args
, **kwargs
):
4300 """IsBold(self, TreeItemId item) -> bool"""
4301 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
4303 def GetChildrenCount(*args
, **kwargs
):
4304 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
4305 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4307 def GetRootItem(*args
, **kwargs
):
4308 """GetRootItem(self) -> TreeItemId"""
4309 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4311 def GetSelection(*args
, **kwargs
):
4312 """GetSelection(self) -> TreeItemId"""
4313 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
4315 def GetSelections(*args
, **kwargs
):
4316 """GetSelections(self) -> PyObject"""
4317 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
4319 def GetItemParent(*args
, **kwargs
):
4320 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
4321 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4323 def GetFirstChild(*args
, **kwargs
):
4324 """GetFirstChild(self, TreeItemId item) -> PyObject"""
4325 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4327 def GetNextChild(*args
, **kwargs
):
4328 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
4329 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4331 def GetLastChild(*args
, **kwargs
):
4332 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
4333 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4335 def GetNextSibling(*args
, **kwargs
):
4336 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
4337 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4339 def GetPrevSibling(*args
, **kwargs
):
4340 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
4341 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4343 def GetFirstVisibleItem(*args
, **kwargs
):
4344 """GetFirstVisibleItem(self) -> TreeItemId"""
4345 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4347 def GetNextVisible(*args
, **kwargs
):
4348 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
4349 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4351 def GetPrevVisible(*args
, **kwargs
):
4352 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
4353 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4355 def AddRoot(*args
, **kwargs
):
4356 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4357 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
4359 def PrependItem(*args
, **kwargs
):
4361 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4362 TreeItemData data=None) -> TreeItemId
4364 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
4366 def InsertItem(*args
, **kwargs
):
4368 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
4369 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4371 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
4373 def InsertItemBefore(*args
, **kwargs
):
4375 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
4376 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4378 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4380 def AppendItem(*args
, **kwargs
):
4382 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4383 TreeItemData data=None) -> TreeItemId
4385 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
4387 def Delete(*args
, **kwargs
):
4388 """Delete(self, TreeItemId item)"""
4389 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
4391 def DeleteChildren(*args
, **kwargs
):
4392 """DeleteChildren(self, TreeItemId item)"""
4393 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4395 def DeleteAllItems(*args
, **kwargs
):
4396 """DeleteAllItems(self)"""
4397 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4399 def Expand(*args
, **kwargs
):
4400 """Expand(self, TreeItemId item)"""
4401 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
4403 def Collapse(*args
, **kwargs
):
4404 """Collapse(self, TreeItemId item)"""
4405 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
4407 def CollapseAndReset(*args
, **kwargs
):
4408 """CollapseAndReset(self, TreeItemId item)"""
4409 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4411 def Toggle(*args
, **kwargs
):
4412 """Toggle(self, TreeItemId item)"""
4413 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
4415 def Unselect(*args
, **kwargs
):
4416 """Unselect(self)"""
4417 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
4419 def UnselectItem(*args
, **kwargs
):
4420 """UnselectItem(self, TreeItemId item)"""
4421 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4423 def UnselectAll(*args
, **kwargs
):
4424 """UnselectAll(self)"""
4425 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4427 def SelectItem(*args
, **kwargs
):
4428 """SelectItem(self, TreeItemId item, bool select=True)"""
4429 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
4431 def ToggleItemSelection(*args
, **kwargs
):
4432 """ToggleItemSelection(self, TreeItemId item)"""
4433 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4435 def EnsureVisible(*args
, **kwargs
):
4436 """EnsureVisible(self, TreeItemId item)"""
4437 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4439 def ScrollTo(*args
, **kwargs
):
4440 """ScrollTo(self, TreeItemId item)"""
4441 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4443 def EditLabel(*args
, **kwargs
):
4444 """EditLabel(self, TreeItemId item)"""
4445 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
4447 def GetEditControl(*args
, **kwargs
):
4448 """GetEditControl(self) -> TextCtrl"""
4449 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4451 def SortChildren(*args
, **kwargs
):
4452 """SortChildren(self, TreeItemId item)"""
4453 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
4455 def HitTest(*args
, **kwargs
):
4457 HitTest(Point point) -> (item, where)
4459 Determine which item (if any) belongs the given point. The
4460 coordinates specified are relative to the client area of tree ctrl
4461 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4465 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
4467 def GetBoundingRect(*args
, **kwargs
):
4468 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
4469 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4471 def GetClassDefaultAttributes(*args
, **kwargs
):
4473 TreeCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4475 Get the default attributes for this class. This is useful if
4476 you want to use the same font or colour in your own control as
4477 in a standard control -- which is a much better idea than hard
4478 coding specific colours or fonts which might look completely out
4479 of place on the users system, especially if it uses themes.
4481 The variant parameter is only relevant under Mac currently and is
4482 ignore under other platforms. Under Mac, it will change the size of the
4483 returned font. See SetWindowVariant for more about this.
4485 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4487 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4489 class TreeCtrlPtr(TreeCtrl
):
4490 def __init__(self
, this
):
4492 if not hasattr(self
,"thisown"): self
.thisown
= 0
4493 self
.__class
__ = TreeCtrl
4494 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
4496 def PreTreeCtrl(*args
, **kwargs
):
4497 """PreTreeCtrl() -> TreeCtrl"""
4498 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
4502 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4504 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4506 Get the default attributes for this class. This is useful if
4507 you want to use the same font or colour in your own control as
4508 in a standard control -- which is a much better idea than hard
4509 coding specific colours or fonts which might look completely out
4510 of place on the users system, especially if it uses themes.
4512 The variant parameter is only relevant under Mac currently and is
4513 ignore under other platforms. Under Mac, it will change the size of the
4514 returned font. See SetWindowVariant for more about this.
4516 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4518 #---------------------------------------------------------------------------
4520 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
4521 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
4522 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
4523 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
4524 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
4525 class GenericDirCtrl(_core
.Control
):
4527 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4528 def __init__(self
, *args
, **kwargs
):
4530 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4531 Point pos=DefaultPosition, Size size=DefaultSize,
4532 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4533 String filter=EmptyString,
4534 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4536 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
4537 self
.this
= newobj
.this
4540 self
._setOORInfo
(self
)
4542 def Create(*args
, **kwargs
):
4544 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4545 Point pos=DefaultPosition, Size size=DefaultSize,
4546 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4547 String filter=EmptyString,
4548 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4550 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
4552 def ExpandPath(*args
, **kwargs
):
4553 """ExpandPath(self, String path) -> bool"""
4554 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4556 def GetDefaultPath(*args
, **kwargs
):
4557 """GetDefaultPath(self) -> String"""
4558 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4560 def SetDefaultPath(*args
, **kwargs
):
4561 """SetDefaultPath(self, String path)"""
4562 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4564 def GetPath(*args
, **kwargs
):
4565 """GetPath(self) -> String"""
4566 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4568 def GetFilePath(*args
, **kwargs
):
4569 """GetFilePath(self) -> String"""
4570 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4572 def SetPath(*args
, **kwargs
):
4573 """SetPath(self, String path)"""
4574 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4576 def ShowHidden(*args
, **kwargs
):
4577 """ShowHidden(self, bool show)"""
4578 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4580 def GetShowHidden(*args
, **kwargs
):
4581 """GetShowHidden(self) -> bool"""
4582 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4584 def GetFilter(*args
, **kwargs
):
4585 """GetFilter(self) -> String"""
4586 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4588 def SetFilter(*args
, **kwargs
):
4589 """SetFilter(self, String filter)"""
4590 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4592 def GetFilterIndex(*args
, **kwargs
):
4593 """GetFilterIndex(self) -> int"""
4594 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4596 def SetFilterIndex(*args
, **kwargs
):
4597 """SetFilterIndex(self, int n)"""
4598 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4600 def GetRootId(*args
, **kwargs
):
4601 """GetRootId(self) -> TreeItemId"""
4602 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4604 def GetTreeCtrl(*args
, **kwargs
):
4605 """GetTreeCtrl(self) -> TreeCtrl"""
4606 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4608 def GetFilterListCtrl(*args
, **kwargs
):
4609 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
4610 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4612 def FindChild(*args
, **kwargs
):
4614 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4616 Find the child that matches the first part of 'path'. E.g. if a child path is
4617 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4618 If the path string has been used (we're at the leaf), done is set to True
4621 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4623 def DoResize(*args
, **kwargs
):
4624 """DoResize(self)"""
4625 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4627 def ReCreateTree(*args
, **kwargs
):
4628 """ReCreateTree(self)"""
4629 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4632 class GenericDirCtrlPtr(GenericDirCtrl
):
4633 def __init__(self
, this
):
4635 if not hasattr(self
,"thisown"): self
.thisown
= 0
4636 self
.__class
__ = GenericDirCtrl
4637 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4638 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4640 def PreGenericDirCtrl(*args
, **kwargs
):
4641 """PreGenericDirCtrl() -> GenericDirCtrl"""
4642 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
4646 class DirFilterListCtrl(Choice
):
4648 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4649 def __init__(self
, *args
, **kwargs
):
4651 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4652 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4654 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
4655 self
.this
= newobj
.this
4658 self
._setOORInfo
(self
)
4660 def Create(*args
, **kwargs
):
4662 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4663 Size size=DefaultSize, long style=0) -> bool
4665 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
4667 def FillFilterList(*args
, **kwargs
):
4668 """FillFilterList(self, String filter, int defaultFilter)"""
4669 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4672 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4673 def __init__(self
, this
):
4675 if not hasattr(self
,"thisown"): self
.thisown
= 0
4676 self
.__class
__ = DirFilterListCtrl
4677 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4679 def PreDirFilterListCtrl(*args
, **kwargs
):
4680 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4681 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4685 #---------------------------------------------------------------------------
4687 class PyControl(_core
.Control
):
4689 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4690 def __init__(self
, *args
, **kwargs
):
4692 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4693 long style=0, Validator validator=DefaultValidator,
4694 String name=ControlNameStr) -> PyControl
4696 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
4697 self
.this
= newobj
.this
4700 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4702 def _setCallbackInfo(*args
, **kwargs
):
4703 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4704 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
4706 def base_DoMoveWindow(*args
, **kwargs
):
4707 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
4708 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4710 def base_DoSetSize(*args
, **kwargs
):
4711 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4712 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
4714 def base_DoSetClientSize(*args
, **kwargs
):
4715 """base_DoSetClientSize(self, int width, int height)"""
4716 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4718 def base_DoSetVirtualSize(*args
, **kwargs
):
4719 """base_DoSetVirtualSize(self, int x, int y)"""
4720 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4722 def base_DoGetSize(*args
, **kwargs
):
4723 """base_DoGetSize() -> (width, height)"""
4724 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
4726 def base_DoGetClientSize(*args
, **kwargs
):
4727 """base_DoGetClientSize() -> (width, height)"""
4728 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4730 def base_DoGetPosition(*args
, **kwargs
):
4731 """base_DoGetPosition() -> (x,y)"""
4732 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4734 def base_DoGetVirtualSize(*args
, **kwargs
):
4735 """base_DoGetVirtualSize(self) -> Size"""
4736 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4738 def base_DoGetBestSize(*args
, **kwargs
):
4739 """base_DoGetBestSize(self) -> Size"""
4740 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4742 def base_InitDialog(*args
, **kwargs
):
4743 """base_InitDialog(self)"""
4744 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
4746 def base_TransferDataToWindow(*args
, **kwargs
):
4747 """base_TransferDataToWindow(self) -> bool"""
4748 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4750 def base_TransferDataFromWindow(*args
, **kwargs
):
4751 """base_TransferDataFromWindow(self) -> bool"""
4752 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4754 def base_Validate(*args
, **kwargs
):
4755 """base_Validate(self) -> bool"""
4756 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
4758 def base_AcceptsFocus(*args
, **kwargs
):
4759 """base_AcceptsFocus(self) -> bool"""
4760 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4762 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4763 """base_AcceptsFocusFromKeyboard(self) -> bool"""
4764 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4766 def base_GetMaxSize(*args
, **kwargs
):
4767 """base_GetMaxSize(self) -> Size"""
4768 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4770 def base_AddChild(*args
, **kwargs
):
4771 """base_AddChild(self, Window child)"""
4772 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
4774 def base_RemoveChild(*args
, **kwargs
):
4775 """base_RemoveChild(self, Window child)"""
4776 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
4778 def base_ShouldInheritColours(*args
, **kwargs
):
4779 """base_ShouldInheritColours(self) -> bool"""
4780 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
4782 def base_ApplyParentThemeBackground(*args
, **kwargs
):
4783 """base_ApplyParentThemeBackground(self, Colour c)"""
4784 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
4787 class PyControlPtr(PyControl
):
4788 def __init__(self
, this
):
4790 if not hasattr(self
,"thisown"): self
.thisown
= 0
4791 self
.__class
__ = PyControl
4792 _controls_
.PyControl_swigregister(PyControlPtr
)
4794 def PrePyControl(*args
, **kwargs
):
4795 """PrePyControl() -> PyControl"""
4796 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
4800 #---------------------------------------------------------------------------
4802 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
4803 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
4804 wxEVT_HELP
= _controls_
.wxEVT_HELP
4805 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
4806 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4807 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4808 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4809 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4811 class HelpEvent(_core
.CommandEvent
):
4813 A help event is sent when the user has requested
4814 context-sensitive help. This can either be caused by the
4815 application requesting context-sensitive help mode via
4816 wx.ContextHelp, or (on MS Windows) by the system generating a
4817 WM_HELP message when the user pressed F1 or clicked on the query
4818 button in a dialog caption.
4820 A help event is sent to the window that the user clicked on, and
4821 is propagated up the window hierarchy until the event is
4822 processed or there are no more event handlers. The application
4823 should call event.GetId to check the identity of the clicked-on
4824 window, and then either show some suitable help or call
4825 event.Skip if the identifier is unrecognised. Calling Skip is
4826 important because it allows wxWindows to generate further events
4827 for ancestors of the clicked-on window. Otherwise it would be
4828 impossible to show help for container windows, since processing
4829 would stop after the first window found.
4832 EVT_HELP Sent when the user has requested context-
4834 EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs
4838 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4839 def __init__(self
, *args
, **kwargs
):
4840 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4841 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
4842 self
.this
= newobj
.this
4845 def GetPosition(*args
, **kwargs
):
4847 GetPosition(self) -> Point
4849 Returns the left-click position of the mouse, in screen
4850 coordinates. This allows the application to position the help
4853 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
4855 def SetPosition(*args
, **kwargs
):
4857 SetPosition(self, Point pos)
4859 Sets the left-click position of the mouse, in screen coordinates.
4861 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
4863 def GetLink(*args
, **kwargs
):
4865 GetLink(self) -> String
4867 Get an optional link to further help
4869 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
4871 def SetLink(*args
, **kwargs
):
4873 SetLink(self, String link)
4875 Set an optional link to further help
4877 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
4879 def GetTarget(*args
, **kwargs
):
4881 GetTarget(self) -> String
4883 Get an optional target to display help in. E.g. a window specification
4885 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
4887 def SetTarget(*args
, **kwargs
):
4889 SetTarget(self, String target)
4891 Set an optional target to display help in. E.g. a window specification
4893 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
4896 class HelpEventPtr(HelpEvent
):
4897 def __init__(self
, this
):
4899 if not hasattr(self
,"thisown"): self
.thisown
= 0
4900 self
.__class
__ = HelpEvent
4901 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
4903 class ContextHelp(_core
.Object
):
4905 This class changes the cursor to a query and puts the application
4906 into a 'context-sensitive help mode'. When the user left-clicks
4907 on a window within the specified window, a EVT_HELP event is sent
4908 to that control, and the application may respond to it by popping
4911 There are a couple of ways to invoke this behaviour implicitly:
4913 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a
4914 dialog (Windows only). This will put a question mark in the
4915 titlebar, and Windows will put the application into
4916 context-sensitive help mode automatically, with further
4919 * Create a wx.ContextHelpButton, whose predefined behaviour
4920 is to create a context help object. Normally you will write
4921 your application so that this button is only added to a
4922 dialog for non-Windows platforms (use
4923 wx.DIALOG_EX_CONTEXTHELP on Windows).
4927 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4928 def __init__(self
, *args
, **kwargs
):
4930 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
4932 Constructs a context help object, calling BeginContextHelp if
4933 doNow is true (the default).
4935 If window is None, the top window is used.
4937 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
4938 self
.this
= newobj
.this
4941 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
4944 if self
.thisown
: destroy(self
)
4947 def BeginContextHelp(*args
, **kwargs
):
4949 BeginContextHelp(self, Window window=None) -> bool
4951 Puts the application into context-sensitive help mode. window is
4952 the window which will be used to catch events; if NULL, the top
4953 window will be used.
4955 Returns true if the application was successfully put into
4956 context-sensitive help mode. This function only returns when the
4957 event loop has finished.
4959 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4961 def EndContextHelp(*args
, **kwargs
):
4963 EndContextHelp(self) -> bool
4965 Ends context-sensitive help mode. Not normally called by the
4968 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4971 class ContextHelpPtr(ContextHelp
):
4972 def __init__(self
, this
):
4974 if not hasattr(self
,"thisown"): self
.thisown
= 0
4975 self
.__class
__ = ContextHelp
4976 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
4978 class ContextHelpButton(BitmapButton
):
4980 Instances of this class may be used to add a question mark button
4981 that when pressed, puts the application into context-help
4982 mode. It does this by creating a wx.ContextHelp object which
4983 itself generates a EVT_HELP event when the user clicks on a
4986 On Windows, you may add a question-mark icon to a dialog by use
4987 of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other
4988 platforms you will have to add a button explicitly, usually next
4989 to OK, Cancel or similar buttons.
4993 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4994 def __init__(self
, *args
, **kwargs
):
4996 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4997 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4999 Constructor, creating and showing a context help button.
5001 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
5002 self
.this
= newobj
.this
5005 self
._setOORInfo
(self
)
5008 class ContextHelpButtonPtr(ContextHelpButton
):
5009 def __init__(self
, this
):
5011 if not hasattr(self
,"thisown"): self
.thisown
= 0
5012 self
.__class
__ = ContextHelpButton
5013 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5015 class HelpProvider(object):
5017 wx.HelpProvider is an abstract class used by a program
5018 implementing context-sensitive help to show the help text for the
5021 The current help provider must be explicitly set by the
5022 application using wx.HelpProvider.Set().
5024 def __init__(self
): raise RuntimeError, "No constructor defined"
5026 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5027 def Set(*args
, **kwargs
):
5029 HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider
5031 Sset the current, application-wide help provider. Returns the
5032 previous one. Unlike some other classes, the help provider is
5033 not created on demand. This must be explicitly done by the
5036 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5038 Set
= staticmethod(Set
)
5039 def Get(*args
, **kwargs
):
5041 HelpProvider.Get() -> HelpProvider
5043 Return the current application-wide help provider.
5045 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5047 Get
= staticmethod(Get
)
5048 def GetHelp(*args
, **kwargs
):
5050 GetHelp(self, Window window) -> String
5052 Gets the help string for this window. Its interpretation is
5053 dependent on the help provider except that empty string always
5054 means that no help is associated with the window.
5056 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5058 def ShowHelp(*args
, **kwargs
):
5060 ShowHelp(self, Window window) -> bool
5062 Shows help for the given window. Uses GetHelp internally if
5065 Returns true if it was done, or false if no help was available
5068 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5070 def AddHelp(*args
, **kwargs
):
5072 AddHelp(self, Window window, String text)
5074 Associates the text with the given window.
5076 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5078 def AddHelpById(*args
, **kwargs
):
5080 AddHelpById(self, int id, String text)
5082 This version associates the given text with all windows with this
5083 id. May be used to set the same help string for all Cancel
5084 buttons in the application, for example.
5086 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5088 def RemoveHelp(*args
, **kwargs
):
5090 RemoveHelp(self, Window window)
5092 Removes the association between the window pointer and the help
5093 text. This is called by the wx.Window destructor. Without this,
5094 the table of help strings will fill up and when window pointers
5095 are reused, the wrong help string will be found.
5097 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5099 def Destroy(*args
, **kwargs
):
5101 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5104 class HelpProviderPtr(HelpProvider
):
5105 def __init__(self
, this
):
5107 if not hasattr(self
,"thisown"): self
.thisown
= 0
5108 self
.__class
__ = HelpProvider
5109 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
5111 def HelpProvider_Set(*args
, **kwargs
):
5113 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5115 Sset the current, application-wide help provider. Returns the
5116 previous one. Unlike some other classes, the help provider is
5117 not created on demand. This must be explicitly done by the
5120 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5122 def HelpProvider_Get(*args
, **kwargs
):
5124 HelpProvider_Get() -> HelpProvider
5126 Return the current application-wide help provider.
5128 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5130 class SimpleHelpProvider(HelpProvider
):
5132 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5133 which supports only plain text help strings, and shows the string
5134 associated with the control (if any) in a tooltip.
5137 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5138 def __init__(self
, *args
, **kwargs
):
5140 __init__(self) -> SimpleHelpProvider
5142 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5143 which supports only plain text help strings, and shows the string
5144 associated with the control (if any) in a tooltip.
5146 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
5147 self
.this
= newobj
.this
5151 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5152 def __init__(self
, this
):
5154 if not hasattr(self
,"thisown"): self
.thisown
= 0
5155 self
.__class
__ = SimpleHelpProvider
5156 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5158 #---------------------------------------------------------------------------
5160 class DragImage(_core
.Object
):
5162 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5163 def __init__(self
, *args
, **kwargs
):
5164 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5165 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
5166 self
.this
= newobj
.this
5169 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
5172 if self
.thisown
: destroy(self
)
5175 def SetBackingBitmap(*args
, **kwargs
):
5176 """SetBackingBitmap(self, Bitmap bitmap)"""
5177 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5179 def BeginDrag(*args
, **kwargs
):
5181 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
5182 Rect rect=None) -> bool
5184 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
5186 def BeginDragBounded(*args
, **kwargs
):
5187 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
5188 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
5190 def EndDrag(*args
, **kwargs
):
5191 """EndDrag(self) -> bool"""
5192 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
5194 def Move(*args
, **kwargs
):
5195 """Move(self, Point pt) -> bool"""
5196 return _controls_
.DragImage_Move(*args
, **kwargs
)
5198 def Show(*args
, **kwargs
):
5199 """Show(self) -> bool"""
5200 return _controls_
.DragImage_Show(*args
, **kwargs
)
5202 def Hide(*args
, **kwargs
):
5203 """Hide(self) -> bool"""
5204 return _controls_
.DragImage_Hide(*args
, **kwargs
)
5206 def GetImageRect(*args
, **kwargs
):
5207 """GetImageRect(self, Point pos) -> Rect"""
5208 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
5210 def DoDrawImage(*args
, **kwargs
):
5211 """DoDrawImage(self, DC dc, Point pos) -> bool"""
5212 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
5214 def UpdateBackingFromWindow(*args
, **kwargs
):
5215 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
5216 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
5218 def RedrawImage(*args
, **kwargs
):
5219 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
5220 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
5223 class DragImagePtr(DragImage
):
5224 def __init__(self
, this
):
5226 if not hasattr(self
,"thisown"): self
.thisown
= 0
5227 self
.__class
__ = DragImage
5228 _controls_
.DragImage_swigregister(DragImagePtr
)
5230 def DragIcon(*args
, **kwargs
):
5231 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
5232 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
5236 def DragString(*args
, **kwargs
):
5237 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
5238 val
= _controls_
.new_DragString(*args
, **kwargs
)
5242 def DragTreeItem(*args
, **kwargs
):
5243 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
5244 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
5248 def DragListItem(*args
, **kwargs
):
5249 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
5250 val
= _controls_
.new_DragListItem(*args
, **kwargs
)