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 GetItemHeight(*args
, **kwargs
):
1032 """GetItemHeight(self) -> int"""
1033 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1035 def HitTest(*args
, **kwargs
):
1037 HitTest(self, Point pt) -> int
1039 Test where the given (in client coords) point lies
1041 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1043 def HitTestXY(*args
, **kwargs
):
1045 HitTestXY(self, int x, int y) -> int
1047 Test where the given (in client coords) point lies
1049 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1052 class CheckListBoxPtr(CheckListBox
):
1053 def __init__(self
, this
):
1055 if not hasattr(self
,"thisown"): self
.thisown
= 0
1056 self
.__class
__ = CheckListBox
1057 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1059 def PreCheckListBox(*args
, **kwargs
):
1060 """PreCheckListBox() -> CheckListBox"""
1061 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1065 #---------------------------------------------------------------------------
1067 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1068 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1069 TE_READONLY
= _controls_
.TE_READONLY
1070 TE_MULTILINE
= _controls_
.TE_MULTILINE
1071 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1072 TE_LEFT
= _controls_
.TE_LEFT
1073 TE_CENTER
= _controls_
.TE_CENTER
1074 TE_RIGHT
= _controls_
.TE_RIGHT
1075 TE_CENTRE
= _controls_
.TE_CENTRE
1076 TE_RICH
= _controls_
.TE_RICH
1077 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1078 TE_PASSWORD
= _controls_
.TE_PASSWORD
1079 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1080 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1081 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1082 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1083 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1084 TE_RICH2
= _controls_
.TE_RICH2
1085 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1086 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1087 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1088 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1089 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1090 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1091 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1092 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1093 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1094 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1095 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1096 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1097 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1098 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1099 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1100 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1101 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1102 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1103 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1104 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1105 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1106 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1107 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1108 class TextAttr(object):
1110 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1111 def __init__(self
, *args
):
1113 __init__(self) -> TextAttr
1114 __init__(self, Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1115 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1117 newobj
= _controls_
.new_TextAttr(*args
)
1118 self
.this
= newobj
.this
1121 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1124 if self
.thisown
: destroy(self
)
1127 def Init(*args
, **kwargs
):
1129 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1131 def SetTextColour(*args
, **kwargs
):
1132 """SetTextColour(self, Colour colText)"""
1133 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1135 def SetBackgroundColour(*args
, **kwargs
):
1136 """SetBackgroundColour(self, Colour colBack)"""
1137 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1139 def SetFont(*args
, **kwargs
):
1140 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1141 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1143 def SetAlignment(*args
, **kwargs
):
1144 """SetAlignment(self, int alignment)"""
1145 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1147 def SetTabs(*args
, **kwargs
):
1148 """SetTabs(self, wxArrayInt tabs)"""
1149 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1151 def SetLeftIndent(*args
, **kwargs
):
1152 """SetLeftIndent(self, int indent)"""
1153 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1155 def SetRightIndent(*args
, **kwargs
):
1156 """SetRightIndent(self, int indent)"""
1157 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1159 def SetFlags(*args
, **kwargs
):
1160 """SetFlags(self, long flags)"""
1161 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1163 def HasTextColour(*args
, **kwargs
):
1164 """HasTextColour(self) -> bool"""
1165 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1167 def HasBackgroundColour(*args
, **kwargs
):
1168 """HasBackgroundColour(self) -> bool"""
1169 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1171 def HasFont(*args
, **kwargs
):
1172 """HasFont(self) -> bool"""
1173 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1175 def HasAlignment(*args
, **kwargs
):
1176 """HasAlignment(self) -> bool"""
1177 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1179 def HasTabs(*args
, **kwargs
):
1180 """HasTabs(self) -> bool"""
1181 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1183 def HasLeftIndent(*args
, **kwargs
):
1184 """HasLeftIndent(self) -> bool"""
1185 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1187 def HasRightIndent(*args
, **kwargs
):
1188 """HasRightIndent(self) -> bool"""
1189 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1191 def HasFlag(*args
, **kwargs
):
1192 """HasFlag(self, long flag) -> bool"""
1193 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1195 def GetTextColour(*args
, **kwargs
):
1196 """GetTextColour(self) -> Colour"""
1197 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1199 def GetBackgroundColour(*args
, **kwargs
):
1200 """GetBackgroundColour(self) -> Colour"""
1201 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1203 def GetFont(*args
, **kwargs
):
1204 """GetFont(self) -> Font"""
1205 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1207 def GetAlignment(*args
, **kwargs
):
1208 """GetAlignment(self) -> int"""
1209 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1211 def GetTabs(*args
, **kwargs
):
1212 """GetTabs(self) -> wxArrayInt"""
1213 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1215 def GetLeftIndent(*args
, **kwargs
):
1216 """GetLeftIndent(self) -> long"""
1217 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1219 def GetRightIndent(*args
, **kwargs
):
1220 """GetRightIndent(self) -> long"""
1221 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1223 def GetFlags(*args
, **kwargs
):
1224 """GetFlags(self) -> long"""
1225 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1227 def IsDefault(*args
, **kwargs
):
1228 """IsDefault(self) -> bool"""
1229 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1231 def Combine(*args
, **kwargs
):
1232 """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1233 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1235 Combine
= staticmethod(Combine
)
1237 class TextAttrPtr(TextAttr
):
1238 def __init__(self
, this
):
1240 if not hasattr(self
,"thisown"): self
.thisown
= 0
1241 self
.__class
__ = TextAttr
1242 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1243 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1245 def TextAttr_Combine(*args
, **kwargs
):
1246 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1247 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1249 class TextCtrl(_core
.Control
):
1251 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1252 def __init__(self
, *args
, **kwargs
):
1254 __init__(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1255 Size size=DefaultSize,
1256 long style=0, Validator validator=DefaultValidator,
1257 String name=TextCtrlNameStr) -> TextCtrl
1259 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1260 self
.this
= newobj
.this
1263 self
._setOORInfo
(self
)
1265 def Create(*args
, **kwargs
):
1267 Create(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1268 Size size=DefaultSize,
1269 long style=0, Validator validator=DefaultValidator,
1270 String name=TextCtrlNameStr) -> bool
1272 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1274 def GetValue(*args
, **kwargs
):
1275 """GetValue(self) -> String"""
1276 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1278 def SetValue(*args
, **kwargs
):
1279 """SetValue(self, String value)"""
1280 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1282 def GetRange(*args
, **kwargs
):
1283 """GetRange(self, long from, long to) -> String"""
1284 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1286 def GetLineLength(*args
, **kwargs
):
1287 """GetLineLength(self, long lineNo) -> int"""
1288 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1290 def GetLineText(*args
, **kwargs
):
1291 """GetLineText(self, long lineNo) -> String"""
1292 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1294 def GetNumberOfLines(*args
, **kwargs
):
1295 """GetNumberOfLines(self) -> int"""
1296 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1298 def IsModified(*args
, **kwargs
):
1299 """IsModified(self) -> bool"""
1300 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1302 def IsEditable(*args
, **kwargs
):
1303 """IsEditable(self) -> bool"""
1304 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1306 def IsSingleLine(*args
, **kwargs
):
1307 """IsSingleLine(self) -> bool"""
1308 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1310 def IsMultiLine(*args
, **kwargs
):
1311 """IsMultiLine(self) -> bool"""
1312 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1314 def GetSelection(*args
, **kwargs
):
1316 GetSelection() -> (from, to)
1318 If the return values from and to are the same, there is no selection.
1320 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1322 def GetStringSelection(*args
, **kwargs
):
1323 """GetStringSelection(self) -> String"""
1324 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1326 def Clear(*args
, **kwargs
):
1328 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1330 def Replace(*args
, **kwargs
):
1331 """Replace(self, long from, long to, String value)"""
1332 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1334 def Remove(*args
, **kwargs
):
1335 """Remove(self, long from, long to)"""
1336 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1338 def LoadFile(*args
, **kwargs
):
1339 """LoadFile(self, String file) -> bool"""
1340 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1342 def SaveFile(*args
, **kwargs
):
1343 """SaveFile(self, String file=EmptyString) -> bool"""
1344 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1346 def MarkDirty(*args
, **kwargs
):
1347 """MarkDirty(self)"""
1348 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1350 def DiscardEdits(*args
, **kwargs
):
1351 """DiscardEdits(self)"""
1352 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1354 def SetMaxLength(*args
, **kwargs
):
1355 """SetMaxLength(self, unsigned long len)"""
1356 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1358 def WriteText(*args
, **kwargs
):
1359 """WriteText(self, String text)"""
1360 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1362 def AppendText(*args
, **kwargs
):
1363 """AppendText(self, String text)"""
1364 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1366 def EmulateKeyPress(*args
, **kwargs
):
1367 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1368 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1370 def SetStyle(*args
, **kwargs
):
1371 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1372 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1374 def GetStyle(*args
, **kwargs
):
1375 """GetStyle(self, long position, TextAttr style) -> bool"""
1376 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1378 def SetDefaultStyle(*args
, **kwargs
):
1379 """SetDefaultStyle(self, TextAttr style) -> bool"""
1380 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1382 def GetDefaultStyle(*args
, **kwargs
):
1383 """GetDefaultStyle(self) -> TextAttr"""
1384 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1386 def XYToPosition(*args
, **kwargs
):
1387 """XYToPosition(self, long x, long y) -> long"""
1388 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1390 def PositionToXY(*args
, **kwargs
):
1391 """PositionToXY(long pos) -> (x, y)"""
1392 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1394 def ShowPosition(*args
, **kwargs
):
1395 """ShowPosition(self, long pos)"""
1396 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1398 def HitTest(*args
, **kwargs
):
1400 HitTest(Point pt) -> (result, row, col)
1402 Find the character at position given in pixels.
1403 NB: pt is in device coords (not adjusted for the client area
1404 origin nor scrolling)
1406 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1408 def Copy(*args
, **kwargs
):
1410 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1412 def Cut(*args
, **kwargs
):
1414 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1416 def Paste(*args
, **kwargs
):
1418 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1420 def CanCopy(*args
, **kwargs
):
1421 """CanCopy(self) -> bool"""
1422 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1424 def CanCut(*args
, **kwargs
):
1425 """CanCut(self) -> bool"""
1426 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1428 def CanPaste(*args
, **kwargs
):
1429 """CanPaste(self) -> bool"""
1430 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1432 def Undo(*args
, **kwargs
):
1434 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1436 def Redo(*args
, **kwargs
):
1438 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1440 def CanUndo(*args
, **kwargs
):
1441 """CanUndo(self) -> bool"""
1442 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1444 def CanRedo(*args
, **kwargs
):
1445 """CanRedo(self) -> bool"""
1446 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1448 def SetInsertionPoint(*args
, **kwargs
):
1449 """SetInsertionPoint(self, long pos)"""
1450 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1452 def SetInsertionPointEnd(*args
, **kwargs
):
1453 """SetInsertionPointEnd(self)"""
1454 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1456 def GetInsertionPoint(*args
, **kwargs
):
1457 """GetInsertionPoint(self) -> long"""
1458 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1460 def GetLastPosition(*args
, **kwargs
):
1461 """GetLastPosition(self) -> long"""
1462 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1464 def SetSelection(*args
, **kwargs
):
1465 """SetSelection(self, long from, long to)"""
1466 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1468 def SelectAll(*args
, **kwargs
):
1469 """SelectAll(self)"""
1470 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1472 def SetEditable(*args
, **kwargs
):
1473 """SetEditable(self, bool editable)"""
1474 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1476 def write(*args
, **kwargs
):
1477 """write(self, String text)"""
1478 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1480 def GetString(*args
, **kwargs
):
1481 """GetString(self, long from, long to) -> String"""
1482 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1485 class TextCtrlPtr(TextCtrl
):
1486 def __init__(self
, this
):
1488 if not hasattr(self
,"thisown"): self
.thisown
= 0
1489 self
.__class
__ = TextCtrl
1490 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
1492 def PreTextCtrl(*args
, **kwargs
):
1493 """PreTextCtrl() -> TextCtrl"""
1494 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1498 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1499 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1500 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1501 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1502 class TextUrlEvent(_core
.CommandEvent
):
1504 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1505 def __init__(self
, *args
, **kwargs
):
1506 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1507 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
1508 self
.this
= newobj
.this
1511 def GetMouseEvent(*args
, **kwargs
):
1512 """GetMouseEvent(self) -> MouseEvent"""
1513 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1515 def GetURLStart(*args
, **kwargs
):
1516 """GetURLStart(self) -> long"""
1517 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1519 def GetURLEnd(*args
, **kwargs
):
1520 """GetURLEnd(self) -> long"""
1521 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1524 class TextUrlEventPtr(TextUrlEvent
):
1525 def __init__(self
, this
):
1527 if not hasattr(self
,"thisown"): self
.thisown
= 0
1528 self
.__class
__ = TextUrlEvent
1529 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1531 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1532 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1533 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1534 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1536 #---------------------------------------------------------------------------
1538 class ScrollBar(_core
.Control
):
1540 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1541 def __init__(self
, *args
, **kwargs
):
1543 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1544 Size size=DefaultSize, long style=SB_HORIZONTAL,
1545 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1547 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
1548 self
.this
= newobj
.this
1551 self
._setOORInfo
(self
)
1553 def Create(*args
, **kwargs
):
1555 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1556 Size size=DefaultSize, long style=SB_HORIZONTAL,
1557 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1559 Do the 2nd phase and create the GUI control.
1561 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1563 def GetThumbPosition(*args
, **kwargs
):
1564 """GetThumbPosition(self) -> int"""
1565 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1567 def GetThumbSize(*args
, **kwargs
):
1568 """GetThumbSize(self) -> int"""
1569 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1571 GetThumbLength
= GetThumbSize
1572 def GetPageSize(*args
, **kwargs
):
1573 """GetPageSize(self) -> int"""
1574 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
1576 def GetRange(*args
, **kwargs
):
1577 """GetRange(self) -> int"""
1578 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
1580 def IsVertical(*args
, **kwargs
):
1581 """IsVertical(self) -> bool"""
1582 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
1584 def SetThumbPosition(*args
, **kwargs
):
1585 """SetThumbPosition(self, int viewStart)"""
1586 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1588 def SetScrollbar(*args
, **kwargs
):
1590 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
1593 Sets the scrollbar properties of a built-in scrollbar.
1595 orientation: Determines the scrollbar whose page size is to be
1596 set. May be wx.HORIZONTAL or wx.VERTICAL.
1598 position: The position of the scrollbar in scroll units.
1600 thumbSize: The size of the thumb, or visible portion of the
1601 scrollbar, in scroll units.
1603 range: The maximum position of the scrollbar.
1605 refresh: True to redraw the scrollbar, false otherwise.
1607 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1610 class ScrollBarPtr(ScrollBar
):
1611 def __init__(self
, this
):
1613 if not hasattr(self
,"thisown"): self
.thisown
= 0
1614 self
.__class
__ = ScrollBar
1615 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
1616 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1618 def PreScrollBar(*args
, **kwargs
):
1619 """PreScrollBar() -> ScrollBar"""
1620 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
1624 #---------------------------------------------------------------------------
1626 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
1627 SP_VERTICAL
= _controls_
.SP_VERTICAL
1628 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
1629 SP_WRAP
= _controls_
.SP_WRAP
1630 class SpinButton(_core
.Control
):
1632 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1633 def __init__(self
, *args
, **kwargs
):
1635 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1636 Size size=DefaultSize, long style=SP_HORIZONTAL,
1637 String name=SPIN_BUTTON_NAME) -> SpinButton
1639 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
1640 self
.this
= newobj
.this
1643 self
._setOORInfo
(self
)
1645 def Create(*args
, **kwargs
):
1647 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1648 Size size=DefaultSize, long style=SP_HORIZONTAL,
1649 String name=SPIN_BUTTON_NAME) -> bool
1651 return _controls_
.SpinButton_Create(*args
, **kwargs
)
1653 def GetValue(*args
, **kwargs
):
1654 """GetValue(self) -> int"""
1655 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
1657 def GetMin(*args
, **kwargs
):
1658 """GetMin(self) -> int"""
1659 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
1661 def GetMax(*args
, **kwargs
):
1662 """GetMax(self) -> int"""
1663 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
1665 def SetValue(*args
, **kwargs
):
1666 """SetValue(self, int val)"""
1667 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
1669 def SetMin(*args
, **kwargs
):
1670 """SetMin(self, int minVal)"""
1671 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
1673 def SetMax(*args
, **kwargs
):
1674 """SetMax(self, int maxVal)"""
1675 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
1677 def SetRange(*args
, **kwargs
):
1678 """SetRange(self, int minVal, int maxVal)"""
1679 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
1681 def IsVertical(*args
, **kwargs
):
1682 """IsVertical(self) -> bool"""
1683 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
1686 class SpinButtonPtr(SpinButton
):
1687 def __init__(self
, this
):
1689 if not hasattr(self
,"thisown"): self
.thisown
= 0
1690 self
.__class
__ = SpinButton
1691 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
1692 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1693 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1695 def PreSpinButton(*args
, **kwargs
):
1696 """PreSpinButton() -> SpinButton"""
1697 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
1701 class SpinCtrl(_core
.Control
):
1703 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1704 def __init__(self
, *args
, **kwargs
):
1706 __init__(self, Window parent, int id=-1, String value=EmptyString,
1707 Point pos=DefaultPosition, Size size=DefaultSize,
1708 long style=SP_ARROW_KEYS, int min=0, int max=100,
1709 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1711 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
1712 self
.this
= newobj
.this
1715 self
._setOORInfo
(self
)
1717 def Create(*args
, **kwargs
):
1719 Create(self, Window parent, int id=-1, String value=EmptyString,
1720 Point pos=DefaultPosition, Size size=DefaultSize,
1721 long style=SP_ARROW_KEYS, int min=0, int max=100,
1722 int initial=0, String name=SpinCtrlNameStr) -> bool
1724 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
1726 def GetValue(*args
, **kwargs
):
1727 """GetValue(self) -> int"""
1728 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
1730 def SetValue(*args
, **kwargs
):
1731 """SetValue(self, int value)"""
1732 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
1734 def SetValueString(*args
, **kwargs
):
1735 """SetValueString(self, String text)"""
1736 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
1738 def SetRange(*args
, **kwargs
):
1739 """SetRange(self, int minVal, int maxVal)"""
1740 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
1742 def GetMin(*args
, **kwargs
):
1743 """GetMin(self) -> int"""
1744 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
1746 def GetMax(*args
, **kwargs
):
1747 """GetMax(self) -> int"""
1748 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
1750 def SetSelection(*args
, **kwargs
):
1751 """SetSelection(self, long from, long to)"""
1752 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
1755 class SpinCtrlPtr(SpinCtrl
):
1756 def __init__(self
, this
):
1758 if not hasattr(self
,"thisown"): self
.thisown
= 0
1759 self
.__class
__ = SpinCtrl
1760 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
1762 def PreSpinCtrl(*args
, **kwargs
):
1763 """PreSpinCtrl() -> SpinCtrl"""
1764 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
1768 class SpinEvent(_core
.NotifyEvent
):
1770 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1771 def __init__(self
, *args
, **kwargs
):
1772 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1773 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
1774 self
.this
= newobj
.this
1777 def GetPosition(*args
, **kwargs
):
1778 """GetPosition(self) -> int"""
1779 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
1781 def SetPosition(*args
, **kwargs
):
1782 """SetPosition(self, int pos)"""
1783 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
1786 class SpinEventPtr(SpinEvent
):
1787 def __init__(self
, this
):
1789 if not hasattr(self
,"thisown"): self
.thisown
= 0
1790 self
.__class
__ = SpinEvent
1791 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
1793 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
1794 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1795 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1796 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1797 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1799 #---------------------------------------------------------------------------
1801 class RadioBox(_core
.Control
):
1803 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1804 def __init__(self
, *args
, **kwargs
):
1806 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
1807 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1808 int majorDimension=0,
1809 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1810 String name=RadioBoxNameStr) -> RadioBox
1812 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1813 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
1814 self
.this
= newobj
.this
1817 self
._setOORInfo
(self
)
1819 def Create(*args
, **kwargs
):
1821 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
1822 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1823 int majorDimension=0,
1824 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1825 String name=RadioBoxNameStr) -> bool
1827 return _controls_
.RadioBox_Create(*args
, **kwargs
)
1829 def SetSelection(*args
, **kwargs
):
1830 """SetSelection(self, int n)"""
1831 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
1833 def GetSelection(*args
, **kwargs
):
1834 """GetSelection(self) -> int"""
1835 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
1837 def GetStringSelection(*args
, **kwargs
):
1838 """GetStringSelection(self) -> String"""
1839 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
1841 def SetStringSelection(*args
, **kwargs
):
1842 """SetStringSelection(self, String s) -> bool"""
1843 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
1845 def GetCount(*args
, **kwargs
):
1846 """GetCount(self) -> int"""
1847 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
1849 def FindString(*args
, **kwargs
):
1850 """FindString(self, String s) -> int"""
1851 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
1853 def GetString(*args
, **kwargs
):
1854 """GetString(self, int n) -> String"""
1855 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
1857 def SetString(*args
, **kwargs
):
1858 """SetString(self, int n, String label)"""
1859 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
1861 GetItemLabel
= GetString
1862 SetItemLabel
= SetString
1863 def EnableItem(*args
, **kwargs
):
1864 """EnableItem(self, int n, bool enable=True)"""
1865 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
1867 def ShowItem(*args
, **kwargs
):
1868 """ShowItem(self, int n, bool show=True)"""
1869 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
1871 def GetColumnCount(*args
, **kwargs
):
1872 """GetColumnCount(self) -> int"""
1873 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
1875 def GetRowCount(*args
, **kwargs
):
1876 """GetRowCount(self) -> int"""
1877 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
1879 def GetNextItem(*args
, **kwargs
):
1880 """GetNextItem(self, int item, int dir, long style) -> int"""
1881 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
1884 class RadioBoxPtr(RadioBox
):
1885 def __init__(self
, this
):
1887 if not hasattr(self
,"thisown"): self
.thisown
= 0
1888 self
.__class
__ = RadioBox
1889 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
1890 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1891 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1893 def PreRadioBox(*args
, **kwargs
):
1894 """PreRadioBox() -> RadioBox"""
1895 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
1899 #---------------------------------------------------------------------------
1901 class RadioButton(_core
.Control
):
1903 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1904 def __init__(self
, *args
, **kwargs
):
1906 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
1907 Size size=DefaultSize, long style=0,
1908 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1910 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
1911 self
.this
= newobj
.this
1914 self
._setOORInfo
(self
)
1916 def Create(*args
, **kwargs
):
1918 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
1919 Size size=DefaultSize, long style=0,
1920 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1922 return _controls_
.RadioButton_Create(*args
, **kwargs
)
1924 def GetValue(*args
, **kwargs
):
1925 """GetValue(self) -> bool"""
1926 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
1928 def SetValue(*args
, **kwargs
):
1929 """SetValue(self, bool value)"""
1930 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
1933 class RadioButtonPtr(RadioButton
):
1934 def __init__(self
, this
):
1936 if not hasattr(self
,"thisown"): self
.thisown
= 0
1937 self
.__class
__ = RadioButton
1938 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
1940 def PreRadioButton(*args
, **kwargs
):
1941 """PreRadioButton() -> RadioButton"""
1942 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
1946 #---------------------------------------------------------------------------
1948 class Slider(_core
.Control
):
1950 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1951 def __init__(self
, *args
, **kwargs
):
1953 __init__(self, Window parent, int id, int value, int minValue, int maxValue,
1954 Point pos=DefaultPosition, Size size=DefaultSize,
1955 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1956 String name=SliderNameStr) -> Slider
1958 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1959 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
1960 self
.this
= newobj
.this
1963 self
._setOORInfo
(self
)
1965 def Create(*args
, **kwargs
):
1967 Create(self, Window parent, int id, int value, int minValue, int maxValue,
1968 Point pos=DefaultPosition, Size size=DefaultSize,
1969 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1970 String name=SliderNameStr) -> bool
1972 return _controls_
.Slider_Create(*args
, **kwargs
)
1974 def GetValue(*args
, **kwargs
):
1975 """GetValue(self) -> int"""
1976 return _controls_
.Slider_GetValue(*args
, **kwargs
)
1978 def SetValue(*args
, **kwargs
):
1979 """SetValue(self, int value)"""
1980 return _controls_
.Slider_SetValue(*args
, **kwargs
)
1982 def SetRange(*args
, **kwargs
):
1983 """SetRange(self, int minValue, int maxValue)"""
1984 return _controls_
.Slider_SetRange(*args
, **kwargs
)
1986 def GetMin(*args
, **kwargs
):
1987 """GetMin(self) -> int"""
1988 return _controls_
.Slider_GetMin(*args
, **kwargs
)
1990 def GetMax(*args
, **kwargs
):
1991 """GetMax(self) -> int"""
1992 return _controls_
.Slider_GetMax(*args
, **kwargs
)
1994 def SetMin(*args
, **kwargs
):
1995 """SetMin(self, int minValue)"""
1996 return _controls_
.Slider_SetMin(*args
, **kwargs
)
1998 def SetMax(*args
, **kwargs
):
1999 """SetMax(self, int maxValue)"""
2000 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2002 def SetLineSize(*args
, **kwargs
):
2003 """SetLineSize(self, int lineSize)"""
2004 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2006 def SetPageSize(*args
, **kwargs
):
2007 """SetPageSize(self, int pageSize)"""
2008 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2010 def GetLineSize(*args
, **kwargs
):
2011 """GetLineSize(self) -> int"""
2012 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2014 def GetPageSize(*args
, **kwargs
):
2015 """GetPageSize(self) -> int"""
2016 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2018 def SetThumbLength(*args
, **kwargs
):
2019 """SetThumbLength(self, int lenPixels)"""
2020 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2022 def GetThumbLength(*args
, **kwargs
):
2023 """GetThumbLength(self) -> int"""
2024 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2026 def SetTickFreq(*args
, **kwargs
):
2027 """SetTickFreq(self, int n, int pos=1)"""
2028 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2030 def GetTickFreq(*args
, **kwargs
):
2031 """GetTickFreq(self) -> int"""
2032 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2034 def ClearTicks(*args
, **kwargs
):
2035 """ClearTicks(self)"""
2036 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2038 def SetTick(*args
, **kwargs
):
2039 """SetTick(self, int tickPos)"""
2040 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2042 def ClearSel(*args
, **kwargs
):
2043 """ClearSel(self)"""
2044 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2046 def GetSelEnd(*args
, **kwargs
):
2047 """GetSelEnd(self) -> int"""
2048 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2050 def GetSelStart(*args
, **kwargs
):
2051 """GetSelStart(self) -> int"""
2052 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2054 def SetSelection(*args
, **kwargs
):
2055 """SetSelection(self, int min, int max)"""
2056 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2059 class SliderPtr(Slider
):
2060 def __init__(self
, this
):
2062 if not hasattr(self
,"thisown"): self
.thisown
= 0
2063 self
.__class
__ = Slider
2064 _controls_
.Slider_swigregister(SliderPtr
)
2065 SliderNameStr
= cvar
.SliderNameStr
2067 def PreSlider(*args
, **kwargs
):
2068 """PreSlider() -> Slider"""
2069 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2073 #---------------------------------------------------------------------------
2075 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2076 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2078 class ToggleButton(_core
.Control
):
2080 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2081 def __init__(self
, *args
, **kwargs
):
2083 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2084 Size size=DefaultSize, long style=0,
2085 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2087 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2088 self
.this
= newobj
.this
2091 self
._setOORInfo
(self
)
2093 def Create(*args
, **kwargs
):
2095 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2096 Size size=DefaultSize, long style=0,
2097 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
2099 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2101 def SetValue(*args
, **kwargs
):
2102 """SetValue(self, bool value)"""
2103 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2105 def GetValue(*args
, **kwargs
):
2106 """GetValue(self) -> bool"""
2107 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2109 def SetLabel(*args
, **kwargs
):
2111 SetLabel(self, String label)
2113 Sets the item's text.
2115 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2118 class ToggleButtonPtr(ToggleButton
):
2119 def __init__(self
, this
):
2121 if not hasattr(self
,"thisown"): self
.thisown
= 0
2122 self
.__class
__ = ToggleButton
2123 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2124 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2126 def PreToggleButton(*args
, **kwargs
):
2127 """PreToggleButton() -> ToggleButton"""
2128 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2132 #---------------------------------------------------------------------------
2134 class BookCtrl(_core
.Control
):
2135 def __init__(self
): raise RuntimeError, "No constructor defined"
2137 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2138 def GetPageCount(*args
, **kwargs
):
2139 """GetPageCount(self) -> size_t"""
2140 return _controls_
.BookCtrl_GetPageCount(*args
, **kwargs
)
2142 def GetPage(*args
, **kwargs
):
2143 """GetPage(self, size_t n) -> Window"""
2144 return _controls_
.BookCtrl_GetPage(*args
, **kwargs
)
2146 def GetSelection(*args
, **kwargs
):
2147 """GetSelection(self) -> int"""
2148 return _controls_
.BookCtrl_GetSelection(*args
, **kwargs
)
2150 def SetPageText(*args
, **kwargs
):
2151 """SetPageText(self, size_t n, String strText) -> bool"""
2152 return _controls_
.BookCtrl_SetPageText(*args
, **kwargs
)
2154 def GetPageText(*args
, **kwargs
):
2155 """GetPageText(self, size_t n) -> String"""
2156 return _controls_
.BookCtrl_GetPageText(*args
, **kwargs
)
2158 def SetImageList(*args
, **kwargs
):
2159 """SetImageList(self, ImageList imageList)"""
2160 return _controls_
.BookCtrl_SetImageList(*args
, **kwargs
)
2162 def AssignImageList(*args
, **kwargs
):
2163 """AssignImageList(self, ImageList imageList)"""
2164 return _controls_
.BookCtrl_AssignImageList(*args
, **kwargs
)
2166 def GetImageList(*args
, **kwargs
):
2167 """GetImageList(self) -> ImageList"""
2168 return _controls_
.BookCtrl_GetImageList(*args
, **kwargs
)
2170 def GetPageImage(*args
, **kwargs
):
2171 """GetPageImage(self, size_t n) -> int"""
2172 return _controls_
.BookCtrl_GetPageImage(*args
, **kwargs
)
2174 def SetPageImage(*args
, **kwargs
):
2175 """SetPageImage(self, size_t n, int imageId) -> bool"""
2176 return _controls_
.BookCtrl_SetPageImage(*args
, **kwargs
)
2178 def SetPageSize(*args
, **kwargs
):
2179 """SetPageSize(self, Size size)"""
2180 return _controls_
.BookCtrl_SetPageSize(*args
, **kwargs
)
2182 def CalcSizeFromPage(*args
, **kwargs
):
2183 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2184 return _controls_
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2186 def DeletePage(*args
, **kwargs
):
2187 """DeletePage(self, size_t n) -> bool"""
2188 return _controls_
.BookCtrl_DeletePage(*args
, **kwargs
)
2190 def RemovePage(*args
, **kwargs
):
2191 """RemovePage(self, size_t n) -> bool"""
2192 return _controls_
.BookCtrl_RemovePage(*args
, **kwargs
)
2194 def DeleteAllPages(*args
, **kwargs
):
2195 """DeleteAllPages(self) -> bool"""
2196 return _controls_
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2198 def AddPage(*args
, **kwargs
):
2199 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2200 return _controls_
.BookCtrl_AddPage(*args
, **kwargs
)
2202 def InsertPage(*args
, **kwargs
):
2204 InsertPage(self, size_t n, Window page, String text, bool select=False,
2205 int imageId=-1) -> bool
2207 return _controls_
.BookCtrl_InsertPage(*args
, **kwargs
)
2209 def SetSelection(*args
, **kwargs
):
2210 """SetSelection(self, size_t n) -> int"""
2211 return _controls_
.BookCtrl_SetSelection(*args
, **kwargs
)
2213 def AdvanceSelection(*args
, **kwargs
):
2214 """AdvanceSelection(self, bool forward=True)"""
2215 return _controls_
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2218 class BookCtrlPtr(BookCtrl
):
2219 def __init__(self
, this
):
2221 if not hasattr(self
,"thisown"): self
.thisown
= 0
2222 self
.__class
__ = BookCtrl
2223 _controls_
.BookCtrl_swigregister(BookCtrlPtr
)
2224 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2226 class BookCtrlEvent(_core
.NotifyEvent
):
2228 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2229 def __init__(self
, *args
, **kwargs
):
2231 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2232 int nOldSel=-1) -> BookCtrlEvent
2234 newobj
= _controls_
.new_BookCtrlEvent(*args
, **kwargs
)
2235 self
.this
= newobj
.this
2238 def GetSelection(*args
, **kwargs
):
2239 """GetSelection(self) -> int"""
2240 return _controls_
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2242 def SetSelection(*args
, **kwargs
):
2243 """SetSelection(self, int nSel)"""
2244 return _controls_
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2246 def GetOldSelection(*args
, **kwargs
):
2247 """GetOldSelection(self) -> int"""
2248 return _controls_
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2250 def SetOldSelection(*args
, **kwargs
):
2251 """SetOldSelection(self, int nOldSel)"""
2252 return _controls_
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2255 class BookCtrlEventPtr(BookCtrlEvent
):
2256 def __init__(self
, this
):
2258 if not hasattr(self
,"thisown"): self
.thisown
= 0
2259 self
.__class
__ = BookCtrlEvent
2260 _controls_
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2262 #---------------------------------------------------------------------------
2264 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2265 NB_TOP
= _controls_
.NB_TOP
2266 NB_LEFT
= _controls_
.NB_LEFT
2267 NB_RIGHT
= _controls_
.NB_RIGHT
2268 NB_BOTTOM
= _controls_
.NB_BOTTOM
2269 NB_MULTILINE
= _controls_
.NB_MULTILINE
2270 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2271 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2272 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2273 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2274 class Notebook(BookCtrl
):
2276 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2277 def __init__(self
, *args
, **kwargs
):
2279 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2280 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2282 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
2283 self
.this
= newobj
.this
2286 self
._setOORInfo
(self
)
2288 def Create(*args
, **kwargs
):
2290 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2291 long style=0, String name=NOTEBOOK_NAME) -> bool
2293 return _controls_
.Notebook_Create(*args
, **kwargs
)
2295 def GetRowCount(*args
, **kwargs
):
2296 """GetRowCount(self) -> int"""
2297 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2299 def SetPadding(*args
, **kwargs
):
2300 """SetPadding(self, Size padding)"""
2301 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2303 def SetTabSize(*args
, **kwargs
):
2304 """SetTabSize(self, Size sz)"""
2305 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
2307 def HitTest(*args
, **kwargs
):
2309 HitTest(Point pt) -> (tab, where)
2311 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2313 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
2315 def CalcSizeFromPage(*args
, **kwargs
):
2316 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2317 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2320 class NotebookPtr(Notebook
):
2321 def __init__(self
, this
):
2323 if not hasattr(self
,"thisown"): self
.thisown
= 0
2324 self
.__class
__ = Notebook
2325 _controls_
.Notebook_swigregister(NotebookPtr
)
2327 def PreNotebook(*args
, **kwargs
):
2328 """PreNotebook() -> Notebook"""
2329 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
2333 class NotebookEvent(BookCtrlEvent
):
2335 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2336 def __init__(self
, *args
, **kwargs
):
2338 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2339 int nOldSel=-1) -> NotebookEvent
2341 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
2342 self
.this
= newobj
.this
2346 class NotebookEventPtr(NotebookEvent
):
2347 def __init__(self
, this
):
2349 if not hasattr(self
,"thisown"): self
.thisown
= 0
2350 self
.__class
__ = NotebookEvent
2351 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
2353 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2354 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2356 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2357 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2359 #----------------------------------------------------------------------------
2361 class NotebookPage(wx
.Panel
):
2363 There is an old (and apparently unsolvable) bug when placing a
2364 window with a nonstandard background colour in a wxNotebook on
2365 wxGTK, as the notbooks's background colour would always be used
2366 when the window is refreshed. The solution is to place a panel in
2367 the notbook and the coloured window on the panel, sized to cover
2368 the panel. This simple class does that for you, just put an
2369 instance of this in the notebook and make your regular window a
2370 child of this one and it will handle the resize for you.
2372 def __init__(self
, parent
, id=-1,
2373 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2374 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2375 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2377 EVT_SIZE(self
, self
.OnSize
)
2379 def OnSize(self
, evt
):
2380 if self
.child
is None:
2381 children
= self
.GetChildren()
2383 self
.child
= children
[0]
2385 self
.child
.SetPosition((0,0))
2386 self
.child
.SetSize(self
.GetSize())
2389 #---------------------------------------------------------------------------
2391 LB_DEFAULT
= _controls_
.LB_DEFAULT
2392 LB_TOP
= _controls_
.LB_TOP
2393 LB_BOTTOM
= _controls_
.LB_BOTTOM
2394 LB_LEFT
= _controls_
.LB_LEFT
2395 LB_RIGHT
= _controls_
.LB_RIGHT
2396 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
2397 class Listbook(BookCtrl
):
2399 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2400 def __init__(self
, *args
, **kwargs
):
2402 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2403 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
2405 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
2406 self
.this
= newobj
.this
2409 self
._setOORInfo
(self
)
2411 def Create(*args
, **kwargs
):
2413 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2414 long style=0, String name=EmptyString) -> bool
2416 return _controls_
.Listbook_Create(*args
, **kwargs
)
2418 def IsVertical(*args
, **kwargs
):
2419 """IsVertical(self) -> bool"""
2420 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
2423 class ListbookPtr(Listbook
):
2424 def __init__(self
, this
):
2426 if not hasattr(self
,"thisown"): self
.thisown
= 0
2427 self
.__class
__ = Listbook
2428 _controls_
.Listbook_swigregister(ListbookPtr
)
2430 def PreListbook(*args
, **kwargs
):
2431 """PreListbook() -> Listbook"""
2432 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
2436 class ListbookEvent(BookCtrlEvent
):
2438 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2439 def __init__(self
, *args
, **kwargs
):
2441 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2442 int nOldSel=-1) -> ListbookEvent
2444 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
2445 self
.this
= newobj
.this
2449 class ListbookEventPtr(ListbookEvent
):
2450 def __init__(self
, this
):
2452 if not hasattr(self
,"thisown"): self
.thisown
= 0
2453 self
.__class
__ = ListbookEvent
2454 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
2456 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2457 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2458 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2459 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2461 #---------------------------------------------------------------------------
2463 class BookCtrlSizer(_core
.Sizer
):
2465 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2466 def __init__(self
, *args
, **kwargs
):
2467 """__init__(self, BookCtrl nb) -> BookCtrlSizer"""
2468 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
2469 self
.this
= newobj
.this
2472 self
._setOORInfo
(self
)
2474 def RecalcSizes(*args
, **kwargs
):
2475 """RecalcSizes(self)"""
2476 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2478 def CalcMin(*args
, **kwargs
):
2479 """CalcMin(self) -> Size"""
2480 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2482 def GetControl(*args
, **kwargs
):
2483 """GetControl(self) -> BookCtrl"""
2484 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2487 class BookCtrlSizerPtr(BookCtrlSizer
):
2488 def __init__(self
, this
):
2490 if not hasattr(self
,"thisown"): self
.thisown
= 0
2491 self
.__class
__ = BookCtrlSizer
2492 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2494 class NotebookSizer(_core
.Sizer
):
2496 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2497 def __init__(self
, *args
, **kwargs
):
2498 """__init__(self, Notebook nb) -> NotebookSizer"""
2499 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
2500 self
.this
= newobj
.this
2503 self
._setOORInfo
(self
)
2505 def RecalcSizes(*args
, **kwargs
):
2506 """RecalcSizes(self)"""
2507 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2509 def CalcMin(*args
, **kwargs
):
2510 """CalcMin(self) -> Size"""
2511 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
2513 def GetNotebook(*args
, **kwargs
):
2514 """GetNotebook(self) -> Notebook"""
2515 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2518 class NotebookSizerPtr(NotebookSizer
):
2519 def __init__(self
, this
):
2521 if not hasattr(self
,"thisown"): self
.thisown
= 0
2522 self
.__class
__ = NotebookSizer
2523 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
2525 #---------------------------------------------------------------------------
2527 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
2528 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
2529 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
2530 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
2531 TB_VERTICAL
= _controls_
.TB_VERTICAL
2532 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
2533 TB_FLAT
= _controls_
.TB_FLAT
2534 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
2535 TB_NOICONS
= _controls_
.TB_NOICONS
2536 TB_TEXT
= _controls_
.TB_TEXT
2537 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
2538 TB_NOALIGN
= _controls_
.TB_NOALIGN
2539 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
2540 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
2541 class ToolBarToolBase(_core
.Object
):
2542 def __init__(self
): raise RuntimeError, "No constructor defined"
2544 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2545 def GetId(*args
, **kwargs
):
2546 """GetId(self) -> int"""
2547 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
2549 def GetControl(*args
, **kwargs
):
2550 """GetControl(self) -> Control"""
2551 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2553 def GetToolBar(*args
, **kwargs
):
2554 """GetToolBar(self) -> ToolBarBase"""
2555 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2557 def IsButton(*args
, **kwargs
):
2558 """IsButton(self) -> int"""
2559 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2561 def IsControl(*args
, **kwargs
):
2562 """IsControl(self) -> int"""
2563 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2565 def IsSeparator(*args
, **kwargs
):
2566 """IsSeparator(self) -> int"""
2567 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2569 def GetStyle(*args
, **kwargs
):
2570 """GetStyle(self) -> int"""
2571 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2573 def GetKind(*args
, **kwargs
):
2574 """GetKind(self) -> int"""
2575 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2577 def IsEnabled(*args
, **kwargs
):
2578 """IsEnabled(self) -> bool"""
2579 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2581 def IsToggled(*args
, **kwargs
):
2582 """IsToggled(self) -> bool"""
2583 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2585 def CanBeToggled(*args
, **kwargs
):
2586 """CanBeToggled(self) -> bool"""
2587 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2589 def GetNormalBitmap(*args
, **kwargs
):
2590 """GetNormalBitmap(self) -> Bitmap"""
2591 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2593 def GetDisabledBitmap(*args
, **kwargs
):
2594 """GetDisabledBitmap(self) -> Bitmap"""
2595 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2597 def GetBitmap(*args
, **kwargs
):
2598 """GetBitmap(self) -> Bitmap"""
2599 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2601 def GetLabel(*args
, **kwargs
):
2602 """GetLabel(self) -> String"""
2603 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2605 def GetShortHelp(*args
, **kwargs
):
2606 """GetShortHelp(self) -> String"""
2607 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2609 def GetLongHelp(*args
, **kwargs
):
2610 """GetLongHelp(self) -> String"""
2611 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2613 def Enable(*args
, **kwargs
):
2614 """Enable(self, bool enable) -> bool"""
2615 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
2617 def Toggle(*args
, **kwargs
):
2619 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2621 def SetToggle(*args
, **kwargs
):
2622 """SetToggle(self, bool toggle) -> bool"""
2623 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2625 def SetShortHelp(*args
, **kwargs
):
2626 """SetShortHelp(self, String help) -> bool"""
2627 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2629 def SetLongHelp(*args
, **kwargs
):
2630 """SetLongHelp(self, String help) -> bool"""
2631 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2633 def SetNormalBitmap(*args
, **kwargs
):
2634 """SetNormalBitmap(self, Bitmap bmp)"""
2635 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2637 def SetDisabledBitmap(*args
, **kwargs
):
2638 """SetDisabledBitmap(self, Bitmap bmp)"""
2639 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2641 def SetLabel(*args
, **kwargs
):
2642 """SetLabel(self, String label)"""
2643 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2645 def Detach(*args
, **kwargs
):
2647 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
2649 def Attach(*args
, **kwargs
):
2650 """Attach(self, ToolBarBase tbar)"""
2651 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
2653 def GetClientData(*args
, **kwargs
):
2654 """GetClientData(self) -> PyObject"""
2655 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2657 def SetClientData(*args
, **kwargs
):
2658 """SetClientData(self, PyObject clientData)"""
2659 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2661 GetBitmap1
= GetNormalBitmap
2662 GetBitmap2
= GetDisabledBitmap
2663 SetBitmap1
= SetNormalBitmap
2664 SetBitmap2
= SetDisabledBitmap
2667 class ToolBarToolBasePtr(ToolBarToolBase
):
2668 def __init__(self
, this
):
2670 if not hasattr(self
,"thisown"): self
.thisown
= 0
2671 self
.__class
__ = ToolBarToolBase
2672 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2674 class ToolBarBase(_core
.Control
):
2675 def __init__(self
): raise RuntimeError, "No constructor defined"
2677 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2678 def DoAddTool(*args
, **kwargs
):
2680 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2681 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2682 String longHelp=EmptyString,
2683 PyObject clientData=None) -> ToolBarToolBase
2685 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2687 def DoInsertTool(*args
, **kwargs
):
2689 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2690 int kind=ITEM_NORMAL,
2691 String shortHelp=EmptyString, String longHelp=EmptyString,
2692 PyObject clientData=None) -> ToolBarToolBase
2694 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2696 # These match the original Add methods for this class, kept for
2697 # backwards compatibility with versions < 2.3.3.
2700 def AddTool(self
, id, bitmap
,
2701 pushedBitmap
= wx
.NullBitmap
,
2704 shortHelpString
= '',
2705 longHelpString
= '') :
2706 '''Old style method to add a tool to the toolbar.'''
2707 kind
= wx
.ITEM_NORMAL
2708 if isToggle
: kind
= wx
.ITEM_CHECK
2709 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2710 shortHelpString
, longHelpString
, clientData
)
2712 def AddSimpleTool(self
, id, bitmap
,
2713 shortHelpString
= '',
2714 longHelpString
= '',
2716 '''Old style method to add a tool to the toolbar.'''
2717 kind
= wx
.ITEM_NORMAL
2718 if isToggle
: kind
= wx
.ITEM_CHECK
2719 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2720 shortHelpString
, longHelpString
, None)
2722 def InsertTool(self
, pos
, id, bitmap
,
2723 pushedBitmap
= wx
.NullBitmap
,
2726 shortHelpString
= '',
2727 longHelpString
= ''):
2728 '''Old style method to insert a tool in the toolbar.'''
2729 kind
= wx
.ITEM_NORMAL
2730 if isToggle
: kind
= wx
.ITEM_CHECK
2731 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2732 shortHelpString
, longHelpString
, clientData
)
2734 def InsertSimpleTool(self
, pos
, id, bitmap
,
2735 shortHelpString
= '',
2736 longHelpString
= '',
2738 '''Old style method to insert a tool in the toolbar.'''
2739 kind
= wx
.ITEM_NORMAL
2740 if isToggle
: kind
= wx
.ITEM_CHECK
2741 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2742 shortHelpString
, longHelpString
, None)
2745 # The following are the new toolbar Add methods starting with
2746 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2747 # able to keep backwards compatibility with using the above
2748 # methods. Eventually these should migrate to be the methods used
2749 # primarily and lose the 'Label' in the name...
2751 def AddLabelTool(self
, id, label
, bitmap
,
2752 bmpDisabled
= wx
.NullBitmap
,
2753 kind
= wx
.ITEM_NORMAL
,
2754 shortHelp
= '', longHelp
= '',
2757 The full AddTool() function.
2759 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2760 is created and used as the disabled image.
2762 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2763 shortHelp
, longHelp
, clientData
)
2766 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2767 bmpDisabled
= wx
.NullBitmap
,
2768 kind
= wx
.ITEM_NORMAL
,
2769 shortHelp
= '', longHelp
= '',
2772 Insert the new tool at the given position, if pos == GetToolsCount(), it
2773 is equivalent to AddTool()
2775 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2776 shortHelp
, longHelp
, clientData
)
2778 def AddCheckLabelTool(self
, id, label
, bitmap
,
2779 bmpDisabled
= wx
.NullBitmap
,
2780 shortHelp
= '', longHelp
= '',
2782 '''Add a check tool, i.e. a tool which can be toggled'''
2783 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2784 shortHelp
, longHelp
, clientData
)
2786 def AddRadioLabelTool(self
, id, label
, bitmap
,
2787 bmpDisabled
= wx
.NullBitmap
,
2788 shortHelp
= '', longHelp
= '',
2791 Add a radio tool, i.e. a tool which can be toggled and releases any
2792 other toggled radio tools in the same group when it happens
2794 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2795 shortHelp
, longHelp
, clientData
)
2798 # For consistency with the backwards compatible methods above, here are
2799 # some non-'Label' versions of the Check and Radio methods
2800 def AddCheckTool(self
, id, bitmap
,
2801 bmpDisabled
= wx
.NullBitmap
,
2802 shortHelp
= '', longHelp
= '',
2804 '''Add a check tool, i.e. a tool which can be toggled'''
2805 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2806 shortHelp
, longHelp
, clientData
)
2808 def AddRadioTool(self
, id, bitmap
,
2809 bmpDisabled
= wx
.NullBitmap
,
2810 shortHelp
= '', longHelp
= '',
2813 Add a radio tool, i.e. a tool which can be toggled and releases any
2814 other toggled radio tools in the same group when it happens
2816 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2817 shortHelp
, longHelp
, clientData
)
2819 def AddToolItem(*args
, **kwargs
):
2820 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
2821 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2823 def InsertToolItem(*args
, **kwargs
):
2824 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2825 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2827 def AddControl(*args
, **kwargs
):
2828 """AddControl(self, Control control) -> ToolBarToolBase"""
2829 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
2831 def InsertControl(*args
, **kwargs
):
2832 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
2833 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
2835 def FindControl(*args
, **kwargs
):
2836 """FindControl(self, int id) -> Control"""
2837 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
2839 def AddSeparator(*args
, **kwargs
):
2840 """AddSeparator(self) -> ToolBarToolBase"""
2841 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2843 def InsertSeparator(*args
, **kwargs
):
2844 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
2845 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2847 def RemoveTool(*args
, **kwargs
):
2848 """RemoveTool(self, int id) -> ToolBarToolBase"""
2849 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2851 def DeleteToolByPos(*args
, **kwargs
):
2852 """DeleteToolByPos(self, size_t pos) -> bool"""
2853 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2855 def DeleteTool(*args
, **kwargs
):
2856 """DeleteTool(self, int id) -> bool"""
2857 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2859 def ClearTools(*args
, **kwargs
):
2860 """ClearTools(self)"""
2861 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
2863 def Realize(*args
, **kwargs
):
2864 """Realize(self) -> bool"""
2865 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
2867 def EnableTool(*args
, **kwargs
):
2868 """EnableTool(self, int id, bool enable)"""
2869 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
2871 def ToggleTool(*args
, **kwargs
):
2872 """ToggleTool(self, int id, bool toggle)"""
2873 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2875 def SetToggle(*args
, **kwargs
):
2876 """SetToggle(self, int id, bool toggle)"""
2877 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
2879 def GetToolClientData(*args
, **kwargs
):
2880 """GetToolClientData(self, int id) -> PyObject"""
2881 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2883 def SetToolClientData(*args
, **kwargs
):
2884 """SetToolClientData(self, int id, PyObject clientData)"""
2885 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2887 def GetToolPos(*args
, **kwargs
):
2888 """GetToolPos(self, int id) -> int"""
2889 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2891 def GetToolState(*args
, **kwargs
):
2892 """GetToolState(self, int id) -> bool"""
2893 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
2895 def GetToolEnabled(*args
, **kwargs
):
2896 """GetToolEnabled(self, int id) -> bool"""
2897 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2899 def SetToolShortHelp(*args
, **kwargs
):
2900 """SetToolShortHelp(self, int id, String helpString)"""
2901 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2903 def GetToolShortHelp(*args
, **kwargs
):
2904 """GetToolShortHelp(self, int id) -> String"""
2905 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2907 def SetToolLongHelp(*args
, **kwargs
):
2908 """SetToolLongHelp(self, int id, String helpString)"""
2909 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2911 def GetToolLongHelp(*args
, **kwargs
):
2912 """GetToolLongHelp(self, int id) -> String"""
2913 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2915 def SetMarginsXY(*args
, **kwargs
):
2916 """SetMarginsXY(self, int x, int y)"""
2917 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2919 def SetMargins(*args
, **kwargs
):
2920 """SetMargins(self, Size size)"""
2921 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
2923 def SetToolPacking(*args
, **kwargs
):
2924 """SetToolPacking(self, int packing)"""
2925 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2927 def SetToolSeparation(*args
, **kwargs
):
2928 """SetToolSeparation(self, int separation)"""
2929 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2931 def GetToolMargins(*args
, **kwargs
):
2932 """GetToolMargins(self) -> Size"""
2933 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2935 def GetMargins(*args
, **kwargs
):
2936 """GetMargins(self) -> Size"""
2937 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
2939 def GetToolPacking(*args
, **kwargs
):
2940 """GetToolPacking(self) -> int"""
2941 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2943 def GetToolSeparation(*args
, **kwargs
):
2944 """GetToolSeparation(self) -> int"""
2945 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2947 def SetRows(*args
, **kwargs
):
2948 """SetRows(self, int nRows)"""
2949 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
2951 def SetMaxRowsCols(*args
, **kwargs
):
2952 """SetMaxRowsCols(self, int rows, int cols)"""
2953 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2955 def GetMaxRows(*args
, **kwargs
):
2956 """GetMaxRows(self) -> int"""
2957 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2959 def GetMaxCols(*args
, **kwargs
):
2960 """GetMaxCols(self) -> int"""
2961 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2963 def SetToolBitmapSize(*args
, **kwargs
):
2964 """SetToolBitmapSize(self, Size size)"""
2965 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2967 def GetToolBitmapSize(*args
, **kwargs
):
2968 """GetToolBitmapSize(self) -> Size"""
2969 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2971 def GetToolSize(*args
, **kwargs
):
2972 """GetToolSize(self) -> Size"""
2973 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2975 def FindToolForPosition(*args
, **kwargs
):
2976 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
2977 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2979 def FindById(*args
, **kwargs
):
2980 """FindById(self, int toolid) -> ToolBarToolBase"""
2981 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
2983 def IsVertical(*args
, **kwargs
):
2984 """IsVertical(self) -> bool"""
2985 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
2988 class ToolBarBasePtr(ToolBarBase
):
2989 def __init__(self
, this
):
2991 if not hasattr(self
,"thisown"): self
.thisown
= 0
2992 self
.__class
__ = ToolBarBase
2993 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
2995 class ToolBar(ToolBarBase
):
2997 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2998 def __init__(self
, *args
, **kwargs
):
3000 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3001 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3002 String name=wxPyToolBarNameStr) -> ToolBar
3004 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3005 self
.this
= newobj
.this
3008 self
._setOORInfo
(self
)
3010 def Create(*args
, **kwargs
):
3012 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3013 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3014 String name=wxPyToolBarNameStr) -> bool
3016 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3018 def FindToolForPosition(*args
, **kwargs
):
3019 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3020 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3023 class ToolBarPtr(ToolBar
):
3024 def __init__(self
, this
):
3026 if not hasattr(self
,"thisown"): self
.thisown
= 0
3027 self
.__class
__ = ToolBar
3028 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3030 def PreToolBar(*args
, **kwargs
):
3031 """PreToolBar() -> ToolBar"""
3032 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3036 #---------------------------------------------------------------------------
3038 LC_VRULES
= _controls_
.LC_VRULES
3039 LC_HRULES
= _controls_
.LC_HRULES
3040 LC_ICON
= _controls_
.LC_ICON
3041 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3042 LC_LIST
= _controls_
.LC_LIST
3043 LC_REPORT
= _controls_
.LC_REPORT
3044 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3045 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3046 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3047 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3048 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3049 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3050 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3051 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3052 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3053 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3054 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3055 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3056 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3057 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3058 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3059 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3060 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3061 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3062 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3063 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3064 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3065 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3066 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3067 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3068 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3069 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3070 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3071 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3072 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3073 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3074 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3075 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3076 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3077 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3078 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3079 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3080 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3081 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3082 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3083 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3084 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3085 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3086 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3087 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3088 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3089 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3090 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3091 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3092 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3093 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3094 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3095 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3096 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3097 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3098 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3099 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3100 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3101 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3102 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3103 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3104 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3105 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3106 #---------------------------------------------------------------------------
3108 class ListItemAttr(object):
3110 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3111 def __init__(self
, *args
, **kwargs
):
3113 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3114 Font font=wxNullFont) -> ListItemAttr
3116 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
3117 self
.this
= newobj
.this
3120 def SetTextColour(*args
, **kwargs
):
3121 """SetTextColour(self, Colour colText)"""
3122 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3124 def SetBackgroundColour(*args
, **kwargs
):
3125 """SetBackgroundColour(self, Colour colBack)"""
3126 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3128 def SetFont(*args
, **kwargs
):
3129 """SetFont(self, Font font)"""
3130 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3132 def HasTextColour(*args
, **kwargs
):
3133 """HasTextColour(self) -> bool"""
3134 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3136 def HasBackgroundColour(*args
, **kwargs
):
3137 """HasBackgroundColour(self) -> bool"""
3138 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3140 def HasFont(*args
, **kwargs
):
3141 """HasFont(self) -> bool"""
3142 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3144 def GetTextColour(*args
, **kwargs
):
3145 """GetTextColour(self) -> Colour"""
3146 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3148 def GetBackgroundColour(*args
, **kwargs
):
3149 """GetBackgroundColour(self) -> Colour"""
3150 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3152 def GetFont(*args
, **kwargs
):
3153 """GetFont(self) -> Font"""
3154 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
3156 def Destroy(*args
, **kwargs
):
3158 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
3161 class ListItemAttrPtr(ListItemAttr
):
3162 def __init__(self
, this
):
3164 if not hasattr(self
,"thisown"): self
.thisown
= 0
3165 self
.__class
__ = ListItemAttr
3166 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
3167 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3169 #---------------------------------------------------------------------------
3171 class ListItem(_core
.Object
):
3173 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3174 def __init__(self
, *args
, **kwargs
):
3175 """__init__(self) -> ListItem"""
3176 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
3177 self
.this
= newobj
.this
3180 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
3183 if self
.thisown
: destroy(self
)
3186 def Clear(*args
, **kwargs
):
3188 return _controls_
.ListItem_Clear(*args
, **kwargs
)
3190 def ClearAttributes(*args
, **kwargs
):
3191 """ClearAttributes(self)"""
3192 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
3194 def SetMask(*args
, **kwargs
):
3195 """SetMask(self, long mask)"""
3196 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
3198 def SetId(*args
, **kwargs
):
3199 """SetId(self, long id)"""
3200 return _controls_
.ListItem_SetId(*args
, **kwargs
)
3202 def SetColumn(*args
, **kwargs
):
3203 """SetColumn(self, int col)"""
3204 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
3206 def SetState(*args
, **kwargs
):
3207 """SetState(self, long state)"""
3208 return _controls_
.ListItem_SetState(*args
, **kwargs
)
3210 def SetStateMask(*args
, **kwargs
):
3211 """SetStateMask(self, long stateMask)"""
3212 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
3214 def SetText(*args
, **kwargs
):
3215 """SetText(self, String text)"""
3216 return _controls_
.ListItem_SetText(*args
, **kwargs
)
3218 def SetImage(*args
, **kwargs
):
3219 """SetImage(self, int image)"""
3220 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
3222 def SetData(*args
, **kwargs
):
3223 """SetData(self, long data)"""
3224 return _controls_
.ListItem_SetData(*args
, **kwargs
)
3226 def SetWidth(*args
, **kwargs
):
3227 """SetWidth(self, int width)"""
3228 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
3230 def SetAlign(*args
, **kwargs
):
3231 """SetAlign(self, int align)"""
3232 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
3234 def SetTextColour(*args
, **kwargs
):
3235 """SetTextColour(self, Colour colText)"""
3236 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
3238 def SetBackgroundColour(*args
, **kwargs
):
3239 """SetBackgroundColour(self, Colour colBack)"""
3240 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3242 def SetFont(*args
, **kwargs
):
3243 """SetFont(self, Font font)"""
3244 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
3246 def GetMask(*args
, **kwargs
):
3247 """GetMask(self) -> long"""
3248 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
3250 def GetId(*args
, **kwargs
):
3251 """GetId(self) -> long"""
3252 return _controls_
.ListItem_GetId(*args
, **kwargs
)
3254 def GetColumn(*args
, **kwargs
):
3255 """GetColumn(self) -> int"""
3256 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
3258 def GetState(*args
, **kwargs
):
3259 """GetState(self) -> long"""
3260 return _controls_
.ListItem_GetState(*args
, **kwargs
)
3262 def GetText(*args
, **kwargs
):
3263 """GetText(self) -> String"""
3264 return _controls_
.ListItem_GetText(*args
, **kwargs
)
3266 def GetImage(*args
, **kwargs
):
3267 """GetImage(self) -> int"""
3268 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
3270 def GetData(*args
, **kwargs
):
3271 """GetData(self) -> long"""
3272 return _controls_
.ListItem_GetData(*args
, **kwargs
)
3274 def GetWidth(*args
, **kwargs
):
3275 """GetWidth(self) -> int"""
3276 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
3278 def GetAlign(*args
, **kwargs
):
3279 """GetAlign(self) -> int"""
3280 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
3282 def GetAttributes(*args
, **kwargs
):
3283 """GetAttributes(self) -> ListItemAttr"""
3284 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
3286 def HasAttributes(*args
, **kwargs
):
3287 """HasAttributes(self) -> bool"""
3288 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
3290 def GetTextColour(*args
, **kwargs
):
3291 """GetTextColour(self) -> Colour"""
3292 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
3294 def GetBackgroundColour(*args
, **kwargs
):
3295 """GetBackgroundColour(self) -> Colour"""
3296 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3298 def GetFont(*args
, **kwargs
):
3299 """GetFont(self) -> Font"""
3300 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
3302 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
3303 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
3304 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
3305 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
3306 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
3307 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
3308 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
3309 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
3310 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
3311 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
3313 class ListItemPtr(ListItem
):
3314 def __init__(self
, this
):
3316 if not hasattr(self
,"thisown"): self
.thisown
= 0
3317 self
.__class
__ = ListItem
3318 _controls_
.ListItem_swigregister(ListItemPtr
)
3320 #---------------------------------------------------------------------------
3322 class ListEvent(_core
.NotifyEvent
):
3324 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3325 def __init__(self
, *args
, **kwargs
):
3326 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3327 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
3328 self
.this
= newobj
.this
3331 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
3332 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
3333 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
3334 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
3335 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
3336 m_item
= property(_controls_
.ListEvent_m_item_get
)
3337 def GetKeyCode(*args
, **kwargs
):
3338 """GetKeyCode(self) -> int"""
3339 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
3341 GetCode
= GetKeyCode
3342 def GetIndex(*args
, **kwargs
):
3343 """GetIndex(self) -> long"""
3344 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
3346 def GetColumn(*args
, **kwargs
):
3347 """GetColumn(self) -> int"""
3348 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
3350 def GetPoint(*args
, **kwargs
):
3351 """GetPoint(self) -> Point"""
3352 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
3354 GetPosition
= GetPoint
3355 def GetLabel(*args
, **kwargs
):
3356 """GetLabel(self) -> String"""
3357 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
3359 def GetText(*args
, **kwargs
):
3360 """GetText(self) -> String"""
3361 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
3363 def GetImage(*args
, **kwargs
):
3364 """GetImage(self) -> int"""
3365 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
3367 def GetData(*args
, **kwargs
):
3368 """GetData(self) -> long"""
3369 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
3371 def GetMask(*args
, **kwargs
):
3372 """GetMask(self) -> long"""
3373 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
3375 def GetItem(*args
, **kwargs
):
3376 """GetItem(self) -> ListItem"""
3377 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
3379 def GetCacheFrom(*args
, **kwargs
):
3380 """GetCacheFrom(self) -> long"""
3381 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3383 def GetCacheTo(*args
, **kwargs
):
3384 """GetCacheTo(self) -> long"""
3385 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
3387 def IsEditCancelled(*args
, **kwargs
):
3388 """IsEditCancelled(self) -> bool"""
3389 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3391 def SetEditCanceled(*args
, **kwargs
):
3392 """SetEditCanceled(self, bool editCancelled)"""
3393 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3396 class ListEventPtr(ListEvent
):
3397 def __init__(self
, this
):
3399 if not hasattr(self
,"thisown"): self
.thisown
= 0
3400 self
.__class
__ = ListEvent
3401 _controls_
.ListEvent_swigregister(ListEventPtr
)
3403 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3404 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3405 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3406 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3407 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
3408 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3409 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
3410 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
3411 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3412 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3413 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
3414 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
3415 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
3416 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3417 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3418 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3419 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
3420 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3421 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3422 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
3423 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
3424 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3425 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3426 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3427 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3428 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3429 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3430 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3431 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3432 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3433 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3434 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3435 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3436 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3437 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3438 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3439 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3440 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3441 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3442 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3443 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3444 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3445 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3446 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3448 #---------------------------------------------------------------------------
3450 class ListCtrl(_core
.Control
):
3452 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3453 def __init__(self
, *args
, **kwargs
):
3455 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3456 Size size=DefaultSize, long style=LC_ICON,
3457 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3459 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
3460 self
.this
= newobj
.this
3463 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3465 def Create(*args
, **kwargs
):
3467 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3468 Size size=DefaultSize, long style=LC_ICON,
3469 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3471 Do the 2nd phase and create the GUI control.
3473 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
3475 def _setCallbackInfo(*args
, **kwargs
):
3476 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3477 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3479 def SetForegroundColour(*args
, **kwargs
):
3480 """SetForegroundColour(self, Colour col) -> bool"""
3481 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3483 def SetBackgroundColour(*args
, **kwargs
):
3484 """SetBackgroundColour(self, Colour col) -> bool"""
3485 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3487 def GetColumn(*args
, **kwargs
):
3488 """GetColumn(self, int col) -> ListItem"""
3489 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
3490 if val
is not None: val
.thisown
= 1
3493 def SetColumn(*args
, **kwargs
):
3494 """SetColumn(self, int col, ListItem item) -> bool"""
3495 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
3497 def GetColumnWidth(*args
, **kwargs
):
3498 """GetColumnWidth(self, int col) -> int"""
3499 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3501 def SetColumnWidth(*args
, **kwargs
):
3502 """SetColumnWidth(self, int col, int width) -> bool"""
3503 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3505 def GetCountPerPage(*args
, **kwargs
):
3506 """GetCountPerPage(self) -> int"""
3507 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3509 def GetViewRect(*args
, **kwargs
):
3510 """GetViewRect(self) -> Rect"""
3511 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
3513 def GetItem(*args
, **kwargs
):
3514 """GetItem(self, long itemId, int col=0) -> ListItem"""
3515 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
3516 if val
is not None: val
.thisown
= 1
3519 def SetItem(*args
, **kwargs
):
3520 """SetItem(self, ListItem info) -> bool"""
3521 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
3523 def SetStringItem(*args
, **kwargs
):
3524 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
3525 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
3527 def GetItemState(*args
, **kwargs
):
3528 """GetItemState(self, long item, long stateMask) -> int"""
3529 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
3531 def SetItemState(*args
, **kwargs
):
3532 """SetItemState(self, long item, long state, long stateMask) -> bool"""
3533 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
3535 def SetItemImage(*args
, **kwargs
):
3536 """SetItemImage(self, long item, int image, int selImage) -> bool"""
3537 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
3539 def GetItemText(*args
, **kwargs
):
3540 """GetItemText(self, long item) -> String"""
3541 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
3543 def SetItemText(*args
, **kwargs
):
3544 """SetItemText(self, long item, String str)"""
3545 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
3547 def GetItemData(*args
, **kwargs
):
3548 """GetItemData(self, long item) -> long"""
3549 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
3551 def SetItemData(*args
, **kwargs
):
3552 """SetItemData(self, long item, long data) -> bool"""
3553 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
3555 def GetItemPosition(*args
, **kwargs
):
3556 """GetItemPosition(self, long item) -> Point"""
3557 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3559 def GetItemRect(*args
, **kwargs
):
3560 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3561 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
3563 def SetItemPosition(*args
, **kwargs
):
3564 """SetItemPosition(self, long item, Point pos) -> bool"""
3565 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3567 def GetItemCount(*args
, **kwargs
):
3568 """GetItemCount(self) -> int"""
3569 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
3571 def GetColumnCount(*args
, **kwargs
):
3572 """GetColumnCount(self) -> int"""
3573 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3575 def GetItemSpacing(*args
, **kwargs
):
3576 """GetItemSpacing(self) -> Size"""
3577 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3579 def SetItemSpacing(*args
, **kwargs
):
3580 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
3581 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3583 def GetSelectedItemCount(*args
, **kwargs
):
3584 """GetSelectedItemCount(self) -> int"""
3585 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3587 def GetTextColour(*args
, **kwargs
):
3588 """GetTextColour(self) -> Colour"""
3589 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
3591 def SetTextColour(*args
, **kwargs
):
3592 """SetTextColour(self, Colour col)"""
3593 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
3595 def GetTopItem(*args
, **kwargs
):
3596 """GetTopItem(self) -> long"""
3597 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
3599 def SetSingleStyle(*args
, **kwargs
):
3600 """SetSingleStyle(self, long style, bool add=True)"""
3601 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3603 def SetWindowStyleFlag(*args
, **kwargs
):
3605 SetWindowStyleFlag(self, long style)
3607 Sets the style of the window. Please note that some styles cannot
3608 be changed after the window creation and that Refresh() might
3609 need to be called after changing the others for the change to
3610 take place immediately.
3612 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3614 def GetNextItem(*args
, **kwargs
):
3615 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3616 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
3618 def GetImageList(*args
, **kwargs
):
3619 """GetImageList(self, int which) -> ImageList"""
3620 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
3622 def SetImageList(*args
, **kwargs
):
3623 """SetImageList(self, ImageList imageList, int which)"""
3624 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
3626 def AssignImageList(*args
, **kwargs
):
3627 """AssignImageList(self, ImageList imageList, int which)"""
3628 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
3630 def InReportView(*args
, **kwargs
):
3631 """InReportView(self) -> bool"""
3632 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
3634 def IsVirtual(*args
, **kwargs
):
3635 """IsVirtual(self) -> bool"""
3636 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
3638 def RefreshItem(*args
, **kwargs
):
3639 """RefreshItem(self, long item)"""
3640 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
3642 def RefreshItems(*args
, **kwargs
):
3643 """RefreshItems(self, long itemFrom, long itemTo)"""
3644 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
3646 def Arrange(*args
, **kwargs
):
3647 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
3648 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
3650 def DeleteItem(*args
, **kwargs
):
3651 """DeleteItem(self, long item) -> bool"""
3652 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
3654 def DeleteAllItems(*args
, **kwargs
):
3655 """DeleteAllItems(self) -> bool"""
3656 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3658 def DeleteColumn(*args
, **kwargs
):
3659 """DeleteColumn(self, int col) -> bool"""
3660 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3662 def DeleteAllColumns(*args
, **kwargs
):
3663 """DeleteAllColumns(self) -> bool"""
3664 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3666 def ClearAll(*args
, **kwargs
):
3667 """ClearAll(self)"""
3668 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
3670 def EditLabel(*args
, **kwargs
):
3671 """EditLabel(self, long item)"""
3672 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
3674 def EnsureVisible(*args
, **kwargs
):
3675 """EnsureVisible(self, long item) -> bool"""
3676 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3678 def FindItem(*args
, **kwargs
):
3679 """FindItem(self, long start, String str, bool partial=False) -> long"""
3680 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
3682 def FindItemData(*args
, **kwargs
):
3683 """FindItemData(self, long start, long data) -> long"""
3684 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
3686 def FindItemAtPos(*args
, **kwargs
):
3687 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
3688 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3690 def HitTest(*args
, **kwargs
):
3692 HitTest(Point point) -> (item, where)
3694 Determines which item (if any) is at the specified point,
3695 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3697 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
3699 def InsertItem(*args
, **kwargs
):
3700 """InsertItem(self, ListItem info) -> long"""
3701 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
3703 def InsertStringItem(*args
, **kwargs
):
3704 """InsertStringItem(self, long index, String label) -> long"""
3705 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3707 def InsertImageItem(*args
, **kwargs
):
3708 """InsertImageItem(self, long index, int imageIndex) -> long"""
3709 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3711 def InsertImageStringItem(*args
, **kwargs
):
3712 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
3713 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3715 def InsertColumnInfo(*args
, **kwargs
):
3716 """InsertColumnInfo(self, long col, ListItem info) -> long"""
3717 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3719 def InsertColumn(*args
, **kwargs
):
3721 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
3722 int width=-1) -> long
3724 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
3726 def SetItemCount(*args
, **kwargs
):
3727 """SetItemCount(self, long count)"""
3728 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
3730 def ScrollList(*args
, **kwargs
):
3731 """ScrollList(self, int dx, int dy) -> bool"""
3732 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
3734 def SetItemTextColour(*args
, **kwargs
):
3735 """SetItemTextColour(self, long item, Colour col)"""
3736 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3738 def GetItemTextColour(*args
, **kwargs
):
3739 """GetItemTextColour(self, long item) -> Colour"""
3740 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3742 def SetItemBackgroundColour(*args
, **kwargs
):
3743 """SetItemBackgroundColour(self, long item, Colour col)"""
3744 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3746 def GetItemBackgroundColour(*args
, **kwargs
):
3747 """GetItemBackgroundColour(self, long item) -> Colour"""
3748 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3752 def Select(self
, idx
, on
=1):
3753 '''[de]select an item'''
3754 if on
: state
= wx
.LIST_STATE_SELECTED
3756 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3758 def Focus(self
, idx
):
3759 '''Focus and show the given item'''
3760 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3761 self
.EnsureVisible(idx
)
3763 def GetFocusedItem(self
):
3764 '''get the currently focused item or -1 if none'''
3765 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3767 def GetFirstSelected(self
, *args
):
3768 '''return first selected item, or -1 when none'''
3769 return self
.GetNextSelected(-1)
3771 def GetNextSelected(self
, item
):
3772 '''return subsequent selected items, or -1 when no more'''
3773 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3775 def IsSelected(self
, idx
):
3776 '''return True if the item is selected'''
3777 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3779 def SetColumnImage(self
, col
, image
):
3780 item
= self
.GetColumn(col
)
3781 # preserve all other attributes too
3782 item
.SetMask( wx
.LIST_MASK_STATE |
3784 wx
.LIST_MASK_IMAGE |
3787 wx
.LIST_MASK_WIDTH |
3788 wx
.LIST_MASK_FORMAT
)
3789 item
.SetImage(image
)
3790 self
.SetColumn(col
, item
)
3792 def ClearColumnImage(self
, col
):
3793 self
.SetColumnImage(col
, -1)
3795 def Append(self
, entry
):
3796 '''Append an item to the list control. The entry parameter should be a
3797 sequence with an item for each column'''
3803 pos
= self
.GetItemCount()
3804 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3805 for i
in range(1, len(entry
)):
3806 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3809 def SortItems(*args
, **kwargs
):
3810 """SortItems(self, PyObject func) -> bool"""
3811 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
3813 def GetMainWindow(*args
, **kwargs
):
3814 """GetMainWindow(self) -> Window"""
3815 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3817 def GetClassDefaultAttributes(*args
, **kwargs
):
3819 ListCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3821 Get the default attributes for this class. This is useful if
3822 you want to use the same font or colour in your own control as
3823 in a standard control -- which is a much better idea than hard
3824 coding specific colours or fonts which might look completely out
3825 of place on the users system, especially if it uses themes.
3827 The variant parameter is only relevant under Mac currently and is
3828 ignore under other platforms. Under Mac, it will change the size of the
3829 returned font. See SetWindowVariant for more about this.
3831 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3833 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3835 class ListCtrlPtr(ListCtrl
):
3836 def __init__(self
, this
):
3838 if not hasattr(self
,"thisown"): self
.thisown
= 0
3839 self
.__class
__ = ListCtrl
3840 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
3842 def PreListCtrl(*args
, **kwargs
):
3843 """PreListCtrl() -> ListCtrl"""
3844 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
3848 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
3850 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3852 Get the default attributes for this class. This is useful if
3853 you want to use the same font or colour in your own control as
3854 in a standard control -- which is a much better idea than hard
3855 coding specific colours or fonts which might look completely out
3856 of place on the users system, especially if it uses themes.
3858 The variant parameter is only relevant under Mac currently and is
3859 ignore under other platforms. Under Mac, it will change the size of the
3860 returned font. See SetWindowVariant for more about this.
3862 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3864 #---------------------------------------------------------------------------
3866 class ListView(ListCtrl
):
3868 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3869 def __init__(self
, *args
, **kwargs
):
3871 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3872 Size size=DefaultSize, long style=LC_REPORT,
3873 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3875 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
3876 self
.this
= newobj
.this
3879 self
._setOORInfo
(self
)
3881 def Create(*args
, **kwargs
):
3883 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3884 Size size=DefaultSize, long style=LC_REPORT,
3885 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3887 Do the 2nd phase and create the GUI control.
3889 return _controls_
.ListView_Create(*args
, **kwargs
)
3891 def Select(*args
, **kwargs
):
3892 """Select(self, long n, bool on=True)"""
3893 return _controls_
.ListView_Select(*args
, **kwargs
)
3895 def Focus(*args
, **kwargs
):
3896 """Focus(self, long index)"""
3897 return _controls_
.ListView_Focus(*args
, **kwargs
)
3899 def GetFocusedItem(*args
, **kwargs
):
3900 """GetFocusedItem(self) -> long"""
3901 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
3903 def GetNextSelected(*args
, **kwargs
):
3904 """GetNextSelected(self, long item) -> long"""
3905 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
3907 def GetFirstSelected(*args
, **kwargs
):
3908 """GetFirstSelected(self) -> long"""
3909 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
3911 def IsSelected(*args
, **kwargs
):
3912 """IsSelected(self, long index) -> bool"""
3913 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
3915 def SetColumnImage(*args
, **kwargs
):
3916 """SetColumnImage(self, int col, int image)"""
3917 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
3919 def ClearColumnImage(*args
, **kwargs
):
3920 """ClearColumnImage(self, int col)"""
3921 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
3924 class ListViewPtr(ListView
):
3925 def __init__(self
, this
):
3927 if not hasattr(self
,"thisown"): self
.thisown
= 0
3928 self
.__class
__ = ListView
3929 _controls_
.ListView_swigregister(ListViewPtr
)
3931 def PreListView(*args
, **kwargs
):
3932 """PreListView() -> ListView"""
3933 val
= _controls_
.new_PreListView(*args
, **kwargs
)
3937 #---------------------------------------------------------------------------
3939 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
3940 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
3941 TR_NO_LINES
= _controls_
.TR_NO_LINES
3942 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
3943 TR_SINGLE
= _controls_
.TR_SINGLE
3944 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
3945 TR_EXTENDED
= _controls_
.TR_EXTENDED
3946 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
3947 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
3948 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
3949 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
3950 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
3951 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
3952 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
3953 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
3954 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
3955 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
3956 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
3957 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
3958 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
3959 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
3960 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
3961 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
3962 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
3963 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
3964 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
3965 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
3966 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
3967 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
3968 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
3969 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
3970 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
3971 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
3972 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
3973 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
3974 #---------------------------------------------------------------------------
3976 class TreeItemId(object):
3978 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3979 def __init__(self
, *args
, **kwargs
):
3980 """__init__(self) -> TreeItemId"""
3981 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
3982 self
.this
= newobj
.this
3985 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
3988 if self
.thisown
: destroy(self
)
3991 def IsOk(*args
, **kwargs
):
3992 """IsOk(self) -> bool"""
3993 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
3995 def __eq__(*args
, **kwargs
):
3996 """__eq__(self, TreeItemId other) -> bool"""
3997 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
3999 def __ne__(*args
, **kwargs
):
4000 """__ne__(self, TreeItemId other) -> bool"""
4001 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4003 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4005 def __nonzero__(self
): return self
.IsOk()
4007 class TreeItemIdPtr(TreeItemId
):
4008 def __init__(self
, this
):
4010 if not hasattr(self
,"thisown"): self
.thisown
= 0
4011 self
.__class
__ = TreeItemId
4012 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
4013 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4015 class TreeItemData(object):
4017 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4018 def __init__(self
, *args
, **kwargs
):
4019 """__init__(self, PyObject obj=None) -> TreeItemData"""
4020 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
4021 self
.this
= newobj
.this
4024 def GetData(*args
, **kwargs
):
4025 """GetData(self) -> PyObject"""
4026 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4028 def SetData(*args
, **kwargs
):
4029 """SetData(self, PyObject obj)"""
4030 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4032 def GetId(*args
, **kwargs
):
4033 """GetId(self) -> TreeItemId"""
4034 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4036 def SetId(*args
, **kwargs
):
4037 """SetId(self, TreeItemId id)"""
4038 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4040 def Destroy(*args
, **kwargs
):
4042 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4045 class TreeItemDataPtr(TreeItemData
):
4046 def __init__(self
, this
):
4048 if not hasattr(self
,"thisown"): self
.thisown
= 0
4049 self
.__class
__ = TreeItemData
4050 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
4052 #---------------------------------------------------------------------------
4054 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4055 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4056 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4057 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4058 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4059 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4060 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4061 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4062 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4063 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4064 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4065 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4066 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4067 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4068 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4069 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4070 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4071 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4072 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4073 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4074 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4075 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4076 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4077 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4078 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4079 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4080 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4081 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4082 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4083 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4084 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4085 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4086 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4087 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4088 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4089 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4090 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4091 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4092 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4093 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4095 class TreeEvent(_core
.NotifyEvent
):
4097 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4098 def __init__(self
, *args
, **kwargs
):
4099 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4100 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
4101 self
.this
= newobj
.this
4104 def GetItem(*args
, **kwargs
):
4105 """GetItem(self) -> TreeItemId"""
4106 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4108 def SetItem(*args
, **kwargs
):
4109 """SetItem(self, TreeItemId item)"""
4110 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4112 def GetOldItem(*args
, **kwargs
):
4113 """GetOldItem(self) -> TreeItemId"""
4114 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4116 def SetOldItem(*args
, **kwargs
):
4117 """SetOldItem(self, TreeItemId item)"""
4118 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4120 def GetPoint(*args
, **kwargs
):
4121 """GetPoint(self) -> Point"""
4122 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4124 def SetPoint(*args
, **kwargs
):
4125 """SetPoint(self, Point pt)"""
4126 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4128 def GetKeyEvent(*args
, **kwargs
):
4129 """GetKeyEvent(self) -> KeyEvent"""
4130 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4132 def GetKeyCode(*args
, **kwargs
):
4133 """GetKeyCode(self) -> int"""
4134 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4136 def SetKeyEvent(*args
, **kwargs
):
4137 """SetKeyEvent(self, KeyEvent evt)"""
4138 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4140 def GetLabel(*args
, **kwargs
):
4141 """GetLabel(self) -> String"""
4142 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4144 def SetLabel(*args
, **kwargs
):
4145 """SetLabel(self, String label)"""
4146 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4148 def IsEditCancelled(*args
, **kwargs
):
4149 """IsEditCancelled(self) -> bool"""
4150 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4152 def SetEditCanceled(*args
, **kwargs
):
4153 """SetEditCanceled(self, bool editCancelled)"""
4154 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4156 def SetToolTip(*args
, **kwargs
):
4157 """SetToolTip(self, String toolTip)"""
4158 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4161 class TreeEventPtr(TreeEvent
):
4162 def __init__(self
, this
):
4164 if not hasattr(self
,"thisown"): self
.thisown
= 0
4165 self
.__class
__ = TreeEvent
4166 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
4168 #---------------------------------------------------------------------------
4170 class TreeCtrl(_core
.Control
):
4172 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4173 def __init__(self
, *args
, **kwargs
):
4175 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4176 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4177 Validator validator=DefaultValidator,
4178 String name=TreeCtrlNameStr) -> TreeCtrl
4180 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
4181 self
.this
= newobj
.this
4184 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4186 def Create(*args
, **kwargs
):
4188 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4189 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4190 Validator validator=DefaultValidator,
4191 String name=TreeCtrlNameStr) -> bool
4193 Do the 2nd phase and create the GUI control.
4195 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
4197 def _setCallbackInfo(*args
, **kwargs
):
4198 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4199 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4201 def GetCount(*args
, **kwargs
):
4202 """GetCount(self) -> size_t"""
4203 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
4205 def GetIndent(*args
, **kwargs
):
4206 """GetIndent(self) -> unsigned int"""
4207 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
4209 def SetIndent(*args
, **kwargs
):
4210 """SetIndent(self, unsigned int indent)"""
4211 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
4213 def GetSpacing(*args
, **kwargs
):
4214 """GetSpacing(self) -> unsigned int"""
4215 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4217 def SetSpacing(*args
, **kwargs
):
4218 """SetSpacing(self, unsigned int spacing)"""
4219 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4221 def GetImageList(*args
, **kwargs
):
4222 """GetImageList(self) -> ImageList"""
4223 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
4225 def GetStateImageList(*args
, **kwargs
):
4226 """GetStateImageList(self) -> ImageList"""
4227 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4229 def SetImageList(*args
, **kwargs
):
4230 """SetImageList(self, ImageList imageList)"""
4231 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
4233 def SetStateImageList(*args
, **kwargs
):
4234 """SetStateImageList(self, ImageList imageList)"""
4235 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4237 def AssignImageList(*args
, **kwargs
):
4238 """AssignImageList(self, ImageList imageList)"""
4239 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4241 def AssignStateImageList(*args
, **kwargs
):
4242 """AssignStateImageList(self, ImageList imageList)"""
4243 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4245 def GetItemText(*args
, **kwargs
):
4246 """GetItemText(self, TreeItemId item) -> String"""
4247 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
4249 def GetItemImage(*args
, **kwargs
):
4250 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4251 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4253 def GetItemData(*args
, **kwargs
):
4254 """GetItemData(self, TreeItemId item) -> TreeItemData"""
4255 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
4257 def GetItemPyData(*args
, **kwargs
):
4258 """GetItemPyData(self, TreeItemId item) -> PyObject"""
4259 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4261 GetPyData
= GetItemPyData
4262 def GetItemTextColour(*args
, **kwargs
):
4263 """GetItemTextColour(self, TreeItemId item) -> Colour"""
4264 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4266 def GetItemBackgroundColour(*args
, **kwargs
):
4267 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
4268 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4270 def GetItemFont(*args
, **kwargs
):
4271 """GetItemFont(self, TreeItemId item) -> Font"""
4272 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4274 def SetItemText(*args
, **kwargs
):
4275 """SetItemText(self, TreeItemId item, String text)"""
4276 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
4278 def SetItemImage(*args
, **kwargs
):
4279 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4280 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4282 def SetItemData(*args
, **kwargs
):
4283 """SetItemData(self, TreeItemId item, TreeItemData data)"""
4284 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
4286 def SetItemPyData(*args
, **kwargs
):
4287 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
4288 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4290 SetPyData
= SetItemPyData
4291 def SetItemHasChildren(*args
, **kwargs
):
4292 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
4293 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4295 def SetItemBold(*args
, **kwargs
):
4296 """SetItemBold(self, TreeItemId item, bool bold=True)"""
4297 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4299 def SetItemTextColour(*args
, **kwargs
):
4300 """SetItemTextColour(self, TreeItemId item, Colour col)"""
4301 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4303 def SetItemBackgroundColour(*args
, **kwargs
):
4304 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
4305 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4307 def SetItemFont(*args
, **kwargs
):
4308 """SetItemFont(self, TreeItemId item, Font font)"""
4309 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4311 def IsVisible(*args
, **kwargs
):
4312 """IsVisible(self, TreeItemId item) -> bool"""
4313 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
4315 def ItemHasChildren(*args
, **kwargs
):
4316 """ItemHasChildren(self, TreeItemId item) -> bool"""
4317 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4319 def IsExpanded(*args
, **kwargs
):
4320 """IsExpanded(self, TreeItemId item) -> bool"""
4321 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4323 def IsSelected(*args
, **kwargs
):
4324 """IsSelected(self, TreeItemId item) -> bool"""
4325 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
4327 def IsBold(*args
, **kwargs
):
4328 """IsBold(self, TreeItemId item) -> bool"""
4329 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
4331 def GetChildrenCount(*args
, **kwargs
):
4332 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
4333 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4335 def GetRootItem(*args
, **kwargs
):
4336 """GetRootItem(self) -> TreeItemId"""
4337 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4339 def GetSelection(*args
, **kwargs
):
4340 """GetSelection(self) -> TreeItemId"""
4341 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
4343 def GetSelections(*args
, **kwargs
):
4344 """GetSelections(self) -> PyObject"""
4345 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
4347 def GetItemParent(*args
, **kwargs
):
4348 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
4349 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4351 def GetFirstChild(*args
, **kwargs
):
4352 """GetFirstChild(self, TreeItemId item) -> PyObject"""
4353 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4355 def GetNextChild(*args
, **kwargs
):
4356 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
4357 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4359 def GetLastChild(*args
, **kwargs
):
4360 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
4361 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4363 def GetNextSibling(*args
, **kwargs
):
4364 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
4365 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4367 def GetPrevSibling(*args
, **kwargs
):
4368 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
4369 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4371 def GetFirstVisibleItem(*args
, **kwargs
):
4372 """GetFirstVisibleItem(self) -> TreeItemId"""
4373 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4375 def GetNextVisible(*args
, **kwargs
):
4376 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
4377 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4379 def GetPrevVisible(*args
, **kwargs
):
4380 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
4381 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4383 def AddRoot(*args
, **kwargs
):
4384 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4385 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
4387 def PrependItem(*args
, **kwargs
):
4389 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4390 TreeItemData data=None) -> TreeItemId
4392 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
4394 def InsertItem(*args
, **kwargs
):
4396 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
4397 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4399 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
4401 def InsertItemBefore(*args
, **kwargs
):
4403 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
4404 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4406 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4408 def AppendItem(*args
, **kwargs
):
4410 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4411 TreeItemData data=None) -> TreeItemId
4413 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
4415 def Delete(*args
, **kwargs
):
4416 """Delete(self, TreeItemId item)"""
4417 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
4419 def DeleteChildren(*args
, **kwargs
):
4420 """DeleteChildren(self, TreeItemId item)"""
4421 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4423 def DeleteAllItems(*args
, **kwargs
):
4424 """DeleteAllItems(self)"""
4425 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4427 def Expand(*args
, **kwargs
):
4428 """Expand(self, TreeItemId item)"""
4429 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
4431 def Collapse(*args
, **kwargs
):
4432 """Collapse(self, TreeItemId item)"""
4433 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
4435 def CollapseAndReset(*args
, **kwargs
):
4436 """CollapseAndReset(self, TreeItemId item)"""
4437 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4439 def Toggle(*args
, **kwargs
):
4440 """Toggle(self, TreeItemId item)"""
4441 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
4443 def Unselect(*args
, **kwargs
):
4444 """Unselect(self)"""
4445 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
4447 def UnselectItem(*args
, **kwargs
):
4448 """UnselectItem(self, TreeItemId item)"""
4449 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4451 def UnselectAll(*args
, **kwargs
):
4452 """UnselectAll(self)"""
4453 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4455 def SelectItem(*args
, **kwargs
):
4456 """SelectItem(self, TreeItemId item, bool select=True)"""
4457 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
4459 def ToggleItemSelection(*args
, **kwargs
):
4460 """ToggleItemSelection(self, TreeItemId item)"""
4461 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4463 def EnsureVisible(*args
, **kwargs
):
4464 """EnsureVisible(self, TreeItemId item)"""
4465 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4467 def ScrollTo(*args
, **kwargs
):
4468 """ScrollTo(self, TreeItemId item)"""
4469 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4471 def EditLabel(*args
, **kwargs
):
4472 """EditLabel(self, TreeItemId item)"""
4473 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
4475 def GetEditControl(*args
, **kwargs
):
4476 """GetEditControl(self) -> TextCtrl"""
4477 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4479 def SortChildren(*args
, **kwargs
):
4480 """SortChildren(self, TreeItemId item)"""
4481 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
4483 def HitTest(*args
, **kwargs
):
4485 HitTest(Point point) -> (item, where)
4487 Determine which item (if any) belongs the given point. The
4488 coordinates specified are relative to the client area of tree ctrl
4489 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4493 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
4495 def GetBoundingRect(*args
, **kwargs
):
4496 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
4497 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4499 def GetClassDefaultAttributes(*args
, **kwargs
):
4501 TreeCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4503 Get the default attributes for this class. This is useful if
4504 you want to use the same font or colour in your own control as
4505 in a standard control -- which is a much better idea than hard
4506 coding specific colours or fonts which might look completely out
4507 of place on the users system, especially if it uses themes.
4509 The variant parameter is only relevant under Mac currently and is
4510 ignore under other platforms. Under Mac, it will change the size of the
4511 returned font. See SetWindowVariant for more about this.
4513 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4515 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4517 class TreeCtrlPtr(TreeCtrl
):
4518 def __init__(self
, this
):
4520 if not hasattr(self
,"thisown"): self
.thisown
= 0
4521 self
.__class
__ = TreeCtrl
4522 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
4524 def PreTreeCtrl(*args
, **kwargs
):
4525 """PreTreeCtrl() -> TreeCtrl"""
4526 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
4530 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4532 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4534 Get the default attributes for this class. This is useful if
4535 you want to use the same font or colour in your own control as
4536 in a standard control -- which is a much better idea than hard
4537 coding specific colours or fonts which might look completely out
4538 of place on the users system, especially if it uses themes.
4540 The variant parameter is only relevant under Mac currently and is
4541 ignore under other platforms. Under Mac, it will change the size of the
4542 returned font. See SetWindowVariant for more about this.
4544 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4546 #---------------------------------------------------------------------------
4548 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
4549 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
4550 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
4551 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
4552 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
4553 class GenericDirCtrl(_core
.Control
):
4555 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4556 def __init__(self
, *args
, **kwargs
):
4558 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4559 Point pos=DefaultPosition, Size size=DefaultSize,
4560 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4561 String filter=EmptyString,
4562 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4564 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
4565 self
.this
= newobj
.this
4568 self
._setOORInfo
(self
)
4570 def Create(*args
, **kwargs
):
4572 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4573 Point pos=DefaultPosition, Size size=DefaultSize,
4574 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4575 String filter=EmptyString,
4576 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4578 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
4580 def ExpandPath(*args
, **kwargs
):
4581 """ExpandPath(self, String path) -> bool"""
4582 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4584 def GetDefaultPath(*args
, **kwargs
):
4585 """GetDefaultPath(self) -> String"""
4586 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4588 def SetDefaultPath(*args
, **kwargs
):
4589 """SetDefaultPath(self, String path)"""
4590 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4592 def GetPath(*args
, **kwargs
):
4593 """GetPath(self) -> String"""
4594 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4596 def GetFilePath(*args
, **kwargs
):
4597 """GetFilePath(self) -> String"""
4598 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4600 def SetPath(*args
, **kwargs
):
4601 """SetPath(self, String path)"""
4602 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4604 def ShowHidden(*args
, **kwargs
):
4605 """ShowHidden(self, bool show)"""
4606 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4608 def GetShowHidden(*args
, **kwargs
):
4609 """GetShowHidden(self) -> bool"""
4610 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4612 def GetFilter(*args
, **kwargs
):
4613 """GetFilter(self) -> String"""
4614 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4616 def SetFilter(*args
, **kwargs
):
4617 """SetFilter(self, String filter)"""
4618 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4620 def GetFilterIndex(*args
, **kwargs
):
4621 """GetFilterIndex(self) -> int"""
4622 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4624 def SetFilterIndex(*args
, **kwargs
):
4625 """SetFilterIndex(self, int n)"""
4626 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4628 def GetRootId(*args
, **kwargs
):
4629 """GetRootId(self) -> TreeItemId"""
4630 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4632 def GetTreeCtrl(*args
, **kwargs
):
4633 """GetTreeCtrl(self) -> TreeCtrl"""
4634 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4636 def GetFilterListCtrl(*args
, **kwargs
):
4637 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
4638 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4640 def FindChild(*args
, **kwargs
):
4642 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4644 Find the child that matches the first part of 'path'. E.g. if a child path is
4645 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4646 If the path string has been used (we're at the leaf), done is set to True
4649 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4651 def DoResize(*args
, **kwargs
):
4652 """DoResize(self)"""
4653 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4655 def ReCreateTree(*args
, **kwargs
):
4656 """ReCreateTree(self)"""
4657 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4660 class GenericDirCtrlPtr(GenericDirCtrl
):
4661 def __init__(self
, this
):
4663 if not hasattr(self
,"thisown"): self
.thisown
= 0
4664 self
.__class
__ = GenericDirCtrl
4665 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4666 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4668 def PreGenericDirCtrl(*args
, **kwargs
):
4669 """PreGenericDirCtrl() -> GenericDirCtrl"""
4670 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
4674 class DirFilterListCtrl(Choice
):
4676 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4677 def __init__(self
, *args
, **kwargs
):
4679 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4680 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4682 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
4683 self
.this
= newobj
.this
4686 self
._setOORInfo
(self
)
4688 def Create(*args
, **kwargs
):
4690 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4691 Size size=DefaultSize, long style=0) -> bool
4693 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
4695 def FillFilterList(*args
, **kwargs
):
4696 """FillFilterList(self, String filter, int defaultFilter)"""
4697 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4700 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4701 def __init__(self
, this
):
4703 if not hasattr(self
,"thisown"): self
.thisown
= 0
4704 self
.__class
__ = DirFilterListCtrl
4705 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4707 def PreDirFilterListCtrl(*args
, **kwargs
):
4708 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4709 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4713 #---------------------------------------------------------------------------
4715 class PyControl(_core
.Control
):
4717 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4718 def __init__(self
, *args
, **kwargs
):
4720 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4721 long style=0, Validator validator=DefaultValidator,
4722 String name=ControlNameStr) -> PyControl
4724 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
4725 self
.this
= newobj
.this
4728 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4730 def _setCallbackInfo(*args
, **kwargs
):
4731 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4732 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
4734 def base_DoMoveWindow(*args
, **kwargs
):
4735 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
4736 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4738 def base_DoSetSize(*args
, **kwargs
):
4739 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4740 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
4742 def base_DoSetClientSize(*args
, **kwargs
):
4743 """base_DoSetClientSize(self, int width, int height)"""
4744 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4746 def base_DoSetVirtualSize(*args
, **kwargs
):
4747 """base_DoSetVirtualSize(self, int x, int y)"""
4748 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4750 def base_DoGetSize(*args
, **kwargs
):
4751 """base_DoGetSize() -> (width, height)"""
4752 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
4754 def base_DoGetClientSize(*args
, **kwargs
):
4755 """base_DoGetClientSize() -> (width, height)"""
4756 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4758 def base_DoGetPosition(*args
, **kwargs
):
4759 """base_DoGetPosition() -> (x,y)"""
4760 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4762 def base_DoGetVirtualSize(*args
, **kwargs
):
4763 """base_DoGetVirtualSize(self) -> Size"""
4764 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4766 def base_DoGetBestSize(*args
, **kwargs
):
4767 """base_DoGetBestSize(self) -> Size"""
4768 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4770 def base_InitDialog(*args
, **kwargs
):
4771 """base_InitDialog(self)"""
4772 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
4774 def base_TransferDataToWindow(*args
, **kwargs
):
4775 """base_TransferDataToWindow(self) -> bool"""
4776 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4778 def base_TransferDataFromWindow(*args
, **kwargs
):
4779 """base_TransferDataFromWindow(self) -> bool"""
4780 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4782 def base_Validate(*args
, **kwargs
):
4783 """base_Validate(self) -> bool"""
4784 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
4786 def base_AcceptsFocus(*args
, **kwargs
):
4787 """base_AcceptsFocus(self) -> bool"""
4788 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4790 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4791 """base_AcceptsFocusFromKeyboard(self) -> bool"""
4792 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4794 def base_GetMaxSize(*args
, **kwargs
):
4795 """base_GetMaxSize(self) -> Size"""
4796 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4798 def base_AddChild(*args
, **kwargs
):
4799 """base_AddChild(self, Window child)"""
4800 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
4802 def base_RemoveChild(*args
, **kwargs
):
4803 """base_RemoveChild(self, Window child)"""
4804 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
4806 def base_ShouldInheritColours(*args
, **kwargs
):
4807 """base_ShouldInheritColours(self) -> bool"""
4808 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
4810 def base_ApplyParentThemeBackground(*args
, **kwargs
):
4811 """base_ApplyParentThemeBackground(self, Colour c)"""
4812 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
4815 class PyControlPtr(PyControl
):
4816 def __init__(self
, this
):
4818 if not hasattr(self
,"thisown"): self
.thisown
= 0
4819 self
.__class
__ = PyControl
4820 _controls_
.PyControl_swigregister(PyControlPtr
)
4822 def PrePyControl(*args
, **kwargs
):
4823 """PrePyControl() -> PyControl"""
4824 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
4828 #---------------------------------------------------------------------------
4830 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
4831 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
4832 wxEVT_HELP
= _controls_
.wxEVT_HELP
4833 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
4834 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4835 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4836 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4837 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4839 class HelpEvent(_core
.CommandEvent
):
4841 A help event is sent when the user has requested
4842 context-sensitive help. This can either be caused by the
4843 application requesting context-sensitive help mode via
4844 wx.ContextHelp, or (on MS Windows) by the system generating a
4845 WM_HELP message when the user pressed F1 or clicked on the query
4846 button in a dialog caption.
4848 A help event is sent to the window that the user clicked on, and
4849 is propagated up the window hierarchy until the event is
4850 processed or there are no more event handlers. The application
4851 should call event.GetId to check the identity of the clicked-on
4852 window, and then either show some suitable help or call
4853 event.Skip if the identifier is unrecognised. Calling Skip is
4854 important because it allows wxWindows to generate further events
4855 for ancestors of the clicked-on window. Otherwise it would be
4856 impossible to show help for container windows, since processing
4857 would stop after the first window found.
4860 EVT_HELP Sent when the user has requested context-
4862 EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs
4866 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4867 def __init__(self
, *args
, **kwargs
):
4868 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4869 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
4870 self
.this
= newobj
.this
4873 def GetPosition(*args
, **kwargs
):
4875 GetPosition(self) -> Point
4877 Returns the left-click position of the mouse, in screen
4878 coordinates. This allows the application to position the help
4881 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
4883 def SetPosition(*args
, **kwargs
):
4885 SetPosition(self, Point pos)
4887 Sets the left-click position of the mouse, in screen coordinates.
4889 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
4891 def GetLink(*args
, **kwargs
):
4893 GetLink(self) -> String
4895 Get an optional link to further help
4897 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
4899 def SetLink(*args
, **kwargs
):
4901 SetLink(self, String link)
4903 Set an optional link to further help
4905 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
4907 def GetTarget(*args
, **kwargs
):
4909 GetTarget(self) -> String
4911 Get an optional target to display help in. E.g. a window specification
4913 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
4915 def SetTarget(*args
, **kwargs
):
4917 SetTarget(self, String target)
4919 Set an optional target to display help in. E.g. a window specification
4921 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
4924 class HelpEventPtr(HelpEvent
):
4925 def __init__(self
, this
):
4927 if not hasattr(self
,"thisown"): self
.thisown
= 0
4928 self
.__class
__ = HelpEvent
4929 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
4931 class ContextHelp(_core
.Object
):
4933 This class changes the cursor to a query and puts the application
4934 into a 'context-sensitive help mode'. When the user left-clicks
4935 on a window within the specified window, a EVT_HELP event is sent
4936 to that control, and the application may respond to it by popping
4939 There are a couple of ways to invoke this behaviour implicitly:
4941 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a
4942 dialog (Windows only). This will put a question mark in the
4943 titlebar, and Windows will put the application into
4944 context-sensitive help mode automatically, with further
4947 * Create a wx.ContextHelpButton, whose predefined behaviour
4948 is to create a context help object. Normally you will write
4949 your application so that this button is only added to a
4950 dialog for non-Windows platforms (use
4951 wx.DIALOG_EX_CONTEXTHELP on Windows).
4955 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4956 def __init__(self
, *args
, **kwargs
):
4958 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
4960 Constructs a context help object, calling BeginContextHelp if
4961 doNow is true (the default).
4963 If window is None, the top window is used.
4965 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
4966 self
.this
= newobj
.this
4969 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
4972 if self
.thisown
: destroy(self
)
4975 def BeginContextHelp(*args
, **kwargs
):
4977 BeginContextHelp(self, Window window=None) -> bool
4979 Puts the application into context-sensitive help mode. window is
4980 the window which will be used to catch events; if NULL, the top
4981 window will be used.
4983 Returns true if the application was successfully put into
4984 context-sensitive help mode. This function only returns when the
4985 event loop has finished.
4987 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4989 def EndContextHelp(*args
, **kwargs
):
4991 EndContextHelp(self) -> bool
4993 Ends context-sensitive help mode. Not normally called by the
4996 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4999 class ContextHelpPtr(ContextHelp
):
5000 def __init__(self
, this
):
5002 if not hasattr(self
,"thisown"): self
.thisown
= 0
5003 self
.__class
__ = ContextHelp
5004 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
5006 class ContextHelpButton(BitmapButton
):
5008 Instances of this class may be used to add a question mark button
5009 that when pressed, puts the application into context-help
5010 mode. It does this by creating a wx.ContextHelp object which
5011 itself generates a EVT_HELP event when the user clicks on a
5014 On Windows, you may add a question-mark icon to a dialog by use
5015 of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other
5016 platforms you will have to add a button explicitly, usually next
5017 to OK, Cancel or similar buttons.
5021 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5022 def __init__(self
, *args
, **kwargs
):
5024 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5025 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5027 Constructor, creating and showing a context help button.
5029 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
5030 self
.this
= newobj
.this
5033 self
._setOORInfo
(self
)
5036 class ContextHelpButtonPtr(ContextHelpButton
):
5037 def __init__(self
, this
):
5039 if not hasattr(self
,"thisown"): self
.thisown
= 0
5040 self
.__class
__ = ContextHelpButton
5041 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5043 class HelpProvider(object):
5045 wx.HelpProvider is an abstract class used by a program
5046 implementing context-sensitive help to show the help text for the
5049 The current help provider must be explicitly set by the
5050 application using wx.HelpProvider.Set().
5052 def __init__(self
): raise RuntimeError, "No constructor defined"
5054 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5055 def Set(*args
, **kwargs
):
5057 HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider
5059 Sset the current, application-wide help provider. Returns the
5060 previous one. Unlike some other classes, the help provider is
5061 not created on demand. This must be explicitly done by the
5064 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5066 Set
= staticmethod(Set
)
5067 def Get(*args
, **kwargs
):
5069 HelpProvider.Get() -> HelpProvider
5071 Return the current application-wide help provider.
5073 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5075 Get
= staticmethod(Get
)
5076 def GetHelp(*args
, **kwargs
):
5078 GetHelp(self, Window window) -> String
5080 Gets the help string for this window. Its interpretation is
5081 dependent on the help provider except that empty string always
5082 means that no help is associated with the window.
5084 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5086 def ShowHelp(*args
, **kwargs
):
5088 ShowHelp(self, Window window) -> bool
5090 Shows help for the given window. Uses GetHelp internally if
5093 Returns true if it was done, or false if no help was available
5096 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5098 def AddHelp(*args
, **kwargs
):
5100 AddHelp(self, Window window, String text)
5102 Associates the text with the given window.
5104 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5106 def AddHelpById(*args
, **kwargs
):
5108 AddHelpById(self, int id, String text)
5110 This version associates the given text with all windows with this
5111 id. May be used to set the same help string for all Cancel
5112 buttons in the application, for example.
5114 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5116 def RemoveHelp(*args
, **kwargs
):
5118 RemoveHelp(self, Window window)
5120 Removes the association between the window pointer and the help
5121 text. This is called by the wx.Window destructor. Without this,
5122 the table of help strings will fill up and when window pointers
5123 are reused, the wrong help string will be found.
5125 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5127 def Destroy(*args
, **kwargs
):
5129 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5132 class HelpProviderPtr(HelpProvider
):
5133 def __init__(self
, this
):
5135 if not hasattr(self
,"thisown"): self
.thisown
= 0
5136 self
.__class
__ = HelpProvider
5137 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
5139 def HelpProvider_Set(*args
, **kwargs
):
5141 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5143 Sset the current, application-wide help provider. Returns the
5144 previous one. Unlike some other classes, the help provider is
5145 not created on demand. This must be explicitly done by the
5148 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5150 def HelpProvider_Get(*args
, **kwargs
):
5152 HelpProvider_Get() -> HelpProvider
5154 Return the current application-wide help provider.
5156 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5158 class SimpleHelpProvider(HelpProvider
):
5160 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5161 which supports only plain text help strings, and shows the string
5162 associated with the control (if any) in a tooltip.
5165 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5166 def __init__(self
, *args
, **kwargs
):
5168 __init__(self) -> SimpleHelpProvider
5170 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5171 which supports only plain text help strings, and shows the string
5172 associated with the control (if any) in a tooltip.
5174 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
5175 self
.this
= newobj
.this
5179 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5180 def __init__(self
, this
):
5182 if not hasattr(self
,"thisown"): self
.thisown
= 0
5183 self
.__class
__ = SimpleHelpProvider
5184 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5186 #---------------------------------------------------------------------------
5188 class DragImage(_core
.Object
):
5190 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5191 def __init__(self
, *args
, **kwargs
):
5192 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5193 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
5194 self
.this
= newobj
.this
5197 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
5200 if self
.thisown
: destroy(self
)
5203 def SetBackingBitmap(*args
, **kwargs
):
5204 """SetBackingBitmap(self, Bitmap bitmap)"""
5205 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5207 def BeginDrag(*args
, **kwargs
):
5209 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
5210 Rect rect=None) -> bool
5212 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
5214 def BeginDragBounded(*args
, **kwargs
):
5215 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
5216 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
5218 def EndDrag(*args
, **kwargs
):
5219 """EndDrag(self) -> bool"""
5220 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
5222 def Move(*args
, **kwargs
):
5223 """Move(self, Point pt) -> bool"""
5224 return _controls_
.DragImage_Move(*args
, **kwargs
)
5226 def Show(*args
, **kwargs
):
5227 """Show(self) -> bool"""
5228 return _controls_
.DragImage_Show(*args
, **kwargs
)
5230 def Hide(*args
, **kwargs
):
5231 """Hide(self) -> bool"""
5232 return _controls_
.DragImage_Hide(*args
, **kwargs
)
5234 def GetImageRect(*args
, **kwargs
):
5235 """GetImageRect(self, Point pos) -> Rect"""
5236 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
5238 def DoDrawImage(*args
, **kwargs
):
5239 """DoDrawImage(self, DC dc, Point pos) -> bool"""
5240 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
5242 def UpdateBackingFromWindow(*args
, **kwargs
):
5243 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
5244 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
5246 def RedrawImage(*args
, **kwargs
):
5247 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
5248 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
5251 class DragImagePtr(DragImage
):
5252 def __init__(self
, this
):
5254 if not hasattr(self
,"thisown"): self
.thisown
= 0
5255 self
.__class
__ = DragImage
5256 _controls_
.DragImage_swigregister(DragImagePtr
)
5258 def DragIcon(*args
, **kwargs
):
5259 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
5260 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
5264 def DragString(*args
, **kwargs
):
5265 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
5266 val
= _controls_
.new_DragString(*args
, **kwargs
)
5270 def DragTreeItem(*args
, **kwargs
):
5271 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
5272 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
5276 def DragListItem(*args
, **kwargs
):
5277 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
5278 val
= _controls_
.new_DragListItem(*args
, **kwargs
)