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
)
947 def GetClassDefaultAttributes(*args
, **kwargs
):
949 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
951 Get the default attributes for this class. This is useful if
952 you want to use the same font or colour in your own control as
953 in a standard control -- which is a much better idea than hard
954 coding specific colours or fonts which might look completely out
955 of place on the users system, especially if it uses themes.
957 The variant parameter is only relevant under Mac currently and is
958 ignore under other platforms. Under Mac, it will change the size of the
959 returned font. See SetWindowVariant for more about this.
961 return _controls
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
963 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
965 class ListBoxPtr(ListBox
):
966 def __init__(self
, this
):
968 if not hasattr(self
,"thisown"): self
.thisown
= 0
969 self
.__class
__ = ListBox
970 _controls
.ListBox_swigregister(ListBoxPtr
)
971 ListBoxNameStr
= cvar
.ListBoxNameStr
973 def PreListBox(*args
, **kwargs
):
974 """PreListBox() -> ListBox"""
975 val
= _controls
.new_PreListBox(*args
, **kwargs
)
979 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
981 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
983 Get the default attributes for this class. This is useful if
984 you want to use the same font or colour in your own control as
985 in a standard control -- which is a much better idea than hard
986 coding specific colours or fonts which might look completely out
987 of place on the users system, especially if it uses themes.
989 The variant parameter is only relevant under Mac currently and is
990 ignore under other platforms. Under Mac, it will change the size of the
991 returned font. See SetWindowVariant for more about this.
993 return _controls
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
995 #---------------------------------------------------------------------------
997 class CheckListBox(ListBox
):
999 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1000 def __init__(self
, *args
, **kwargs
):
1002 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1003 wxArrayString choices=wxPyEmptyStringArray,
1004 long style=0, Validator validator=DefaultValidator,
1005 String name=ListBoxNameStr) -> CheckListBox
1007 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
1008 self
.this
= newobj
.this
1011 self
._setOORInfo
(self
)
1013 def Create(*args
, **kwargs
):
1015 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1016 wxArrayString choices=wxPyEmptyStringArray,
1017 long style=0, Validator validator=DefaultValidator,
1018 String name=ListBoxNameStr) -> bool
1020 return _controls
.CheckListBox_Create(*args
, **kwargs
)
1022 def IsChecked(*args
, **kwargs
):
1023 """IsChecked(int index) -> bool"""
1024 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
1026 def Check(*args
, **kwargs
):
1027 """Check(int index, int check=True)"""
1028 return _controls
.CheckListBox_Check(*args
, **kwargs
)
1030 def GetItemHeight(*args
, **kwargs
):
1031 """GetItemHeight() -> int"""
1032 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1034 def HitTest(*args
, **kwargs
):
1036 HitTest(Point pt) -> int
1038 Test where the given (in client coords) point lies
1040 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
1042 def HitTestXY(*args
, **kwargs
):
1044 HitTestXY(int x, int y) -> int
1046 Test where the given (in client coords) point lies
1048 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
1051 class CheckListBoxPtr(CheckListBox
):
1052 def __init__(self
, this
):
1054 if not hasattr(self
,"thisown"): self
.thisown
= 0
1055 self
.__class
__ = CheckListBox
1056 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
1058 def PreCheckListBox(*args
, **kwargs
):
1059 """PreCheckListBox() -> CheckListBox"""
1060 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
1064 #---------------------------------------------------------------------------
1066 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
1067 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
1068 TE_READONLY
= _controls
.TE_READONLY
1069 TE_MULTILINE
= _controls
.TE_MULTILINE
1070 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
1071 TE_LEFT
= _controls
.TE_LEFT
1072 TE_CENTER
= _controls
.TE_CENTER
1073 TE_RIGHT
= _controls
.TE_RIGHT
1074 TE_CENTRE
= _controls
.TE_CENTRE
1075 TE_RICH
= _controls
.TE_RICH
1076 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
1077 TE_PASSWORD
= _controls
.TE_PASSWORD
1078 TE_AUTO_URL
= _controls
.TE_AUTO_URL
1079 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
1080 TE_DONTWRAP
= _controls
.TE_DONTWRAP
1081 TE_LINEWRAP
= _controls
.TE_LINEWRAP
1082 TE_WORDWRAP
= _controls
.TE_WORDWRAP
1083 TE_RICH2
= _controls
.TE_RICH2
1084 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
1085 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
1086 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
1087 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
1088 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
1089 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
1090 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
1091 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
1092 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
1093 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
1094 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
1095 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
1096 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
1097 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
1098 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
1099 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
1100 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
1101 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
1102 TE_HT_UNKNOWN
= _controls
.TE_HT_UNKNOWN
1103 TE_HT_BEFORE
= _controls
.TE_HT_BEFORE
1104 TE_HT_ON_TEXT
= _controls
.TE_HT_ON_TEXT
1105 TE_HT_BELOW
= _controls
.TE_HT_BELOW
1106 TE_HT_BEYOND
= _controls
.TE_HT_BEYOND
1107 class TextAttr(object):
1109 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1110 def __init__(self
, *args
):
1112 __init__() -> TextAttr
1113 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1114 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1116 newobj
= _controls
.new_TextAttr(*args
)
1117 self
.this
= newobj
.this
1120 def __del__(self
, destroy
=_controls
.delete_TextAttr
):
1123 if self
.thisown
: destroy(self
)
1126 def Init(*args
, **kwargs
):
1128 return _controls
.TextAttr_Init(*args
, **kwargs
)
1130 def SetTextColour(*args
, **kwargs
):
1131 """SetTextColour(Colour colText)"""
1132 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
1134 def SetBackgroundColour(*args
, **kwargs
):
1135 """SetBackgroundColour(Colour colBack)"""
1136 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1138 def SetFont(*args
, **kwargs
):
1139 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
1140 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
1142 def SetAlignment(*args
, **kwargs
):
1143 """SetAlignment(int alignment)"""
1144 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
1146 def SetTabs(*args
, **kwargs
):
1147 """SetTabs(wxArrayInt tabs)"""
1148 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
1150 def SetLeftIndent(*args
, **kwargs
):
1151 """SetLeftIndent(int indent)"""
1152 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1154 def SetRightIndent(*args
, **kwargs
):
1155 """SetRightIndent(int indent)"""
1156 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
1158 def SetFlags(*args
, **kwargs
):
1159 """SetFlags(long flags)"""
1160 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
1162 def HasTextColour(*args
, **kwargs
):
1163 """HasTextColour() -> bool"""
1164 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
1166 def HasBackgroundColour(*args
, **kwargs
):
1167 """HasBackgroundColour() -> bool"""
1168 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1170 def HasFont(*args
, **kwargs
):
1171 """HasFont() -> bool"""
1172 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
1174 def HasAlignment(*args
, **kwargs
):
1175 """HasAlignment() -> bool"""
1176 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
1178 def HasTabs(*args
, **kwargs
):
1179 """HasTabs() -> bool"""
1180 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
1182 def HasLeftIndent(*args
, **kwargs
):
1183 """HasLeftIndent() -> bool"""
1184 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1186 def HasRightIndent(*args
, **kwargs
):
1187 """HasRightIndent() -> bool"""
1188 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
1190 def HasFlag(*args
, **kwargs
):
1191 """HasFlag(long flag) -> bool"""
1192 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
1194 def GetTextColour(*args
, **kwargs
):
1195 """GetTextColour() -> Colour"""
1196 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
1198 def GetBackgroundColour(*args
, **kwargs
):
1199 """GetBackgroundColour() -> Colour"""
1200 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1202 def GetFont(*args
, **kwargs
):
1203 """GetFont() -> Font"""
1204 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1206 def GetAlignment(*args
, **kwargs
):
1207 """GetAlignment() -> int"""
1208 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1210 def GetTabs(*args
, **kwargs
):
1211 """GetTabs() -> wxArrayInt"""
1212 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1214 def GetLeftIndent(*args
, **kwargs
):
1215 """GetLeftIndent() -> long"""
1216 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1218 def GetRightIndent(*args
, **kwargs
):
1219 """GetRightIndent() -> long"""
1220 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1222 def GetFlags(*args
, **kwargs
):
1223 """GetFlags() -> long"""
1224 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1226 def IsDefault(*args
, **kwargs
):
1227 """IsDefault() -> bool"""
1228 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1230 def Combine(*args
, **kwargs
):
1231 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1232 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1234 Combine
= staticmethod(Combine
)
1236 class TextAttrPtr(TextAttr
):
1237 def __init__(self
, this
):
1239 if not hasattr(self
,"thisown"): self
.thisown
= 0
1240 self
.__class
__ = TextAttr
1241 _controls
.TextAttr_swigregister(TextAttrPtr
)
1242 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1244 def TextAttr_Combine(*args
, **kwargs
):
1245 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1246 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1248 class TextCtrl(core
.Control
):
1250 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1251 def __init__(self
, *args
, **kwargs
):
1253 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1254 Size size=DefaultSize,
1255 long style=0, Validator validator=DefaultValidator,
1256 String name=TextCtrlNameStr) -> TextCtrl
1258 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1259 self
.this
= newobj
.this
1262 self
._setOORInfo
(self
)
1264 def Create(*args
, **kwargs
):
1266 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1267 Size size=DefaultSize,
1268 long style=0, Validator validator=DefaultValidator,
1269 String name=TextCtrlNameStr) -> bool
1271 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1273 def GetValue(*args
, **kwargs
):
1274 """GetValue() -> String"""
1275 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1277 def SetValue(*args
, **kwargs
):
1278 """SetValue(String value)"""
1279 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1281 def GetRange(*args
, **kwargs
):
1282 """GetRange(long from, long to) -> String"""
1283 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1285 def GetLineLength(*args
, **kwargs
):
1286 """GetLineLength(long lineNo) -> int"""
1287 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1289 def GetLineText(*args
, **kwargs
):
1290 """GetLineText(long lineNo) -> String"""
1291 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1293 def GetNumberOfLines(*args
, **kwargs
):
1294 """GetNumberOfLines() -> int"""
1295 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1297 def IsModified(*args
, **kwargs
):
1298 """IsModified() -> bool"""
1299 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1301 def IsEditable(*args
, **kwargs
):
1302 """IsEditable() -> bool"""
1303 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1305 def IsSingleLine(*args
, **kwargs
):
1306 """IsSingleLine() -> bool"""
1307 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1309 def IsMultiLine(*args
, **kwargs
):
1310 """IsMultiLine() -> bool"""
1311 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1313 def GetSelection(*args
, **kwargs
):
1315 GetSelection() -> (from, to)
1317 If the return values from and to are the same, there is no selection.
1319 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1321 def GetStringSelection(*args
, **kwargs
):
1322 """GetStringSelection() -> String"""
1323 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1325 def Clear(*args
, **kwargs
):
1327 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1329 def Replace(*args
, **kwargs
):
1330 """Replace(long from, long to, String value)"""
1331 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1333 def Remove(*args
, **kwargs
):
1334 """Remove(long from, long to)"""
1335 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1337 def LoadFile(*args
, **kwargs
):
1338 """LoadFile(String file) -> bool"""
1339 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1341 def SaveFile(*args
, **kwargs
):
1342 """SaveFile(String file=EmptyString) -> bool"""
1343 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1345 def MarkDirty(*args
, **kwargs
):
1347 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1349 def DiscardEdits(*args
, **kwargs
):
1350 """DiscardEdits()"""
1351 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1353 def SetMaxLength(*args
, **kwargs
):
1354 """SetMaxLength(unsigned long len)"""
1355 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1357 def WriteText(*args
, **kwargs
):
1358 """WriteText(String text)"""
1359 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1361 def AppendText(*args
, **kwargs
):
1362 """AppendText(String text)"""
1363 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1365 def EmulateKeyPress(*args
, **kwargs
):
1366 """EmulateKeyPress(KeyEvent event) -> bool"""
1367 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1369 def SetStyle(*args
, **kwargs
):
1370 """SetStyle(long start, long end, TextAttr style) -> bool"""
1371 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1373 def GetStyle(*args
, **kwargs
):
1374 """GetStyle(long position, TextAttr style) -> bool"""
1375 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1377 def SetDefaultStyle(*args
, **kwargs
):
1378 """SetDefaultStyle(TextAttr style) -> bool"""
1379 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1381 def GetDefaultStyle(*args
, **kwargs
):
1382 """GetDefaultStyle() -> TextAttr"""
1383 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1385 def XYToPosition(*args
, **kwargs
):
1386 """XYToPosition(long x, long y) -> long"""
1387 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1389 def PositionToXY(*args
, **kwargs
):
1390 """PositionToXY(long pos) -> (x, y)"""
1391 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1393 def ShowPosition(*args
, **kwargs
):
1394 """ShowPosition(long pos)"""
1395 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1397 def HitTest(*args
, **kwargs
):
1399 HitTest(Point pt) -> (result, row, col)
1401 Find the character at position given in pixels.
1402 NB: pt is in device coords (not adjusted for the client area
1403 origin nor scrolling)
1405 return _controls
.TextCtrl_HitTest(*args
, **kwargs
)
1407 def Copy(*args
, **kwargs
):
1409 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1411 def Cut(*args
, **kwargs
):
1413 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1415 def Paste(*args
, **kwargs
):
1417 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1419 def CanCopy(*args
, **kwargs
):
1420 """CanCopy() -> bool"""
1421 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1423 def CanCut(*args
, **kwargs
):
1424 """CanCut() -> bool"""
1425 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1427 def CanPaste(*args
, **kwargs
):
1428 """CanPaste() -> bool"""
1429 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1431 def Undo(*args
, **kwargs
):
1433 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1435 def Redo(*args
, **kwargs
):
1437 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1439 def CanUndo(*args
, **kwargs
):
1440 """CanUndo() -> bool"""
1441 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1443 def CanRedo(*args
, **kwargs
):
1444 """CanRedo() -> bool"""
1445 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1447 def SetInsertionPoint(*args
, **kwargs
):
1448 """SetInsertionPoint(long pos)"""
1449 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1451 def SetInsertionPointEnd(*args
, **kwargs
):
1452 """SetInsertionPointEnd()"""
1453 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1455 def GetInsertionPoint(*args
, **kwargs
):
1456 """GetInsertionPoint() -> long"""
1457 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1459 def GetLastPosition(*args
, **kwargs
):
1460 """GetLastPosition() -> long"""
1461 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1463 def SetSelection(*args
, **kwargs
):
1464 """SetSelection(long from, long to)"""
1465 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1467 def SelectAll(*args
, **kwargs
):
1469 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1471 def SetEditable(*args
, **kwargs
):
1472 """SetEditable(bool editable)"""
1473 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1475 def ShowNativeCaret(*args
, **kwargs
):
1476 """ShowNativeCaret(bool show=True) -> bool"""
1477 return _controls
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1479 def HideNativeCaret(*args
, **kwargs
):
1480 """HideNativeCaret() -> bool"""
1481 return _controls
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1483 def write(*args
, **kwargs
):
1484 """write(String text)"""
1485 return _controls
.TextCtrl_write(*args
, **kwargs
)
1487 def GetString(*args
, **kwargs
):
1488 """GetString(long from, long to) -> String"""
1489 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1492 class TextCtrlPtr(TextCtrl
):
1493 def __init__(self
, this
):
1495 if not hasattr(self
,"thisown"): self
.thisown
= 0
1496 self
.__class
__ = TextCtrl
1497 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1499 def PreTextCtrl(*args
, **kwargs
):
1500 """PreTextCtrl() -> TextCtrl"""
1501 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1505 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1506 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1507 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1508 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1509 class TextUrlEvent(core
.CommandEvent
):
1511 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1512 def __init__(self
, *args
, **kwargs
):
1513 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1514 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1515 self
.this
= newobj
.this
1518 def GetMouseEvent(*args
, **kwargs
):
1519 """GetMouseEvent() -> MouseEvent"""
1520 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1522 def GetURLStart(*args
, **kwargs
):
1523 """GetURLStart() -> long"""
1524 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1526 def GetURLEnd(*args
, **kwargs
):
1527 """GetURLEnd() -> long"""
1528 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1531 class TextUrlEventPtr(TextUrlEvent
):
1532 def __init__(self
, this
):
1534 if not hasattr(self
,"thisown"): self
.thisown
= 0
1535 self
.__class
__ = TextUrlEvent
1536 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1538 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1539 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1540 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1541 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1543 #---------------------------------------------------------------------------
1545 class ScrollBar(core
.Control
):
1547 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1548 def __init__(self
, *args
, **kwargs
):
1550 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1551 Size size=DefaultSize, long style=SB_HORIZONTAL,
1552 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1554 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1555 self
.this
= newobj
.this
1558 self
._setOORInfo
(self
)
1560 def Create(*args
, **kwargs
):
1562 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1563 Size size=DefaultSize, long style=SB_HORIZONTAL,
1564 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1566 Do the 2nd phase and create the GUI control.
1568 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1570 def GetThumbPosition(*args
, **kwargs
):
1571 """GetThumbPosition() -> int"""
1572 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1574 def GetThumbSize(*args
, **kwargs
):
1575 """GetThumbSize() -> int"""
1576 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1578 GetThumbLength
= GetThumbSize
1579 def GetPageSize(*args
, **kwargs
):
1580 """GetPageSize() -> int"""
1581 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1583 def GetRange(*args
, **kwargs
):
1584 """GetRange() -> int"""
1585 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1587 def IsVertical(*args
, **kwargs
):
1588 """IsVertical() -> bool"""
1589 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1591 def SetThumbPosition(*args
, **kwargs
):
1592 """SetThumbPosition(int viewStart)"""
1593 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1595 def SetScrollbar(*args
, **kwargs
):
1597 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1600 Sets the scrollbar properties of a built-in scrollbar.
1602 orientation: Determines the scrollbar whose page size is to be
1603 set. May be wx.HORIZONTAL or wx.VERTICAL.
1605 position: The position of the scrollbar in scroll units.
1607 thumbSize: The size of the thumb, or visible portion of the
1608 scrollbar, in scroll units.
1610 range: The maximum position of the scrollbar.
1612 refresh: True to redraw the scrollbar, false otherwise.
1614 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1617 class ScrollBarPtr(ScrollBar
):
1618 def __init__(self
, this
):
1620 if not hasattr(self
,"thisown"): self
.thisown
= 0
1621 self
.__class
__ = ScrollBar
1622 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1623 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1625 def PreScrollBar(*args
, **kwargs
):
1626 """PreScrollBar() -> ScrollBar"""
1627 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1631 #---------------------------------------------------------------------------
1633 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1634 SP_VERTICAL
= _controls
.SP_VERTICAL
1635 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1636 SP_WRAP
= _controls
.SP_WRAP
1637 class SpinButton(core
.Control
):
1639 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1640 def __init__(self
, *args
, **kwargs
):
1642 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1643 Size size=DefaultSize, long style=SP_HORIZONTAL,
1644 String name=SPIN_BUTTON_NAME) -> SpinButton
1646 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1647 self
.this
= newobj
.this
1650 self
._setOORInfo
(self
)
1652 def Create(*args
, **kwargs
):
1654 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1655 Size size=DefaultSize, long style=SP_HORIZONTAL,
1656 String name=SPIN_BUTTON_NAME) -> bool
1658 return _controls
.SpinButton_Create(*args
, **kwargs
)
1660 def GetValue(*args
, **kwargs
):
1661 """GetValue() -> int"""
1662 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1664 def GetMin(*args
, **kwargs
):
1665 """GetMin() -> int"""
1666 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1668 def GetMax(*args
, **kwargs
):
1669 """GetMax() -> int"""
1670 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1672 def SetValue(*args
, **kwargs
):
1673 """SetValue(int val)"""
1674 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1676 def SetMin(*args
, **kwargs
):
1677 """SetMin(int minVal)"""
1678 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1680 def SetMax(*args
, **kwargs
):
1681 """SetMax(int maxVal)"""
1682 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1684 def SetRange(*args
, **kwargs
):
1685 """SetRange(int minVal, int maxVal)"""
1686 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1688 def IsVertical(*args
, **kwargs
):
1689 """IsVertical() -> bool"""
1690 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1693 class SpinButtonPtr(SpinButton
):
1694 def __init__(self
, this
):
1696 if not hasattr(self
,"thisown"): self
.thisown
= 0
1697 self
.__class
__ = SpinButton
1698 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1699 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1700 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1702 def PreSpinButton(*args
, **kwargs
):
1703 """PreSpinButton() -> SpinButton"""
1704 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1708 class SpinCtrl(core
.Control
):
1710 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1711 def __init__(self
, *args
, **kwargs
):
1713 __init__(Window parent, int id=-1, String value=EmptyString,
1714 Point pos=DefaultPosition, Size size=DefaultSize,
1715 long style=SP_ARROW_KEYS, int min=0, int max=100,
1716 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1718 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1719 self
.this
= newobj
.this
1722 self
._setOORInfo
(self
)
1724 def Create(*args
, **kwargs
):
1726 Create(Window parent, int id=-1, String value=EmptyString,
1727 Point pos=DefaultPosition, Size size=DefaultSize,
1728 long style=SP_ARROW_KEYS, int min=0, int max=100,
1729 int initial=0, String name=SpinCtrlNameStr) -> bool
1731 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1733 def GetValue(*args
, **kwargs
):
1734 """GetValue() -> int"""
1735 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1737 def SetValue(*args
, **kwargs
):
1738 """SetValue(int value)"""
1739 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1741 def SetValueString(*args
, **kwargs
):
1742 """SetValueString(String text)"""
1743 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1745 def SetRange(*args
, **kwargs
):
1746 """SetRange(int minVal, int maxVal)"""
1747 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1749 def GetMin(*args
, **kwargs
):
1750 """GetMin() -> int"""
1751 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1753 def GetMax(*args
, **kwargs
):
1754 """GetMax() -> int"""
1755 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1757 def SetSelection(*args
, **kwargs
):
1758 """SetSelection(long from, long to)"""
1759 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1762 class SpinCtrlPtr(SpinCtrl
):
1763 def __init__(self
, this
):
1765 if not hasattr(self
,"thisown"): self
.thisown
= 0
1766 self
.__class
__ = SpinCtrl
1767 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1769 def PreSpinCtrl(*args
, **kwargs
):
1770 """PreSpinCtrl() -> SpinCtrl"""
1771 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1775 class SpinEvent(core
.NotifyEvent
):
1777 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1778 def __init__(self
, *args
, **kwargs
):
1779 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1780 newobj
= _controls
.new_SpinEvent(*args
, **kwargs
)
1781 self
.this
= newobj
.this
1784 def GetPosition(*args
, **kwargs
):
1785 """GetPosition() -> int"""
1786 return _controls
.SpinEvent_GetPosition(*args
, **kwargs
)
1788 def SetPosition(*args
, **kwargs
):
1789 """SetPosition(int pos)"""
1790 return _controls
.SpinEvent_SetPosition(*args
, **kwargs
)
1793 class SpinEventPtr(SpinEvent
):
1794 def __init__(self
, this
):
1796 if not hasattr(self
,"thisown"): self
.thisown
= 0
1797 self
.__class
__ = SpinEvent
1798 _controls
.SpinEvent_swigregister(SpinEventPtr
)
1800 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1801 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1802 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1803 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1804 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1806 #---------------------------------------------------------------------------
1808 class RadioBox(core
.Control
):
1810 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1811 def __init__(self
, *args
, **kwargs
):
1813 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1814 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1815 int majorDimension=0,
1816 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1817 String name=RadioBoxNameStr) -> RadioBox
1819 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1820 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1821 self
.this
= newobj
.this
1824 self
._setOORInfo
(self
)
1826 def Create(*args
, **kwargs
):
1828 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1829 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1830 int majorDimension=0,
1831 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1832 String name=RadioBoxNameStr) -> bool
1834 return _controls
.RadioBox_Create(*args
, **kwargs
)
1836 def SetSelection(*args
, **kwargs
):
1837 """SetSelection(int n)"""
1838 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1840 def GetSelection(*args
, **kwargs
):
1841 """GetSelection() -> int"""
1842 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1844 def GetStringSelection(*args
, **kwargs
):
1845 """GetStringSelection() -> String"""
1846 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1848 def SetStringSelection(*args
, **kwargs
):
1849 """SetStringSelection(String s) -> bool"""
1850 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1852 def GetCount(*args
, **kwargs
):
1853 """GetCount() -> int"""
1854 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1856 def FindString(*args
, **kwargs
):
1857 """FindString(String s) -> int"""
1858 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1860 def GetString(*args
, **kwargs
):
1861 """GetString(int n) -> String"""
1862 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1864 def SetString(*args
, **kwargs
):
1865 """SetString(int n, String label)"""
1866 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1868 GetItemLabel
= GetString
1869 SetItemLabel
= SetString
1870 def EnableItem(*args
, **kwargs
):
1871 """EnableItem(int n, bool enable=True)"""
1872 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1874 def ShowItem(*args
, **kwargs
):
1875 """ShowItem(int n, bool show=True)"""
1876 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1878 def GetColumnCount(*args
, **kwargs
):
1879 """GetColumnCount() -> int"""
1880 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1882 def GetRowCount(*args
, **kwargs
):
1883 """GetRowCount() -> int"""
1884 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1886 def GetNextItem(*args
, **kwargs
):
1887 """GetNextItem(int item, int dir, long style) -> int"""
1888 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1891 class RadioBoxPtr(RadioBox
):
1892 def __init__(self
, this
):
1894 if not hasattr(self
,"thisown"): self
.thisown
= 0
1895 self
.__class
__ = RadioBox
1896 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1897 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1898 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1900 def PreRadioBox(*args
, **kwargs
):
1901 """PreRadioBox() -> RadioBox"""
1902 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1906 #---------------------------------------------------------------------------
1908 class RadioButton(core
.Control
):
1910 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1911 def __init__(self
, *args
, **kwargs
):
1913 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1914 Size size=DefaultSize, long style=0,
1915 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1917 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1918 self
.this
= newobj
.this
1921 self
._setOORInfo
(self
)
1923 def Create(*args
, **kwargs
):
1925 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1926 Size size=DefaultSize, long style=0,
1927 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1929 return _controls
.RadioButton_Create(*args
, **kwargs
)
1931 def GetValue(*args
, **kwargs
):
1932 """GetValue() -> bool"""
1933 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1935 def SetValue(*args
, **kwargs
):
1936 """SetValue(bool value)"""
1937 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1940 class RadioButtonPtr(RadioButton
):
1941 def __init__(self
, this
):
1943 if not hasattr(self
,"thisown"): self
.thisown
= 0
1944 self
.__class
__ = RadioButton
1945 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1947 def PreRadioButton(*args
, **kwargs
):
1948 """PreRadioButton() -> RadioButton"""
1949 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1953 #---------------------------------------------------------------------------
1955 class Slider(core
.Control
):
1957 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1958 def __init__(self
, *args
, **kwargs
):
1960 __init__(Window parent, int id, int value, int minValue, int maxValue,
1961 Point pos=DefaultPosition, Size size=DefaultSize,
1962 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1963 String name=SliderNameStr) -> Slider
1965 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1966 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1967 self
.this
= newobj
.this
1970 self
._setOORInfo
(self
)
1972 def Create(*args
, **kwargs
):
1974 Create(Window parent, int id, int value, int minValue, int maxValue,
1975 Point pos=DefaultPosition, Size size=DefaultSize,
1976 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1977 String name=SliderNameStr) -> bool
1979 return _controls
.Slider_Create(*args
, **kwargs
)
1981 def GetValue(*args
, **kwargs
):
1982 """GetValue() -> int"""
1983 return _controls
.Slider_GetValue(*args
, **kwargs
)
1985 def SetValue(*args
, **kwargs
):
1986 """SetValue(int value)"""
1987 return _controls
.Slider_SetValue(*args
, **kwargs
)
1989 def SetRange(*args
, **kwargs
):
1990 """SetRange(int minValue, int maxValue)"""
1991 return _controls
.Slider_SetRange(*args
, **kwargs
)
1993 def GetMin(*args
, **kwargs
):
1994 """GetMin() -> int"""
1995 return _controls
.Slider_GetMin(*args
, **kwargs
)
1997 def GetMax(*args
, **kwargs
):
1998 """GetMax() -> int"""
1999 return _controls
.Slider_GetMax(*args
, **kwargs
)
2001 def SetMin(*args
, **kwargs
):
2002 """SetMin(int minValue)"""
2003 return _controls
.Slider_SetMin(*args
, **kwargs
)
2005 def SetMax(*args
, **kwargs
):
2006 """SetMax(int maxValue)"""
2007 return _controls
.Slider_SetMax(*args
, **kwargs
)
2009 def SetLineSize(*args
, **kwargs
):
2010 """SetLineSize(int lineSize)"""
2011 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
2013 def SetPageSize(*args
, **kwargs
):
2014 """SetPageSize(int pageSize)"""
2015 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
2017 def GetLineSize(*args
, **kwargs
):
2018 """GetLineSize() -> int"""
2019 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
2021 def GetPageSize(*args
, **kwargs
):
2022 """GetPageSize() -> int"""
2023 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
2025 def SetThumbLength(*args
, **kwargs
):
2026 """SetThumbLength(int lenPixels)"""
2027 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
2029 def GetThumbLength(*args
, **kwargs
):
2030 """GetThumbLength() -> int"""
2031 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
2033 def SetTickFreq(*args
, **kwargs
):
2034 """SetTickFreq(int n, int pos=1)"""
2035 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
2037 def GetTickFreq(*args
, **kwargs
):
2038 """GetTickFreq() -> int"""
2039 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
2041 def ClearTicks(*args
, **kwargs
):
2043 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
2045 def SetTick(*args
, **kwargs
):
2046 """SetTick(int tickPos)"""
2047 return _controls
.Slider_SetTick(*args
, **kwargs
)
2049 def ClearSel(*args
, **kwargs
):
2051 return _controls
.Slider_ClearSel(*args
, **kwargs
)
2053 def GetSelEnd(*args
, **kwargs
):
2054 """GetSelEnd() -> int"""
2055 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
2057 def GetSelStart(*args
, **kwargs
):
2058 """GetSelStart() -> int"""
2059 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
2061 def SetSelection(*args
, **kwargs
):
2062 """SetSelection(int min, int max)"""
2063 return _controls
.Slider_SetSelection(*args
, **kwargs
)
2066 class SliderPtr(Slider
):
2067 def __init__(self
, this
):
2069 if not hasattr(self
,"thisown"): self
.thisown
= 0
2070 self
.__class
__ = Slider
2071 _controls
.Slider_swigregister(SliderPtr
)
2072 SliderNameStr
= cvar
.SliderNameStr
2074 def PreSlider(*args
, **kwargs
):
2075 """PreSlider() -> Slider"""
2076 val
= _controls
.new_PreSlider(*args
, **kwargs
)
2080 #---------------------------------------------------------------------------
2082 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2083 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2085 class ToggleButton(core
.Control
):
2087 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2088 def __init__(self
, *args
, **kwargs
):
2090 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
2091 Size size=DefaultSize, long style=0,
2092 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2094 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
2095 self
.this
= newobj
.this
2098 self
._setOORInfo
(self
)
2100 def Create(*args
, **kwargs
):
2102 Create(Window parent, int id, String label, Point pos=DefaultPosition,
2103 Size size=DefaultSize, long style=0,
2104 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
2106 return _controls
.ToggleButton_Create(*args
, **kwargs
)
2108 def SetValue(*args
, **kwargs
):
2109 """SetValue(bool value)"""
2110 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
2112 def GetValue(*args
, **kwargs
):
2113 """GetValue() -> bool"""
2114 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
2116 def SetLabel(*args
, **kwargs
):
2118 SetLabel(String label)
2120 Sets the item's text.
2122 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
2125 class ToggleButtonPtr(ToggleButton
):
2126 def __init__(self
, this
):
2128 if not hasattr(self
,"thisown"): self
.thisown
= 0
2129 self
.__class
__ = ToggleButton
2130 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
2131 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2133 def PreToggleButton(*args
, **kwargs
):
2134 """PreToggleButton() -> ToggleButton"""
2135 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
2139 #---------------------------------------------------------------------------
2141 class BookCtrl(core
.Control
):
2142 def __init__(self
): raise RuntimeError, "No constructor defined"
2144 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2145 def GetPageCount(*args
, **kwargs
):
2146 """GetPageCount() -> size_t"""
2147 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
2149 def GetPage(*args
, **kwargs
):
2150 """GetPage(size_t n) -> Window"""
2151 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
2153 def GetSelection(*args
, **kwargs
):
2154 """GetSelection() -> int"""
2155 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
2157 def SetPageText(*args
, **kwargs
):
2158 """SetPageText(size_t n, String strText) -> bool"""
2159 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
2161 def GetPageText(*args
, **kwargs
):
2162 """GetPageText(size_t n) -> String"""
2163 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
2165 def SetImageList(*args
, **kwargs
):
2166 """SetImageList(ImageList imageList)"""
2167 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
2169 def AssignImageList(*args
, **kwargs
):
2170 """AssignImageList(ImageList imageList)"""
2171 return _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
2173 def GetImageList(*args
, **kwargs
):
2174 """GetImageList() -> ImageList"""
2175 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
2177 def GetPageImage(*args
, **kwargs
):
2178 """GetPageImage(size_t n) -> int"""
2179 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
2181 def SetPageImage(*args
, **kwargs
):
2182 """SetPageImage(size_t n, int imageId) -> bool"""
2183 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
2185 def SetPageSize(*args
, **kwargs
):
2186 """SetPageSize(Size size)"""
2187 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
2189 def CalcSizeFromPage(*args
, **kwargs
):
2190 """CalcSizeFromPage(Size sizePage) -> Size"""
2191 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2193 def DeletePage(*args
, **kwargs
):
2194 """DeletePage(size_t n) -> bool"""
2195 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
2197 def RemovePage(*args
, **kwargs
):
2198 """RemovePage(size_t n) -> bool"""
2199 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
2201 def DeleteAllPages(*args
, **kwargs
):
2202 """DeleteAllPages() -> bool"""
2203 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2205 def AddPage(*args
, **kwargs
):
2206 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
2207 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
2209 def InsertPage(*args
, **kwargs
):
2211 InsertPage(size_t n, Window page, String text, bool select=False,
2212 int imageId=-1) -> bool
2214 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
2216 def SetSelection(*args
, **kwargs
):
2217 """SetSelection(size_t n) -> int"""
2218 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
2220 def AdvanceSelection(*args
, **kwargs
):
2221 """AdvanceSelection(bool forward=True)"""
2222 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2225 class BookCtrlPtr(BookCtrl
):
2226 def __init__(self
, this
):
2228 if not hasattr(self
,"thisown"): self
.thisown
= 0
2229 self
.__class
__ = BookCtrl
2230 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
2231 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2233 class BookCtrlEvent(core
.NotifyEvent
):
2235 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2236 def __init__(self
, *args
, **kwargs
):
2238 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2239 int nOldSel=-1) -> BookCtrlEvent
2241 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
2242 self
.this
= newobj
.this
2245 def GetSelection(*args
, **kwargs
):
2246 """GetSelection() -> int"""
2247 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2249 def SetSelection(*args
, **kwargs
):
2250 """SetSelection(int nSel)"""
2251 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2253 def GetOldSelection(*args
, **kwargs
):
2254 """GetOldSelection() -> int"""
2255 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2257 def SetOldSelection(*args
, **kwargs
):
2258 """SetOldSelection(int nOldSel)"""
2259 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2262 class BookCtrlEventPtr(BookCtrlEvent
):
2263 def __init__(self
, this
):
2265 if not hasattr(self
,"thisown"): self
.thisown
= 0
2266 self
.__class
__ = BookCtrlEvent
2267 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2269 #---------------------------------------------------------------------------
2271 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2272 NB_TOP
= _controls
.NB_TOP
2273 NB_LEFT
= _controls
.NB_LEFT
2274 NB_RIGHT
= _controls
.NB_RIGHT
2275 NB_BOTTOM
= _controls
.NB_BOTTOM
2276 NB_MULTILINE
= _controls
.NB_MULTILINE
2277 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2278 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2279 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2280 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2281 class Notebook(BookCtrl
):
2283 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2284 def __init__(self
, *args
, **kwargs
):
2286 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
2287 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2289 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2290 self
.this
= newobj
.this
2293 self
._setOORInfo
(self
)
2295 def Create(*args
, **kwargs
):
2297 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2298 long style=0, String name=NOTEBOOK_NAME) -> bool
2300 return _controls
.Notebook_Create(*args
, **kwargs
)
2302 def GetRowCount(*args
, **kwargs
):
2303 """GetRowCount() -> int"""
2304 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2306 def SetPadding(*args
, **kwargs
):
2307 """SetPadding(Size padding)"""
2308 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2310 def SetTabSize(*args
, **kwargs
):
2311 """SetTabSize(Size sz)"""
2312 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2314 def HitTest(*args
, **kwargs
):
2316 HitTest(Point pt) -> (tab, where)
2318 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2320 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2322 def CalcSizeFromPage(*args
, **kwargs
):
2323 """CalcSizeFromPage(Size sizePage) -> Size"""
2324 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2326 def ApplyThemeBackground(*args
, **kwargs
):
2327 """ApplyThemeBackground(Window window, Colour colour)"""
2328 return _controls
.Notebook_ApplyThemeBackground(*args
, **kwargs
)
2331 class NotebookPtr(Notebook
):
2332 def __init__(self
, this
):
2334 if not hasattr(self
,"thisown"): self
.thisown
= 0
2335 self
.__class
__ = Notebook
2336 _controls
.Notebook_swigregister(NotebookPtr
)
2338 def PreNotebook(*args
, **kwargs
):
2339 """PreNotebook() -> Notebook"""
2340 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2344 class NotebookEvent(BookCtrlEvent
):
2346 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2347 def __init__(self
, *args
, **kwargs
):
2349 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2350 int nOldSel=-1) -> NotebookEvent
2352 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2353 self
.this
= newobj
.this
2357 class NotebookEventPtr(NotebookEvent
):
2358 def __init__(self
, this
):
2360 if not hasattr(self
,"thisown"): self
.thisown
= 0
2361 self
.__class
__ = NotebookEvent
2362 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2364 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2365 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2367 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2368 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2370 #----------------------------------------------------------------------------
2372 class NotebookPage(wx
.Panel
):
2374 There is an old (and apparently unsolvable) bug when placing a
2375 window with a nonstandard background colour in a wxNotebook on
2376 wxGTK, as the notbooks's background colour would always be used
2377 when the window is refreshed. The solution is to place a panel in
2378 the notbook and the coloured window on the panel, sized to cover
2379 the panel. This simple class does that for you, just put an
2380 instance of this in the notebook and make your regular window a
2381 child of this one and it will handle the resize for you.
2383 def __init__(self
, parent
, id=-1,
2384 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2385 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2386 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2388 EVT_SIZE(self
, self
.OnSize
)
2390 def OnSize(self
, evt
):
2391 if self
.child
is None:
2392 children
= self
.GetChildren()
2394 self
.child
= children
[0]
2396 self
.child
.SetPosition((0,0))
2397 self
.child
.SetSize(self
.GetSize())
2400 #---------------------------------------------------------------------------
2402 LB_DEFAULT
= _controls
.LB_DEFAULT
2403 LB_TOP
= _controls
.LB_TOP
2404 LB_BOTTOM
= _controls
.LB_BOTTOM
2405 LB_LEFT
= _controls
.LB_LEFT
2406 LB_RIGHT
= _controls
.LB_RIGHT
2407 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2408 class Listbook(BookCtrl
):
2410 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2411 def __init__(self
, *args
, **kwargs
):
2413 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
2414 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
2416 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2417 self
.this
= newobj
.this
2420 self
._setOORInfo
(self
)
2422 def Create(*args
, **kwargs
):
2424 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2425 long style=0, String name=EmptyString) -> bool
2427 return _controls
.Listbook_Create(*args
, **kwargs
)
2429 def IsVertical(*args
, **kwargs
):
2430 """IsVertical() -> bool"""
2431 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2434 class ListbookPtr(Listbook
):
2435 def __init__(self
, this
):
2437 if not hasattr(self
,"thisown"): self
.thisown
= 0
2438 self
.__class
__ = Listbook
2439 _controls
.Listbook_swigregister(ListbookPtr
)
2441 def PreListbook(*args
, **kwargs
):
2442 """PreListbook() -> Listbook"""
2443 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2447 class ListbookEvent(BookCtrlEvent
):
2449 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2450 def __init__(self
, *args
, **kwargs
):
2452 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2453 int nOldSel=-1) -> ListbookEvent
2455 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2456 self
.this
= newobj
.this
2460 class ListbookEventPtr(ListbookEvent
):
2461 def __init__(self
, this
):
2463 if not hasattr(self
,"thisown"): self
.thisown
= 0
2464 self
.__class
__ = ListbookEvent
2465 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2467 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2468 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2469 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2470 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2472 #---------------------------------------------------------------------------
2474 class BookCtrlSizer(core
.Sizer
):
2476 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2477 def __init__(self
, *args
, **kwargs
):
2478 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2479 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2480 self
.this
= newobj
.this
2483 self
._setOORInfo
(self
)
2485 def RecalcSizes(*args
, **kwargs
):
2487 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2489 def CalcMin(*args
, **kwargs
):
2490 """CalcMin() -> Size"""
2491 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2493 def GetControl(*args
, **kwargs
):
2494 """GetControl() -> BookCtrl"""
2495 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2498 class BookCtrlSizerPtr(BookCtrlSizer
):
2499 def __init__(self
, this
):
2501 if not hasattr(self
,"thisown"): self
.thisown
= 0
2502 self
.__class
__ = BookCtrlSizer
2503 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2505 class NotebookSizer(core
.Sizer
):
2507 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2508 def __init__(self
, *args
, **kwargs
):
2509 """__init__(Notebook nb) -> NotebookSizer"""
2510 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2511 self
.this
= newobj
.this
2514 self
._setOORInfo
(self
)
2516 def RecalcSizes(*args
, **kwargs
):
2518 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2520 def CalcMin(*args
, **kwargs
):
2521 """CalcMin() -> Size"""
2522 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2524 def GetNotebook(*args
, **kwargs
):
2525 """GetNotebook() -> Notebook"""
2526 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2529 class NotebookSizerPtr(NotebookSizer
):
2530 def __init__(self
, this
):
2532 if not hasattr(self
,"thisown"): self
.thisown
= 0
2533 self
.__class
__ = NotebookSizer
2534 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2536 #---------------------------------------------------------------------------
2538 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2539 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2540 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2541 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2542 TB_VERTICAL
= _controls
.TB_VERTICAL
2543 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2544 TB_FLAT
= _controls
.TB_FLAT
2545 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2546 TB_NOICONS
= _controls
.TB_NOICONS
2547 TB_TEXT
= _controls
.TB_TEXT
2548 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2549 TB_NOALIGN
= _controls
.TB_NOALIGN
2550 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2551 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2552 class ToolBarToolBase(core
.Object
):
2553 def __init__(self
): raise RuntimeError, "No constructor defined"
2555 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2556 def GetId(*args
, **kwargs
):
2557 """GetId() -> int"""
2558 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2560 def GetControl(*args
, **kwargs
):
2561 """GetControl() -> Control"""
2562 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2564 def GetToolBar(*args
, **kwargs
):
2565 """GetToolBar() -> ToolBarBase"""
2566 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2568 def IsButton(*args
, **kwargs
):
2569 """IsButton() -> int"""
2570 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2572 def IsControl(*args
, **kwargs
):
2573 """IsControl() -> int"""
2574 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2576 def IsSeparator(*args
, **kwargs
):
2577 """IsSeparator() -> int"""
2578 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2580 def GetStyle(*args
, **kwargs
):
2581 """GetStyle() -> int"""
2582 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2584 def GetKind(*args
, **kwargs
):
2585 """GetKind() -> int"""
2586 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2588 def IsEnabled(*args
, **kwargs
):
2589 """IsEnabled() -> bool"""
2590 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2592 def IsToggled(*args
, **kwargs
):
2593 """IsToggled() -> bool"""
2594 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2596 def CanBeToggled(*args
, **kwargs
):
2597 """CanBeToggled() -> bool"""
2598 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2600 def GetNormalBitmap(*args
, **kwargs
):
2601 """GetNormalBitmap() -> Bitmap"""
2602 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2604 def GetDisabledBitmap(*args
, **kwargs
):
2605 """GetDisabledBitmap() -> Bitmap"""
2606 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2608 def GetBitmap(*args
, **kwargs
):
2609 """GetBitmap() -> Bitmap"""
2610 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2612 def GetLabel(*args
, **kwargs
):
2613 """GetLabel() -> String"""
2614 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2616 def GetShortHelp(*args
, **kwargs
):
2617 """GetShortHelp() -> String"""
2618 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2620 def GetLongHelp(*args
, **kwargs
):
2621 """GetLongHelp() -> String"""
2622 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2624 def Enable(*args
, **kwargs
):
2625 """Enable(bool enable) -> bool"""
2626 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2628 def Toggle(*args
, **kwargs
):
2630 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2632 def SetToggle(*args
, **kwargs
):
2633 """SetToggle(bool toggle) -> bool"""
2634 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2636 def SetShortHelp(*args
, **kwargs
):
2637 """SetShortHelp(String help) -> bool"""
2638 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2640 def SetLongHelp(*args
, **kwargs
):
2641 """SetLongHelp(String help) -> bool"""
2642 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2644 def SetNormalBitmap(*args
, **kwargs
):
2645 """SetNormalBitmap(Bitmap bmp)"""
2646 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2648 def SetDisabledBitmap(*args
, **kwargs
):
2649 """SetDisabledBitmap(Bitmap bmp)"""
2650 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2652 def SetLabel(*args
, **kwargs
):
2653 """SetLabel(String label)"""
2654 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2656 def Detach(*args
, **kwargs
):
2658 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2660 def Attach(*args
, **kwargs
):
2661 """Attach(ToolBarBase tbar)"""
2662 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2664 def GetClientData(*args
, **kwargs
):
2665 """GetClientData() -> PyObject"""
2666 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2668 def SetClientData(*args
, **kwargs
):
2669 """SetClientData(PyObject clientData)"""
2670 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2672 GetBitmap1
= GetNormalBitmap
2673 GetBitmap2
= GetDisabledBitmap
2674 SetBitmap1
= SetNormalBitmap
2675 SetBitmap2
= SetDisabledBitmap
2678 class ToolBarToolBasePtr(ToolBarToolBase
):
2679 def __init__(self
, this
):
2681 if not hasattr(self
,"thisown"): self
.thisown
= 0
2682 self
.__class
__ = ToolBarToolBase
2683 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2685 class ToolBarBase(core
.Control
):
2686 def __init__(self
): raise RuntimeError, "No constructor defined"
2688 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2689 def DoAddTool(*args
, **kwargs
):
2691 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2692 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2693 String longHelp=EmptyString,
2694 PyObject clientData=None) -> ToolBarToolBase
2696 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2698 def DoInsertTool(*args
, **kwargs
):
2700 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2701 int kind=ITEM_NORMAL,
2702 String shortHelp=EmptyString, String longHelp=EmptyString,
2703 PyObject clientData=None) -> ToolBarToolBase
2705 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2707 # These match the original Add methods for this class, kept for
2708 # backwards compatibility with versions < 2.3.3.
2711 def AddTool(self
, id, bitmap
,
2712 pushedBitmap
= wx
.NullBitmap
,
2715 shortHelpString
= '',
2716 longHelpString
= '') :
2717 '''Old style method to add a tool to the toolbar.'''
2718 kind
= wx
.ITEM_NORMAL
2719 if isToggle
: kind
= wx
.ITEM_CHECK
2720 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2721 shortHelpString
, longHelpString
, clientData
)
2723 def AddSimpleTool(self
, id, bitmap
,
2724 shortHelpString
= '',
2725 longHelpString
= '',
2727 '''Old style method to add a tool to the toolbar.'''
2728 kind
= wx
.ITEM_NORMAL
2729 if isToggle
: kind
= wx
.ITEM_CHECK
2730 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2731 shortHelpString
, longHelpString
, None)
2733 def InsertTool(self
, pos
, id, bitmap
,
2734 pushedBitmap
= wx
.NullBitmap
,
2737 shortHelpString
= '',
2738 longHelpString
= ''):
2739 '''Old style method to insert a tool in the toolbar.'''
2740 kind
= wx
.ITEM_NORMAL
2741 if isToggle
: kind
= wx
.ITEM_CHECK
2742 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2743 shortHelpString
, longHelpString
, clientData
)
2745 def InsertSimpleTool(self
, pos
, id, bitmap
,
2746 shortHelpString
= '',
2747 longHelpString
= '',
2749 '''Old style method to insert a tool in the toolbar.'''
2750 kind
= wx
.ITEM_NORMAL
2751 if isToggle
: kind
= wx
.ITEM_CHECK
2752 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2753 shortHelpString
, longHelpString
, None)
2756 # The following are the new toolbar Add methods starting with
2757 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2758 # able to keep backwards compatibility with using the above
2759 # methods. Eventually these should migrate to be the methods used
2760 # primarily and lose the 'Label' in the name...
2762 def AddLabelTool(self
, id, label
, bitmap
,
2763 bmpDisabled
= wx
.NullBitmap
,
2764 kind
= wx
.ITEM_NORMAL
,
2765 shortHelp
= '', longHelp
= '',
2768 The full AddTool() function.
2770 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2771 is created and used as the disabled image.
2773 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2774 shortHelp
, longHelp
, clientData
)
2777 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2778 bmpDisabled
= wx
.NullBitmap
,
2779 kind
= wx
.ITEM_NORMAL
,
2780 shortHelp
= '', longHelp
= '',
2783 Insert the new tool at the given position, if pos == GetToolsCount(), it
2784 is equivalent to AddTool()
2786 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2787 shortHelp
, longHelp
, clientData
)
2789 def AddCheckLabelTool(self
, id, label
, bitmap
,
2790 bmpDisabled
= wx
.NullBitmap
,
2791 shortHelp
= '', longHelp
= '',
2793 '''Add a check tool, i.e. a tool which can be toggled'''
2794 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2795 shortHelp
, longHelp
, clientData
)
2797 def AddRadioLabelTool(self
, id, label
, bitmap
,
2798 bmpDisabled
= wx
.NullBitmap
,
2799 shortHelp
= '', longHelp
= '',
2802 Add a radio tool, i.e. a tool which can be toggled and releases any
2803 other toggled radio tools in the same group when it happens
2805 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2806 shortHelp
, longHelp
, clientData
)
2809 # For consistency with the backwards compatible methods above, here are
2810 # some non-'Label' versions of the Check and Radio methods
2811 def AddCheckTool(self
, id, bitmap
,
2812 bmpDisabled
= wx
.NullBitmap
,
2813 shortHelp
= '', longHelp
= '',
2815 '''Add a check tool, i.e. a tool which can be toggled'''
2816 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2817 shortHelp
, longHelp
, clientData
)
2819 def AddRadioTool(self
, id, bitmap
,
2820 bmpDisabled
= wx
.NullBitmap
,
2821 shortHelp
= '', longHelp
= '',
2824 Add a radio tool, i.e. a tool which can be toggled and releases any
2825 other toggled radio tools in the same group when it happens
2827 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2828 shortHelp
, longHelp
, clientData
)
2830 def AddToolItem(*args
, **kwargs
):
2831 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2832 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2834 def InsertToolItem(*args
, **kwargs
):
2835 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2836 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2838 def AddControl(*args
, **kwargs
):
2839 """AddControl(Control control) -> ToolBarToolBase"""
2840 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2842 def InsertControl(*args
, **kwargs
):
2843 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2844 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2846 def FindControl(*args
, **kwargs
):
2847 """FindControl(int id) -> Control"""
2848 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2850 def AddSeparator(*args
, **kwargs
):
2851 """AddSeparator() -> ToolBarToolBase"""
2852 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2854 def InsertSeparator(*args
, **kwargs
):
2855 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2856 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2858 def RemoveTool(*args
, **kwargs
):
2859 """RemoveTool(int id) -> ToolBarToolBase"""
2860 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2862 def DeleteToolByPos(*args
, **kwargs
):
2863 """DeleteToolByPos(size_t pos) -> bool"""
2864 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2866 def DeleteTool(*args
, **kwargs
):
2867 """DeleteTool(int id) -> bool"""
2868 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2870 def ClearTools(*args
, **kwargs
):
2872 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2874 def Realize(*args
, **kwargs
):
2875 """Realize() -> bool"""
2876 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2878 def EnableTool(*args
, **kwargs
):
2879 """EnableTool(int id, bool enable)"""
2880 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2882 def ToggleTool(*args
, **kwargs
):
2883 """ToggleTool(int id, bool toggle)"""
2884 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2886 def SetToggle(*args
, **kwargs
):
2887 """SetToggle(int id, bool toggle)"""
2888 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2890 def GetToolClientData(*args
, **kwargs
):
2891 """GetToolClientData(int id) -> PyObject"""
2892 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2894 def SetToolClientData(*args
, **kwargs
):
2895 """SetToolClientData(int id, PyObject clientData)"""
2896 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2898 def GetToolPos(*args
, **kwargs
):
2899 """GetToolPos(int id) -> int"""
2900 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2902 def GetToolState(*args
, **kwargs
):
2903 """GetToolState(int id) -> bool"""
2904 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2906 def GetToolEnabled(*args
, **kwargs
):
2907 """GetToolEnabled(int id) -> bool"""
2908 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2910 def SetToolShortHelp(*args
, **kwargs
):
2911 """SetToolShortHelp(int id, String helpString)"""
2912 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2914 def GetToolShortHelp(*args
, **kwargs
):
2915 """GetToolShortHelp(int id) -> String"""
2916 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2918 def SetToolLongHelp(*args
, **kwargs
):
2919 """SetToolLongHelp(int id, String helpString)"""
2920 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2922 def GetToolLongHelp(*args
, **kwargs
):
2923 """GetToolLongHelp(int id) -> String"""
2924 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2926 def SetMarginsXY(*args
, **kwargs
):
2927 """SetMarginsXY(int x, int y)"""
2928 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2930 def SetMargins(*args
, **kwargs
):
2931 """SetMargins(Size size)"""
2932 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2934 def SetToolPacking(*args
, **kwargs
):
2935 """SetToolPacking(int packing)"""
2936 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2938 def SetToolSeparation(*args
, **kwargs
):
2939 """SetToolSeparation(int separation)"""
2940 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2942 def GetToolMargins(*args
, **kwargs
):
2943 """GetToolMargins() -> Size"""
2944 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2946 def GetMargins(*args
, **kwargs
):
2947 """GetMargins() -> Size"""
2948 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2950 def GetToolPacking(*args
, **kwargs
):
2951 """GetToolPacking() -> int"""
2952 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2954 def GetToolSeparation(*args
, **kwargs
):
2955 """GetToolSeparation() -> int"""
2956 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2958 def SetRows(*args
, **kwargs
):
2959 """SetRows(int nRows)"""
2960 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2962 def SetMaxRowsCols(*args
, **kwargs
):
2963 """SetMaxRowsCols(int rows, int cols)"""
2964 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2966 def GetMaxRows(*args
, **kwargs
):
2967 """GetMaxRows() -> int"""
2968 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2970 def GetMaxCols(*args
, **kwargs
):
2971 """GetMaxCols() -> int"""
2972 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2974 def SetToolBitmapSize(*args
, **kwargs
):
2975 """SetToolBitmapSize(Size size)"""
2976 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2978 def GetToolBitmapSize(*args
, **kwargs
):
2979 """GetToolBitmapSize() -> Size"""
2980 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2982 def GetToolSize(*args
, **kwargs
):
2983 """GetToolSize() -> Size"""
2984 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2986 def FindToolForPosition(*args
, **kwargs
):
2987 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2988 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2990 def FindById(*args
, **kwargs
):
2991 """FindById(int toolid) -> ToolBarToolBase"""
2992 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2994 def IsVertical(*args
, **kwargs
):
2995 """IsVertical() -> bool"""
2996 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2999 class ToolBarBasePtr(ToolBarBase
):
3000 def __init__(self
, this
):
3002 if not hasattr(self
,"thisown"): self
.thisown
= 0
3003 self
.__class
__ = ToolBarBase
3004 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
3006 class ToolBar(ToolBarBase
):
3008 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3009 def __init__(self
, *args
, **kwargs
):
3011 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3012 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3013 String name=wxPyToolBarNameStr) -> ToolBar
3015 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
3016 self
.this
= newobj
.this
3019 self
._setOORInfo
(self
)
3021 def Create(*args
, **kwargs
):
3023 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3024 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3025 String name=wxPyToolBarNameStr) -> bool
3027 return _controls
.ToolBar_Create(*args
, **kwargs
)
3029 def FindToolForPosition(*args
, **kwargs
):
3030 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
3031 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3034 class ToolBarPtr(ToolBar
):
3035 def __init__(self
, this
):
3037 if not hasattr(self
,"thisown"): self
.thisown
= 0
3038 self
.__class
__ = ToolBar
3039 _controls
.ToolBar_swigregister(ToolBarPtr
)
3041 def PreToolBar(*args
, **kwargs
):
3042 """PreToolBar() -> ToolBar"""
3043 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
3047 #---------------------------------------------------------------------------
3049 LC_VRULES
= _controls
.LC_VRULES
3050 LC_HRULES
= _controls
.LC_HRULES
3051 LC_ICON
= _controls
.LC_ICON
3052 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
3053 LC_LIST
= _controls
.LC_LIST
3054 LC_REPORT
= _controls
.LC_REPORT
3055 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
3056 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
3057 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
3058 LC_VIRTUAL
= _controls
.LC_VIRTUAL
3059 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
3060 LC_NO_HEADER
= _controls
.LC_NO_HEADER
3061 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
3062 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
3063 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
3064 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
3065 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
3066 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
3067 LC_MASK_SORT
= _controls
.LC_MASK_SORT
3068 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
3069 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
3070 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
3071 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
3072 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
3073 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
3074 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
3075 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
3076 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
3077 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
3078 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
3079 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
3080 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
3081 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
3082 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
3083 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
3084 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
3085 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
3086 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
3087 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
3088 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
3089 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
3090 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
3091 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
3092 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
3093 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
3094 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
3095 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
3096 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
3097 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
3098 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
3099 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
3100 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
3101 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
3102 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
3103 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
3104 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
3105 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
3106 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
3107 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
3108 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
3109 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
3110 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
3111 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
3112 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
3113 LIST_FIND_UP
= _controls
.LIST_FIND_UP
3114 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
3115 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
3116 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
3117 #---------------------------------------------------------------------------
3119 class ListItemAttr(object):
3121 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3122 def __init__(self
, *args
, **kwargs
):
3124 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
3125 Font font=wxNullFont) -> ListItemAttr
3127 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
3128 self
.this
= newobj
.this
3131 def SetTextColour(*args
, **kwargs
):
3132 """SetTextColour(Colour colText)"""
3133 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3135 def SetBackgroundColour(*args
, **kwargs
):
3136 """SetBackgroundColour(Colour colBack)"""
3137 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3139 def SetFont(*args
, **kwargs
):
3140 """SetFont(Font font)"""
3141 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
3143 def HasTextColour(*args
, **kwargs
):
3144 """HasTextColour() -> bool"""
3145 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3147 def HasBackgroundColour(*args
, **kwargs
):
3148 """HasBackgroundColour() -> bool"""
3149 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3151 def HasFont(*args
, **kwargs
):
3152 """HasFont() -> bool"""
3153 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
3155 def GetTextColour(*args
, **kwargs
):
3156 """GetTextColour() -> Colour"""
3157 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3159 def GetBackgroundColour(*args
, **kwargs
):
3160 """GetBackgroundColour() -> Colour"""
3161 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3163 def GetFont(*args
, **kwargs
):
3164 """GetFont() -> Font"""
3165 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
3167 def Destroy(*args
, **kwargs
):
3169 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
3172 class ListItemAttrPtr(ListItemAttr
):
3173 def __init__(self
, this
):
3175 if not hasattr(self
,"thisown"): self
.thisown
= 0
3176 self
.__class
__ = ListItemAttr
3177 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
3178 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3180 #---------------------------------------------------------------------------
3182 class ListItem(core
.Object
):
3184 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3185 def __init__(self
, *args
, **kwargs
):
3186 """__init__() -> ListItem"""
3187 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
3188 self
.this
= newobj
.this
3191 def __del__(self
, destroy
=_controls
.delete_ListItem
):
3194 if self
.thisown
: destroy(self
)
3197 def Clear(*args
, **kwargs
):
3199 return _controls
.ListItem_Clear(*args
, **kwargs
)
3201 def ClearAttributes(*args
, **kwargs
):
3202 """ClearAttributes()"""
3203 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
3205 def SetMask(*args
, **kwargs
):
3206 """SetMask(long mask)"""
3207 return _controls
.ListItem_SetMask(*args
, **kwargs
)
3209 def SetId(*args
, **kwargs
):
3210 """SetId(long id)"""
3211 return _controls
.ListItem_SetId(*args
, **kwargs
)
3213 def SetColumn(*args
, **kwargs
):
3214 """SetColumn(int col)"""
3215 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
3217 def SetState(*args
, **kwargs
):
3218 """SetState(long state)"""
3219 return _controls
.ListItem_SetState(*args
, **kwargs
)
3221 def SetStateMask(*args
, **kwargs
):
3222 """SetStateMask(long stateMask)"""
3223 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
3225 def SetText(*args
, **kwargs
):
3226 """SetText(String text)"""
3227 return _controls
.ListItem_SetText(*args
, **kwargs
)
3229 def SetImage(*args
, **kwargs
):
3230 """SetImage(int image)"""
3231 return _controls
.ListItem_SetImage(*args
, **kwargs
)
3233 def SetData(*args
, **kwargs
):
3234 """SetData(long data)"""
3235 return _controls
.ListItem_SetData(*args
, **kwargs
)
3237 def SetWidth(*args
, **kwargs
):
3238 """SetWidth(int width)"""
3239 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
3241 def SetAlign(*args
, **kwargs
):
3242 """SetAlign(int align)"""
3243 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
3245 def SetTextColour(*args
, **kwargs
):
3246 """SetTextColour(Colour colText)"""
3247 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
3249 def SetBackgroundColour(*args
, **kwargs
):
3250 """SetBackgroundColour(Colour colBack)"""
3251 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3253 def SetFont(*args
, **kwargs
):
3254 """SetFont(Font font)"""
3255 return _controls
.ListItem_SetFont(*args
, **kwargs
)
3257 def GetMask(*args
, **kwargs
):
3258 """GetMask() -> long"""
3259 return _controls
.ListItem_GetMask(*args
, **kwargs
)
3261 def GetId(*args
, **kwargs
):
3262 """GetId() -> long"""
3263 return _controls
.ListItem_GetId(*args
, **kwargs
)
3265 def GetColumn(*args
, **kwargs
):
3266 """GetColumn() -> int"""
3267 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
3269 def GetState(*args
, **kwargs
):
3270 """GetState() -> long"""
3271 return _controls
.ListItem_GetState(*args
, **kwargs
)
3273 def GetText(*args
, **kwargs
):
3274 """GetText() -> String"""
3275 return _controls
.ListItem_GetText(*args
, **kwargs
)
3277 def GetImage(*args
, **kwargs
):
3278 """GetImage() -> int"""
3279 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3281 def GetData(*args
, **kwargs
):
3282 """GetData() -> long"""
3283 return _controls
.ListItem_GetData(*args
, **kwargs
)
3285 def GetWidth(*args
, **kwargs
):
3286 """GetWidth() -> int"""
3287 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3289 def GetAlign(*args
, **kwargs
):
3290 """GetAlign() -> int"""
3291 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3293 def GetAttributes(*args
, **kwargs
):
3294 """GetAttributes() -> ListItemAttr"""
3295 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3297 def HasAttributes(*args
, **kwargs
):
3298 """HasAttributes() -> bool"""
3299 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3301 def GetTextColour(*args
, **kwargs
):
3302 """GetTextColour() -> Colour"""
3303 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3305 def GetBackgroundColour(*args
, **kwargs
):
3306 """GetBackgroundColour() -> Colour"""
3307 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3309 def GetFont(*args
, **kwargs
):
3310 """GetFont() -> Font"""
3311 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3313 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3314 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3315 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3316 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3317 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3318 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3319 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3320 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3321 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3322 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3324 class ListItemPtr(ListItem
):
3325 def __init__(self
, this
):
3327 if not hasattr(self
,"thisown"): self
.thisown
= 0
3328 self
.__class
__ = ListItem
3329 _controls
.ListItem_swigregister(ListItemPtr
)
3331 #---------------------------------------------------------------------------
3333 class ListEvent(core
.NotifyEvent
):
3335 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3336 def __init__(self
, *args
, **kwargs
):
3337 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3338 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3339 self
.this
= newobj
.this
3342 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3343 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3344 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3345 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3346 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3347 m_item
= property(_controls
.ListEvent_m_item_get
)
3348 def GetKeyCode(*args
, **kwargs
):
3349 """GetKeyCode() -> int"""
3350 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3352 GetCode
= GetKeyCode
3353 def GetIndex(*args
, **kwargs
):
3354 """GetIndex() -> long"""
3355 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3357 def GetColumn(*args
, **kwargs
):
3358 """GetColumn() -> int"""
3359 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3361 def GetPoint(*args
, **kwargs
):
3362 """GetPoint() -> Point"""
3363 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3365 GetPosition
= GetPoint
3366 def GetLabel(*args
, **kwargs
):
3367 """GetLabel() -> String"""
3368 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3370 def GetText(*args
, **kwargs
):
3371 """GetText() -> String"""
3372 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3374 def GetImage(*args
, **kwargs
):
3375 """GetImage() -> int"""
3376 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3378 def GetData(*args
, **kwargs
):
3379 """GetData() -> long"""
3380 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3382 def GetMask(*args
, **kwargs
):
3383 """GetMask() -> long"""
3384 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3386 def GetItem(*args
, **kwargs
):
3387 """GetItem() -> ListItem"""
3388 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3390 def GetCacheFrom(*args
, **kwargs
):
3391 """GetCacheFrom() -> long"""
3392 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3394 def GetCacheTo(*args
, **kwargs
):
3395 """GetCacheTo() -> long"""
3396 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3398 def IsEditCancelled(*args
, **kwargs
):
3399 """IsEditCancelled() -> bool"""
3400 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3402 def SetEditCanceled(*args
, **kwargs
):
3403 """SetEditCanceled(bool editCancelled)"""
3404 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3407 class ListEventPtr(ListEvent
):
3408 def __init__(self
, this
):
3410 if not hasattr(self
,"thisown"): self
.thisown
= 0
3411 self
.__class
__ = ListEvent
3412 _controls
.ListEvent_swigregister(ListEventPtr
)
3414 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3415 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3416 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3417 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3418 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3419 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3420 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3421 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3422 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3423 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3424 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3425 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3426 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3427 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3428 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3429 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3430 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3431 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3432 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3433 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3434 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3435 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3436 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3437 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3438 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3439 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3440 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3441 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3442 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3443 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3444 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3445 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3446 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3447 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3448 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3449 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3450 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3451 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3452 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3453 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3454 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3455 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3456 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3457 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3459 #---------------------------------------------------------------------------
3461 class ListCtrl(core
.Control
):
3463 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3464 def __init__(self
, *args
, **kwargs
):
3466 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3467 Size size=DefaultSize, long style=LC_ICON,
3468 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3470 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3471 self
.this
= newobj
.this
3474 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3476 def Create(*args
, **kwargs
):
3478 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3479 Size size=DefaultSize, long style=LC_ICON,
3480 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3482 Do the 2nd phase and create the GUI control.
3484 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3486 def _setCallbackInfo(*args
, **kwargs
):
3487 """_setCallbackInfo(PyObject self, PyObject _class)"""
3488 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3490 def SetForegroundColour(*args
, **kwargs
):
3491 """SetForegroundColour(Colour col) -> bool"""
3492 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3494 def SetBackgroundColour(*args
, **kwargs
):
3495 """SetBackgroundColour(Colour col) -> bool"""
3496 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3498 def GetColumn(*args
, **kwargs
):
3499 """GetColumn(int col) -> ListItem"""
3500 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3501 if val
is not None: val
.thisown
= 1
3504 def SetColumn(*args
, **kwargs
):
3505 """SetColumn(int col, ListItem item) -> bool"""
3506 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3508 def GetColumnWidth(*args
, **kwargs
):
3509 """GetColumnWidth(int col) -> int"""
3510 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3512 def SetColumnWidth(*args
, **kwargs
):
3513 """SetColumnWidth(int col, int width) -> bool"""
3514 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3516 def GetCountPerPage(*args
, **kwargs
):
3517 """GetCountPerPage() -> int"""
3518 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3520 def GetViewRect(*args
, **kwargs
):
3521 """GetViewRect() -> Rect"""
3522 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3524 def GetEditControl(*args
, **kwargs
):
3525 """GetEditControl() -> TextCtrl"""
3526 return _controls
.ListCtrl_GetEditControl(*args
, **kwargs
)
3528 def GetItem(*args
, **kwargs
):
3529 """GetItem(long itemId, int col=0) -> ListItem"""
3530 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3531 if val
is not None: val
.thisown
= 1
3534 def SetItem(*args
, **kwargs
):
3535 """SetItem(ListItem info) -> bool"""
3536 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3538 def SetStringItem(*args
, **kwargs
):
3539 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3540 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3542 def GetItemState(*args
, **kwargs
):
3543 """GetItemState(long item, long stateMask) -> int"""
3544 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3546 def SetItemState(*args
, **kwargs
):
3547 """SetItemState(long item, long state, long stateMask) -> bool"""
3548 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3550 def SetItemImage(*args
, **kwargs
):
3551 """SetItemImage(long item, int image, int selImage) -> bool"""
3552 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3554 def GetItemText(*args
, **kwargs
):
3555 """GetItemText(long item) -> String"""
3556 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3558 def SetItemText(*args
, **kwargs
):
3559 """SetItemText(long item, String str)"""
3560 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3562 def GetItemData(*args
, **kwargs
):
3563 """GetItemData(long item) -> long"""
3564 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3566 def SetItemData(*args
, **kwargs
):
3567 """SetItemData(long item, long data) -> bool"""
3568 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3570 def GetItemPosition(*args
, **kwargs
):
3571 """GetItemPosition(long item) -> Point"""
3572 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3574 def GetItemRect(*args
, **kwargs
):
3575 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3576 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3578 def SetItemPosition(*args
, **kwargs
):
3579 """SetItemPosition(long item, Point pos) -> bool"""
3580 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3582 def GetItemCount(*args
, **kwargs
):
3583 """GetItemCount() -> int"""
3584 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3586 def GetColumnCount(*args
, **kwargs
):
3587 """GetColumnCount() -> int"""
3588 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3590 def GetItemSpacing(*args
, **kwargs
):
3591 """GetItemSpacing() -> Size"""
3592 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3594 def GetSelectedItemCount(*args
, **kwargs
):
3595 """GetSelectedItemCount() -> int"""
3596 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3598 def GetTextColour(*args
, **kwargs
):
3599 """GetTextColour() -> Colour"""
3600 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3602 def SetTextColour(*args
, **kwargs
):
3603 """SetTextColour(Colour col)"""
3604 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3606 def GetTopItem(*args
, **kwargs
):
3607 """GetTopItem() -> long"""
3608 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3610 def SetSingleStyle(*args
, **kwargs
):
3611 """SetSingleStyle(long style, bool add=True)"""
3612 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3614 def SetWindowStyleFlag(*args
, **kwargs
):
3616 SetWindowStyleFlag(long style)
3618 Sets the style of the window. Please note that some styles cannot be
3619 changed after the window creation and that Refresh() might be called
3620 after changing the others for the change to take place immediately.
3622 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3624 def GetNextItem(*args
, **kwargs
):
3625 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3626 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3628 def GetImageList(*args
, **kwargs
):
3629 """GetImageList(int which) -> ImageList"""
3630 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3632 def SetImageList(*args
, **kwargs
):
3633 """SetImageList(ImageList imageList, int which)"""
3634 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3636 def AssignImageList(*args
, **kwargs
):
3637 """AssignImageList(ImageList imageList, int which)"""
3638 return _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3640 def InReportView(*args
, **kwargs
):
3641 """InReportView() -> bool"""
3642 return _controls
.ListCtrl_InReportView(*args
, **kwargs
)
3644 def IsVirtual(*args
, **kwargs
):
3645 """IsVirtual() -> bool"""
3646 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3648 def RefreshItem(*args
, **kwargs
):
3649 """RefreshItem(long item)"""
3650 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3652 def RefreshItems(*args
, **kwargs
):
3653 """RefreshItems(long itemFrom, long itemTo)"""
3654 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3656 def Arrange(*args
, **kwargs
):
3657 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3658 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3660 def DeleteItem(*args
, **kwargs
):
3661 """DeleteItem(long item) -> bool"""
3662 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3664 def DeleteAllItems(*args
, **kwargs
):
3665 """DeleteAllItems() -> bool"""
3666 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3668 def DeleteColumn(*args
, **kwargs
):
3669 """DeleteColumn(int col) -> bool"""
3670 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3672 def DeleteAllColumns(*args
, **kwargs
):
3673 """DeleteAllColumns() -> bool"""
3674 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3676 def ClearAll(*args
, **kwargs
):
3678 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3680 def EditLabel(*args
, **kwargs
):
3681 """EditLabel(long item) -> TextCtrl"""
3682 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3684 def EndEditLabel(*args
, **kwargs
):
3685 """EndEditLabel(bool cancel) -> bool"""
3686 return _controls
.ListCtrl_EndEditLabel(*args
, **kwargs
)
3688 def EnsureVisible(*args
, **kwargs
):
3689 """EnsureVisible(long item) -> bool"""
3690 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3692 def FindItem(*args
, **kwargs
):
3693 """FindItem(long start, String str, bool partial=False) -> long"""
3694 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3696 def FindItemData(*args
, **kwargs
):
3697 """FindItemData(long start, long data) -> long"""
3698 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3700 def FindItemAtPos(*args
, **kwargs
):
3701 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3702 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3704 def HitTest(*args
, **kwargs
):
3706 HitTest(Point point) -> (item, where)
3708 Determines which item (if any) is at the specified point,
3709 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3711 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3713 def InsertItem(*args
, **kwargs
):
3714 """InsertItem(ListItem info) -> long"""
3715 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3717 def InsertStringItem(*args
, **kwargs
):
3718 """InsertStringItem(long index, String label) -> long"""
3719 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3721 def InsertImageItem(*args
, **kwargs
):
3722 """InsertImageItem(long index, int imageIndex) -> long"""
3723 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3725 def InsertImageStringItem(*args
, **kwargs
):
3726 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3727 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3729 def InsertColumnInfo(*args
, **kwargs
):
3730 """InsertColumnInfo(long col, ListItem info) -> long"""
3731 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3733 def InsertColumn(*args
, **kwargs
):
3735 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3736 int width=-1) -> long
3738 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3740 def SetItemCount(*args
, **kwargs
):
3741 """SetItemCount(long count)"""
3742 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3744 def ScrollList(*args
, **kwargs
):
3745 """ScrollList(int dx, int dy) -> bool"""
3746 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3748 def SetItemTextColour(*args
, **kwargs
):
3749 """SetItemTextColour(long item, Colour col)"""
3750 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3752 def GetItemTextColour(*args
, **kwargs
):
3753 """GetItemTextColour(long item) -> Colour"""
3754 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3756 def SetItemBackgroundColour(*args
, **kwargs
):
3757 """SetItemBackgroundColour(long item, Colour col)"""
3758 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3760 def GetItemBackgroundColour(*args
, **kwargs
):
3761 """GetItemBackgroundColour(long item) -> Colour"""
3762 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3766 def Select(self
, idx
, on
=1):
3767 '''[de]select an item'''
3768 if on
: state
= wx
.LIST_STATE_SELECTED
3770 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3772 def Focus(self
, idx
):
3773 '''Focus and show the given item'''
3774 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3775 self
.EnsureVisible(idx
)
3777 def GetFocusedItem(self
):
3778 '''get the currently focused item or -1 if none'''
3779 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3781 def GetFirstSelected(self
, *args
):
3782 '''return first selected item, or -1 when none'''
3783 return self
.GetNextSelected(-1)
3785 def GetNextSelected(self
, item
):
3786 '''return subsequent selected items, or -1 when no more'''
3787 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3789 def IsSelected(self
, idx
):
3790 '''return True if the item is selected'''
3791 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3793 def SetColumnImage(self
, col
, image
):
3794 item
= self
.GetColumn(col
)
3795 # preserve all other attributes too
3796 item
.SetMask( wx
.LIST_MASK_STATE |
3798 wx
.LIST_MASK_IMAGE |
3801 wx
.LIST_MASK_WIDTH |
3802 wx
.LIST_MASK_FORMAT
)
3803 item
.SetImage(image
)
3804 self
.SetColumn(col
, item
)
3806 def ClearColumnImage(self
, col
):
3807 self
.SetColumnImage(col
, -1)
3809 def Append(self
, entry
):
3810 '''Append an item to the list control. The entry parameter should be a
3811 sequence with an item for each column'''
3817 pos
= self
.GetItemCount()
3818 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3819 for i
in range(1, len(entry
)):
3820 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3823 def SortItems(*args
, **kwargs
):
3824 """SortItems(PyObject func) -> bool"""
3825 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3827 def GetMainWindow(*args
, **kwargs
):
3828 """GetMainWindow() -> Window"""
3829 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3831 def GetClassDefaultAttributes(*args
, **kwargs
):
3833 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3835 Get the default attributes for this class. This is useful if
3836 you want to use the same font or colour in your own control as
3837 in a standard control -- which is a much better idea than hard
3838 coding specific colours or fonts which might look completely out
3839 of place on the users system, especially if it uses themes.
3841 The variant parameter is only relevant under Mac currently and is
3842 ignore under other platforms. Under Mac, it will change the size of the
3843 returned font. See SetWindowVariant for more about this.
3845 return _controls
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3847 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3849 class ListCtrlPtr(ListCtrl
):
3850 def __init__(self
, this
):
3852 if not hasattr(self
,"thisown"): self
.thisown
= 0
3853 self
.__class
__ = ListCtrl
3854 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3856 def PreListCtrl(*args
, **kwargs
):
3857 """PreListCtrl() -> ListCtrl"""
3858 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3862 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
3864 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3866 Get the default attributes for this class. This is useful if
3867 you want to use the same font or colour in your own control as
3868 in a standard control -- which is a much better idea than hard
3869 coding specific colours or fonts which might look completely out
3870 of place on the users system, especially if it uses themes.
3872 The variant parameter is only relevant under Mac currently and is
3873 ignore under other platforms. Under Mac, it will change the size of the
3874 returned font. See SetWindowVariant for more about this.
3876 return _controls
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3878 #---------------------------------------------------------------------------
3880 class ListView(ListCtrl
):
3882 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3883 def __init__(self
, *args
, **kwargs
):
3885 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3886 Size size=DefaultSize, long style=LC_REPORT,
3887 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3889 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3890 self
.this
= newobj
.this
3893 self
._setOORInfo
(self
)
3895 def Create(*args
, **kwargs
):
3897 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3898 Size size=DefaultSize, long style=LC_REPORT,
3899 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3901 Do the 2nd phase and create the GUI control.
3903 return _controls
.ListView_Create(*args
, **kwargs
)
3905 def Select(*args
, **kwargs
):
3906 """Select(long n, bool on=True)"""
3907 return _controls
.ListView_Select(*args
, **kwargs
)
3909 def Focus(*args
, **kwargs
):
3910 """Focus(long index)"""
3911 return _controls
.ListView_Focus(*args
, **kwargs
)
3913 def GetFocusedItem(*args
, **kwargs
):
3914 """GetFocusedItem() -> long"""
3915 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3917 def GetNextSelected(*args
, **kwargs
):
3918 """GetNextSelected(long item) -> long"""
3919 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3921 def GetFirstSelected(*args
, **kwargs
):
3922 """GetFirstSelected() -> long"""
3923 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3925 def IsSelected(*args
, **kwargs
):
3926 """IsSelected(long index) -> bool"""
3927 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3929 def SetColumnImage(*args
, **kwargs
):
3930 """SetColumnImage(int col, int image)"""
3931 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3933 def ClearColumnImage(*args
, **kwargs
):
3934 """ClearColumnImage(int col)"""
3935 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3938 class ListViewPtr(ListView
):
3939 def __init__(self
, this
):
3941 if not hasattr(self
,"thisown"): self
.thisown
= 0
3942 self
.__class
__ = ListView
3943 _controls
.ListView_swigregister(ListViewPtr
)
3945 def PreListView(*args
, **kwargs
):
3946 """PreListView() -> ListView"""
3947 val
= _controls
.new_PreListView(*args
, **kwargs
)
3951 #---------------------------------------------------------------------------
3953 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3954 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3955 TR_NO_LINES
= _controls
.TR_NO_LINES
3956 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3957 TR_SINGLE
= _controls
.TR_SINGLE
3958 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3959 TR_EXTENDED
= _controls
.TR_EXTENDED
3960 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3961 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3962 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3963 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3964 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3965 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3966 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3967 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3968 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3969 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3970 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3971 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3972 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3973 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3974 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3975 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3976 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3977 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3978 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3979 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3980 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3981 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3982 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3983 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3984 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3985 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3986 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3987 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3988 #---------------------------------------------------------------------------
3990 class TreeItemId(object):
3992 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3993 def __init__(self
, *args
, **kwargs
):
3994 """__init__() -> TreeItemId"""
3995 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3996 self
.this
= newobj
.this
3999 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
4002 if self
.thisown
: destroy(self
)
4005 def IsOk(*args
, **kwargs
):
4006 """IsOk() -> bool"""
4007 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
4009 def __eq__(*args
, **kwargs
):
4010 """__eq__(TreeItemId other) -> bool"""
4011 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
4013 def __ne__(*args
, **kwargs
):
4014 """__ne__(TreeItemId other) -> bool"""
4015 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
4017 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
4019 def __nonzero__(self
): return self
.IsOk()
4021 class TreeItemIdPtr(TreeItemId
):
4022 def __init__(self
, this
):
4024 if not hasattr(self
,"thisown"): self
.thisown
= 0
4025 self
.__class
__ = TreeItemId
4026 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
4027 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4029 class TreeItemData(object):
4031 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4032 def __init__(self
, *args
, **kwargs
):
4033 """__init__(PyObject obj=None) -> TreeItemData"""
4034 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
4035 self
.this
= newobj
.this
4038 def GetData(*args
, **kwargs
):
4039 """GetData() -> PyObject"""
4040 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
4042 def SetData(*args
, **kwargs
):
4043 """SetData(PyObject obj)"""
4044 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
4046 def GetId(*args
, **kwargs
):
4047 """GetId() -> TreeItemId"""
4048 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
4050 def SetId(*args
, **kwargs
):
4051 """SetId(TreeItemId id)"""
4052 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
4054 def Destroy(*args
, **kwargs
):
4056 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
4059 class TreeItemDataPtr(TreeItemData
):
4060 def __init__(self
, this
):
4062 if not hasattr(self
,"thisown"): self
.thisown
= 0
4063 self
.__class
__ = TreeItemData
4064 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
4066 #---------------------------------------------------------------------------
4068 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4069 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4070 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4071 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4072 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
4073 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
4074 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
4075 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4076 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4077 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4078 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4079 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
4080 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
4081 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
4082 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4083 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4084 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4085 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
4086 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4087 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4088 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4089 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4090 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4091 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4092 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4093 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4094 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4095 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4096 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4097 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4098 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4099 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4100 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4101 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4102 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4103 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4104 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4105 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4106 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4107 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4109 class TreeEvent(core
.NotifyEvent
):
4111 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4112 def __init__(self
, *args
, **kwargs
):
4113 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4114 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
4115 self
.this
= newobj
.this
4118 def GetItem(*args
, **kwargs
):
4119 """GetItem() -> TreeItemId"""
4120 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
4122 def SetItem(*args
, **kwargs
):
4123 """SetItem(TreeItemId item)"""
4124 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
4126 def GetOldItem(*args
, **kwargs
):
4127 """GetOldItem() -> TreeItemId"""
4128 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
4130 def SetOldItem(*args
, **kwargs
):
4131 """SetOldItem(TreeItemId item)"""
4132 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
4134 def GetPoint(*args
, **kwargs
):
4135 """GetPoint() -> Point"""
4136 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
4138 def SetPoint(*args
, **kwargs
):
4139 """SetPoint(Point pt)"""
4140 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
4142 def GetKeyEvent(*args
, **kwargs
):
4143 """GetKeyEvent() -> KeyEvent"""
4144 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4146 def GetKeyCode(*args
, **kwargs
):
4147 """GetKeyCode() -> int"""
4148 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4150 def SetKeyEvent(*args
, **kwargs
):
4151 """SetKeyEvent(KeyEvent evt)"""
4152 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4154 def GetLabel(*args
, **kwargs
):
4155 """GetLabel() -> String"""
4156 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
4158 def SetLabel(*args
, **kwargs
):
4159 """SetLabel(String label)"""
4160 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
4162 def IsEditCancelled(*args
, **kwargs
):
4163 """IsEditCancelled() -> bool"""
4164 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4166 def SetEditCanceled(*args
, **kwargs
):
4167 """SetEditCanceled(bool editCancelled)"""
4168 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4170 def SetToolTip(*args
, **kwargs
):
4171 """SetToolTip(String toolTip)"""
4172 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
4175 class TreeEventPtr(TreeEvent
):
4176 def __init__(self
, this
):
4178 if not hasattr(self
,"thisown"): self
.thisown
= 0
4179 self
.__class
__ = TreeEvent
4180 _controls
.TreeEvent_swigregister(TreeEventPtr
)
4182 #---------------------------------------------------------------------------
4184 class TreeCtrl(core
.Control
):
4186 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4187 def __init__(self
, *args
, **kwargs
):
4189 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
4190 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4191 Validator validator=DefaultValidator,
4192 String name=TreeCtrlNameStr) -> TreeCtrl
4194 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
4195 self
.this
= newobj
.this
4198 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4200 def Create(*args
, **kwargs
):
4202 Create(Window parent, int id=-1, Point pos=DefaultPosition,
4203 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4204 Validator validator=DefaultValidator,
4205 String name=TreeCtrlNameStr) -> bool
4207 Do the 2nd phase and create the GUI control.
4209 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
4211 def _setCallbackInfo(*args
, **kwargs
):
4212 """_setCallbackInfo(PyObject self, PyObject _class)"""
4213 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4215 def GetCount(*args
, **kwargs
):
4216 """GetCount() -> size_t"""
4217 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
4219 def GetIndent(*args
, **kwargs
):
4220 """GetIndent() -> unsigned int"""
4221 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
4223 def SetIndent(*args
, **kwargs
):
4224 """SetIndent(unsigned int indent)"""
4225 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
4227 def GetSpacing(*args
, **kwargs
):
4228 """GetSpacing() -> unsigned int"""
4229 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4231 def SetSpacing(*args
, **kwargs
):
4232 """SetSpacing(unsigned int spacing)"""
4233 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4235 def GetImageList(*args
, **kwargs
):
4236 """GetImageList() -> ImageList"""
4237 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
4239 def GetStateImageList(*args
, **kwargs
):
4240 """GetStateImageList() -> ImageList"""
4241 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4243 def SetImageList(*args
, **kwargs
):
4244 """SetImageList(ImageList imageList)"""
4245 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
4247 def SetStateImageList(*args
, **kwargs
):
4248 """SetStateImageList(ImageList imageList)"""
4249 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4251 def AssignImageList(*args
, **kwargs
):
4252 """AssignImageList(ImageList imageList)"""
4253 return _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4255 def AssignStateImageList(*args
, **kwargs
):
4256 """AssignStateImageList(ImageList imageList)"""
4257 return _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4259 def GetItemText(*args
, **kwargs
):
4260 """GetItemText(TreeItemId item) -> String"""
4261 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
4263 def GetItemImage(*args
, **kwargs
):
4264 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4265 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4267 def GetItemData(*args
, **kwargs
):
4268 """GetItemData(TreeItemId item) -> TreeItemData"""
4269 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
4271 def GetItemPyData(*args
, **kwargs
):
4272 """GetItemPyData(TreeItemId item) -> PyObject"""
4273 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4275 GetPyData
= GetItemPyData
4276 def GetItemTextColour(*args
, **kwargs
):
4277 """GetItemTextColour(TreeItemId item) -> Colour"""
4278 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4280 def GetItemBackgroundColour(*args
, **kwargs
):
4281 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
4282 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4284 def GetItemFont(*args
, **kwargs
):
4285 """GetItemFont(TreeItemId item) -> Font"""
4286 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4288 def SetItemText(*args
, **kwargs
):
4289 """SetItemText(TreeItemId item, String text)"""
4290 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
4292 def SetItemImage(*args
, **kwargs
):
4293 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4294 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4296 def SetItemData(*args
, **kwargs
):
4297 """SetItemData(TreeItemId item, TreeItemData data)"""
4298 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
4300 def SetItemPyData(*args
, **kwargs
):
4301 """SetItemPyData(TreeItemId item, PyObject obj)"""
4302 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4304 SetPyData
= SetItemPyData
4305 def SetItemHasChildren(*args
, **kwargs
):
4306 """SetItemHasChildren(TreeItemId item, bool has=True)"""
4307 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4309 def SetItemBold(*args
, **kwargs
):
4310 """SetItemBold(TreeItemId item, bool bold=True)"""
4311 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4313 def SetItemDropHighlight(*args
, **kwargs
):
4314 """SetItemDropHighlight(TreeItemId item, bool highlight=True)"""
4315 return _controls
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
4317 def SetItemTextColour(*args
, **kwargs
):
4318 """SetItemTextColour(TreeItemId item, Colour col)"""
4319 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4321 def SetItemBackgroundColour(*args
, **kwargs
):
4322 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
4323 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4325 def SetItemFont(*args
, **kwargs
):
4326 """SetItemFont(TreeItemId item, Font font)"""
4327 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4329 def IsVisible(*args
, **kwargs
):
4330 """IsVisible(TreeItemId item) -> bool"""
4331 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4333 def ItemHasChildren(*args
, **kwargs
):
4334 """ItemHasChildren(TreeItemId item) -> bool"""
4335 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4337 def IsExpanded(*args
, **kwargs
):
4338 """IsExpanded(TreeItemId item) -> bool"""
4339 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4341 def IsSelected(*args
, **kwargs
):
4342 """IsSelected(TreeItemId item) -> bool"""
4343 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4345 def IsBold(*args
, **kwargs
):
4346 """IsBold(TreeItemId item) -> bool"""
4347 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4349 def GetChildrenCount(*args
, **kwargs
):
4350 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4351 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4353 def GetRootItem(*args
, **kwargs
):
4354 """GetRootItem() -> TreeItemId"""
4355 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4357 def GetSelection(*args
, **kwargs
):
4358 """GetSelection() -> TreeItemId"""
4359 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4361 def GetSelections(*args
, **kwargs
):
4362 """GetSelections() -> PyObject"""
4363 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4365 def GetItemParent(*args
, **kwargs
):
4366 """GetItemParent(TreeItemId item) -> TreeItemId"""
4367 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4369 def GetFirstChild(*args
, **kwargs
):
4370 """GetFirstChild(TreeItemId item) -> PyObject"""
4371 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4373 def GetNextChild(*args
, **kwargs
):
4374 """GetNextChild(TreeItemId item, void cookie) -> PyObject"""
4375 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4377 def GetLastChild(*args
, **kwargs
):
4378 """GetLastChild(TreeItemId item) -> TreeItemId"""
4379 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4381 def GetNextSibling(*args
, **kwargs
):
4382 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4383 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4385 def GetPrevSibling(*args
, **kwargs
):
4386 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4387 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4389 def GetFirstVisibleItem(*args
, **kwargs
):
4390 """GetFirstVisibleItem() -> TreeItemId"""
4391 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4393 def GetNextVisible(*args
, **kwargs
):
4394 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4395 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4397 def GetPrevVisible(*args
, **kwargs
):
4398 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4399 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4401 def AddRoot(*args
, **kwargs
):
4402 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4403 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4405 def PrependItem(*args
, **kwargs
):
4407 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4408 TreeItemData data=None) -> TreeItemId
4410 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4412 def InsertItem(*args
, **kwargs
):
4414 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4415 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4417 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4419 def InsertItemBefore(*args
, **kwargs
):
4421 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4422 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4424 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4426 def AppendItem(*args
, **kwargs
):
4428 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4429 TreeItemData data=None) -> TreeItemId
4431 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4433 def Delete(*args
, **kwargs
):
4434 """Delete(TreeItemId item)"""
4435 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4437 def DeleteChildren(*args
, **kwargs
):
4438 """DeleteChildren(TreeItemId item)"""
4439 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4441 def DeleteAllItems(*args
, **kwargs
):
4442 """DeleteAllItems()"""
4443 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4445 def Expand(*args
, **kwargs
):
4446 """Expand(TreeItemId item)"""
4447 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4449 def Collapse(*args
, **kwargs
):
4450 """Collapse(TreeItemId item)"""
4451 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4453 def CollapseAndReset(*args
, **kwargs
):
4454 """CollapseAndReset(TreeItemId item)"""
4455 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4457 def Toggle(*args
, **kwargs
):
4458 """Toggle(TreeItemId item)"""
4459 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4461 def Unselect(*args
, **kwargs
):
4463 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4465 def UnselectItem(*args
, **kwargs
):
4466 """UnselectItem(TreeItemId item)"""
4467 return _controls
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4469 def UnselectAll(*args
, **kwargs
):
4471 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4473 def SelectItem(*args
, **kwargs
):
4474 """SelectItem(TreeItemId item, bool select=True)"""
4475 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4477 def ToggleItemSelection(*args
, **kwargs
):
4478 """ToggleItemSelection(TreeItemId item)"""
4479 return _controls
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4481 def EnsureVisible(*args
, **kwargs
):
4482 """EnsureVisible(TreeItemId item)"""
4483 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4485 def ScrollTo(*args
, **kwargs
):
4486 """ScrollTo(TreeItemId item)"""
4487 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4489 def EditLabel(*args
, **kwargs
):
4490 """EditLabel(TreeItemId item)"""
4491 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4493 def GetEditControl(*args
, **kwargs
):
4494 """GetEditControl() -> TextCtrl"""
4495 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4497 def EndEditLabel(*args
, **kwargs
):
4498 """EndEditLabel(TreeItemId item, bool discardChanges=False)"""
4499 return _controls
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
4501 def SortChildren(*args
, **kwargs
):
4502 """SortChildren(TreeItemId item)"""
4503 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4505 def HitTest(*args
, **kwargs
):
4507 HitTest(Point point) -> (item, where)
4509 Determine which item (if any) belongs the given point. The
4510 coordinates specified are relative to the client area of tree ctrl
4511 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4515 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4517 def GetBoundingRect(*args
, **kwargs
):
4518 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4519 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4521 def GetClassDefaultAttributes(*args
, **kwargs
):
4523 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4525 Get the default attributes for this class. This is useful if
4526 you want to use the same font or colour in your own control as
4527 in a standard control -- which is a much better idea than hard
4528 coding specific colours or fonts which might look completely out
4529 of place on the users system, especially if it uses themes.
4531 The variant parameter is only relevant under Mac currently and is
4532 ignore under other platforms. Under Mac, it will change the size of the
4533 returned font. See SetWindowVariant for more about this.
4535 return _controls
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4537 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4539 class TreeCtrlPtr(TreeCtrl
):
4540 def __init__(self
, this
):
4542 if not hasattr(self
,"thisown"): self
.thisown
= 0
4543 self
.__class
__ = TreeCtrl
4544 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4546 def PreTreeCtrl(*args
, **kwargs
):
4547 """PreTreeCtrl() -> TreeCtrl"""
4548 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4552 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4554 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4556 Get the default attributes for this class. This is useful if
4557 you want to use the same font or colour in your own control as
4558 in a standard control -- which is a much better idea than hard
4559 coding specific colours or fonts which might look completely out
4560 of place on the users system, especially if it uses themes.
4562 The variant parameter is only relevant under Mac currently and is
4563 ignore under other platforms. Under Mac, it will change the size of the
4564 returned font. See SetWindowVariant for more about this.
4566 return _controls
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4568 #---------------------------------------------------------------------------
4570 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4571 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4572 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4573 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4574 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4575 class GenericDirCtrl(core
.Control
):
4577 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4578 def __init__(self
, *args
, **kwargs
):
4580 __init__(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4581 Point pos=DefaultPosition, Size size=DefaultSize,
4582 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4583 String filter=EmptyString,
4584 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4586 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4587 self
.this
= newobj
.this
4590 self
._setOORInfo
(self
)
4592 def Create(*args
, **kwargs
):
4594 Create(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4595 Point pos=DefaultPosition, Size size=DefaultSize,
4596 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4597 String filter=EmptyString,
4598 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4600 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4602 def ExpandPath(*args
, **kwargs
):
4603 """ExpandPath(String path) -> bool"""
4604 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4606 def GetDefaultPath(*args
, **kwargs
):
4607 """GetDefaultPath() -> String"""
4608 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4610 def SetDefaultPath(*args
, **kwargs
):
4611 """SetDefaultPath(String path)"""
4612 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4614 def GetPath(*args
, **kwargs
):
4615 """GetPath() -> String"""
4616 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4618 def GetFilePath(*args
, **kwargs
):
4619 """GetFilePath() -> String"""
4620 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4622 def SetPath(*args
, **kwargs
):
4623 """SetPath(String path)"""
4624 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4626 def ShowHidden(*args
, **kwargs
):
4627 """ShowHidden(bool show)"""
4628 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4630 def GetShowHidden(*args
, **kwargs
):
4631 """GetShowHidden() -> bool"""
4632 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4634 def GetFilter(*args
, **kwargs
):
4635 """GetFilter() -> String"""
4636 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4638 def SetFilter(*args
, **kwargs
):
4639 """SetFilter(String filter)"""
4640 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4642 def GetFilterIndex(*args
, **kwargs
):
4643 """GetFilterIndex() -> int"""
4644 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4646 def SetFilterIndex(*args
, **kwargs
):
4647 """SetFilterIndex(int n)"""
4648 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4650 def GetRootId(*args
, **kwargs
):
4651 """GetRootId() -> TreeItemId"""
4652 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4654 def GetTreeCtrl(*args
, **kwargs
):
4655 """GetTreeCtrl() -> TreeCtrl"""
4656 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4658 def GetFilterListCtrl(*args
, **kwargs
):
4659 """GetFilterListCtrl() -> DirFilterListCtrl"""
4660 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4662 def FindChild(*args
, **kwargs
):
4664 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4666 Find the child that matches the first part of 'path'. E.g. if a child path is
4667 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4668 If the path string has been used (we're at the leaf), done is set to True
4671 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4673 def DoResize(*args
, **kwargs
):
4675 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4677 def ReCreateTree(*args
, **kwargs
):
4678 """ReCreateTree()"""
4679 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4682 class GenericDirCtrlPtr(GenericDirCtrl
):
4683 def __init__(self
, this
):
4685 if not hasattr(self
,"thisown"): self
.thisown
= 0
4686 self
.__class
__ = GenericDirCtrl
4687 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4688 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4690 def PreGenericDirCtrl(*args
, **kwargs
):
4691 """PreGenericDirCtrl() -> GenericDirCtrl"""
4692 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4696 class DirFilterListCtrl(Choice
):
4698 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4699 def __init__(self
, *args
, **kwargs
):
4701 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4702 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4704 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4705 self
.this
= newobj
.this
4708 self
._setOORInfo
(self
)
4710 def Create(*args
, **kwargs
):
4712 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4713 Size size=DefaultSize, long style=0) -> bool
4715 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4717 def FillFilterList(*args
, **kwargs
):
4718 """FillFilterList(String filter, int defaultFilter)"""
4719 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4722 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4723 def __init__(self
, this
):
4725 if not hasattr(self
,"thisown"): self
.thisown
= 0
4726 self
.__class
__ = DirFilterListCtrl
4727 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4729 def PreDirFilterListCtrl(*args
, **kwargs
):
4730 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4731 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4735 #---------------------------------------------------------------------------
4737 class PyControl(core
.Control
):
4739 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4740 def __init__(self
, *args
, **kwargs
):
4742 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4743 long style=0, Validator validator=DefaultValidator,
4744 String name=ControlNameStr) -> PyControl
4746 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4747 self
.this
= newobj
.this
4750 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4752 def _setCallbackInfo(*args
, **kwargs
):
4753 """_setCallbackInfo(PyObject self, PyObject _class)"""
4754 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4756 def base_DoMoveWindow(*args
, **kwargs
):
4757 """base_DoMoveWindow(int x, int y, int width, int height)"""
4758 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4760 def base_DoSetSize(*args
, **kwargs
):
4761 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4762 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4764 def base_DoSetClientSize(*args
, **kwargs
):
4765 """base_DoSetClientSize(int width, int height)"""
4766 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4768 def base_DoSetVirtualSize(*args
, **kwargs
):
4769 """base_DoSetVirtualSize(int x, int y)"""
4770 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4772 def base_DoGetSize(*args
, **kwargs
):
4773 """base_DoGetSize() -> (width, height)"""
4774 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4776 def base_DoGetClientSize(*args
, **kwargs
):
4777 """base_DoGetClientSize() -> (width, height)"""
4778 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4780 def base_DoGetPosition(*args
, **kwargs
):
4781 """base_DoGetPosition() -> (x,y)"""
4782 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4784 def base_DoGetVirtualSize(*args
, **kwargs
):
4785 """base_DoGetVirtualSize() -> Size"""
4786 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4788 def base_DoGetBestSize(*args
, **kwargs
):
4789 """base_DoGetBestSize() -> Size"""
4790 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4792 def base_InitDialog(*args
, **kwargs
):
4793 """base_InitDialog()"""
4794 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4796 def base_TransferDataToWindow(*args
, **kwargs
):
4797 """base_TransferDataToWindow() -> bool"""
4798 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4800 def base_TransferDataFromWindow(*args
, **kwargs
):
4801 """base_TransferDataFromWindow() -> bool"""
4802 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4804 def base_Validate(*args
, **kwargs
):
4805 """base_Validate() -> bool"""
4806 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4808 def base_AcceptsFocus(*args
, **kwargs
):
4809 """base_AcceptsFocus() -> bool"""
4810 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4812 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4813 """base_AcceptsFocusFromKeyboard() -> bool"""
4814 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4816 def base_GetMaxSize(*args
, **kwargs
):
4817 """base_GetMaxSize() -> Size"""
4818 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4820 def base_AddChild(*args
, **kwargs
):
4821 """base_AddChild(Window child)"""
4822 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4824 def base_RemoveChild(*args
, **kwargs
):
4825 """base_RemoveChild(Window child)"""
4826 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4828 def base_ShouldInheritColours(*args
, **kwargs
):
4829 """base_ShouldInheritColours() -> bool"""
4830 return _controls
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
4832 def base_ApplyParentThemeBackground(*args
, **kwargs
):
4833 """base_ApplyParentThemeBackground(Colour c)"""
4834 return _controls
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
4837 class PyControlPtr(PyControl
):
4838 def __init__(self
, this
):
4840 if not hasattr(self
,"thisown"): self
.thisown
= 0
4841 self
.__class
__ = PyControl
4842 _controls
.PyControl_swigregister(PyControlPtr
)
4844 def PrePyControl(*args
, **kwargs
):
4845 """PrePyControl() -> PyControl"""
4846 val
= _controls
.new_PrePyControl(*args
, **kwargs
)
4850 #---------------------------------------------------------------------------
4852 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4853 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4854 wxEVT_HELP
= _controls
.wxEVT_HELP
4855 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4856 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4857 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4858 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4859 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4861 class HelpEvent(core
.CommandEvent
):
4863 A help event is sent when the user has requested
4864 context-sensitive help. This can either be caused by the
4865 application requesting context-sensitive help mode via
4866 wx.ContextHelp, or (on MS Windows) by the system generating a
4867 WM_HELP message when the user pressed F1 or clicked on the query
4868 button in a dialog caption.
4870 A help event is sent to the window that the user clicked on, and
4871 is propagated up the window hierarchy until the event is
4872 processed or there are no more event handlers. The application
4873 should call event.GetId to check the identity of the clicked-on
4874 window, and then either show some suitable help or call
4875 event.Skip if the identifier is unrecognised. Calling Skip is
4876 important because it allows wxWindows to generate further events
4877 for ancestors of the clicked-on window. Otherwise it would be
4878 impossible to show help for container windows, since processing
4879 would stop after the first window found.
4882 EVT_HELP Sent when the user has requested context-
4884 EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs
4888 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4889 def __init__(self
, *args
, **kwargs
):
4890 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4891 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4892 self
.this
= newobj
.this
4895 def GetPosition(*args
, **kwargs
):
4897 GetPosition() -> Point
4899 Returns the left-click position of the mouse, in screen
4900 coordinates. This allows the application to position the help
4903 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4905 def SetPosition(*args
, **kwargs
):
4907 SetPosition(Point pos)
4909 Sets the left-click position of the mouse, in screen coordinates.
4911 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4913 def GetLink(*args
, **kwargs
):
4917 Get an optional link to further help
4919 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4921 def SetLink(*args
, **kwargs
):
4923 SetLink(String link)
4925 Set an optional link to further help
4927 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4929 def GetTarget(*args
, **kwargs
):
4931 GetTarget() -> String
4933 Get an optional target to display help in. E.g. a window specification
4935 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4937 def SetTarget(*args
, **kwargs
):
4939 SetTarget(String target)
4941 Set an optional target to display help in. E.g. a window specification
4943 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4946 class HelpEventPtr(HelpEvent
):
4947 def __init__(self
, this
):
4949 if not hasattr(self
,"thisown"): self
.thisown
= 0
4950 self
.__class
__ = HelpEvent
4951 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4953 class ContextHelp(core
.Object
):
4955 This class changes the cursor to a query and puts the application
4956 into a 'context-sensitive help mode'. When the user left-clicks
4957 on a window within the specified window, a EVT_HELP event is sent
4958 to that control, and the application may respond to it by popping
4961 There are a couple of ways to invoke this behaviour implicitly:
4963 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a
4964 dialog (Windows only). This will put a question mark in the
4965 titlebar, and Windows will put the application into
4966 context-sensitive help mode automatically, with further
4969 * Create a wx.ContextHelpButton, whose predefined behaviour
4970 is to create a context help object. Normally you will write
4971 your application so that this button is only added to a
4972 dialog for non-Windows platforms (use
4973 wx.DIALOG_EX_CONTEXTHELP on Windows).
4977 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4978 def __init__(self
, *args
, **kwargs
):
4980 __init__(Window window=None, bool doNow=True) -> ContextHelp
4982 Constructs a context help object, calling BeginContextHelp if
4983 doNow is true (the default).
4985 If window is None, the top window is used.
4987 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4988 self
.this
= newobj
.this
4991 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4994 if self
.thisown
: destroy(self
)
4997 def BeginContextHelp(*args
, **kwargs
):
4999 BeginContextHelp(Window window=None) -> bool
5001 Puts the application into context-sensitive help mode. window is
5002 the window which will be used to catch events; if NULL, the top
5003 window will be used.
5005 Returns true if the application was successfully put into
5006 context-sensitive help mode. This function only returns when the
5007 event loop has finished.
5009 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5011 def EndContextHelp(*args
, **kwargs
):
5013 EndContextHelp() -> bool
5015 Ends context-sensitive help mode. Not normally called by the
5018 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5021 class ContextHelpPtr(ContextHelp
):
5022 def __init__(self
, this
):
5024 if not hasattr(self
,"thisown"): self
.thisown
= 0
5025 self
.__class
__ = ContextHelp
5026 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
5028 class ContextHelpButton(BitmapButton
):
5030 Instances of this class may be used to add a question mark button
5031 that when pressed, puts the application into context-help
5032 mode. It does this by creating a wx.ContextHelp object which
5033 itself generates a EVT_HELP event when the user clicks on a
5036 On Windows, you may add a question-mark icon to a dialog by use
5037 of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other
5038 platforms you will have to add a button explicitly, usually next
5039 to OK, Cancel or similar buttons.
5043 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5044 def __init__(self
, *args
, **kwargs
):
5046 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5047 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5049 Constructor, creating and showing a context help button.
5051 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
5052 self
.this
= newobj
.this
5055 self
._setOORInfo
(self
)
5058 class ContextHelpButtonPtr(ContextHelpButton
):
5059 def __init__(self
, this
):
5061 if not hasattr(self
,"thisown"): self
.thisown
= 0
5062 self
.__class
__ = ContextHelpButton
5063 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5065 class HelpProvider(object):
5067 wx.HelpProvider is an abstract class used by a program
5068 implementing context-sensitive help to show the help text for the
5071 The current help provider must be explicitly set by the
5072 application using wx.HelpProvider.Set().
5074 def __init__(self
): raise RuntimeError, "No constructor defined"
5076 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5077 def Set(*args
, **kwargs
):
5079 Set(HelpProvider helpProvider) -> HelpProvider
5081 Sset the current, application-wide help provider. Returns the
5082 previous one. Unlike some other classes, the help provider is
5083 not created on demand. This must be explicitly done by the
5086 return _controls
.HelpProvider_Set(*args
, **kwargs
)
5088 Set
= staticmethod(Set
)
5089 def Get(*args
, **kwargs
):
5091 Get() -> HelpProvider
5093 Return the current application-wide help provider.
5095 return _controls
.HelpProvider_Get(*args
, **kwargs
)
5097 Get
= staticmethod(Get
)
5098 def GetHelp(*args
, **kwargs
):
5100 GetHelp(Window window) -> String
5102 Gets the help string for this window. Its interpretation is
5103 dependent on the help provider except that empty string always
5104 means that no help is associated with the window.
5106 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
5108 def ShowHelp(*args
, **kwargs
):
5110 ShowHelp(Window window) -> bool
5112 Shows help for the given window. Uses GetHelp internally if
5115 Returns true if it was done, or false if no help was available
5118 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
5120 def AddHelp(*args
, **kwargs
):
5122 AddHelp(Window window, String text)
5124 Associates the text with the given window.
5126 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
5128 def AddHelpById(*args
, **kwargs
):
5130 AddHelpById(int id, String text)
5132 This version associates the given text with all windows with this
5133 id. May be used to set the same help string for all Cancel
5134 buttons in the application, for example.
5136 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
5138 def RemoveHelp(*args
, **kwargs
):
5140 RemoveHelp(Window window)
5142 Removes the association between the window pointer and the help
5143 text. This is called by the wx.Window destructor. Without this,
5144 the table of help strings will fill up and when window pointers
5145 are reused, the wrong help string will be found.
5147 return _controls
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5149 def Destroy(*args
, **kwargs
):
5151 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
5154 class HelpProviderPtr(HelpProvider
):
5155 def __init__(self
, this
):
5157 if not hasattr(self
,"thisown"): self
.thisown
= 0
5158 self
.__class
__ = HelpProvider
5159 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
5161 def HelpProvider_Set(*args
, **kwargs
):
5163 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5165 Sset the current, application-wide help provider. Returns the
5166 previous one. Unlike some other classes, the help provider is
5167 not created on demand. This must be explicitly done by the
5170 return _controls
.HelpProvider_Set(*args
, **kwargs
)
5172 def HelpProvider_Get(*args
, **kwargs
):
5174 HelpProvider_Get() -> HelpProvider
5176 Return the current application-wide help provider.
5178 return _controls
.HelpProvider_Get(*args
, **kwargs
)
5180 class SimpleHelpProvider(HelpProvider
):
5182 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5183 which supports only plain text help strings, and shows the string
5184 associated with the control (if any) in a tooltip.
5187 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5188 def __init__(self
, *args
, **kwargs
):
5190 __init__() -> SimpleHelpProvider
5192 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5193 which supports only plain text help strings, and shows the string
5194 associated with the control (if any) in a tooltip.
5196 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
5197 self
.this
= newobj
.this
5201 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5202 def __init__(self
, this
):
5204 if not hasattr(self
,"thisown"): self
.thisown
= 0
5205 self
.__class
__ = SimpleHelpProvider
5206 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5208 #---------------------------------------------------------------------------
5210 class DragImage(core
.Object
):
5212 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5213 def __init__(self
, *args
, **kwargs
):
5214 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5215 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
5216 self
.this
= newobj
.this
5219 def __del__(self
, destroy
=_controls
.delete_DragImage
):
5222 if self
.thisown
: destroy(self
)
5225 def SetBackingBitmap(*args
, **kwargs
):
5226 """SetBackingBitmap(Bitmap bitmap)"""
5227 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5229 def BeginDrag(*args
, **kwargs
):
5231 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
5232 Rect rect=None) -> bool
5234 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
5236 def BeginDragBounded(*args
, **kwargs
):
5237 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
5238 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
5240 def EndDrag(*args
, **kwargs
):
5241 """EndDrag() -> bool"""
5242 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
5244 def Move(*args
, **kwargs
):
5245 """Move(Point pt) -> bool"""
5246 return _controls
.DragImage_Move(*args
, **kwargs
)
5248 def Show(*args
, **kwargs
):
5249 """Show() -> bool"""
5250 return _controls
.DragImage_Show(*args
, **kwargs
)
5252 def Hide(*args
, **kwargs
):
5253 """Hide() -> bool"""
5254 return _controls
.DragImage_Hide(*args
, **kwargs
)
5256 def GetImageRect(*args
, **kwargs
):
5257 """GetImageRect(Point pos) -> Rect"""
5258 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
5260 def DoDrawImage(*args
, **kwargs
):
5261 """DoDrawImage(DC dc, Point pos) -> bool"""
5262 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
5264 def UpdateBackingFromWindow(*args
, **kwargs
):
5265 """UpdateBackingFromWindow(DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
5266 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
5268 def RedrawImage(*args
, **kwargs
):
5269 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
5270 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
5273 class DragImagePtr(DragImage
):
5274 def __init__(self
, this
):
5276 if not hasattr(self
,"thisown"): self
.thisown
= 0
5277 self
.__class
__ = DragImage
5278 _controls
.DragImage_swigregister(DragImagePtr
)
5280 def DragIcon(*args
, **kwargs
):
5281 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
5282 val
= _controls
.new_DragIcon(*args
, **kwargs
)
5286 def DragString(*args
, **kwargs
):
5287 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
5288 val
= _controls
.new_DragString(*args
, **kwargs
)
5292 def DragTreeItem(*args
, **kwargs
):
5293 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
5294 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
5298 def DragListItem(*args
, **kwargs
):
5299 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
5300 val
= _controls
.new_DragListItem(*args
, **kwargs
)