1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 BU_LEFT
= _controls
.BU_LEFT
11 BU_TOP
= _controls
.BU_TOP
12 BU_RIGHT
= _controls
.BU_RIGHT
13 BU_BOTTOM
= _controls
.BU_BOTTOM
14 BU_EXACTFIT
= _controls
.BU_EXACTFIT
15 BU_AUTODRAW
= _controls
.BU_AUTODRAW
16 class Button(core
.Control
):
18 A button is a control that contains a text string, and is one of the most
19 common elements of a GUI. It may be placed on a dialog box or panel, or
20 indeed almost any other window.
23 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
24 def __init__(self
, *args
, **kwargs
):
26 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
27 Size size=DefaultSize, long style=0,
28 Validator validator=DefaultValidator, String name=ButtonNameStr) -> Button
30 Create and show a button.
32 newobj
= _controls
.new_Button(*args
, **kwargs
)
33 self
.this
= newobj
.this
36 self
._setOORInfo
(self
)
38 def Create(*args
, **kwargs
):
40 Create(Window parent, int id, String label, Point pos=DefaultPosition,
41 Size size=DefaultSize, long style=0,
42 Validator validator=DefaultValidator, String name=ButtonNameStr) -> bool
44 Acutally create the GUI Button for 2-phase creation.
46 return _controls
.Button_Create(*args
, **kwargs
)
48 def SetDefault(*args
, **kwargs
):
52 This sets the button to be the default item for the panel or dialog box.
54 return _controls
.Button_SetDefault(*args
, **kwargs
)
56 def GetDefaultSize(*args
, **kwargs
):
57 """GetDefaultSize() -> Size"""
58 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
60 GetDefaultSize
= staticmethod(GetDefaultSize
)
62 class ButtonPtr(Button
):
63 def __init__(self
, this
):
65 if not hasattr(self
,"thisown"): self
.thisown
= 0
66 self
.__class
__ = Button
67 _controls
.Button_swigregister(ButtonPtr
)
69 ButtonNameStr
= cvar
.ButtonNameStr
71 def PreButton(*args
, **kwargs
):
75 Precreate a Button for 2-phase creation.
77 val
= _controls
.new_PreButton(*args
, **kwargs
)
81 def Button_GetDefaultSize(*args
, **kwargs
):
82 """Button_GetDefaultSize() -> Size"""
83 return _controls
.Button_GetDefaultSize(*args
, **kwargs
)
85 class BitmapButton(Button
):
87 A Button that contains a bitmap. A bitmap button can be supplied with a
88 single bitmap, and wxWindows will draw all button states using this bitmap. If
89 the application needs more control, additional bitmaps for the selected state,
90 unpressed focused state, and greyed-out state may be supplied.
94 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
95 def __init__(self
, *args
, **kwargs
):
97 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
98 Size size=DefaultSize, long style=BU_AUTODRAW,
99 Validator validator=DefaultValidator,
100 String name=ButtonNameStr) -> BitmapButton
102 Create and show a button with a bitmap for the label.
104 newobj
= _controls
.new_BitmapButton(*args
, **kwargs
)
105 self
.this
= newobj
.this
108 self
._setOORInfo
(self
)
110 def Create(*args
, **kwargs
):
112 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
113 Size size=DefaultSize, long style=BU_AUTODRAW,
114 Validator validator=DefaultValidator,
115 String name=ButtonNameStr) -> bool
117 Acutally create the GUI BitmapButton for 2-phase creation.
119 return _controls
.BitmapButton_Create(*args
, **kwargs
)
121 def GetBitmapLabel(*args
, **kwargs
):
123 GetBitmapLabel() -> Bitmap
125 Returns the label bitmap (the one passed to the constructor).
127 return _controls
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
129 def GetBitmapDisabled(*args
, **kwargs
):
131 GetBitmapDisabled() -> Bitmap
133 Returns the bitmap for the disabled state.
135 return _controls
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
137 def GetBitmapFocus(*args
, **kwargs
):
139 GetBitmapFocus() -> Bitmap
141 Returns the bitmap for the focused state.
143 return _controls
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
145 def GetBitmapSelected(*args
, **kwargs
):
147 GetBitmapSelected() -> Bitmap
149 Returns the bitmap for the selected state.
151 return _controls
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
153 def SetBitmapDisabled(*args
, **kwargs
):
155 SetBitmapDisabled(Bitmap bitmap)
157 Sets the bitmap for the disabled button appearance.
159 return _controls
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
161 def SetBitmapFocus(*args
, **kwargs
):
163 SetBitmapFocus(Bitmap bitmap)
165 Sets the bitmap for the button appearance when it has the keyboard focus.
167 return _controls
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
169 def SetBitmapSelected(*args
, **kwargs
):
171 SetBitmapSelected(Bitmap bitmap)
173 Sets the bitmap for the selected (depressed) button appearance.
175 return _controls
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
177 def SetBitmapLabel(*args
, **kwargs
):
179 SetBitmapLabel(Bitmap bitmap)
181 Sets the bitmap label for the button. This is the bitmap used for the
182 unselected state, and for all other states if no other bitmaps are provided.
184 return _controls
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
186 def SetMargins(*args
, **kwargs
):
187 """SetMargins(int x, int y)"""
188 return _controls
.BitmapButton_SetMargins(*args
, **kwargs
)
190 def GetMarginX(*args
, **kwargs
):
191 """GetMarginX() -> int"""
192 return _controls
.BitmapButton_GetMarginX(*args
, **kwargs
)
194 def GetMarginY(*args
, **kwargs
):
195 """GetMarginY() -> int"""
196 return _controls
.BitmapButton_GetMarginY(*args
, **kwargs
)
199 class BitmapButtonPtr(BitmapButton
):
200 def __init__(self
, this
):
202 if not hasattr(self
,"thisown"): self
.thisown
= 0
203 self
.__class
__ = BitmapButton
204 _controls
.BitmapButton_swigregister(BitmapButtonPtr
)
206 def PreBitmapButton(*args
, **kwargs
):
208 PreBitmapButton() -> BitmapButton
210 Precreate a BitmapButton for 2-phase creation.
212 val
= _controls
.new_PreBitmapButton(*args
, **kwargs
)
216 #---------------------------------------------------------------------------
218 CHK_2STATE
= _controls
.CHK_2STATE
219 CHK_3STATE
= _controls
.CHK_3STATE
220 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls
.CHK_ALLOW_3RD_STATE_FOR_USER
221 CHK_UNCHECKED
= _controls
.CHK_UNCHECKED
222 CHK_CHECKED
= _controls
.CHK_CHECKED
223 CHK_UNDETERMINED
= _controls
.CHK_UNDETERMINED
224 class CheckBox(core
.Control
):
226 A checkbox is a labelled box which by default is either on (checkmark is
227 visible) or off (no checkmark). Optionally (When the wxCHK_3STATE style flag
228 is set) it can have a third state, called the mixed or undetermined
229 state. Often this is used as a "Does Not Apply" state.
232 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
233 def __init__(self
, *args
, **kwargs
):
235 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
236 Size size=DefaultSize, long style=0,
237 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox
239 Creates and shows a CheckBox control
241 newobj
= _controls
.new_CheckBox(*args
, **kwargs
)
242 self
.this
= newobj
.this
245 self
._setOORInfo
(self
)
247 def Create(*args
, **kwargs
):
249 Create(Window parent, int id, String label, Point pos=DefaultPosition,
250 Size size=DefaultSize, long style=0,
251 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool
253 Actually create the GUI CheckBox for 2-phase creation.
255 return _controls
.CheckBox_Create(*args
, **kwargs
)
257 def GetValue(*args
, **kwargs
):
261 Gets the state of a 2-state CheckBox. Returns True if it is checked,
264 return _controls
.CheckBox_GetValue(*args
, **kwargs
)
266 def IsChecked(*args
, **kwargs
):
270 Similar to GetValue, but raises an exception if it is not a 2-state CheckBox.
272 return _controls
.CheckBox_IsChecked(*args
, **kwargs
)
274 def SetValue(*args
, **kwargs
):
278 Set the state of a 2-state CheckBox. Pass True for checked,
281 return _controls
.CheckBox_SetValue(*args
, **kwargs
)
283 def Get3StateValue(*args
, **kwargs
):
285 Get3StateValue() -> int
287 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked, wx.CHK_CHECKED when
288 it is checked and wx.CHK_UNDETERMINED when it's in the undetermined state.
289 Raises an exceptiion when the function is used with a 2-state CheckBox.
291 return _controls
.CheckBox_Get3StateValue(*args
, **kwargs
)
293 def Set3StateValue(*args
, **kwargs
):
295 Set3StateValue(int state)
297 Sets the CheckBox to the given state. The state parameter can be
298 one of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED
299 (Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
300 exception when the CheckBox is a 2-state checkbox and setting the state
301 to wx.CHK_UNDETERMINED.
303 return _controls
.CheckBox_Set3StateValue(*args
, **kwargs
)
305 def Is3State(*args
, **kwargs
):
309 Returns whether or not the CheckBox is a 3-state CheckBox.
311 return _controls
.CheckBox_Is3State(*args
, **kwargs
)
313 def Is3rdStateAllowedForUser(*args
, **kwargs
):
315 Is3rdStateAllowedForUser() -> bool
317 Returns whether or not the user can set the CheckBox to the third state.
319 return _controls
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
322 class CheckBoxPtr(CheckBox
):
323 def __init__(self
, this
):
325 if not hasattr(self
,"thisown"): self
.thisown
= 0
326 self
.__class
__ = CheckBox
327 _controls
.CheckBox_swigregister(CheckBoxPtr
)
328 CheckBoxNameStr
= cvar
.CheckBoxNameStr
330 def PreCheckBox(*args
, **kwargs
):
332 PreCheckBox() -> CheckBox
334 Precreate a CheckBox for 2-phase creation.
336 val
= _controls
.new_PreCheckBox(*args
, **kwargs
)
340 #---------------------------------------------------------------------------
342 class Choice(core
.ControlWithItems
):
344 A Choice control is used to select one of a list of strings. Unlike a ListBox,
345 only the selection is visible until the user pulls down the menu of choices.
348 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
349 def __init__(self
, *args
, **kwargs
):
351 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
352 List choices=[], long style=0, Validator validator=DefaultValidator,
353 String name=ChoiceNameStr) -> Choice
355 Create and show a Choice control
357 newobj
= _controls
.new_Choice(*args
, **kwargs
)
358 self
.this
= newobj
.this
361 self
._setOORInfo
(self
)
363 def Create(*args
, **kwargs
):
365 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
366 List choices=[], long style=0, Validator validator=DefaultValidator,
367 String name=ChoiceNameStr) -> bool
369 Actually create the GUI Choice control for 2-phase creation
371 return _controls
.Choice_Create(*args
, **kwargs
)
373 def SetSelection(*args
, **kwargs
):
377 Select the n'th item (zero based) in the list.
379 return _controls
.Choice_SetSelection(*args
, **kwargs
)
381 def SetStringSelection(*args
, **kwargs
):
383 SetStringSelection(String string)
385 Select the item with the specifed string
387 return _controls
.Choice_SetStringSelection(*args
, **kwargs
)
389 def SetString(*args
, **kwargs
):
391 SetString(int n, String string)
393 Set the label for the n'th item (zero based) in the list.
395 return _controls
.Choice_SetString(*args
, **kwargs
)
397 Select
= SetSelection
399 class ChoicePtr(Choice
):
400 def __init__(self
, this
):
402 if not hasattr(self
,"thisown"): self
.thisown
= 0
403 self
.__class
__ = Choice
404 _controls
.Choice_swigregister(ChoicePtr
)
405 ChoiceNameStr
= cvar
.ChoiceNameStr
407 def PreChoice(*args
, **kwargs
):
409 PreChoice() -> Choice
411 Precreate a Choice control for 2-phase creation.
413 val
= _controls
.new_PreChoice(*args
, **kwargs
)
417 #---------------------------------------------------------------------------
419 class ComboBox(Choice
):
421 A combobox is like a combination of an edit control and a listbox. It can be
422 displayed as static list with editable or read-only text field; or a drop-down
423 list with text field.
426 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
427 def __init__(self
, *args
, **kwargs
):
429 __init__(Window parent, int id, String value=EmptyString,
430 Point pos=DefaultPosition, Size size=DefaultSize,
431 List choices=[], long style=0, Validator validator=DefaultValidator,
432 String name=ComboBoxNameStr) -> ComboBox
434 Constructor, creates and shows a ComboBox control.
436 newobj
= _controls
.new_ComboBox(*args
, **kwargs
)
437 self
.this
= newobj
.this
440 self
._setOORInfo
(self
)
442 def Create(*args
, **kwargs
):
444 Create(Window parent, int id, String value=EmptyString,
445 Point pos=DefaultPosition, Size size=DefaultSize,
446 List choices=[], long style=0, Validator validator=DefaultValidator,
447 String name=ChoiceNameStr) -> bool
449 Actually create the GUI wxComboBox control for 2-phase creation
451 return _controls
.ComboBox_Create(*args
, **kwargs
)
453 def GetValue(*args
, **kwargs
):
457 Returns the current value in the combobox text field.
459 return _controls
.ComboBox_GetValue(*args
, **kwargs
)
461 def SetValue(*args
, **kwargs
):
462 """SetValue(String value)"""
463 return _controls
.ComboBox_SetValue(*args
, **kwargs
)
465 def Copy(*args
, **kwargs
):
469 Copies the selected text to the clipboard.
471 return _controls
.ComboBox_Copy(*args
, **kwargs
)
473 def Cut(*args
, **kwargs
):
477 Copies the selected text to the clipboard and removes the selection.
479 return _controls
.ComboBox_Cut(*args
, **kwargs
)
481 def Paste(*args
, **kwargs
):
485 Pastes text from the clipboard to the text field.
487 return _controls
.ComboBox_Paste(*args
, **kwargs
)
489 def SetInsertionPoint(*args
, **kwargs
):
491 SetInsertionPoint(long pos)
493 Sets the insertion point in the combobox text field.
495 return _controls
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
497 def GetInsertionPoint(*args
, **kwargs
):
499 GetInsertionPoint() -> long
501 Returns the insertion point for the combobox's text field.
503 return _controls
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
505 def GetLastPosition(*args
, **kwargs
):
507 GetLastPosition() -> long
509 Returns the last position in the combobox text field.
511 return _controls
.ComboBox_GetLastPosition(*args
, **kwargs
)
513 def Replace(*args
, **kwargs
):
515 Replace(long from, long to, String value)
517 Replaces the text between two positions with the given text, in the
520 return _controls
.ComboBox_Replace(*args
, **kwargs
)
522 def SetSelection(*args
, **kwargs
):
526 Selects the text between the two positions, in the combobox text field.
528 return _controls
.ComboBox_SetSelection(*args
, **kwargs
)
530 def SetMark(*args
, **kwargs
):
531 """SetMark(long from, long to)"""
532 return _controls
.ComboBox_SetMark(*args
, **kwargs
)
534 def SetEditable(*args
, **kwargs
):
535 """SetEditable(bool editable)"""
536 return _controls
.ComboBox_SetEditable(*args
, **kwargs
)
538 def SetInsertionPointEnd(*args
, **kwargs
):
540 SetInsertionPointEnd()
542 Sets the insertion point at the end of the combobox text field.
544 return _controls
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
546 def Remove(*args
, **kwargs
):
548 Remove(long from, long to)
550 Removes the text between the two positions in the combobox text field.
552 return _controls
.ComboBox_Remove(*args
, **kwargs
)
555 class ComboBoxPtr(ComboBox
):
556 def __init__(self
, this
):
558 if not hasattr(self
,"thisown"): self
.thisown
= 0
559 self
.__class
__ = ComboBox
560 _controls
.ComboBox_swigregister(ComboBoxPtr
)
561 ComboBoxNameStr
= cvar
.ComboBoxNameStr
563 def PreComboBox(*args
, **kwargs
):
565 PreComboBox() -> ComboBox
567 Precreate a ComboBox control for 2-phase creation.
569 val
= _controls
.new_PreComboBox(*args
, **kwargs
)
573 #---------------------------------------------------------------------------
575 GA_HORIZONTAL
= _controls
.GA_HORIZONTAL
576 GA_VERTICAL
= _controls
.GA_VERTICAL
577 GA_SMOOTH
= _controls
.GA_SMOOTH
578 GA_PROGRESSBAR
= _controls
.GA_PROGRESSBAR
579 class Gauge(core
.Control
):
581 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
582 def __init__(self
, *args
, **kwargs
):
584 __init__(Window parent, int id, int range, Point pos=DefaultPosition,
585 Size size=DefaultSize, long style=GA_HORIZONTAL,
586 Validator validator=DefaultValidator,
587 String name=GaugeNameStr) -> Gauge
589 newobj
= _controls
.new_Gauge(*args
, **kwargs
)
590 self
.this
= newobj
.this
593 self
._setOORInfo
(self
)
595 def Create(*args
, **kwargs
):
597 Create(Window parent, int id, int range, Point pos=DefaultPosition,
598 Size size=DefaultSize, long style=GA_HORIZONTAL,
599 Validator validator=DefaultValidator,
600 String name=GaugeNameStr) -> bool
602 return _controls
.Gauge_Create(*args
, **kwargs
)
604 def SetRange(*args
, **kwargs
):
605 """SetRange(int range)"""
606 return _controls
.Gauge_SetRange(*args
, **kwargs
)
608 def GetRange(*args
, **kwargs
):
609 """GetRange() -> int"""
610 return _controls
.Gauge_GetRange(*args
, **kwargs
)
612 def SetValue(*args
, **kwargs
):
613 """SetValue(int pos)"""
614 return _controls
.Gauge_SetValue(*args
, **kwargs
)
616 def GetValue(*args
, **kwargs
):
617 """GetValue() -> int"""
618 return _controls
.Gauge_GetValue(*args
, **kwargs
)
620 def IsVertical(*args
, **kwargs
):
621 """IsVertical() -> bool"""
622 return _controls
.Gauge_IsVertical(*args
, **kwargs
)
624 def SetShadowWidth(*args
, **kwargs
):
625 """SetShadowWidth(int w)"""
626 return _controls
.Gauge_SetShadowWidth(*args
, **kwargs
)
628 def GetShadowWidth(*args
, **kwargs
):
629 """GetShadowWidth() -> int"""
630 return _controls
.Gauge_GetShadowWidth(*args
, **kwargs
)
632 def SetBezelFace(*args
, **kwargs
):
633 """SetBezelFace(int w)"""
634 return _controls
.Gauge_SetBezelFace(*args
, **kwargs
)
636 def GetBezelFace(*args
, **kwargs
):
637 """GetBezelFace() -> int"""
638 return _controls
.Gauge_GetBezelFace(*args
, **kwargs
)
641 class GaugePtr(Gauge
):
642 def __init__(self
, this
):
644 if not hasattr(self
,"thisown"): self
.thisown
= 0
645 self
.__class
__ = Gauge
646 _controls
.Gauge_swigregister(GaugePtr
)
647 GaugeNameStr
= cvar
.GaugeNameStr
649 def PreGauge(*args
, **kwargs
):
650 """PreGauge() -> Gauge"""
651 val
= _controls
.new_PreGauge(*args
, **kwargs
)
655 #---------------------------------------------------------------------------
657 class StaticBox(core
.Control
):
659 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
660 def __init__(self
, *args
, **kwargs
):
662 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
663 Size size=DefaultSize, long style=0,
664 String name=StaticBoxNameStr) -> StaticBox
666 newobj
= _controls
.new_StaticBox(*args
, **kwargs
)
667 self
.this
= newobj
.this
670 self
._setOORInfo
(self
)
672 def Create(*args
, **kwargs
):
674 Create(Window parent, int id, String label, Point pos=DefaultPosition,
675 Size size=DefaultSize, long style=0,
676 String name=StaticBoxNameStr) -> bool
678 return _controls
.StaticBox_Create(*args
, **kwargs
)
681 class StaticBoxPtr(StaticBox
):
682 def __init__(self
, this
):
684 if not hasattr(self
,"thisown"): self
.thisown
= 0
685 self
.__class
__ = StaticBox
686 _controls
.StaticBox_swigregister(StaticBoxPtr
)
687 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
688 StaticBoxNameStr
= cvar
.StaticBoxNameStr
689 StaticTextNameStr
= cvar
.StaticTextNameStr
691 def PreStaticBox(*args
, **kwargs
):
692 """PreStaticBox() -> StaticBox"""
693 val
= _controls
.new_PreStaticBox(*args
, **kwargs
)
697 #---------------------------------------------------------------------------
699 class StaticLine(core
.Control
):
701 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
702 def __init__(self
, *args
, **kwargs
):
704 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
705 long style=LI_HORIZONTAL,
706 String name=StaticTextNameStr) -> StaticLine
708 newobj
= _controls
.new_StaticLine(*args
, **kwargs
)
709 self
.this
= newobj
.this
712 self
._setOORInfo
(self
)
714 def Create(*args
, **kwargs
):
716 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
717 long style=LI_HORIZONTAL,
718 String name=StaticTextNameStr) -> bool
720 return _controls
.StaticLine_Create(*args
, **kwargs
)
722 def IsVertical(*args
, **kwargs
):
723 """IsVertical() -> bool"""
724 return _controls
.StaticLine_IsVertical(*args
, **kwargs
)
726 def GetDefaultSize(*args
, **kwargs
):
727 """GetDefaultSize() -> int"""
728 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
730 GetDefaultSize
= staticmethod(GetDefaultSize
)
732 class StaticLinePtr(StaticLine
):
733 def __init__(self
, this
):
735 if not hasattr(self
,"thisown"): self
.thisown
= 0
736 self
.__class
__ = StaticLine
737 _controls
.StaticLine_swigregister(StaticLinePtr
)
739 def PreStaticLine(*args
, **kwargs
):
740 """PreStaticLine() -> StaticLine"""
741 val
= _controls
.new_PreStaticLine(*args
, **kwargs
)
745 def StaticLine_GetDefaultSize(*args
, **kwargs
):
746 """StaticLine_GetDefaultSize() -> int"""
747 return _controls
.StaticLine_GetDefaultSize(*args
, **kwargs
)
749 #---------------------------------------------------------------------------
751 class StaticText(core
.Control
):
753 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
754 def __init__(self
, *args
, **kwargs
):
756 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
757 Size size=DefaultSize, long style=0,
758 String name=StaticTextNameStr) -> StaticText
760 newobj
= _controls
.new_StaticText(*args
, **kwargs
)
761 self
.this
= newobj
.this
764 self
._setOORInfo
(self
)
766 def Create(*args
, **kwargs
):
768 Create(Window parent, int id, String label, Point pos=DefaultPosition,
769 Size size=DefaultSize, long style=0,
770 String name=StaticTextNameStr) -> bool
772 return _controls
.StaticText_Create(*args
, **kwargs
)
775 class StaticTextPtr(StaticText
):
776 def __init__(self
, this
):
778 if not hasattr(self
,"thisown"): self
.thisown
= 0
779 self
.__class
__ = StaticText
780 _controls
.StaticText_swigregister(StaticTextPtr
)
782 def PreStaticText(*args
, **kwargs
):
783 """PreStaticText() -> StaticText"""
784 val
= _controls
.new_PreStaticText(*args
, **kwargs
)
788 #---------------------------------------------------------------------------
790 class StaticBitmap(core
.Control
):
792 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
793 def __init__(self
, *args
, **kwargs
):
795 __init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
796 Size size=DefaultSize, long style=0,
797 String name=StaticBitmapNameStr) -> StaticBitmap
799 newobj
= _controls
.new_StaticBitmap(*args
, **kwargs
)
800 self
.this
= newobj
.this
803 self
._setOORInfo
(self
)
805 def Create(*args
, **kwargs
):
807 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
808 Size size=DefaultSize, long style=0,
809 String name=StaticBitmapNameStr) -> bool
811 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
813 def GetBitmap(*args
, **kwargs
):
814 """GetBitmap() -> Bitmap"""
815 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
817 def SetBitmap(*args
, **kwargs
):
818 """SetBitmap(Bitmap bitmap)"""
819 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
821 def SetIcon(*args
, **kwargs
):
822 """SetIcon(Icon icon)"""
823 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
826 class StaticBitmapPtr(StaticBitmap
):
827 def __init__(self
, this
):
829 if not hasattr(self
,"thisown"): self
.thisown
= 0
830 self
.__class
__ = StaticBitmap
831 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
833 def PreStaticBitmap(*args
, **kwargs
):
834 """PreStaticBitmap() -> StaticBitmap"""
835 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
839 #---------------------------------------------------------------------------
841 class ListBox(core
.ControlWithItems
):
843 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
844 def __init__(self
, *args
, **kwargs
):
846 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
847 wxArrayString choices=wxPyEmptyStringArray,
848 long style=0, Validator validator=DefaultValidator,
849 String name=ListBoxNameStr) -> ListBox
851 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
852 self
.this
= newobj
.this
855 self
._setOORInfo
(self
)
857 def Create(*args
, **kwargs
):
859 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
860 wxArrayString choices=wxPyEmptyStringArray,
861 long style=0, Validator validator=DefaultValidator,
862 String name=ListBoxNameStr) -> bool
864 return _controls
.ListBox_Create(*args
, **kwargs
)
866 def Insert(*args
, **kwargs
):
868 Insert(String item, int pos, PyObject clientData=None)
870 Insert an item into the control before the item at the pos index,
871 optionally associating some data object with the item.
873 return _controls
.ListBox_Insert(*args
, **kwargs
)
875 def InsertItems(*args
, **kwargs
):
876 """InsertItems(wxArrayString items, int pos)"""
877 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
879 def Set(*args
, **kwargs
):
880 """Set(wxArrayString items)"""
881 return _controls
.ListBox_Set(*args
, **kwargs
)
883 def IsSelected(*args
, **kwargs
):
884 """IsSelected(int n) -> bool"""
885 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
887 def SetSelection(*args
, **kwargs
):
888 """SetSelection(int n, bool select=True)"""
889 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
891 def Select(*args
, **kwargs
):
895 Sets the item at index 'n' to be the selected item.
897 return _controls
.ListBox_Select(*args
, **kwargs
)
899 def Deselect(*args
, **kwargs
):
900 """Deselect(int n)"""
901 return _controls
.ListBox_Deselect(*args
, **kwargs
)
903 def DeselectAll(*args
, **kwargs
):
904 """DeselectAll(int itemToLeaveSelected=-1)"""
905 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
907 def SetStringSelection(*args
, **kwargs
):
908 """SetStringSelection(String s, bool select=True) -> bool"""
909 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
911 def GetSelections(*args
, **kwargs
):
912 """GetSelections() -> PyObject"""
913 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
915 def SetFirstItem(*args
, **kwargs
):
916 """SetFirstItem(int n)"""
917 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
919 def SetFirstItemStr(*args
, **kwargs
):
920 """SetFirstItemStr(String s)"""
921 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
923 def EnsureVisible(*args
, **kwargs
):
924 """EnsureVisible(int n)"""
925 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
927 def AppendAndEnsureVisible(*args
, **kwargs
):
928 """AppendAndEnsureVisible(String s)"""
929 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
931 def IsSorted(*args
, **kwargs
):
932 """IsSorted() -> bool"""
933 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
935 def SetItemForegroundColour(*args
, **kwargs
):
936 """SetItemForegroundColour(int item, Colour c)"""
937 return _controls
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
939 def SetItemBackgroundColour(*args
, **kwargs
):
940 """SetItemBackgroundColour(int item, Colour c)"""
941 return _controls
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
943 def SetItemFont(*args
, **kwargs
):
944 """SetItemFont(int item, Font f)"""
945 return _controls
.ListBox_SetItemFont(*args
, **kwargs
)
948 class ListBoxPtr(ListBox
):
949 def __init__(self
, this
):
951 if not hasattr(self
,"thisown"): self
.thisown
= 0
952 self
.__class
__ = ListBox
953 _controls
.ListBox_swigregister(ListBoxPtr
)
954 ListBoxNameStr
= cvar
.ListBoxNameStr
956 def PreListBox(*args
, **kwargs
):
957 """PreListBox() -> ListBox"""
958 val
= _controls
.new_PreListBox(*args
, **kwargs
)
962 #---------------------------------------------------------------------------
964 class CheckListBox(ListBox
):
966 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
967 def __init__(self
, *args
, **kwargs
):
969 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
970 wxArrayString choices=wxPyEmptyStringArray,
971 long style=0, Validator validator=DefaultValidator,
972 String name=ListBoxNameStr) -> CheckListBox
974 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
975 self
.this
= newobj
.this
978 self
._setOORInfo
(self
)
980 def Create(*args
, **kwargs
):
982 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
983 wxArrayString choices=wxPyEmptyStringArray,
984 long style=0, Validator validator=DefaultValidator,
985 String name=ListBoxNameStr) -> bool
987 return _controls
.CheckListBox_Create(*args
, **kwargs
)
989 def IsChecked(*args
, **kwargs
):
990 """IsChecked(int index) -> bool"""
991 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
993 def Check(*args
, **kwargs
):
994 """Check(int index, int check=True)"""
995 return _controls
.CheckListBox_Check(*args
, **kwargs
)
997 def GetItemHeight(*args
, **kwargs
):
998 """GetItemHeight() -> int"""
999 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1001 def HitTest(*args
, **kwargs
):
1003 HitTest(Point pt) -> int
1005 Test where the given (in client coords) point lies
1007 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
1009 def HitTestXY(*args
, **kwargs
):
1011 HitTestXY(int x, int y) -> int
1013 Test where the given (in client coords) point lies
1015 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
1018 class CheckListBoxPtr(CheckListBox
):
1019 def __init__(self
, this
):
1021 if not hasattr(self
,"thisown"): self
.thisown
= 0
1022 self
.__class
__ = CheckListBox
1023 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
1025 def PreCheckListBox(*args
, **kwargs
):
1026 """PreCheckListBox() -> CheckListBox"""
1027 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
1031 #---------------------------------------------------------------------------
1033 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
1034 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
1035 TE_READONLY
= _controls
.TE_READONLY
1036 TE_MULTILINE
= _controls
.TE_MULTILINE
1037 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
1038 TE_LEFT
= _controls
.TE_LEFT
1039 TE_CENTER
= _controls
.TE_CENTER
1040 TE_RIGHT
= _controls
.TE_RIGHT
1041 TE_CENTRE
= _controls
.TE_CENTRE
1042 TE_RICH
= _controls
.TE_RICH
1043 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
1044 TE_PASSWORD
= _controls
.TE_PASSWORD
1045 TE_AUTO_URL
= _controls
.TE_AUTO_URL
1046 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
1047 TE_DONTWRAP
= _controls
.TE_DONTWRAP
1048 TE_LINEWRAP
= _controls
.TE_LINEWRAP
1049 TE_WORDWRAP
= _controls
.TE_WORDWRAP
1050 TE_RICH2
= _controls
.TE_RICH2
1051 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
1052 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
1053 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
1054 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
1055 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
1056 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
1057 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
1058 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
1059 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
1060 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
1061 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
1062 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
1063 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
1064 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
1065 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
1066 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
1067 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
1068 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
1069 TE_HT_UNKNOWN
= _controls
.TE_HT_UNKNOWN
1070 TE_HT_BEFORE
= _controls
.TE_HT_BEFORE
1071 TE_HT_ON_TEXT
= _controls
.TE_HT_ON_TEXT
1072 TE_HT_BELOW
= _controls
.TE_HT_BELOW
1073 TE_HT_BEYOND
= _controls
.TE_HT_BEYOND
1074 class TextAttr(object):
1076 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1077 def __init__(self
, *args
):
1079 __init__() -> TextAttr
1080 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1081 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1083 newobj
= _controls
.new_TextAttr(*args
)
1084 self
.this
= newobj
.this
1087 def __del__(self
, destroy
=_controls
.delete_TextAttr
):
1090 if self
.thisown
: destroy(self
)
1093 def Init(*args
, **kwargs
):
1095 return _controls
.TextAttr_Init(*args
, **kwargs
)
1097 def SetTextColour(*args
, **kwargs
):
1098 """SetTextColour(Colour colText)"""
1099 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
1101 def SetBackgroundColour(*args
, **kwargs
):
1102 """SetBackgroundColour(Colour colBack)"""
1103 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1105 def SetFont(*args
, **kwargs
):
1106 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
1107 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
1109 def SetAlignment(*args
, **kwargs
):
1110 """SetAlignment(int alignment)"""
1111 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
1113 def SetTabs(*args
, **kwargs
):
1114 """SetTabs(wxArrayInt tabs)"""
1115 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
1117 def SetLeftIndent(*args
, **kwargs
):
1118 """SetLeftIndent(int indent)"""
1119 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1121 def SetRightIndent(*args
, **kwargs
):
1122 """SetRightIndent(int indent)"""
1123 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
1125 def SetFlags(*args
, **kwargs
):
1126 """SetFlags(long flags)"""
1127 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
1129 def HasTextColour(*args
, **kwargs
):
1130 """HasTextColour() -> bool"""
1131 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
1133 def HasBackgroundColour(*args
, **kwargs
):
1134 """HasBackgroundColour() -> bool"""
1135 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1137 def HasFont(*args
, **kwargs
):
1138 """HasFont() -> bool"""
1139 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
1141 def HasAlignment(*args
, **kwargs
):
1142 """HasAlignment() -> bool"""
1143 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
1145 def HasTabs(*args
, **kwargs
):
1146 """HasTabs() -> bool"""
1147 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
1149 def HasLeftIndent(*args
, **kwargs
):
1150 """HasLeftIndent() -> bool"""
1151 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1153 def HasRightIndent(*args
, **kwargs
):
1154 """HasRightIndent() -> bool"""
1155 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
1157 def HasFlag(*args
, **kwargs
):
1158 """HasFlag(long flag) -> bool"""
1159 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
1161 def GetTextColour(*args
, **kwargs
):
1162 """GetTextColour() -> Colour"""
1163 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
1165 def GetBackgroundColour(*args
, **kwargs
):
1166 """GetBackgroundColour() -> Colour"""
1167 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1169 def GetFont(*args
, **kwargs
):
1170 """GetFont() -> Font"""
1171 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1173 def GetAlignment(*args
, **kwargs
):
1174 """GetAlignment() -> int"""
1175 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1177 def GetTabs(*args
, **kwargs
):
1178 """GetTabs() -> wxArrayInt"""
1179 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1181 def GetLeftIndent(*args
, **kwargs
):
1182 """GetLeftIndent() -> long"""
1183 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1185 def GetRightIndent(*args
, **kwargs
):
1186 """GetRightIndent() -> long"""
1187 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1189 def GetFlags(*args
, **kwargs
):
1190 """GetFlags() -> long"""
1191 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1193 def IsDefault(*args
, **kwargs
):
1194 """IsDefault() -> bool"""
1195 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1197 def Combine(*args
, **kwargs
):
1198 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1199 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1201 Combine
= staticmethod(Combine
)
1203 class TextAttrPtr(TextAttr
):
1204 def __init__(self
, this
):
1206 if not hasattr(self
,"thisown"): self
.thisown
= 0
1207 self
.__class
__ = TextAttr
1208 _controls
.TextAttr_swigregister(TextAttrPtr
)
1209 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1211 def TextAttr_Combine(*args
, **kwargs
):
1212 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1213 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1215 class TextCtrl(core
.Control
):
1217 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1218 def __init__(self
, *args
, **kwargs
):
1220 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1221 Size size=DefaultSize,
1222 long style=0, Validator validator=DefaultValidator,
1223 String name=TextCtrlNameStr) -> TextCtrl
1225 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1226 self
.this
= newobj
.this
1229 self
._setOORInfo
(self
)
1231 def Create(*args
, **kwargs
):
1233 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1234 Size size=DefaultSize,
1235 long style=0, Validator validator=DefaultValidator,
1236 String name=TextCtrlNameStr) -> bool
1238 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1240 def GetValue(*args
, **kwargs
):
1241 """GetValue() -> String"""
1242 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1244 def SetValue(*args
, **kwargs
):
1245 """SetValue(String value)"""
1246 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1248 def GetRange(*args
, **kwargs
):
1249 """GetRange(long from, long to) -> String"""
1250 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1252 def GetLineLength(*args
, **kwargs
):
1253 """GetLineLength(long lineNo) -> int"""
1254 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1256 def GetLineText(*args
, **kwargs
):
1257 """GetLineText(long lineNo) -> String"""
1258 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1260 def GetNumberOfLines(*args
, **kwargs
):
1261 """GetNumberOfLines() -> int"""
1262 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1264 def IsModified(*args
, **kwargs
):
1265 """IsModified() -> bool"""
1266 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1268 def IsEditable(*args
, **kwargs
):
1269 """IsEditable() -> bool"""
1270 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1272 def IsSingleLine(*args
, **kwargs
):
1273 """IsSingleLine() -> bool"""
1274 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1276 def IsMultiLine(*args
, **kwargs
):
1277 """IsMultiLine() -> bool"""
1278 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1280 def GetSelection(*args
, **kwargs
):
1282 GetSelection() -> (from, to)
1284 If the return values from and to are the same, there is no selection.
1286 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1288 def GetStringSelection(*args
, **kwargs
):
1289 """GetStringSelection() -> String"""
1290 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1292 def Clear(*args
, **kwargs
):
1294 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1296 def Replace(*args
, **kwargs
):
1297 """Replace(long from, long to, String value)"""
1298 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1300 def Remove(*args
, **kwargs
):
1301 """Remove(long from, long to)"""
1302 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1304 def LoadFile(*args
, **kwargs
):
1305 """LoadFile(String file) -> bool"""
1306 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1308 def SaveFile(*args
, **kwargs
):
1309 """SaveFile(String file=EmptyString) -> bool"""
1310 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1312 def MarkDirty(*args
, **kwargs
):
1314 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1316 def DiscardEdits(*args
, **kwargs
):
1317 """DiscardEdits()"""
1318 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1320 def SetMaxLength(*args
, **kwargs
):
1321 """SetMaxLength(unsigned long len)"""
1322 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1324 def WriteText(*args
, **kwargs
):
1325 """WriteText(String text)"""
1326 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1328 def AppendText(*args
, **kwargs
):
1329 """AppendText(String text)"""
1330 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1332 def EmulateKeyPress(*args
, **kwargs
):
1333 """EmulateKeyPress(KeyEvent event) -> bool"""
1334 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1336 def SetStyle(*args
, **kwargs
):
1337 """SetStyle(long start, long end, TextAttr style) -> bool"""
1338 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1340 def GetStyle(*args
, **kwargs
):
1341 """GetStyle(long position, TextAttr style) -> bool"""
1342 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1344 def SetDefaultStyle(*args
, **kwargs
):
1345 """SetDefaultStyle(TextAttr style) -> bool"""
1346 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1348 def GetDefaultStyle(*args
, **kwargs
):
1349 """GetDefaultStyle() -> TextAttr"""
1350 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1352 def XYToPosition(*args
, **kwargs
):
1353 """XYToPosition(long x, long y) -> long"""
1354 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1356 def PositionToXY(*args
, **kwargs
):
1357 """PositionToXY(long pos) -> (x, y)"""
1358 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1360 def ShowPosition(*args
, **kwargs
):
1361 """ShowPosition(long pos)"""
1362 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1364 def HitTest(*args
, **kwargs
):
1366 HitTest(Point pt) -> (result, row, col)
1368 Find the character at position given in pixels.
1369 NB: pt is in device coords (not adjusted for the client area
1370 origin nor scrolling)
1372 return _controls
.TextCtrl_HitTest(*args
, **kwargs
)
1374 def Copy(*args
, **kwargs
):
1376 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1378 def Cut(*args
, **kwargs
):
1380 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1382 def Paste(*args
, **kwargs
):
1384 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1386 def CanCopy(*args
, **kwargs
):
1387 """CanCopy() -> bool"""
1388 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1390 def CanCut(*args
, **kwargs
):
1391 """CanCut() -> bool"""
1392 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1394 def CanPaste(*args
, **kwargs
):
1395 """CanPaste() -> bool"""
1396 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1398 def Undo(*args
, **kwargs
):
1400 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1402 def Redo(*args
, **kwargs
):
1404 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1406 def CanUndo(*args
, **kwargs
):
1407 """CanUndo() -> bool"""
1408 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1410 def CanRedo(*args
, **kwargs
):
1411 """CanRedo() -> bool"""
1412 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1414 def SetInsertionPoint(*args
, **kwargs
):
1415 """SetInsertionPoint(long pos)"""
1416 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1418 def SetInsertionPointEnd(*args
, **kwargs
):
1419 """SetInsertionPointEnd()"""
1420 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1422 def GetInsertionPoint(*args
, **kwargs
):
1423 """GetInsertionPoint() -> long"""
1424 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1426 def GetLastPosition(*args
, **kwargs
):
1427 """GetLastPosition() -> long"""
1428 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1430 def SetSelection(*args
, **kwargs
):
1431 """SetSelection(long from, long to)"""
1432 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1434 def SelectAll(*args
, **kwargs
):
1436 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1438 def SetEditable(*args
, **kwargs
):
1439 """SetEditable(bool editable)"""
1440 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1442 def ShowNativeCaret(*args
, **kwargs
):
1443 """ShowNativeCaret(bool show=True) -> bool"""
1444 return _controls
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1446 def HideNativeCaret(*args
, **kwargs
):
1447 """HideNativeCaret() -> bool"""
1448 return _controls
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1450 def write(*args
, **kwargs
):
1451 """write(String text)"""
1452 return _controls
.TextCtrl_write(*args
, **kwargs
)
1454 def GetString(*args
, **kwargs
):
1455 """GetString(long from, long to) -> String"""
1456 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1459 class TextCtrlPtr(TextCtrl
):
1460 def __init__(self
, this
):
1462 if not hasattr(self
,"thisown"): self
.thisown
= 0
1463 self
.__class
__ = TextCtrl
1464 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1466 def PreTextCtrl(*args
, **kwargs
):
1467 """PreTextCtrl() -> TextCtrl"""
1468 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1472 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1473 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1474 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1475 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1476 class TextUrlEvent(core
.CommandEvent
):
1478 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1479 def __init__(self
, *args
, **kwargs
):
1480 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1481 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1482 self
.this
= newobj
.this
1485 def GetMouseEvent(*args
, **kwargs
):
1486 """GetMouseEvent() -> MouseEvent"""
1487 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1489 def GetURLStart(*args
, **kwargs
):
1490 """GetURLStart() -> long"""
1491 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1493 def GetURLEnd(*args
, **kwargs
):
1494 """GetURLEnd() -> long"""
1495 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1498 class TextUrlEventPtr(TextUrlEvent
):
1499 def __init__(self
, this
):
1501 if not hasattr(self
,"thisown"): self
.thisown
= 0
1502 self
.__class
__ = TextUrlEvent
1503 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1505 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1506 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1507 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1508 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1510 #---------------------------------------------------------------------------
1512 class ScrollBar(core
.Control
):
1514 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1515 def __init__(self
, *args
, **kwargs
):
1517 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1518 Size size=DefaultSize, long style=SB_HORIZONTAL,
1519 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1521 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1522 self
.this
= newobj
.this
1525 self
._setOORInfo
(self
)
1527 def Create(*args
, **kwargs
):
1529 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1530 Size size=DefaultSize, long style=SB_HORIZONTAL,
1531 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1533 Do the 2nd phase and create the GUI control.
1535 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1537 def GetThumbPosition(*args
, **kwargs
):
1538 """GetThumbPosition() -> int"""
1539 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1541 def GetThumbSize(*args
, **kwargs
):
1542 """GetThumbSize() -> int"""
1543 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1545 GetThumbLength
= GetThumbSize
1546 def GetPageSize(*args
, **kwargs
):
1547 """GetPageSize() -> int"""
1548 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1550 def GetRange(*args
, **kwargs
):
1551 """GetRange() -> int"""
1552 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1554 def IsVertical(*args
, **kwargs
):
1555 """IsVertical() -> bool"""
1556 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1558 def SetThumbPosition(*args
, **kwargs
):
1559 """SetThumbPosition(int viewStart)"""
1560 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1562 def SetScrollbar(*args
, **kwargs
):
1564 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1567 Sets the scrollbar properties of a built-in scrollbar.
1569 orientation: Determines the scrollbar whose page size is to be
1570 set. May be wx.HORIZONTAL or wx.VERTICAL.
1572 position: The position of the scrollbar in scroll units.
1574 thumbSize: The size of the thumb, or visible portion of the
1575 scrollbar, in scroll units.
1577 range: The maximum position of the scrollbar.
1579 refresh: True to redraw the scrollbar, false otherwise.
1581 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1584 class ScrollBarPtr(ScrollBar
):
1585 def __init__(self
, this
):
1587 if not hasattr(self
,"thisown"): self
.thisown
= 0
1588 self
.__class
__ = ScrollBar
1589 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1590 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1592 def PreScrollBar(*args
, **kwargs
):
1593 """PreScrollBar() -> ScrollBar"""
1594 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1598 #---------------------------------------------------------------------------
1600 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1601 SP_VERTICAL
= _controls
.SP_VERTICAL
1602 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1603 SP_WRAP
= _controls
.SP_WRAP
1604 class SpinButton(core
.Control
):
1606 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1607 def __init__(self
, *args
, **kwargs
):
1609 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1610 Size size=DefaultSize, long style=SP_HORIZONTAL,
1611 String name=SPIN_BUTTON_NAME) -> SpinButton
1613 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1614 self
.this
= newobj
.this
1617 self
._setOORInfo
(self
)
1619 def Create(*args
, **kwargs
):
1621 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1622 Size size=DefaultSize, long style=SP_HORIZONTAL,
1623 String name=SPIN_BUTTON_NAME) -> bool
1625 return _controls
.SpinButton_Create(*args
, **kwargs
)
1627 def GetValue(*args
, **kwargs
):
1628 """GetValue() -> int"""
1629 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1631 def GetMin(*args
, **kwargs
):
1632 """GetMin() -> int"""
1633 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1635 def GetMax(*args
, **kwargs
):
1636 """GetMax() -> int"""
1637 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1639 def SetValue(*args
, **kwargs
):
1640 """SetValue(int val)"""
1641 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1643 def SetMin(*args
, **kwargs
):
1644 """SetMin(int minVal)"""
1645 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1647 def SetMax(*args
, **kwargs
):
1648 """SetMax(int maxVal)"""
1649 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1651 def SetRange(*args
, **kwargs
):
1652 """SetRange(int minVal, int maxVal)"""
1653 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1655 def IsVertical(*args
, **kwargs
):
1656 """IsVertical() -> bool"""
1657 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1660 class SpinButtonPtr(SpinButton
):
1661 def __init__(self
, this
):
1663 if not hasattr(self
,"thisown"): self
.thisown
= 0
1664 self
.__class
__ = SpinButton
1665 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1666 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1667 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1669 def PreSpinButton(*args
, **kwargs
):
1670 """PreSpinButton() -> SpinButton"""
1671 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1675 class SpinCtrl(core
.Control
):
1677 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1678 def __init__(self
, *args
, **kwargs
):
1680 __init__(Window parent, int id=-1, String value=EmptyString,
1681 Point pos=DefaultPosition, Size size=DefaultSize,
1682 long style=SP_ARROW_KEYS, int min=0, int max=100,
1683 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1685 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1686 self
.this
= newobj
.this
1689 self
._setOORInfo
(self
)
1691 def Create(*args
, **kwargs
):
1693 Create(Window parent, int id=-1, String value=EmptyString,
1694 Point pos=DefaultPosition, Size size=DefaultSize,
1695 long style=SP_ARROW_KEYS, int min=0, int max=100,
1696 int initial=0, String name=SpinCtrlNameStr) -> bool
1698 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1700 def GetValue(*args
, **kwargs
):
1701 """GetValue() -> int"""
1702 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1704 def SetValue(*args
, **kwargs
):
1705 """SetValue(int value)"""
1706 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1708 def SetValueString(*args
, **kwargs
):
1709 """SetValueString(String text)"""
1710 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1712 def SetRange(*args
, **kwargs
):
1713 """SetRange(int minVal, int maxVal)"""
1714 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1716 def GetMin(*args
, **kwargs
):
1717 """GetMin() -> int"""
1718 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1720 def GetMax(*args
, **kwargs
):
1721 """GetMax() -> int"""
1722 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1724 def SetSelection(*args
, **kwargs
):
1725 """SetSelection(long from, long to)"""
1726 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1729 class SpinCtrlPtr(SpinCtrl
):
1730 def __init__(self
, this
):
1732 if not hasattr(self
,"thisown"): self
.thisown
= 0
1733 self
.__class
__ = SpinCtrl
1734 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1736 def PreSpinCtrl(*args
, **kwargs
):
1737 """PreSpinCtrl() -> SpinCtrl"""
1738 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1742 class SpinEvent(core
.NotifyEvent
):
1744 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1745 def __init__(self
, *args
, **kwargs
):
1746 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1747 newobj
= _controls
.new_SpinEvent(*args
, **kwargs
)
1748 self
.this
= newobj
.this
1751 def GetPosition(*args
, **kwargs
):
1752 """GetPosition() -> int"""
1753 return _controls
.SpinEvent_GetPosition(*args
, **kwargs
)
1755 def SetPosition(*args
, **kwargs
):
1756 """SetPosition(int pos)"""
1757 return _controls
.SpinEvent_SetPosition(*args
, **kwargs
)
1760 class SpinEventPtr(SpinEvent
):
1761 def __init__(self
, this
):
1763 if not hasattr(self
,"thisown"): self
.thisown
= 0
1764 self
.__class
__ = SpinEvent
1765 _controls
.SpinEvent_swigregister(SpinEventPtr
)
1767 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1768 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1769 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1770 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1771 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1773 #---------------------------------------------------------------------------
1775 class RadioBox(core
.Control
):
1777 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1778 def __init__(self
, *args
, **kwargs
):
1780 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1781 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1782 int majorDimension=0,
1783 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1784 String name=RadioBoxNameStr) -> RadioBox
1786 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1787 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1788 self
.this
= newobj
.this
1791 self
._setOORInfo
(self
)
1793 def Create(*args
, **kwargs
):
1795 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1796 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1797 int majorDimension=0,
1798 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1799 String name=RadioBoxNameStr) -> bool
1801 return _controls
.RadioBox_Create(*args
, **kwargs
)
1803 def SetSelection(*args
, **kwargs
):
1804 """SetSelection(int n)"""
1805 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1807 def GetSelection(*args
, **kwargs
):
1808 """GetSelection() -> int"""
1809 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1811 def GetStringSelection(*args
, **kwargs
):
1812 """GetStringSelection() -> String"""
1813 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1815 def SetStringSelection(*args
, **kwargs
):
1816 """SetStringSelection(String s) -> bool"""
1817 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1819 def GetCount(*args
, **kwargs
):
1820 """GetCount() -> int"""
1821 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1823 def FindString(*args
, **kwargs
):
1824 """FindString(String s) -> int"""
1825 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1827 def GetString(*args
, **kwargs
):
1828 """GetString(int n) -> String"""
1829 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1831 def SetString(*args
, **kwargs
):
1832 """SetString(int n, String label)"""
1833 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1835 GetItemLabel
= GetString
1836 SetItemLabel
= SetString
1837 def EnableItem(*args
, **kwargs
):
1838 """EnableItem(int n, bool enable=True)"""
1839 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1841 def ShowItem(*args
, **kwargs
):
1842 """ShowItem(int n, bool show=True)"""
1843 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1845 def GetColumnCount(*args
, **kwargs
):
1846 """GetColumnCount() -> int"""
1847 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1849 def GetRowCount(*args
, **kwargs
):
1850 """GetRowCount() -> int"""
1851 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1853 def GetNextItem(*args
, **kwargs
):
1854 """GetNextItem(int item, int dir, long style) -> int"""
1855 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1858 class RadioBoxPtr(RadioBox
):
1859 def __init__(self
, this
):
1861 if not hasattr(self
,"thisown"): self
.thisown
= 0
1862 self
.__class
__ = RadioBox
1863 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1864 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1865 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1867 def PreRadioBox(*args
, **kwargs
):
1868 """PreRadioBox() -> RadioBox"""
1869 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1873 #---------------------------------------------------------------------------
1875 class RadioButton(core
.Control
):
1877 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1878 def __init__(self
, *args
, **kwargs
):
1880 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1881 Size size=DefaultSize, long style=0,
1882 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1884 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1885 self
.this
= newobj
.this
1888 self
._setOORInfo
(self
)
1890 def Create(*args
, **kwargs
):
1892 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1893 Size size=DefaultSize, long style=0,
1894 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1896 return _controls
.RadioButton_Create(*args
, **kwargs
)
1898 def GetValue(*args
, **kwargs
):
1899 """GetValue() -> bool"""
1900 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1902 def SetValue(*args
, **kwargs
):
1903 """SetValue(bool value)"""
1904 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1907 class RadioButtonPtr(RadioButton
):
1908 def __init__(self
, this
):
1910 if not hasattr(self
,"thisown"): self
.thisown
= 0
1911 self
.__class
__ = RadioButton
1912 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1914 def PreRadioButton(*args
, **kwargs
):
1915 """PreRadioButton() -> RadioButton"""
1916 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1920 #---------------------------------------------------------------------------
1922 class Slider(core
.Control
):
1924 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1925 def __init__(self
, *args
, **kwargs
):
1927 __init__(Window parent, int id, int value, int minValue, int maxValue,
1928 Point pos=DefaultPosition, Size size=DefaultSize,
1929 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1930 String name=SliderNameStr) -> Slider
1932 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1933 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1934 self
.this
= newobj
.this
1937 self
._setOORInfo
(self
)
1939 def Create(*args
, **kwargs
):
1941 Create(Window parent, int id, int value, int minValue, int maxValue,
1942 Point pos=DefaultPosition, Size size=DefaultSize,
1943 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1944 String name=SliderNameStr) -> bool
1946 return _controls
.Slider_Create(*args
, **kwargs
)
1948 def GetValue(*args
, **kwargs
):
1949 """GetValue() -> int"""
1950 return _controls
.Slider_GetValue(*args
, **kwargs
)
1952 def SetValue(*args
, **kwargs
):
1953 """SetValue(int value)"""
1954 return _controls
.Slider_SetValue(*args
, **kwargs
)
1956 def SetRange(*args
, **kwargs
):
1957 """SetRange(int minValue, int maxValue)"""
1958 return _controls
.Slider_SetRange(*args
, **kwargs
)
1960 def GetMin(*args
, **kwargs
):
1961 """GetMin() -> int"""
1962 return _controls
.Slider_GetMin(*args
, **kwargs
)
1964 def GetMax(*args
, **kwargs
):
1965 """GetMax() -> int"""
1966 return _controls
.Slider_GetMax(*args
, **kwargs
)
1968 def SetMin(*args
, **kwargs
):
1969 """SetMin(int minValue)"""
1970 return _controls
.Slider_SetMin(*args
, **kwargs
)
1972 def SetMax(*args
, **kwargs
):
1973 """SetMax(int maxValue)"""
1974 return _controls
.Slider_SetMax(*args
, **kwargs
)
1976 def SetLineSize(*args
, **kwargs
):
1977 """SetLineSize(int lineSize)"""
1978 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1980 def SetPageSize(*args
, **kwargs
):
1981 """SetPageSize(int pageSize)"""
1982 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1984 def GetLineSize(*args
, **kwargs
):
1985 """GetLineSize() -> int"""
1986 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1988 def GetPageSize(*args
, **kwargs
):
1989 """GetPageSize() -> int"""
1990 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1992 def SetThumbLength(*args
, **kwargs
):
1993 """SetThumbLength(int lenPixels)"""
1994 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1996 def GetThumbLength(*args
, **kwargs
):
1997 """GetThumbLength() -> int"""
1998 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
2000 def SetTickFreq(*args
, **kwargs
):
2001 """SetTickFreq(int n, int pos=1)"""
2002 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
2004 def GetTickFreq(*args
, **kwargs
):
2005 """GetTickFreq() -> int"""
2006 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
2008 def ClearTicks(*args
, **kwargs
):
2010 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
2012 def SetTick(*args
, **kwargs
):
2013 """SetTick(int tickPos)"""
2014 return _controls
.Slider_SetTick(*args
, **kwargs
)
2016 def ClearSel(*args
, **kwargs
):
2018 return _controls
.Slider_ClearSel(*args
, **kwargs
)
2020 def GetSelEnd(*args
, **kwargs
):
2021 """GetSelEnd() -> int"""
2022 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
2024 def GetSelStart(*args
, **kwargs
):
2025 """GetSelStart() -> int"""
2026 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
2028 def SetSelection(*args
, **kwargs
):
2029 """SetSelection(int min, int max)"""
2030 return _controls
.Slider_SetSelection(*args
, **kwargs
)
2033 class SliderPtr(Slider
):
2034 def __init__(self
, this
):
2036 if not hasattr(self
,"thisown"): self
.thisown
= 0
2037 self
.__class
__ = Slider
2038 _controls
.Slider_swigregister(SliderPtr
)
2039 SliderNameStr
= cvar
.SliderNameStr
2041 def PreSlider(*args
, **kwargs
):
2042 """PreSlider() -> Slider"""
2043 val
= _controls
.new_PreSlider(*args
, **kwargs
)
2047 #---------------------------------------------------------------------------
2049 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2050 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2052 class ToggleButton(core
.Control
):
2054 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2055 def __init__(self
, *args
, **kwargs
):
2057 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
2058 Size size=DefaultSize, long style=0,
2059 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2061 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
2062 self
.this
= newobj
.this
2065 self
._setOORInfo
(self
)
2067 def Create(*args
, **kwargs
):
2069 Create(Window parent, int id, String label, Point pos=DefaultPosition,
2070 Size size=DefaultSize, long style=0,
2071 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
2073 return _controls
.ToggleButton_Create(*args
, **kwargs
)
2075 def SetValue(*args
, **kwargs
):
2076 """SetValue(bool value)"""
2077 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
2079 def GetValue(*args
, **kwargs
):
2080 """GetValue() -> bool"""
2081 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
2083 def SetLabel(*args
, **kwargs
):
2085 SetLabel(String label)
2087 Sets the item's text.
2089 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
2092 class ToggleButtonPtr(ToggleButton
):
2093 def __init__(self
, this
):
2095 if not hasattr(self
,"thisown"): self
.thisown
= 0
2096 self
.__class
__ = ToggleButton
2097 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
2098 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2100 def PreToggleButton(*args
, **kwargs
):
2101 """PreToggleButton() -> ToggleButton"""
2102 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
2106 #---------------------------------------------------------------------------
2108 class BookCtrl(core
.Control
):
2109 def __init__(self
): raise RuntimeError, "No constructor defined"
2111 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2112 def GetPageCount(*args
, **kwargs
):
2113 """GetPageCount() -> size_t"""
2114 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
2116 def GetPage(*args
, **kwargs
):
2117 """GetPage(size_t n) -> Window"""
2118 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
2120 def GetSelection(*args
, **kwargs
):
2121 """GetSelection() -> int"""
2122 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
2124 def SetPageText(*args
, **kwargs
):
2125 """SetPageText(size_t n, String strText) -> bool"""
2126 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
2128 def GetPageText(*args
, **kwargs
):
2129 """GetPageText(size_t n) -> String"""
2130 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
2132 def SetImageList(*args
, **kwargs
):
2133 """SetImageList(ImageList imageList)"""
2134 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
2136 def AssignImageList(*args
, **kwargs
):
2137 """AssignImageList(ImageList imageList)"""
2138 return _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
2140 def GetImageList(*args
, **kwargs
):
2141 """GetImageList() -> ImageList"""
2142 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
2144 def GetPageImage(*args
, **kwargs
):
2145 """GetPageImage(size_t n) -> int"""
2146 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
2148 def SetPageImage(*args
, **kwargs
):
2149 """SetPageImage(size_t n, int imageId) -> bool"""
2150 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
2152 def SetPageSize(*args
, **kwargs
):
2153 """SetPageSize(Size size)"""
2154 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
2156 def CalcSizeFromPage(*args
, **kwargs
):
2157 """CalcSizeFromPage(Size sizePage) -> Size"""
2158 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2160 def DeletePage(*args
, **kwargs
):
2161 """DeletePage(size_t n) -> bool"""
2162 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
2164 def RemovePage(*args
, **kwargs
):
2165 """RemovePage(size_t n) -> bool"""
2166 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
2168 def DeleteAllPages(*args
, **kwargs
):
2169 """DeleteAllPages() -> bool"""
2170 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2172 def AddPage(*args
, **kwargs
):
2173 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
2174 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
2176 def InsertPage(*args
, **kwargs
):
2178 InsertPage(size_t n, Window page, String text, bool select=False,
2179 int imageId=-1) -> bool
2181 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
2183 def SetSelection(*args
, **kwargs
):
2184 """SetSelection(size_t n) -> int"""
2185 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
2187 def AdvanceSelection(*args
, **kwargs
):
2188 """AdvanceSelection(bool forward=True)"""
2189 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2192 class BookCtrlPtr(BookCtrl
):
2193 def __init__(self
, this
):
2195 if not hasattr(self
,"thisown"): self
.thisown
= 0
2196 self
.__class
__ = BookCtrl
2197 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
2198 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2200 class BookCtrlEvent(core
.NotifyEvent
):
2202 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2203 def __init__(self
, *args
, **kwargs
):
2205 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2206 int nOldSel=-1) -> BookCtrlEvent
2208 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
2209 self
.this
= newobj
.this
2212 def GetSelection(*args
, **kwargs
):
2213 """GetSelection() -> int"""
2214 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2216 def SetSelection(*args
, **kwargs
):
2217 """SetSelection(int nSel)"""
2218 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2220 def GetOldSelection(*args
, **kwargs
):
2221 """GetOldSelection() -> int"""
2222 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2224 def SetOldSelection(*args
, **kwargs
):
2225 """SetOldSelection(int nOldSel)"""
2226 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2229 class BookCtrlEventPtr(BookCtrlEvent
):
2230 def __init__(self
, this
):
2232 if not hasattr(self
,"thisown"): self
.thisown
= 0
2233 self
.__class
__ = BookCtrlEvent
2234 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2236 #---------------------------------------------------------------------------
2238 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2239 NB_TOP
= _controls
.NB_TOP
2240 NB_LEFT
= _controls
.NB_LEFT
2241 NB_RIGHT
= _controls
.NB_RIGHT
2242 NB_BOTTOM
= _controls
.NB_BOTTOM
2243 NB_MULTILINE
= _controls
.NB_MULTILINE
2244 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2245 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2246 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2247 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2248 class Notebook(BookCtrl
):
2250 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2251 def __init__(self
, *args
, **kwargs
):
2253 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
2254 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2256 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2257 self
.this
= newobj
.this
2260 self
._setOORInfo
(self
)
2262 def Create(*args
, **kwargs
):
2264 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2265 long style=0, String name=NOTEBOOK_NAME) -> bool
2267 return _controls
.Notebook_Create(*args
, **kwargs
)
2269 def GetRowCount(*args
, **kwargs
):
2270 """GetRowCount() -> int"""
2271 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2273 def SetPadding(*args
, **kwargs
):
2274 """SetPadding(Size padding)"""
2275 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2277 def SetTabSize(*args
, **kwargs
):
2278 """SetTabSize(Size sz)"""
2279 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2281 def HitTest(*args
, **kwargs
):
2283 HitTest(Point pt) -> (tab, where)
2285 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2287 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2289 def CalcSizeFromPage(*args
, **kwargs
):
2290 """CalcSizeFromPage(Size sizePage) -> Size"""
2291 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2293 def ApplyThemeBackground(*args
, **kwargs
):
2294 """ApplyThemeBackground(Window window, Colour colour)"""
2295 return _controls
.Notebook_ApplyThemeBackground(*args
, **kwargs
)
2298 class NotebookPtr(Notebook
):
2299 def __init__(self
, this
):
2301 if not hasattr(self
,"thisown"): self
.thisown
= 0
2302 self
.__class
__ = Notebook
2303 _controls
.Notebook_swigregister(NotebookPtr
)
2305 def PreNotebook(*args
, **kwargs
):
2306 """PreNotebook() -> Notebook"""
2307 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2311 class NotebookEvent(BookCtrlEvent
):
2313 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2314 def __init__(self
, *args
, **kwargs
):
2316 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2317 int nOldSel=-1) -> NotebookEvent
2319 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2320 self
.this
= newobj
.this
2324 class NotebookEventPtr(NotebookEvent
):
2325 def __init__(self
, this
):
2327 if not hasattr(self
,"thisown"): self
.thisown
= 0
2328 self
.__class
__ = NotebookEvent
2329 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2331 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2332 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2334 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2335 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2337 #----------------------------------------------------------------------------
2339 class NotebookPage(wx
.Panel
):
2341 There is an old (and apparently unsolvable) bug when placing a
2342 window with a nonstandard background colour in a wxNotebook on
2343 wxGTK, as the notbooks's background colour would always be used
2344 when the window is refreshed. The solution is to place a panel in
2345 the notbook and the coloured window on the panel, sized to cover
2346 the panel. This simple class does that for you, just put an
2347 instance of this in the notebook and make your regular window a
2348 child of this one and it will handle the resize for you.
2350 def __init__(self
, parent
, id=-1,
2351 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2352 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2353 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2355 EVT_SIZE(self
, self
.OnSize
)
2357 def OnSize(self
, evt
):
2358 if self
.child
is None:
2359 children
= self
.GetChildren()
2361 self
.child
= children
[0]
2363 self
.child
.SetPosition((0,0))
2364 self
.child
.SetSize(self
.GetSize())
2367 #---------------------------------------------------------------------------
2369 LB_DEFAULT
= _controls
.LB_DEFAULT
2370 LB_TOP
= _controls
.LB_TOP
2371 LB_BOTTOM
= _controls
.LB_BOTTOM
2372 LB_LEFT
= _controls
.LB_LEFT
2373 LB_RIGHT
= _controls
.LB_RIGHT
2374 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2375 class Listbook(BookCtrl
):
2377 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2378 def __init__(self
, *args
, **kwargs
):
2380 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
2381 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
2383 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2384 self
.this
= newobj
.this
2387 self
._setOORInfo
(self
)
2389 def Create(*args
, **kwargs
):
2391 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2392 long style=0, String name=EmptyString) -> bool
2394 return _controls
.Listbook_Create(*args
, **kwargs
)
2396 def IsVertical(*args
, **kwargs
):
2397 """IsVertical() -> bool"""
2398 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2401 class ListbookPtr(Listbook
):
2402 def __init__(self
, this
):
2404 if not hasattr(self
,"thisown"): self
.thisown
= 0
2405 self
.__class
__ = Listbook
2406 _controls
.Listbook_swigregister(ListbookPtr
)
2408 def PreListbook(*args
, **kwargs
):
2409 """PreListbook() -> Listbook"""
2410 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2414 class ListbookEvent(BookCtrlEvent
):
2416 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2417 def __init__(self
, *args
, **kwargs
):
2419 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2420 int nOldSel=-1) -> ListbookEvent
2422 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2423 self
.this
= newobj
.this
2427 class ListbookEventPtr(ListbookEvent
):
2428 def __init__(self
, this
):
2430 if not hasattr(self
,"thisown"): self
.thisown
= 0
2431 self
.__class
__ = ListbookEvent
2432 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2434 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2435 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2436 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2437 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2439 #---------------------------------------------------------------------------
2441 class BookCtrlSizer(core
.Sizer
):
2443 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2444 def __init__(self
, *args
, **kwargs
):
2445 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2446 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2447 self
.this
= newobj
.this
2450 self
._setOORInfo
(self
)
2452 def RecalcSizes(*args
, **kwargs
):
2454 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2456 def CalcMin(*args
, **kwargs
):
2457 """CalcMin() -> Size"""
2458 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2460 def GetControl(*args
, **kwargs
):
2461 """GetControl() -> BookCtrl"""
2462 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2465 class BookCtrlSizerPtr(BookCtrlSizer
):
2466 def __init__(self
, this
):
2468 if not hasattr(self
,"thisown"): self
.thisown
= 0
2469 self
.__class
__ = BookCtrlSizer
2470 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2472 class NotebookSizer(core
.Sizer
):
2474 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2475 def __init__(self
, *args
, **kwargs
):
2476 """__init__(Notebook nb) -> NotebookSizer"""
2477 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2478 self
.this
= newobj
.this
2481 self
._setOORInfo
(self
)
2483 def RecalcSizes(*args
, **kwargs
):
2485 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2487 def CalcMin(*args
, **kwargs
):
2488 """CalcMin() -> Size"""
2489 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2491 def GetNotebook(*args
, **kwargs
):
2492 """GetNotebook() -> Notebook"""
2493 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2496 class NotebookSizerPtr(NotebookSizer
):
2497 def __init__(self
, this
):
2499 if not hasattr(self
,"thisown"): self
.thisown
= 0
2500 self
.__class
__ = NotebookSizer
2501 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2503 #---------------------------------------------------------------------------
2505 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2506 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2507 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2508 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2509 TB_VERTICAL
= _controls
.TB_VERTICAL
2510 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2511 TB_FLAT
= _controls
.TB_FLAT
2512 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2513 TB_NOICONS
= _controls
.TB_NOICONS
2514 TB_TEXT
= _controls
.TB_TEXT
2515 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2516 TB_NOALIGN
= _controls
.TB_NOALIGN
2517 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2518 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2519 class ToolBarToolBase(core
.Object
):
2520 def __init__(self
): raise RuntimeError, "No constructor defined"
2522 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2523 def GetId(*args
, **kwargs
):
2524 """GetId() -> int"""
2525 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2527 def GetControl(*args
, **kwargs
):
2528 """GetControl() -> Control"""
2529 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2531 def GetToolBar(*args
, **kwargs
):
2532 """GetToolBar() -> ToolBarBase"""
2533 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2535 def IsButton(*args
, **kwargs
):
2536 """IsButton() -> int"""
2537 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2539 def IsControl(*args
, **kwargs
):
2540 """IsControl() -> int"""
2541 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2543 def IsSeparator(*args
, **kwargs
):
2544 """IsSeparator() -> int"""
2545 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2547 def GetStyle(*args
, **kwargs
):
2548 """GetStyle() -> int"""
2549 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2551 def GetKind(*args
, **kwargs
):
2552 """GetKind() -> int"""
2553 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2555 def IsEnabled(*args
, **kwargs
):
2556 """IsEnabled() -> bool"""
2557 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2559 def IsToggled(*args
, **kwargs
):
2560 """IsToggled() -> bool"""
2561 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2563 def CanBeToggled(*args
, **kwargs
):
2564 """CanBeToggled() -> bool"""
2565 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2567 def GetNormalBitmap(*args
, **kwargs
):
2568 """GetNormalBitmap() -> Bitmap"""
2569 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2571 def GetDisabledBitmap(*args
, **kwargs
):
2572 """GetDisabledBitmap() -> Bitmap"""
2573 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2575 def GetBitmap(*args
, **kwargs
):
2576 """GetBitmap() -> Bitmap"""
2577 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2579 def GetLabel(*args
, **kwargs
):
2580 """GetLabel() -> String"""
2581 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2583 def GetShortHelp(*args
, **kwargs
):
2584 """GetShortHelp() -> String"""
2585 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2587 def GetLongHelp(*args
, **kwargs
):
2588 """GetLongHelp() -> String"""
2589 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2591 def Enable(*args
, **kwargs
):
2592 """Enable(bool enable) -> bool"""
2593 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2595 def Toggle(*args
, **kwargs
):
2597 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2599 def SetToggle(*args
, **kwargs
):
2600 """SetToggle(bool toggle) -> bool"""
2601 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2603 def SetShortHelp(*args
, **kwargs
):
2604 """SetShortHelp(String help) -> bool"""
2605 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2607 def SetLongHelp(*args
, **kwargs
):
2608 """SetLongHelp(String help) -> bool"""
2609 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2611 def SetNormalBitmap(*args
, **kwargs
):
2612 """SetNormalBitmap(Bitmap bmp)"""
2613 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2615 def SetDisabledBitmap(*args
, **kwargs
):
2616 """SetDisabledBitmap(Bitmap bmp)"""
2617 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2619 def SetLabel(*args
, **kwargs
):
2620 """SetLabel(String label)"""
2621 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2623 def Detach(*args
, **kwargs
):
2625 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2627 def Attach(*args
, **kwargs
):
2628 """Attach(ToolBarBase tbar)"""
2629 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2631 def GetClientData(*args
, **kwargs
):
2632 """GetClientData() -> PyObject"""
2633 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2635 def SetClientData(*args
, **kwargs
):
2636 """SetClientData(PyObject clientData)"""
2637 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2639 GetBitmap1
= GetNormalBitmap
2640 GetBitmap2
= GetDisabledBitmap
2641 SetBitmap1
= SetNormalBitmap
2642 SetBitmap2
= SetDisabledBitmap
2645 class ToolBarToolBasePtr(ToolBarToolBase
):
2646 def __init__(self
, this
):
2648 if not hasattr(self
,"thisown"): self
.thisown
= 0
2649 self
.__class
__ = ToolBarToolBase
2650 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2652 class ToolBarBase(core
.Control
):
2653 def __init__(self
): raise RuntimeError, "No constructor defined"
2655 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2656 def DoAddTool(*args
, **kwargs
):
2658 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2659 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2660 String longHelp=EmptyString,
2661 PyObject clientData=None) -> ToolBarToolBase
2663 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2665 def DoInsertTool(*args
, **kwargs
):
2667 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2668 int kind=ITEM_NORMAL,
2669 String shortHelp=EmptyString, String longHelp=EmptyString,
2670 PyObject clientData=None) -> ToolBarToolBase
2672 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2674 # These match the original Add methods for this class, kept for
2675 # backwards compatibility with versions < 2.3.3.
2678 def AddTool(self
, id, bitmap
,
2679 pushedBitmap
= wx
.NullBitmap
,
2682 shortHelpString
= '',
2683 longHelpString
= '') :
2684 '''Old style method to add a tool to the toolbar.'''
2685 kind
= wx
.ITEM_NORMAL
2686 if isToggle
: kind
= wx
.ITEM_CHECK
2687 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2688 shortHelpString
, longHelpString
, clientData
)
2690 def AddSimpleTool(self
, id, bitmap
,
2691 shortHelpString
= '',
2692 longHelpString
= '',
2694 '''Old style method to add a tool to the toolbar.'''
2695 kind
= wx
.ITEM_NORMAL
2696 if isToggle
: kind
= wx
.ITEM_CHECK
2697 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2698 shortHelpString
, longHelpString
, None)
2700 def InsertTool(self
, pos
, id, bitmap
,
2701 pushedBitmap
= wx
.NullBitmap
,
2704 shortHelpString
= '',
2705 longHelpString
= ''):
2706 '''Old style method to insert a tool in the toolbar.'''
2707 kind
= wx
.ITEM_NORMAL
2708 if isToggle
: kind
= wx
.ITEM_CHECK
2709 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2710 shortHelpString
, longHelpString
, clientData
)
2712 def InsertSimpleTool(self
, pos
, id, bitmap
,
2713 shortHelpString
= '',
2714 longHelpString
= '',
2716 '''Old style method to insert a tool in the toolbar.'''
2717 kind
= wx
.ITEM_NORMAL
2718 if isToggle
: kind
= wx
.ITEM_CHECK
2719 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2720 shortHelpString
, longHelpString
, None)
2723 # The following are the new toolbar Add methods starting with
2724 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2725 # able to keep backwards compatibility with using the above
2726 # methods. Eventually these should migrate to be the methods used
2727 # primarily and lose the 'Label' in the name...
2729 def AddLabelTool(self
, id, label
, bitmap
,
2730 bmpDisabled
= wx
.NullBitmap
,
2731 kind
= wx
.ITEM_NORMAL
,
2732 shortHelp
= '', longHelp
= '',
2735 The full AddTool() function.
2737 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2738 is created and used as the disabled image.
2740 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2741 shortHelp
, longHelp
, clientData
)
2744 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2745 bmpDisabled
= wx
.NullBitmap
,
2746 kind
= wx
.ITEM_NORMAL
,
2747 shortHelp
= '', longHelp
= '',
2750 Insert the new tool at the given position, if pos == GetToolsCount(), it
2751 is equivalent to AddTool()
2753 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2754 shortHelp
, longHelp
, clientData
)
2756 def AddCheckLabelTool(self
, id, label
, bitmap
,
2757 bmpDisabled
= wx
.NullBitmap
,
2758 shortHelp
= '', longHelp
= '',
2760 '''Add a check tool, i.e. a tool which can be toggled'''
2761 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2762 shortHelp
, longHelp
, clientData
)
2764 def AddRadioLabelTool(self
, id, label
, bitmap
,
2765 bmpDisabled
= wx
.NullBitmap
,
2766 shortHelp
= '', longHelp
= '',
2769 Add a radio tool, i.e. a tool which can be toggled and releases any
2770 other toggled radio tools in the same group when it happens
2772 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2773 shortHelp
, longHelp
, clientData
)
2776 # For consistency with the backwards compatible methods above, here are
2777 # some non-'Label' versions of the Check and Radio methods
2778 def AddCheckTool(self
, id, 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, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2784 shortHelp
, longHelp
, clientData
)
2786 def AddRadioTool(self
, id, 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, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2795 shortHelp
, longHelp
, clientData
)
2797 def AddToolItem(*args
, **kwargs
):
2798 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2799 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2801 def InsertToolItem(*args
, **kwargs
):
2802 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2803 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2805 def AddControl(*args
, **kwargs
):
2806 """AddControl(Control control) -> ToolBarToolBase"""
2807 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2809 def InsertControl(*args
, **kwargs
):
2810 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2811 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2813 def FindControl(*args
, **kwargs
):
2814 """FindControl(int id) -> Control"""
2815 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2817 def AddSeparator(*args
, **kwargs
):
2818 """AddSeparator() -> ToolBarToolBase"""
2819 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2821 def InsertSeparator(*args
, **kwargs
):
2822 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2823 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2825 def RemoveTool(*args
, **kwargs
):
2826 """RemoveTool(int id) -> ToolBarToolBase"""
2827 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2829 def DeleteToolByPos(*args
, **kwargs
):
2830 """DeleteToolByPos(size_t pos) -> bool"""
2831 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2833 def DeleteTool(*args
, **kwargs
):
2834 """DeleteTool(int id) -> bool"""
2835 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2837 def ClearTools(*args
, **kwargs
):
2839 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2841 def Realize(*args
, **kwargs
):
2842 """Realize() -> bool"""
2843 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2845 def EnableTool(*args
, **kwargs
):
2846 """EnableTool(int id, bool enable)"""
2847 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2849 def ToggleTool(*args
, **kwargs
):
2850 """ToggleTool(int id, bool toggle)"""
2851 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2853 def SetToggle(*args
, **kwargs
):
2854 """SetToggle(int id, bool toggle)"""
2855 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2857 def GetToolClientData(*args
, **kwargs
):
2858 """GetToolClientData(int id) -> PyObject"""
2859 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2861 def SetToolClientData(*args
, **kwargs
):
2862 """SetToolClientData(int id, PyObject clientData)"""
2863 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2865 def GetToolPos(*args
, **kwargs
):
2866 """GetToolPos(int id) -> int"""
2867 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2869 def GetToolState(*args
, **kwargs
):
2870 """GetToolState(int id) -> bool"""
2871 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2873 def GetToolEnabled(*args
, **kwargs
):
2874 """GetToolEnabled(int id) -> bool"""
2875 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2877 def SetToolShortHelp(*args
, **kwargs
):
2878 """SetToolShortHelp(int id, String helpString)"""
2879 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2881 def GetToolShortHelp(*args
, **kwargs
):
2882 """GetToolShortHelp(int id) -> String"""
2883 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2885 def SetToolLongHelp(*args
, **kwargs
):
2886 """SetToolLongHelp(int id, String helpString)"""
2887 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2889 def GetToolLongHelp(*args
, **kwargs
):
2890 """GetToolLongHelp(int id) -> String"""
2891 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2893 def SetMarginsXY(*args
, **kwargs
):
2894 """SetMarginsXY(int x, int y)"""
2895 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2897 def SetMargins(*args
, **kwargs
):
2898 """SetMargins(Size size)"""
2899 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2901 def SetToolPacking(*args
, **kwargs
):
2902 """SetToolPacking(int packing)"""
2903 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2905 def SetToolSeparation(*args
, **kwargs
):
2906 """SetToolSeparation(int separation)"""
2907 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2909 def GetToolMargins(*args
, **kwargs
):
2910 """GetToolMargins() -> Size"""
2911 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2913 def GetMargins(*args
, **kwargs
):
2914 """GetMargins() -> Size"""
2915 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2917 def GetToolPacking(*args
, **kwargs
):
2918 """GetToolPacking() -> int"""
2919 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2921 def GetToolSeparation(*args
, **kwargs
):
2922 """GetToolSeparation() -> int"""
2923 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2925 def SetRows(*args
, **kwargs
):
2926 """SetRows(int nRows)"""
2927 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2929 def SetMaxRowsCols(*args
, **kwargs
):
2930 """SetMaxRowsCols(int rows, int cols)"""
2931 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2933 def GetMaxRows(*args
, **kwargs
):
2934 """GetMaxRows() -> int"""
2935 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2937 def GetMaxCols(*args
, **kwargs
):
2938 """GetMaxCols() -> int"""
2939 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2941 def SetToolBitmapSize(*args
, **kwargs
):
2942 """SetToolBitmapSize(Size size)"""
2943 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2945 def GetToolBitmapSize(*args
, **kwargs
):
2946 """GetToolBitmapSize() -> Size"""
2947 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2949 def GetToolSize(*args
, **kwargs
):
2950 """GetToolSize() -> Size"""
2951 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2953 def FindToolForPosition(*args
, **kwargs
):
2954 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2955 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2957 def FindById(*args
, **kwargs
):
2958 """FindById(int toolid) -> ToolBarToolBase"""
2959 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2961 def IsVertical(*args
, **kwargs
):
2962 """IsVertical() -> bool"""
2963 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2966 class ToolBarBasePtr(ToolBarBase
):
2967 def __init__(self
, this
):
2969 if not hasattr(self
,"thisown"): self
.thisown
= 0
2970 self
.__class
__ = ToolBarBase
2971 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2973 class ToolBar(ToolBarBase
):
2975 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2976 def __init__(self
, *args
, **kwargs
):
2978 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2979 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2980 String name=wxPyToolBarNameStr) -> ToolBar
2982 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2983 self
.this
= newobj
.this
2986 self
._setOORInfo
(self
)
2988 def Create(*args
, **kwargs
):
2990 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2991 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2992 String name=wxPyToolBarNameStr) -> bool
2994 return _controls
.ToolBar_Create(*args
, **kwargs
)
2996 def FindToolForPosition(*args
, **kwargs
):
2997 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2998 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3001 class ToolBarPtr(ToolBar
):
3002 def __init__(self
, this
):
3004 if not hasattr(self
,"thisown"): self
.thisown
= 0
3005 self
.__class
__ = ToolBar
3006 _controls
.ToolBar_swigregister(ToolBarPtr
)
3008 def PreToolBar(*args
, **kwargs
):
3009 """PreToolBar() -> ToolBar"""
3010 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
3014 #---------------------------------------------------------------------------
3016 LC_VRULES
= _controls
.LC_VRULES
3017 LC_HRULES
= _controls
.LC_HRULES
3018 LC_ICON
= _controls
.LC_ICON
3019 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
3020 LC_LIST
= _controls
.LC_LIST
3021 LC_REPORT
= _controls
.LC_REPORT
3022 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
3023 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
3024 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
3025 LC_VIRTUAL
= _controls
.LC_VIRTUAL
3026 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
3027 LC_NO_HEADER
= _controls
.LC_NO_HEADER
3028 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
3029 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
3030 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
3031 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
3032 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
3033 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
3034 LC_MASK_SORT
= _controls
.LC_MASK_SORT
3035 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
3036 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
3037 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
3038 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
3039 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
3040 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
3041 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
3042 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
3043 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
3044 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
3045 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
3046 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
3047 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
3048 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
3049 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
3050 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
3051 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
3052 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
3053 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
3054 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
3055 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
3056 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
3057 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
3058 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
3059 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
3060 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
3061 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
3062 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
3063 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
3064 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
3065 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
3066 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
3067 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
3068 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
3069 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
3070 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
3071 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
3072 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
3073 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
3074 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
3075 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
3076 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
3077 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
3078 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
3079 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
3080 LIST_FIND_UP
= _controls
.LIST_FIND_UP
3081 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
3082 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
3083 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
3084 #---------------------------------------------------------------------------
3086 class ListItemAttr(object):
3088 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3089 def __init__(self
, *args
, **kwargs
):
3091 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
3092 Font font=wxNullFont) -> ListItemAttr
3094 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
3095 self
.this
= newobj
.this
3098 def SetTextColour(*args
, **kwargs
):
3099 """SetTextColour(Colour colText)"""
3100 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3102 def SetBackgroundColour(*args
, **kwargs
):
3103 """SetBackgroundColour(Colour colBack)"""
3104 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3106 def SetFont(*args
, **kwargs
):
3107 """SetFont(Font font)"""
3108 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
3110 def HasTextColour(*args
, **kwargs
):
3111 """HasTextColour() -> bool"""
3112 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3114 def HasBackgroundColour(*args
, **kwargs
):
3115 """HasBackgroundColour() -> bool"""
3116 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3118 def HasFont(*args
, **kwargs
):
3119 """HasFont() -> bool"""
3120 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
3122 def GetTextColour(*args
, **kwargs
):
3123 """GetTextColour() -> Colour"""
3124 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3126 def GetBackgroundColour(*args
, **kwargs
):
3127 """GetBackgroundColour() -> Colour"""
3128 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3130 def GetFont(*args
, **kwargs
):
3131 """GetFont() -> Font"""
3132 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
3134 def Destroy(*args
, **kwargs
):
3136 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
3139 class ListItemAttrPtr(ListItemAttr
):
3140 def __init__(self
, this
):
3142 if not hasattr(self
,"thisown"): self
.thisown
= 0
3143 self
.__class
__ = ListItemAttr
3144 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
3145 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3147 #---------------------------------------------------------------------------
3149 class ListItem(core
.Object
):
3151 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3152 def __init__(self
, *args
, **kwargs
):
3153 """__init__() -> ListItem"""
3154 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
3155 self
.this
= newobj
.this
3158 def __del__(self
, destroy
=_controls
.delete_ListItem
):
3161 if self
.thisown
: destroy(self
)
3164 def Clear(*args
, **kwargs
):
3166 return _controls
.ListItem_Clear(*args
, **kwargs
)
3168 def ClearAttributes(*args
, **kwargs
):
3169 """ClearAttributes()"""
3170 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
3172 def SetMask(*args
, **kwargs
):
3173 """SetMask(long mask)"""
3174 return _controls
.ListItem_SetMask(*args
, **kwargs
)
3176 def SetId(*args
, **kwargs
):
3177 """SetId(long id)"""
3178 return _controls
.ListItem_SetId(*args
, **kwargs
)
3180 def SetColumn(*args
, **kwargs
):
3181 """SetColumn(int col)"""
3182 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
3184 def SetState(*args
, **kwargs
):
3185 """SetState(long state)"""
3186 return _controls
.ListItem_SetState(*args
, **kwargs
)
3188 def SetStateMask(*args
, **kwargs
):
3189 """SetStateMask(long stateMask)"""
3190 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
3192 def SetText(*args
, **kwargs
):
3193 """SetText(String text)"""
3194 return _controls
.ListItem_SetText(*args
, **kwargs
)
3196 def SetImage(*args
, **kwargs
):
3197 """SetImage(int image)"""
3198 return _controls
.ListItem_SetImage(*args
, **kwargs
)
3200 def SetData(*args
, **kwargs
):
3201 """SetData(long data)"""
3202 return _controls
.ListItem_SetData(*args
, **kwargs
)
3204 def SetWidth(*args
, **kwargs
):
3205 """SetWidth(int width)"""
3206 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
3208 def SetAlign(*args
, **kwargs
):
3209 """SetAlign(int align)"""
3210 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
3212 def SetTextColour(*args
, **kwargs
):
3213 """SetTextColour(Colour colText)"""
3214 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
3216 def SetBackgroundColour(*args
, **kwargs
):
3217 """SetBackgroundColour(Colour colBack)"""
3218 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3220 def SetFont(*args
, **kwargs
):
3221 """SetFont(Font font)"""
3222 return _controls
.ListItem_SetFont(*args
, **kwargs
)
3224 def GetMask(*args
, **kwargs
):
3225 """GetMask() -> long"""
3226 return _controls
.ListItem_GetMask(*args
, **kwargs
)
3228 def GetId(*args
, **kwargs
):
3229 """GetId() -> long"""
3230 return _controls
.ListItem_GetId(*args
, **kwargs
)
3232 def GetColumn(*args
, **kwargs
):
3233 """GetColumn() -> int"""
3234 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
3236 def GetState(*args
, **kwargs
):
3237 """GetState() -> long"""
3238 return _controls
.ListItem_GetState(*args
, **kwargs
)
3240 def GetText(*args
, **kwargs
):
3241 """GetText() -> String"""
3242 return _controls
.ListItem_GetText(*args
, **kwargs
)
3244 def GetImage(*args
, **kwargs
):
3245 """GetImage() -> int"""
3246 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3248 def GetData(*args
, **kwargs
):
3249 """GetData() -> long"""
3250 return _controls
.ListItem_GetData(*args
, **kwargs
)
3252 def GetWidth(*args
, **kwargs
):
3253 """GetWidth() -> int"""
3254 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3256 def GetAlign(*args
, **kwargs
):
3257 """GetAlign() -> int"""
3258 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3260 def GetAttributes(*args
, **kwargs
):
3261 """GetAttributes() -> ListItemAttr"""
3262 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3264 def HasAttributes(*args
, **kwargs
):
3265 """HasAttributes() -> bool"""
3266 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3268 def GetTextColour(*args
, **kwargs
):
3269 """GetTextColour() -> Colour"""
3270 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3272 def GetBackgroundColour(*args
, **kwargs
):
3273 """GetBackgroundColour() -> Colour"""
3274 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3276 def GetFont(*args
, **kwargs
):
3277 """GetFont() -> Font"""
3278 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3280 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3281 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3282 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3283 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3284 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3285 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3286 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3287 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3288 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3289 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3291 class ListItemPtr(ListItem
):
3292 def __init__(self
, this
):
3294 if not hasattr(self
,"thisown"): self
.thisown
= 0
3295 self
.__class
__ = ListItem
3296 _controls
.ListItem_swigregister(ListItemPtr
)
3298 #---------------------------------------------------------------------------
3300 class ListEvent(core
.NotifyEvent
):
3302 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3303 def __init__(self
, *args
, **kwargs
):
3304 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3305 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3306 self
.this
= newobj
.this
3309 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3310 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3311 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3312 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3313 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3314 m_item
= property(_controls
.ListEvent_m_item_get
)
3315 def GetKeyCode(*args
, **kwargs
):
3316 """GetKeyCode() -> int"""
3317 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3319 GetCode
= GetKeyCode
3320 def GetIndex(*args
, **kwargs
):
3321 """GetIndex() -> long"""
3322 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3324 def GetColumn(*args
, **kwargs
):
3325 """GetColumn() -> int"""
3326 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3328 def GetPoint(*args
, **kwargs
):
3329 """GetPoint() -> Point"""
3330 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3332 GetPosition
= GetPoint
3333 def GetLabel(*args
, **kwargs
):
3334 """GetLabel() -> String"""
3335 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3337 def GetText(*args
, **kwargs
):
3338 """GetText() -> String"""
3339 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3341 def GetImage(*args
, **kwargs
):
3342 """GetImage() -> int"""
3343 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3345 def GetData(*args
, **kwargs
):
3346 """GetData() -> long"""
3347 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3349 def GetMask(*args
, **kwargs
):
3350 """GetMask() -> long"""
3351 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3353 def GetItem(*args
, **kwargs
):
3354 """GetItem() -> ListItem"""
3355 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3357 def GetCacheFrom(*args
, **kwargs
):
3358 """GetCacheFrom() -> long"""
3359 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3361 def GetCacheTo(*args
, **kwargs
):
3362 """GetCacheTo() -> long"""
3363 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3365 def IsEditCancelled(*args
, **kwargs
):
3366 """IsEditCancelled() -> bool"""
3367 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3369 def SetEditCanceled(*args
, **kwargs
):
3370 """SetEditCanceled(bool editCancelled)"""
3371 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3374 class ListEventPtr(ListEvent
):
3375 def __init__(self
, this
):
3377 if not hasattr(self
,"thisown"): self
.thisown
= 0
3378 self
.__class
__ = ListEvent
3379 _controls
.ListEvent_swigregister(ListEventPtr
)
3381 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3382 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3383 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3384 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3385 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3386 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3387 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3388 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3389 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3390 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3391 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3392 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3393 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3394 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3395 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3396 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3397 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3398 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3399 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3400 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3401 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3402 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3403 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3404 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3405 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3406 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3407 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3408 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3409 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3410 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3411 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3412 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3413 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3414 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3415 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3416 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3417 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3418 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3419 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3420 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3421 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3422 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3423 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3424 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3426 #---------------------------------------------------------------------------
3428 class ListCtrl(core
.Control
):
3430 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3431 def __init__(self
, *args
, **kwargs
):
3433 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3434 Size size=DefaultSize, long style=LC_ICON,
3435 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3437 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3438 self
.this
= newobj
.this
3441 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3443 def Create(*args
, **kwargs
):
3445 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3446 Size size=DefaultSize, long style=LC_ICON,
3447 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3449 Do the 2nd phase and create the GUI control.
3451 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3453 def _setCallbackInfo(*args
, **kwargs
):
3454 """_setCallbackInfo(PyObject self, PyObject _class)"""
3455 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3457 def SetForegroundColour(*args
, **kwargs
):
3458 """SetForegroundColour(Colour col) -> bool"""
3459 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3461 def SetBackgroundColour(*args
, **kwargs
):
3462 """SetBackgroundColour(Colour col) -> bool"""
3463 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3465 def GetColumn(*args
, **kwargs
):
3466 """GetColumn(int col) -> ListItem"""
3467 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3468 if val
is not None: val
.thisown
= 1
3471 def SetColumn(*args
, **kwargs
):
3472 """SetColumn(int col, ListItem item) -> bool"""
3473 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3475 def GetColumnWidth(*args
, **kwargs
):
3476 """GetColumnWidth(int col) -> int"""
3477 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3479 def SetColumnWidth(*args
, **kwargs
):
3480 """SetColumnWidth(int col, int width) -> bool"""
3481 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3483 def GetCountPerPage(*args
, **kwargs
):
3484 """GetCountPerPage() -> int"""
3485 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3487 def GetViewRect(*args
, **kwargs
):
3488 """GetViewRect() -> Rect"""
3489 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3491 def GetEditControl(*args
, **kwargs
):
3492 """GetEditControl() -> TextCtrl"""
3493 return _controls
.ListCtrl_GetEditControl(*args
, **kwargs
)
3495 def GetItem(*args
, **kwargs
):
3496 """GetItem(long itemId, int col=0) -> ListItem"""
3497 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3498 if val
is not None: val
.thisown
= 1
3501 def SetItem(*args
, **kwargs
):
3502 """SetItem(ListItem info) -> bool"""
3503 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3505 def SetStringItem(*args
, **kwargs
):
3506 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3507 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3509 def GetItemState(*args
, **kwargs
):
3510 """GetItemState(long item, long stateMask) -> int"""
3511 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3513 def SetItemState(*args
, **kwargs
):
3514 """SetItemState(long item, long state, long stateMask) -> bool"""
3515 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3517 def SetItemImage(*args
, **kwargs
):
3518 """SetItemImage(long item, int image, int selImage) -> bool"""
3519 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3521 def GetItemText(*args
, **kwargs
):
3522 """GetItemText(long item) -> String"""
3523 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3525 def SetItemText(*args
, **kwargs
):
3526 """SetItemText(long item, String str)"""
3527 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3529 def GetItemData(*args
, **kwargs
):
3530 """GetItemData(long item) -> long"""
3531 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3533 def SetItemData(*args
, **kwargs
):
3534 """SetItemData(long item, long data) -> bool"""
3535 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3537 def GetItemPosition(*args
, **kwargs
):
3538 """GetItemPosition(long item) -> Point"""
3539 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3541 def GetItemRect(*args
, **kwargs
):
3542 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3543 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3545 def SetItemPosition(*args
, **kwargs
):
3546 """SetItemPosition(long item, Point pos) -> bool"""
3547 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3549 def GetItemCount(*args
, **kwargs
):
3550 """GetItemCount() -> int"""
3551 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3553 def GetColumnCount(*args
, **kwargs
):
3554 """GetColumnCount() -> int"""
3555 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3557 def GetItemSpacing(*args
, **kwargs
):
3558 """GetItemSpacing() -> Size"""
3559 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3561 def GetSelectedItemCount(*args
, **kwargs
):
3562 """GetSelectedItemCount() -> int"""
3563 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3565 def GetTextColour(*args
, **kwargs
):
3566 """GetTextColour() -> Colour"""
3567 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3569 def SetTextColour(*args
, **kwargs
):
3570 """SetTextColour(Colour col)"""
3571 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3573 def GetTopItem(*args
, **kwargs
):
3574 """GetTopItem() -> long"""
3575 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3577 def SetSingleStyle(*args
, **kwargs
):
3578 """SetSingleStyle(long style, bool add=True)"""
3579 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3581 def SetWindowStyleFlag(*args
, **kwargs
):
3583 SetWindowStyleFlag(long style)
3585 Sets the style of the window. Please note that some styles cannot be
3586 changed after the window creation and that Refresh() might be called
3587 after changing the others for the change to take place immediately.
3589 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3591 def GetNextItem(*args
, **kwargs
):
3592 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3593 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3595 def GetImageList(*args
, **kwargs
):
3596 """GetImageList(int which) -> ImageList"""
3597 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3599 def SetImageList(*args
, **kwargs
):
3600 """SetImageList(ImageList imageList, int which)"""
3601 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3603 def AssignImageList(*args
, **kwargs
):
3604 """AssignImageList(ImageList imageList, int which)"""
3605 return _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3607 def InReportView(*args
, **kwargs
):
3608 """InReportView() -> bool"""
3609 return _controls
.ListCtrl_InReportView(*args
, **kwargs
)
3611 def IsVirtual(*args
, **kwargs
):
3612 """IsVirtual() -> bool"""
3613 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3615 def RefreshItem(*args
, **kwargs
):
3616 """RefreshItem(long item)"""
3617 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3619 def RefreshItems(*args
, **kwargs
):
3620 """RefreshItems(long itemFrom, long itemTo)"""
3621 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3623 def Arrange(*args
, **kwargs
):
3624 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3625 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3627 def DeleteItem(*args
, **kwargs
):
3628 """DeleteItem(long item) -> bool"""
3629 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3631 def DeleteAllItems(*args
, **kwargs
):
3632 """DeleteAllItems() -> bool"""
3633 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3635 def DeleteColumn(*args
, **kwargs
):
3636 """DeleteColumn(int col) -> bool"""
3637 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3639 def DeleteAllColumns(*args
, **kwargs
):
3640 """DeleteAllColumns() -> bool"""
3641 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3643 def ClearAll(*args
, **kwargs
):
3645 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3647 def EditLabel(*args
, **kwargs
):
3648 """EditLabel(long item) -> TextCtrl"""
3649 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3651 def EndEditLabel(*args
, **kwargs
):
3652 """EndEditLabel(bool cancel) -> bool"""
3653 return _controls
.ListCtrl_EndEditLabel(*args
, **kwargs
)
3655 def EnsureVisible(*args
, **kwargs
):
3656 """EnsureVisible(long item) -> bool"""
3657 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3659 def FindItem(*args
, **kwargs
):
3660 """FindItem(long start, String str, bool partial=False) -> long"""
3661 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3663 def FindItemData(*args
, **kwargs
):
3664 """FindItemData(long start, long data) -> long"""
3665 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3667 def FindItemAtPos(*args
, **kwargs
):
3668 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3669 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3671 def HitTest(*args
, **kwargs
):
3673 HitTest(Point point) -> (item, where)
3675 Determines which item (if any) is at the specified point,
3676 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3678 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3680 def InsertItem(*args
, **kwargs
):
3681 """InsertItem(ListItem info) -> long"""
3682 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3684 def InsertStringItem(*args
, **kwargs
):
3685 """InsertStringItem(long index, String label) -> long"""
3686 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3688 def InsertImageItem(*args
, **kwargs
):
3689 """InsertImageItem(long index, int imageIndex) -> long"""
3690 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3692 def InsertImageStringItem(*args
, **kwargs
):
3693 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3694 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3696 def InsertColumnInfo(*args
, **kwargs
):
3697 """InsertColumnInfo(long col, ListItem info) -> long"""
3698 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3700 def InsertColumn(*args
, **kwargs
):
3702 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3703 int width=-1) -> long
3705 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3707 def SetItemCount(*args
, **kwargs
):
3708 """SetItemCount(long count)"""
3709 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3711 def ScrollList(*args
, **kwargs
):
3712 """ScrollList(int dx, int dy) -> bool"""
3713 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3715 def SetItemTextColour(*args
, **kwargs
):
3716 """SetItemTextColour(long item, Colour col)"""
3717 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3719 def GetItemTextColour(*args
, **kwargs
):
3720 """GetItemTextColour(long item) -> Colour"""
3721 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3723 def SetItemBackgroundColour(*args
, **kwargs
):
3724 """SetItemBackgroundColour(long item, Colour col)"""
3725 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3727 def GetItemBackgroundColour(*args
, **kwargs
):
3728 """GetItemBackgroundColour(long item) -> Colour"""
3729 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3733 def Select(self
, idx
, on
=1):
3734 '''[de]select an item'''
3735 if on
: state
= wx
.LIST_STATE_SELECTED
3737 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3739 def Focus(self
, idx
):
3740 '''Focus and show the given item'''
3741 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3742 self
.EnsureVisible(idx
)
3744 def GetFocusedItem(self
):
3745 '''get the currently focused item or -1 if none'''
3746 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3748 def GetFirstSelected(self
, *args
):
3749 '''return first selected item, or -1 when none'''
3750 return self
.GetNextSelected(-1)
3752 def GetNextSelected(self
, item
):
3753 '''return subsequent selected items, or -1 when no more'''
3754 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3756 def IsSelected(self
, idx
):
3757 '''return True if the item is selected'''
3758 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3760 def SetColumnImage(self
, col
, image
):
3761 item
= self
.GetColumn(col
)
3762 # preserve all other attributes too
3763 item
.SetMask( wx
.LIST_MASK_STATE |
3765 wx
.LIST_MASK_IMAGE |
3768 wx
.LIST_MASK_WIDTH |
3769 wx
.LIST_MASK_FORMAT
)
3770 item
.SetImage(image
)
3771 self
.SetColumn(col
, item
)
3773 def ClearColumnImage(self
, col
):
3774 self
.SetColumnImage(col
, -1)
3776 def Append(self
, entry
):
3777 '''Append an item to the list control. The entry parameter should be a
3778 sequence with an item for each column'''
3784 pos
= self
.GetItemCount()
3785 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3786 for i
in range(1, len(entry
)):
3787 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3790 def SortItems(*args
, **kwargs
):
3791 """SortItems(PyObject func) -> bool"""
3792 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3794 def GetMainWindow(*args
, **kwargs
):
3795 """GetMainWindow() -> Window"""
3796 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3799 class ListCtrlPtr(ListCtrl
):
3800 def __init__(self
, this
):
3802 if not hasattr(self
,"thisown"): self
.thisown
= 0
3803 self
.__class
__ = ListCtrl
3804 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3806 def PreListCtrl(*args
, **kwargs
):
3807 """PreListCtrl() -> ListCtrl"""
3808 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3812 #---------------------------------------------------------------------------
3814 class ListView(ListCtrl
):
3816 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3817 def __init__(self
, *args
, **kwargs
):
3819 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3820 Size size=DefaultSize, long style=LC_REPORT,
3821 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3823 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3824 self
.this
= newobj
.this
3827 self
._setOORInfo
(self
)
3829 def Create(*args
, **kwargs
):
3831 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3832 Size size=DefaultSize, long style=LC_REPORT,
3833 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3835 Do the 2nd phase and create the GUI control.
3837 return _controls
.ListView_Create(*args
, **kwargs
)
3839 def Select(*args
, **kwargs
):
3840 """Select(long n, bool on=True)"""
3841 return _controls
.ListView_Select(*args
, **kwargs
)
3843 def Focus(*args
, **kwargs
):
3844 """Focus(long index)"""
3845 return _controls
.ListView_Focus(*args
, **kwargs
)
3847 def GetFocusedItem(*args
, **kwargs
):
3848 """GetFocusedItem() -> long"""
3849 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3851 def GetNextSelected(*args
, **kwargs
):
3852 """GetNextSelected(long item) -> long"""
3853 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3855 def GetFirstSelected(*args
, **kwargs
):
3856 """GetFirstSelected() -> long"""
3857 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3859 def IsSelected(*args
, **kwargs
):
3860 """IsSelected(long index) -> bool"""
3861 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3863 def SetColumnImage(*args
, **kwargs
):
3864 """SetColumnImage(int col, int image)"""
3865 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3867 def ClearColumnImage(*args
, **kwargs
):
3868 """ClearColumnImage(int col)"""
3869 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3872 class ListViewPtr(ListView
):
3873 def __init__(self
, this
):
3875 if not hasattr(self
,"thisown"): self
.thisown
= 0
3876 self
.__class
__ = ListView
3877 _controls
.ListView_swigregister(ListViewPtr
)
3879 def PreListView(*args
, **kwargs
):
3880 """PreListView() -> ListView"""
3881 val
= _controls
.new_PreListView(*args
, **kwargs
)
3885 #---------------------------------------------------------------------------
3887 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3888 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3889 TR_NO_LINES
= _controls
.TR_NO_LINES
3890 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3891 TR_SINGLE
= _controls
.TR_SINGLE
3892 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3893 TR_EXTENDED
= _controls
.TR_EXTENDED
3894 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3895 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3896 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3897 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3898 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3899 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3900 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3901 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3902 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3903 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3904 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3905 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3906 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3907 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3908 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3909 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3910 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3911 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3912 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3913 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3914 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3915 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3916 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3917 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3918 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3919 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3920 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3921 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3922 #---------------------------------------------------------------------------
3924 class TreeItemId(object):
3926 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3927 def __init__(self
, *args
, **kwargs
):
3928 """__init__() -> TreeItemId"""
3929 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3930 self
.this
= newobj
.this
3933 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3936 if self
.thisown
: destroy(self
)
3939 def IsOk(*args
, **kwargs
):
3940 """IsOk() -> bool"""
3941 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3943 def __eq__(*args
, **kwargs
):
3944 """__eq__(TreeItemId other) -> bool"""
3945 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3947 def __ne__(*args
, **kwargs
):
3948 """__ne__(TreeItemId other) -> bool"""
3949 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3951 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3953 def __nonzero__(self
): return self
.IsOk()
3955 class TreeItemIdPtr(TreeItemId
):
3956 def __init__(self
, this
):
3958 if not hasattr(self
,"thisown"): self
.thisown
= 0
3959 self
.__class
__ = TreeItemId
3960 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3961 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
3963 class TreeItemData(object):
3965 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3966 def __init__(self
, *args
, **kwargs
):
3967 """__init__(PyObject obj=None) -> TreeItemData"""
3968 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3969 self
.this
= newobj
.this
3972 def GetData(*args
, **kwargs
):
3973 """GetData() -> PyObject"""
3974 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3976 def SetData(*args
, **kwargs
):
3977 """SetData(PyObject obj)"""
3978 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3980 def GetId(*args
, **kwargs
):
3981 """GetId() -> TreeItemId"""
3982 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3984 def SetId(*args
, **kwargs
):
3985 """SetId(TreeItemId id)"""
3986 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3988 def Destroy(*args
, **kwargs
):
3990 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3993 class TreeItemDataPtr(TreeItemData
):
3994 def __init__(self
, this
):
3996 if not hasattr(self
,"thisown"): self
.thisown
= 0
3997 self
.__class
__ = TreeItemData
3998 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
4000 #---------------------------------------------------------------------------
4002 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4003 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4004 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4005 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4006 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
4007 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
4008 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
4009 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4010 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4011 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4012 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4013 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
4014 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
4015 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
4016 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4017 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4018 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4019 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
4020 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4021 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4022 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4023 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4024 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4025 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4026 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4027 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4028 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4029 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4030 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4031 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4032 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4033 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4034 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4035 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4036 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4037 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4038 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4039 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4040 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4041 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4043 class TreeEvent(core
.NotifyEvent
):
4045 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4046 def __init__(self
, *args
, **kwargs
):
4047 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4048 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
4049 self
.this
= newobj
.this
4052 def GetItem(*args
, **kwargs
):
4053 """GetItem() -> TreeItemId"""
4054 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
4056 def SetItem(*args
, **kwargs
):
4057 """SetItem(TreeItemId item)"""
4058 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
4060 def GetOldItem(*args
, **kwargs
):
4061 """GetOldItem() -> TreeItemId"""
4062 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
4064 def SetOldItem(*args
, **kwargs
):
4065 """SetOldItem(TreeItemId item)"""
4066 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
4068 def GetPoint(*args
, **kwargs
):
4069 """GetPoint() -> Point"""
4070 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
4072 def SetPoint(*args
, **kwargs
):
4073 """SetPoint(Point pt)"""
4074 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
4076 def GetKeyEvent(*args
, **kwargs
):
4077 """GetKeyEvent() -> KeyEvent"""
4078 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4080 def GetKeyCode(*args
, **kwargs
):
4081 """GetKeyCode() -> int"""
4082 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4084 def SetKeyEvent(*args
, **kwargs
):
4085 """SetKeyEvent(KeyEvent evt)"""
4086 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4088 def GetLabel(*args
, **kwargs
):
4089 """GetLabel() -> String"""
4090 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
4092 def SetLabel(*args
, **kwargs
):
4093 """SetLabel(String label)"""
4094 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
4096 def IsEditCancelled(*args
, **kwargs
):
4097 """IsEditCancelled() -> bool"""
4098 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4100 def SetEditCanceled(*args
, **kwargs
):
4101 """SetEditCanceled(bool editCancelled)"""
4102 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4104 def SetToolTip(*args
, **kwargs
):
4105 """SetToolTip(String toolTip)"""
4106 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
4109 class TreeEventPtr(TreeEvent
):
4110 def __init__(self
, this
):
4112 if not hasattr(self
,"thisown"): self
.thisown
= 0
4113 self
.__class
__ = TreeEvent
4114 _controls
.TreeEvent_swigregister(TreeEventPtr
)
4116 #---------------------------------------------------------------------------
4118 class TreeCtrl(core
.Control
):
4120 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4121 def __init__(self
, *args
, **kwargs
):
4123 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
4124 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4125 Validator validator=DefaultValidator,
4126 String name=TreeCtrlNameStr) -> TreeCtrl
4128 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
4129 self
.this
= newobj
.this
4132 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4134 def Create(*args
, **kwargs
):
4136 Create(Window parent, int id=-1, Point pos=DefaultPosition,
4137 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4138 Validator validator=DefaultValidator,
4139 String name=TreeCtrlNameStr) -> bool
4141 Do the 2nd phase and create the GUI control.
4143 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
4145 def _setCallbackInfo(*args
, **kwargs
):
4146 """_setCallbackInfo(PyObject self, PyObject _class)"""
4147 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4149 def GetCount(*args
, **kwargs
):
4150 """GetCount() -> size_t"""
4151 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
4153 def GetIndent(*args
, **kwargs
):
4154 """GetIndent() -> unsigned int"""
4155 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
4157 def SetIndent(*args
, **kwargs
):
4158 """SetIndent(unsigned int indent)"""
4159 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
4161 def GetSpacing(*args
, **kwargs
):
4162 """GetSpacing() -> unsigned int"""
4163 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4165 def SetSpacing(*args
, **kwargs
):
4166 """SetSpacing(unsigned int spacing)"""
4167 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4169 def GetImageList(*args
, **kwargs
):
4170 """GetImageList() -> ImageList"""
4171 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
4173 def GetStateImageList(*args
, **kwargs
):
4174 """GetStateImageList() -> ImageList"""
4175 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4177 def SetImageList(*args
, **kwargs
):
4178 """SetImageList(ImageList imageList)"""
4179 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
4181 def SetStateImageList(*args
, **kwargs
):
4182 """SetStateImageList(ImageList imageList)"""
4183 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4185 def AssignImageList(*args
, **kwargs
):
4186 """AssignImageList(ImageList imageList)"""
4187 return _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4189 def AssignStateImageList(*args
, **kwargs
):
4190 """AssignStateImageList(ImageList imageList)"""
4191 return _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4193 def GetItemText(*args
, **kwargs
):
4194 """GetItemText(TreeItemId item) -> String"""
4195 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
4197 def GetItemImage(*args
, **kwargs
):
4198 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4199 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4201 def GetItemData(*args
, **kwargs
):
4202 """GetItemData(TreeItemId item) -> TreeItemData"""
4203 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
4205 def GetItemPyData(*args
, **kwargs
):
4206 """GetItemPyData(TreeItemId item) -> PyObject"""
4207 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4209 GetPyData
= GetItemPyData
4210 def GetItemTextColour(*args
, **kwargs
):
4211 """GetItemTextColour(TreeItemId item) -> Colour"""
4212 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4214 def GetItemBackgroundColour(*args
, **kwargs
):
4215 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
4216 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4218 def GetItemFont(*args
, **kwargs
):
4219 """GetItemFont(TreeItemId item) -> Font"""
4220 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4222 def SetItemText(*args
, **kwargs
):
4223 """SetItemText(TreeItemId item, String text)"""
4224 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
4226 def SetItemImage(*args
, **kwargs
):
4227 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4228 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4230 def SetItemData(*args
, **kwargs
):
4231 """SetItemData(TreeItemId item, TreeItemData data)"""
4232 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
4234 def SetItemPyData(*args
, **kwargs
):
4235 """SetItemPyData(TreeItemId item, PyObject obj)"""
4236 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4238 SetPyData
= SetItemPyData
4239 def SetItemHasChildren(*args
, **kwargs
):
4240 """SetItemHasChildren(TreeItemId item, bool has=True)"""
4241 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4243 def SetItemBold(*args
, **kwargs
):
4244 """SetItemBold(TreeItemId item, bool bold=True)"""
4245 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4247 def SetItemDropHighlight(*args
, **kwargs
):
4248 """SetItemDropHighlight(TreeItemId item, bool highlight=True)"""
4249 return _controls
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
4251 def SetItemTextColour(*args
, **kwargs
):
4252 """SetItemTextColour(TreeItemId item, Colour col)"""
4253 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4255 def SetItemBackgroundColour(*args
, **kwargs
):
4256 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
4257 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4259 def SetItemFont(*args
, **kwargs
):
4260 """SetItemFont(TreeItemId item, Font font)"""
4261 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4263 def IsVisible(*args
, **kwargs
):
4264 """IsVisible(TreeItemId item) -> bool"""
4265 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4267 def ItemHasChildren(*args
, **kwargs
):
4268 """ItemHasChildren(TreeItemId item) -> bool"""
4269 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4271 def IsExpanded(*args
, **kwargs
):
4272 """IsExpanded(TreeItemId item) -> bool"""
4273 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4275 def IsSelected(*args
, **kwargs
):
4276 """IsSelected(TreeItemId item) -> bool"""
4277 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4279 def IsBold(*args
, **kwargs
):
4280 """IsBold(TreeItemId item) -> bool"""
4281 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4283 def GetChildrenCount(*args
, **kwargs
):
4284 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4285 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4287 def GetRootItem(*args
, **kwargs
):
4288 """GetRootItem() -> TreeItemId"""
4289 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4291 def GetSelection(*args
, **kwargs
):
4292 """GetSelection() -> TreeItemId"""
4293 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4295 def GetSelections(*args
, **kwargs
):
4296 """GetSelections() -> PyObject"""
4297 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4299 def GetItemParent(*args
, **kwargs
):
4300 """GetItemParent(TreeItemId item) -> TreeItemId"""
4301 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4303 def GetFirstChild(*args
, **kwargs
):
4304 """GetFirstChild(TreeItemId item) -> PyObject"""
4305 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4307 def GetNextChild(*args
, **kwargs
):
4308 """GetNextChild(TreeItemId item, void cookie) -> PyObject"""
4309 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4311 def GetLastChild(*args
, **kwargs
):
4312 """GetLastChild(TreeItemId item) -> TreeItemId"""
4313 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4315 def GetNextSibling(*args
, **kwargs
):
4316 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4317 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4319 def GetPrevSibling(*args
, **kwargs
):
4320 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4321 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4323 def GetFirstVisibleItem(*args
, **kwargs
):
4324 """GetFirstVisibleItem() -> TreeItemId"""
4325 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4327 def GetNextVisible(*args
, **kwargs
):
4328 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4329 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4331 def GetPrevVisible(*args
, **kwargs
):
4332 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4333 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4335 def AddRoot(*args
, **kwargs
):
4336 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4337 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4339 def PrependItem(*args
, **kwargs
):
4341 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4342 TreeItemData data=None) -> TreeItemId
4344 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4346 def InsertItem(*args
, **kwargs
):
4348 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4349 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4351 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4353 def InsertItemBefore(*args
, **kwargs
):
4355 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4356 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4358 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4360 def AppendItem(*args
, **kwargs
):
4362 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4363 TreeItemData data=None) -> TreeItemId
4365 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4367 def Delete(*args
, **kwargs
):
4368 """Delete(TreeItemId item)"""
4369 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4371 def DeleteChildren(*args
, **kwargs
):
4372 """DeleteChildren(TreeItemId item)"""
4373 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4375 def DeleteAllItems(*args
, **kwargs
):
4376 """DeleteAllItems()"""
4377 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4379 def Expand(*args
, **kwargs
):
4380 """Expand(TreeItemId item)"""
4381 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4383 def Collapse(*args
, **kwargs
):
4384 """Collapse(TreeItemId item)"""
4385 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4387 def CollapseAndReset(*args
, **kwargs
):
4388 """CollapseAndReset(TreeItemId item)"""
4389 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4391 def Toggle(*args
, **kwargs
):
4392 """Toggle(TreeItemId item)"""
4393 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4395 def Unselect(*args
, **kwargs
):
4397 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4399 def UnselectItem(*args
, **kwargs
):
4400 """UnselectItem(TreeItemId item)"""
4401 return _controls
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4403 def UnselectAll(*args
, **kwargs
):
4405 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4407 def SelectItem(*args
, **kwargs
):
4408 """SelectItem(TreeItemId item, bool select=True)"""
4409 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4411 def ToggleItemSelection(*args
, **kwargs
):
4412 """ToggleItemSelection(TreeItemId item)"""
4413 return _controls
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4415 def EnsureVisible(*args
, **kwargs
):
4416 """EnsureVisible(TreeItemId item)"""
4417 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4419 def ScrollTo(*args
, **kwargs
):
4420 """ScrollTo(TreeItemId item)"""
4421 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4423 def EditLabel(*args
, **kwargs
):
4424 """EditLabel(TreeItemId item)"""
4425 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4427 def GetEditControl(*args
, **kwargs
):
4428 """GetEditControl() -> TextCtrl"""
4429 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4431 def EndEditLabel(*args
, **kwargs
):
4432 """EndEditLabel(TreeItemId item, bool discardChanges=False)"""
4433 return _controls
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
4435 def SortChildren(*args
, **kwargs
):
4436 """SortChildren(TreeItemId item)"""
4437 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4439 def HitTest(*args
, **kwargs
):
4441 HitTest(Point point) -> (item, where)
4443 Determine which item (if any) belongs the given point. The
4444 coordinates specified are relative to the client area of tree ctrl
4445 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4449 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4451 def GetBoundingRect(*args
, **kwargs
):
4452 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4453 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4456 class TreeCtrlPtr(TreeCtrl
):
4457 def __init__(self
, this
):
4459 if not hasattr(self
,"thisown"): self
.thisown
= 0
4460 self
.__class
__ = TreeCtrl
4461 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4463 def PreTreeCtrl(*args
, **kwargs
):
4464 """PreTreeCtrl() -> TreeCtrl"""
4465 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4469 #---------------------------------------------------------------------------
4471 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4472 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4473 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4474 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4475 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4476 class GenericDirCtrl(core
.Control
):
4478 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4479 def __init__(self
, *args
, **kwargs
):
4481 __init__(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4482 Point pos=DefaultPosition, Size size=DefaultSize,
4483 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4484 String filter=EmptyString,
4485 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4487 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4488 self
.this
= newobj
.this
4491 self
._setOORInfo
(self
)
4493 def Create(*args
, **kwargs
):
4495 Create(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4496 Point pos=DefaultPosition, Size size=DefaultSize,
4497 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4498 String filter=EmptyString,
4499 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4501 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4503 def ExpandPath(*args
, **kwargs
):
4504 """ExpandPath(String path) -> bool"""
4505 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4507 def GetDefaultPath(*args
, **kwargs
):
4508 """GetDefaultPath() -> String"""
4509 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4511 def SetDefaultPath(*args
, **kwargs
):
4512 """SetDefaultPath(String path)"""
4513 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4515 def GetPath(*args
, **kwargs
):
4516 """GetPath() -> String"""
4517 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4519 def GetFilePath(*args
, **kwargs
):
4520 """GetFilePath() -> String"""
4521 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4523 def SetPath(*args
, **kwargs
):
4524 """SetPath(String path)"""
4525 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4527 def ShowHidden(*args
, **kwargs
):
4528 """ShowHidden(bool show)"""
4529 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4531 def GetShowHidden(*args
, **kwargs
):
4532 """GetShowHidden() -> bool"""
4533 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4535 def GetFilter(*args
, **kwargs
):
4536 """GetFilter() -> String"""
4537 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4539 def SetFilter(*args
, **kwargs
):
4540 """SetFilter(String filter)"""
4541 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4543 def GetFilterIndex(*args
, **kwargs
):
4544 """GetFilterIndex() -> int"""
4545 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4547 def SetFilterIndex(*args
, **kwargs
):
4548 """SetFilterIndex(int n)"""
4549 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4551 def GetRootId(*args
, **kwargs
):
4552 """GetRootId() -> TreeItemId"""
4553 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4555 def GetTreeCtrl(*args
, **kwargs
):
4556 """GetTreeCtrl() -> TreeCtrl"""
4557 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4559 def GetFilterListCtrl(*args
, **kwargs
):
4560 """GetFilterListCtrl() -> DirFilterListCtrl"""
4561 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4563 def FindChild(*args
, **kwargs
):
4565 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4567 Find the child that matches the first part of 'path'. E.g. if a child path is
4568 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4569 If the path string has been used (we're at the leaf), done is set to True
4572 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4574 def DoResize(*args
, **kwargs
):
4576 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4578 def ReCreateTree(*args
, **kwargs
):
4579 """ReCreateTree()"""
4580 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4583 class GenericDirCtrlPtr(GenericDirCtrl
):
4584 def __init__(self
, this
):
4586 if not hasattr(self
,"thisown"): self
.thisown
= 0
4587 self
.__class
__ = GenericDirCtrl
4588 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4589 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4591 def PreGenericDirCtrl(*args
, **kwargs
):
4592 """PreGenericDirCtrl() -> GenericDirCtrl"""
4593 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4597 class DirFilterListCtrl(Choice
):
4599 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4600 def __init__(self
, *args
, **kwargs
):
4602 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4603 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4605 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4606 self
.this
= newobj
.this
4609 self
._setOORInfo
(self
)
4611 def Create(*args
, **kwargs
):
4613 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4614 Size size=DefaultSize, long style=0) -> bool
4616 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4618 def FillFilterList(*args
, **kwargs
):
4619 """FillFilterList(String filter, int defaultFilter)"""
4620 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4623 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4624 def __init__(self
, this
):
4626 if not hasattr(self
,"thisown"): self
.thisown
= 0
4627 self
.__class
__ = DirFilterListCtrl
4628 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4630 def PreDirFilterListCtrl(*args
, **kwargs
):
4631 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4632 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4636 #---------------------------------------------------------------------------
4638 class PyControl(core
.Control
):
4640 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4641 def __init__(self
, *args
, **kwargs
):
4643 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4644 long style=0, Validator validator=DefaultValidator,
4645 String name=ControlNameStr) -> PyControl
4647 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4648 self
.this
= newobj
.this
4651 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4653 def _setCallbackInfo(*args
, **kwargs
):
4654 """_setCallbackInfo(PyObject self, PyObject _class)"""
4655 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4657 def base_DoMoveWindow(*args
, **kwargs
):
4658 """base_DoMoveWindow(int x, int y, int width, int height)"""
4659 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4661 def base_DoSetSize(*args
, **kwargs
):
4662 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4663 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4665 def base_DoSetClientSize(*args
, **kwargs
):
4666 """base_DoSetClientSize(int width, int height)"""
4667 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4669 def base_DoSetVirtualSize(*args
, **kwargs
):
4670 """base_DoSetVirtualSize(int x, int y)"""
4671 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4673 def base_DoGetSize(*args
, **kwargs
):
4674 """base_DoGetSize() -> (width, height)"""
4675 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4677 def base_DoGetClientSize(*args
, **kwargs
):
4678 """base_DoGetClientSize() -> (width, height)"""
4679 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4681 def base_DoGetPosition(*args
, **kwargs
):
4682 """base_DoGetPosition() -> (x,y)"""
4683 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4685 def base_DoGetVirtualSize(*args
, **kwargs
):
4686 """base_DoGetVirtualSize() -> Size"""
4687 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4689 def base_DoGetBestSize(*args
, **kwargs
):
4690 """base_DoGetBestSize() -> Size"""
4691 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4693 def base_InitDialog(*args
, **kwargs
):
4694 """base_InitDialog()"""
4695 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4697 def base_TransferDataToWindow(*args
, **kwargs
):
4698 """base_TransferDataToWindow() -> bool"""
4699 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4701 def base_TransferDataFromWindow(*args
, **kwargs
):
4702 """base_TransferDataFromWindow() -> bool"""
4703 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4705 def base_Validate(*args
, **kwargs
):
4706 """base_Validate() -> bool"""
4707 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4709 def base_AcceptsFocus(*args
, **kwargs
):
4710 """base_AcceptsFocus() -> bool"""
4711 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4713 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4714 """base_AcceptsFocusFromKeyboard() -> bool"""
4715 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4717 def base_GetMaxSize(*args
, **kwargs
):
4718 """base_GetMaxSize() -> Size"""
4719 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4721 def base_AddChild(*args
, **kwargs
):
4722 """base_AddChild(Window child)"""
4723 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4725 def base_RemoveChild(*args
, **kwargs
):
4726 """base_RemoveChild(Window child)"""
4727 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4729 def base_ShouldInheritColours(*args
, **kwargs
):
4730 """base_ShouldInheritColours() -> bool"""
4731 return _controls
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
4733 def base_ApplyParentThemeBackground(*args
, **kwargs
):
4734 """base_ApplyParentThemeBackground(Colour c)"""
4735 return _controls
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
4738 class PyControlPtr(PyControl
):
4739 def __init__(self
, this
):
4741 if not hasattr(self
,"thisown"): self
.thisown
= 0
4742 self
.__class
__ = PyControl
4743 _controls
.PyControl_swigregister(PyControlPtr
)
4745 def PrePyControl(*args
, **kwargs
):
4746 """PrePyControl() -> PyControl"""
4747 val
= _controls
.new_PrePyControl(*args
, **kwargs
)
4751 #---------------------------------------------------------------------------
4753 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4754 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4755 wxEVT_HELP
= _controls
.wxEVT_HELP
4756 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4757 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4758 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4759 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4760 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4762 class HelpEvent(core
.CommandEvent
):
4764 A help event is sent when the user has requested
4765 context-sensitive help. This can either be caused by the
4766 application requesting context-sensitive help mode via
4767 wx.ContextHelp, or (on MS Windows) by the system generating a
4768 WM_HELP message when the user pressed F1 or clicked on the query
4769 button in a dialog caption.
4771 A help event is sent to the window that the user clicked on, and
4772 is propagated up the window hierarchy until the event is
4773 processed or there are no more event handlers. The application
4774 should call event.GetId to check the identity of the clicked-on
4775 window, and then either show some suitable help or call
4776 event.Skip if the identifier is unrecognised. Calling Skip is
4777 important because it allows wxWindows to generate further events
4778 for ancestors of the clicked-on window. Otherwise it would be
4779 impossible to show help for container windows, since processing
4780 would stop after the first window found.
4783 EVT_HELP Sent when the user has requested context-
4785 EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs
4789 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4790 def __init__(self
, *args
, **kwargs
):
4791 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4792 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4793 self
.this
= newobj
.this
4796 def GetPosition(*args
, **kwargs
):
4798 GetPosition() -> Point
4800 Returns the left-click position of the mouse, in screen
4801 coordinates. This allows the application to position the help
4804 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4806 def SetPosition(*args
, **kwargs
):
4808 SetPosition(Point pos)
4810 Sets the left-click position of the mouse, in screen coordinates.
4812 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4814 def GetLink(*args
, **kwargs
):
4818 Get an optional link to further help
4820 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4822 def SetLink(*args
, **kwargs
):
4824 SetLink(String link)
4826 Set an optional link to further help
4828 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4830 def GetTarget(*args
, **kwargs
):
4832 GetTarget() -> String
4834 Get an optional target to display help in. E.g. a window specification
4836 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4838 def SetTarget(*args
, **kwargs
):
4840 SetTarget(String target)
4842 Set an optional target to display help in. E.g. a window specification
4844 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4847 class HelpEventPtr(HelpEvent
):
4848 def __init__(self
, this
):
4850 if not hasattr(self
,"thisown"): self
.thisown
= 0
4851 self
.__class
__ = HelpEvent
4852 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4854 class ContextHelp(core
.Object
):
4856 This class changes the cursor to a query and puts the application
4857 into a 'context-sensitive help mode'. When the user left-clicks
4858 on a window within the specified window, a EVT_HELP event is sent
4859 to that control, and the application may respond to it by popping
4862 There are a couple of ways to invoke this behaviour implicitly:
4864 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a
4865 dialog (Windows only). This will put a question mark in the
4866 titlebar, and Windows will put the application into
4867 context-sensitive help mode automatically, with further
4870 * Create a wx.ContextHelpButton, whose predefined behaviour
4871 is to create a context help object. Normally you will write
4872 your application so that this button is only added to a
4873 dialog for non-Windows platforms (use
4874 wx.DIALOG_EX_CONTEXTHELP on Windows).
4878 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4879 def __init__(self
, *args
, **kwargs
):
4881 __init__(Window window=None, bool doNow=True) -> ContextHelp
4883 Constructs a context help object, calling BeginContextHelp if
4884 doNow is true (the default).
4886 If window is None, the top window is used.
4888 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4889 self
.this
= newobj
.this
4892 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4895 if self
.thisown
: destroy(self
)
4898 def BeginContextHelp(*args
, **kwargs
):
4900 BeginContextHelp(Window window=None) -> bool
4902 Puts the application into context-sensitive help mode. window is
4903 the window which will be used to catch events; if NULL, the top
4904 window will be used.
4906 Returns true if the application was successfully put into
4907 context-sensitive help mode. This function only returns when the
4908 event loop has finished.
4910 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4912 def EndContextHelp(*args
, **kwargs
):
4914 EndContextHelp() -> bool
4916 Ends context-sensitive help mode. Not normally called by the
4919 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4922 class ContextHelpPtr(ContextHelp
):
4923 def __init__(self
, this
):
4925 if not hasattr(self
,"thisown"): self
.thisown
= 0
4926 self
.__class
__ = ContextHelp
4927 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4929 class ContextHelpButton(BitmapButton
):
4931 Instances of this class may be used to add a question mark button
4932 that when pressed, puts the application into context-help
4933 mode. It does this by creating a wx.ContextHelp object which
4934 itself generates a EVT_HELP event when the user clicks on a
4937 On Windows, you may add a question-mark icon to a dialog by use
4938 of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other
4939 platforms you will have to add a button explicitly, usually next
4940 to OK, Cancel or similar buttons.
4944 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4945 def __init__(self
, *args
, **kwargs
):
4947 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4948 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4950 Constructor, creating and showing a context help button.
4952 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4953 self
.this
= newobj
.this
4956 self
._setOORInfo
(self
)
4959 class ContextHelpButtonPtr(ContextHelpButton
):
4960 def __init__(self
, this
):
4962 if not hasattr(self
,"thisown"): self
.thisown
= 0
4963 self
.__class
__ = ContextHelpButton
4964 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4966 class HelpProvider(object):
4968 wx.HelpProvider is an abstract class used by a program
4969 implementing context-sensitive help to show the help text for the
4972 The current help provider must be explicitly set by the
4973 application using wx.HelpProvider.Set().
4975 def __init__(self
): raise RuntimeError, "No constructor defined"
4977 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4978 def Set(*args
, **kwargs
):
4980 Set(HelpProvider helpProvider) -> HelpProvider
4982 Sset the current, application-wide help provider. Returns the
4983 previous one. Unlike some other classes, the help provider is
4984 not created on demand. This must be explicitly done by the
4987 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4989 Set
= staticmethod(Set
)
4990 def Get(*args
, **kwargs
):
4992 Get() -> HelpProvider
4994 Return the current application-wide help provider.
4996 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4998 Get
= staticmethod(Get
)
4999 def GetHelp(*args
, **kwargs
):
5001 GetHelp(Window window) -> String
5003 Gets the help string for this window. Its interpretation is
5004 dependent on the help provider except that empty string always
5005 means that no help is associated with the window.
5007 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
5009 def ShowHelp(*args
, **kwargs
):
5011 ShowHelp(Window window) -> bool
5013 Shows help for the given window. Uses GetHelp internally if
5016 Returns true if it was done, or false if no help was available
5019 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
5021 def AddHelp(*args
, **kwargs
):
5023 AddHelp(Window window, String text)
5025 Associates the text with the given window.
5027 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
5029 def AddHelpById(*args
, **kwargs
):
5031 AddHelpById(int id, String text)
5033 This version associates the given text with all windows with this
5034 id. May be used to set the same help string for all Cancel
5035 buttons in the application, for example.
5037 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
5039 def RemoveHelp(*args
, **kwargs
):
5041 RemoveHelp(Window window)
5043 Removes the association between the window pointer and the help
5044 text. This is called by the wx.Window destructor. Without this,
5045 the table of help strings will fill up and when window pointers
5046 are reused, the wrong help string will be found.
5048 return _controls
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5050 def Destroy(*args
, **kwargs
):
5052 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
5055 class HelpProviderPtr(HelpProvider
):
5056 def __init__(self
, this
):
5058 if not hasattr(self
,"thisown"): self
.thisown
= 0
5059 self
.__class
__ = HelpProvider
5060 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
5062 def HelpProvider_Set(*args
, **kwargs
):
5064 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5066 Sset the current, application-wide help provider. Returns the
5067 previous one. Unlike some other classes, the help provider is
5068 not created on demand. This must be explicitly done by the
5071 return _controls
.HelpProvider_Set(*args
, **kwargs
)
5073 def HelpProvider_Get(*args
, **kwargs
):
5075 HelpProvider_Get() -> HelpProvider
5077 Return the current application-wide help provider.
5079 return _controls
.HelpProvider_Get(*args
, **kwargs
)
5081 class SimpleHelpProvider(HelpProvider
):
5083 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5084 which supports only plain text help strings, and shows the string
5085 associated with the control (if any) in a tooltip.
5088 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5089 def __init__(self
, *args
, **kwargs
):
5091 __init__() -> SimpleHelpProvider
5093 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5094 which supports only plain text help strings, and shows the string
5095 associated with the control (if any) in a tooltip.
5097 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
5098 self
.this
= newobj
.this
5102 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5103 def __init__(self
, this
):
5105 if not hasattr(self
,"thisown"): self
.thisown
= 0
5106 self
.__class
__ = SimpleHelpProvider
5107 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5109 #---------------------------------------------------------------------------
5111 class DragImage(core
.Object
):
5113 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5114 def __init__(self
, *args
, **kwargs
):
5115 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5116 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
5117 self
.this
= newobj
.this
5120 def __del__(self
, destroy
=_controls
.delete_DragImage
):
5123 if self
.thisown
: destroy(self
)
5126 def SetBackingBitmap(*args
, **kwargs
):
5127 """SetBackingBitmap(Bitmap bitmap)"""
5128 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5130 def BeginDrag(*args
, **kwargs
):
5132 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
5133 Rect rect=None) -> bool
5135 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
5137 def BeginDragBounded(*args
, **kwargs
):
5138 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
5139 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
5141 def EndDrag(*args
, **kwargs
):
5142 """EndDrag() -> bool"""
5143 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
5145 def Move(*args
, **kwargs
):
5146 """Move(Point pt) -> bool"""
5147 return _controls
.DragImage_Move(*args
, **kwargs
)
5149 def Show(*args
, **kwargs
):
5150 """Show() -> bool"""
5151 return _controls
.DragImage_Show(*args
, **kwargs
)
5153 def Hide(*args
, **kwargs
):
5154 """Hide() -> bool"""
5155 return _controls
.DragImage_Hide(*args
, **kwargs
)
5157 def GetImageRect(*args
, **kwargs
):
5158 """GetImageRect(Point pos) -> Rect"""
5159 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
5161 def DoDrawImage(*args
, **kwargs
):
5162 """DoDrawImage(DC dc, Point pos) -> bool"""
5163 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
5165 def UpdateBackingFromWindow(*args
, **kwargs
):
5166 """UpdateBackingFromWindow(DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
5167 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
5169 def RedrawImage(*args
, **kwargs
):
5170 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
5171 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
5174 class DragImagePtr(DragImage
):
5175 def __init__(self
, this
):
5177 if not hasattr(self
,"thisown"): self
.thisown
= 0
5178 self
.__class
__ = DragImage
5179 _controls
.DragImage_swigregister(DragImagePtr
)
5181 def DragIcon(*args
, **kwargs
):
5182 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
5183 val
= _controls
.new_DragIcon(*args
, **kwargs
)
5187 def DragString(*args
, **kwargs
):
5188 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
5189 val
= _controls
.new_DragString(*args
, **kwargs
)
5193 def DragTreeItem(*args
, **kwargs
):
5194 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
5195 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
5199 def DragListItem(*args
, **kwargs
):
5200 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
5201 val
= _controls
.new_DragListItem(*args
, **kwargs
)