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(core
.Control
,core
.ItemContainer
):
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 HitTest(*args
, **kwargs
):
1032 HitTest(Point pt) -> int
1034 Test where the given (in client coords) point lies
1036 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
1038 def HitTestXY(*args
, **kwargs
):
1040 HitTestXY(int x, int y) -> int
1042 Test where the given (in client coords) point lies
1044 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
1047 class CheckListBoxPtr(CheckListBox
):
1048 def __init__(self
, this
):
1050 if not hasattr(self
,"thisown"): self
.thisown
= 0
1051 self
.__class
__ = CheckListBox
1052 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
1054 def PreCheckListBox(*args
, **kwargs
):
1055 """PreCheckListBox() -> CheckListBox"""
1056 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
1060 #---------------------------------------------------------------------------
1062 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
1063 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
1064 TE_READONLY
= _controls
.TE_READONLY
1065 TE_MULTILINE
= _controls
.TE_MULTILINE
1066 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
1067 TE_LEFT
= _controls
.TE_LEFT
1068 TE_CENTER
= _controls
.TE_CENTER
1069 TE_RIGHT
= _controls
.TE_RIGHT
1070 TE_CENTRE
= _controls
.TE_CENTRE
1071 TE_RICH
= _controls
.TE_RICH
1072 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
1073 TE_PASSWORD
= _controls
.TE_PASSWORD
1074 TE_AUTO_URL
= _controls
.TE_AUTO_URL
1075 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
1076 TE_DONTWRAP
= _controls
.TE_DONTWRAP
1077 TE_LINEWRAP
= _controls
.TE_LINEWRAP
1078 TE_WORDWRAP
= _controls
.TE_WORDWRAP
1079 TE_RICH2
= _controls
.TE_RICH2
1080 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
1081 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
1082 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
1083 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
1084 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
1085 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
1086 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
1087 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
1088 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
1089 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
1090 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
1091 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
1092 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
1093 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
1094 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
1095 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
1096 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
1097 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
1098 TE_HT_UNKNOWN
= _controls
.TE_HT_UNKNOWN
1099 TE_HT_BEFORE
= _controls
.TE_HT_BEFORE
1100 TE_HT_ON_TEXT
= _controls
.TE_HT_ON_TEXT
1101 TE_HT_BELOW
= _controls
.TE_HT_BELOW
1102 TE_HT_BEYOND
= _controls
.TE_HT_BEYOND
1103 class TextAttr(object):
1105 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1106 def __init__(self
, *args
):
1108 __init__() -> TextAttr
1109 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1110 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1112 newobj
= _controls
.new_TextAttr(*args
)
1113 self
.this
= newobj
.this
1116 def __del__(self
, destroy
=_controls
.delete_TextAttr
):
1119 if self
.thisown
: destroy(self
)
1122 def Init(*args
, **kwargs
):
1124 return _controls
.TextAttr_Init(*args
, **kwargs
)
1126 def SetTextColour(*args
, **kwargs
):
1127 """SetTextColour(Colour colText)"""
1128 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
1130 def SetBackgroundColour(*args
, **kwargs
):
1131 """SetBackgroundColour(Colour colBack)"""
1132 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1134 def SetFont(*args
, **kwargs
):
1135 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
1136 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
1138 def SetAlignment(*args
, **kwargs
):
1139 """SetAlignment(int alignment)"""
1140 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
1142 def SetTabs(*args
, **kwargs
):
1143 """SetTabs(wxArrayInt tabs)"""
1144 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
1146 def SetLeftIndent(*args
, **kwargs
):
1147 """SetLeftIndent(int indent)"""
1148 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1150 def SetRightIndent(*args
, **kwargs
):
1151 """SetRightIndent(int indent)"""
1152 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
1154 def SetFlags(*args
, **kwargs
):
1155 """SetFlags(long flags)"""
1156 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
1158 def HasTextColour(*args
, **kwargs
):
1159 """HasTextColour() -> bool"""
1160 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
1162 def HasBackgroundColour(*args
, **kwargs
):
1163 """HasBackgroundColour() -> bool"""
1164 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1166 def HasFont(*args
, **kwargs
):
1167 """HasFont() -> bool"""
1168 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
1170 def HasAlignment(*args
, **kwargs
):
1171 """HasAlignment() -> bool"""
1172 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
1174 def HasTabs(*args
, **kwargs
):
1175 """HasTabs() -> bool"""
1176 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
1178 def HasLeftIndent(*args
, **kwargs
):
1179 """HasLeftIndent() -> bool"""
1180 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1182 def HasRightIndent(*args
, **kwargs
):
1183 """HasRightIndent() -> bool"""
1184 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
1186 def HasFlag(*args
, **kwargs
):
1187 """HasFlag(long flag) -> bool"""
1188 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
1190 def GetTextColour(*args
, **kwargs
):
1191 """GetTextColour() -> Colour"""
1192 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
1194 def GetBackgroundColour(*args
, **kwargs
):
1195 """GetBackgroundColour() -> Colour"""
1196 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1198 def GetFont(*args
, **kwargs
):
1199 """GetFont() -> Font"""
1200 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1202 def GetAlignment(*args
, **kwargs
):
1203 """GetAlignment() -> int"""
1204 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1206 def GetTabs(*args
, **kwargs
):
1207 """GetTabs() -> wxArrayInt"""
1208 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1210 def GetLeftIndent(*args
, **kwargs
):
1211 """GetLeftIndent() -> long"""
1212 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1214 def GetRightIndent(*args
, **kwargs
):
1215 """GetRightIndent() -> long"""
1216 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1218 def GetFlags(*args
, **kwargs
):
1219 """GetFlags() -> long"""
1220 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1222 def IsDefault(*args
, **kwargs
):
1223 """IsDefault() -> bool"""
1224 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1226 def Combine(*args
, **kwargs
):
1227 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1228 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1230 Combine
= staticmethod(Combine
)
1232 class TextAttrPtr(TextAttr
):
1233 def __init__(self
, this
):
1235 if not hasattr(self
,"thisown"): self
.thisown
= 0
1236 self
.__class
__ = TextAttr
1237 _controls
.TextAttr_swigregister(TextAttrPtr
)
1238 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1240 def TextAttr_Combine(*args
, **kwargs
):
1241 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1242 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1244 class TextCtrl(core
.Control
):
1246 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1247 def __init__(self
, *args
, **kwargs
):
1249 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1250 Size size=DefaultSize,
1251 long style=0, Validator validator=DefaultValidator,
1252 String name=TextCtrlNameStr) -> TextCtrl
1254 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1255 self
.this
= newobj
.this
1258 self
._setOORInfo
(self
)
1260 def Create(*args
, **kwargs
):
1262 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1263 Size size=DefaultSize,
1264 long style=0, Validator validator=DefaultValidator,
1265 String name=TextCtrlNameStr) -> bool
1267 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1269 def GetValue(*args
, **kwargs
):
1270 """GetValue() -> String"""
1271 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1273 def SetValue(*args
, **kwargs
):
1274 """SetValue(String value)"""
1275 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1277 def GetRange(*args
, **kwargs
):
1278 """GetRange(long from, long to) -> String"""
1279 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1281 def GetLineLength(*args
, **kwargs
):
1282 """GetLineLength(long lineNo) -> int"""
1283 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1285 def GetLineText(*args
, **kwargs
):
1286 """GetLineText(long lineNo) -> String"""
1287 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1289 def GetNumberOfLines(*args
, **kwargs
):
1290 """GetNumberOfLines() -> int"""
1291 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1293 def IsModified(*args
, **kwargs
):
1294 """IsModified() -> bool"""
1295 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1297 def IsEditable(*args
, **kwargs
):
1298 """IsEditable() -> bool"""
1299 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1301 def IsSingleLine(*args
, **kwargs
):
1302 """IsSingleLine() -> bool"""
1303 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1305 def IsMultiLine(*args
, **kwargs
):
1306 """IsMultiLine() -> bool"""
1307 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1309 def GetSelection(*args
, **kwargs
):
1311 GetSelection() -> (from, to)
1313 If the return values from and to are the same, there is no selection.
1315 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1317 def GetStringSelection(*args
, **kwargs
):
1318 """GetStringSelection() -> String"""
1319 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1321 def Clear(*args
, **kwargs
):
1323 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1325 def Replace(*args
, **kwargs
):
1326 """Replace(long from, long to, String value)"""
1327 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1329 def Remove(*args
, **kwargs
):
1330 """Remove(long from, long to)"""
1331 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1333 def LoadFile(*args
, **kwargs
):
1334 """LoadFile(String file) -> bool"""
1335 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1337 def SaveFile(*args
, **kwargs
):
1338 """SaveFile(String file=EmptyString) -> bool"""
1339 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1341 def MarkDirty(*args
, **kwargs
):
1343 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1345 def DiscardEdits(*args
, **kwargs
):
1346 """DiscardEdits()"""
1347 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1349 def SetMaxLength(*args
, **kwargs
):
1350 """SetMaxLength(unsigned long len)"""
1351 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1353 def WriteText(*args
, **kwargs
):
1354 """WriteText(String text)"""
1355 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1357 def AppendText(*args
, **kwargs
):
1358 """AppendText(String text)"""
1359 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1361 def EmulateKeyPress(*args
, **kwargs
):
1362 """EmulateKeyPress(KeyEvent event) -> bool"""
1363 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1365 def SetStyle(*args
, **kwargs
):
1366 """SetStyle(long start, long end, TextAttr style) -> bool"""
1367 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1369 def GetStyle(*args
, **kwargs
):
1370 """GetStyle(long position, TextAttr style) -> bool"""
1371 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1373 def SetDefaultStyle(*args
, **kwargs
):
1374 """SetDefaultStyle(TextAttr style) -> bool"""
1375 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1377 def GetDefaultStyle(*args
, **kwargs
):
1378 """GetDefaultStyle() -> TextAttr"""
1379 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1381 def XYToPosition(*args
, **kwargs
):
1382 """XYToPosition(long x, long y) -> long"""
1383 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1385 def PositionToXY(*args
, **kwargs
):
1386 """PositionToXY(long pos) -> (x, y)"""
1387 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1389 def ShowPosition(*args
, **kwargs
):
1390 """ShowPosition(long pos)"""
1391 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1393 def HitTest(*args
, **kwargs
):
1395 HitTest(Point pt) -> (result, row, col)
1397 Find the character at position given in pixels.
1398 NB: pt is in device coords (not adjusted for the client area
1399 origin nor scrolling)
1401 return _controls
.TextCtrl_HitTest(*args
, **kwargs
)
1403 def Copy(*args
, **kwargs
):
1405 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1407 def Cut(*args
, **kwargs
):
1409 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1411 def Paste(*args
, **kwargs
):
1413 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1415 def CanCopy(*args
, **kwargs
):
1416 """CanCopy() -> bool"""
1417 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1419 def CanCut(*args
, **kwargs
):
1420 """CanCut() -> bool"""
1421 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1423 def CanPaste(*args
, **kwargs
):
1424 """CanPaste() -> bool"""
1425 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1427 def Undo(*args
, **kwargs
):
1429 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1431 def Redo(*args
, **kwargs
):
1433 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1435 def CanUndo(*args
, **kwargs
):
1436 """CanUndo() -> bool"""
1437 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1439 def CanRedo(*args
, **kwargs
):
1440 """CanRedo() -> bool"""
1441 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1443 def SetInsertionPoint(*args
, **kwargs
):
1444 """SetInsertionPoint(long pos)"""
1445 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1447 def SetInsertionPointEnd(*args
, **kwargs
):
1448 """SetInsertionPointEnd()"""
1449 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1451 def GetInsertionPoint(*args
, **kwargs
):
1452 """GetInsertionPoint() -> long"""
1453 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1455 def GetLastPosition(*args
, **kwargs
):
1456 """GetLastPosition() -> long"""
1457 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1459 def SetSelection(*args
, **kwargs
):
1460 """SetSelection(long from, long to)"""
1461 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1463 def SelectAll(*args
, **kwargs
):
1465 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1467 def SetEditable(*args
, **kwargs
):
1468 """SetEditable(bool editable)"""
1469 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1471 def write(*args
, **kwargs
):
1472 """write(String text)"""
1473 return _controls
.TextCtrl_write(*args
, **kwargs
)
1475 def GetString(*args
, **kwargs
):
1476 """GetString(long from, long to) -> String"""
1477 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1480 class TextCtrlPtr(TextCtrl
):
1481 def __init__(self
, this
):
1483 if not hasattr(self
,"thisown"): self
.thisown
= 0
1484 self
.__class
__ = TextCtrl
1485 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1487 def PreTextCtrl(*args
, **kwargs
):
1488 """PreTextCtrl() -> TextCtrl"""
1489 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1493 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1494 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1495 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1496 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1497 class TextUrlEvent(core
.CommandEvent
):
1499 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1500 def __init__(self
, *args
, **kwargs
):
1501 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1502 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1503 self
.this
= newobj
.this
1506 def GetMouseEvent(*args
, **kwargs
):
1507 """GetMouseEvent() -> MouseEvent"""
1508 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1510 def GetURLStart(*args
, **kwargs
):
1511 """GetURLStart() -> long"""
1512 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1514 def GetURLEnd(*args
, **kwargs
):
1515 """GetURLEnd() -> long"""
1516 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1519 class TextUrlEventPtr(TextUrlEvent
):
1520 def __init__(self
, this
):
1522 if not hasattr(self
,"thisown"): self
.thisown
= 0
1523 self
.__class
__ = TextUrlEvent
1524 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1526 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1527 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1528 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1529 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1531 #---------------------------------------------------------------------------
1533 class ScrollBar(core
.Control
):
1535 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1536 def __init__(self
, *args
, **kwargs
):
1538 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1539 Size size=DefaultSize, long style=SB_HORIZONTAL,
1540 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1542 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1543 self
.this
= newobj
.this
1546 self
._setOORInfo
(self
)
1548 def Create(*args
, **kwargs
):
1550 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1551 Size size=DefaultSize, long style=SB_HORIZONTAL,
1552 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1554 Do the 2nd phase and create the GUI control.
1556 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1558 def GetThumbPosition(*args
, **kwargs
):
1559 """GetThumbPosition() -> int"""
1560 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1562 def GetThumbSize(*args
, **kwargs
):
1563 """GetThumbSize() -> int"""
1564 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1566 GetThumbLength
= GetThumbSize
1567 def GetPageSize(*args
, **kwargs
):
1568 """GetPageSize() -> int"""
1569 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1571 def GetRange(*args
, **kwargs
):
1572 """GetRange() -> int"""
1573 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1575 def IsVertical(*args
, **kwargs
):
1576 """IsVertical() -> bool"""
1577 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1579 def SetThumbPosition(*args
, **kwargs
):
1580 """SetThumbPosition(int viewStart)"""
1581 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1583 def SetScrollbar(*args
, **kwargs
):
1585 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1588 Sets the scrollbar properties of a built-in scrollbar.
1590 orientation: Determines the scrollbar whose page size is to be
1591 set. May be wx.HORIZONTAL or wx.VERTICAL.
1593 position: The position of the scrollbar in scroll units.
1595 thumbSize: The size of the thumb, or visible portion of the
1596 scrollbar, in scroll units.
1598 range: The maximum position of the scrollbar.
1600 refresh: True to redraw the scrollbar, false otherwise.
1602 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1605 class ScrollBarPtr(ScrollBar
):
1606 def __init__(self
, this
):
1608 if not hasattr(self
,"thisown"): self
.thisown
= 0
1609 self
.__class
__ = ScrollBar
1610 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1611 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1613 def PreScrollBar(*args
, **kwargs
):
1614 """PreScrollBar() -> ScrollBar"""
1615 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1619 #---------------------------------------------------------------------------
1621 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1622 SP_VERTICAL
= _controls
.SP_VERTICAL
1623 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1624 SP_WRAP
= _controls
.SP_WRAP
1625 class SpinButton(core
.Control
):
1627 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1628 def __init__(self
, *args
, **kwargs
):
1630 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1631 Size size=DefaultSize, long style=SP_HORIZONTAL,
1632 String name=SPIN_BUTTON_NAME) -> SpinButton
1634 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1635 self
.this
= newobj
.this
1638 self
._setOORInfo
(self
)
1640 def Create(*args
, **kwargs
):
1642 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1643 Size size=DefaultSize, long style=SP_HORIZONTAL,
1644 String name=SPIN_BUTTON_NAME) -> bool
1646 return _controls
.SpinButton_Create(*args
, **kwargs
)
1648 def GetValue(*args
, **kwargs
):
1649 """GetValue() -> int"""
1650 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1652 def GetMin(*args
, **kwargs
):
1653 """GetMin() -> int"""
1654 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1656 def GetMax(*args
, **kwargs
):
1657 """GetMax() -> int"""
1658 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1660 def SetValue(*args
, **kwargs
):
1661 """SetValue(int val)"""
1662 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1664 def SetMin(*args
, **kwargs
):
1665 """SetMin(int minVal)"""
1666 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1668 def SetMax(*args
, **kwargs
):
1669 """SetMax(int maxVal)"""
1670 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1672 def SetRange(*args
, **kwargs
):
1673 """SetRange(int minVal, int maxVal)"""
1674 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1676 def IsVertical(*args
, **kwargs
):
1677 """IsVertical() -> bool"""
1678 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1681 class SpinButtonPtr(SpinButton
):
1682 def __init__(self
, this
):
1684 if not hasattr(self
,"thisown"): self
.thisown
= 0
1685 self
.__class
__ = SpinButton
1686 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1687 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1688 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1690 def PreSpinButton(*args
, **kwargs
):
1691 """PreSpinButton() -> SpinButton"""
1692 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1696 class SpinCtrl(core
.Control
):
1698 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1699 def __init__(self
, *args
, **kwargs
):
1701 __init__(Window parent, int id=-1, String value=EmptyString,
1702 Point pos=DefaultPosition, Size size=DefaultSize,
1703 long style=SP_ARROW_KEYS, int min=0, int max=100,
1704 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1706 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1707 self
.this
= newobj
.this
1710 self
._setOORInfo
(self
)
1712 def Create(*args
, **kwargs
):
1714 Create(Window parent, int id=-1, String value=EmptyString,
1715 Point pos=DefaultPosition, Size size=DefaultSize,
1716 long style=SP_ARROW_KEYS, int min=0, int max=100,
1717 int initial=0, String name=SpinCtrlNameStr) -> bool
1719 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1721 def GetValue(*args
, **kwargs
):
1722 """GetValue() -> int"""
1723 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1725 def SetValue(*args
, **kwargs
):
1726 """SetValue(int value)"""
1727 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1729 def SetValueString(*args
, **kwargs
):
1730 """SetValueString(String text)"""
1731 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1733 def SetRange(*args
, **kwargs
):
1734 """SetRange(int minVal, int maxVal)"""
1735 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1737 def GetMin(*args
, **kwargs
):
1738 """GetMin() -> int"""
1739 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1741 def GetMax(*args
, **kwargs
):
1742 """GetMax() -> int"""
1743 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1745 def SetSelection(*args
, **kwargs
):
1746 """SetSelection(long from, long to)"""
1747 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1750 class SpinCtrlPtr(SpinCtrl
):
1751 def __init__(self
, this
):
1753 if not hasattr(self
,"thisown"): self
.thisown
= 0
1754 self
.__class
__ = SpinCtrl
1755 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1757 def PreSpinCtrl(*args
, **kwargs
):
1758 """PreSpinCtrl() -> SpinCtrl"""
1759 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1763 class SpinEvent(core
.NotifyEvent
):
1765 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1766 def __init__(self
, *args
, **kwargs
):
1767 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1768 newobj
= _controls
.new_SpinEvent(*args
, **kwargs
)
1769 self
.this
= newobj
.this
1772 def GetPosition(*args
, **kwargs
):
1773 """GetPosition() -> int"""
1774 return _controls
.SpinEvent_GetPosition(*args
, **kwargs
)
1776 def SetPosition(*args
, **kwargs
):
1777 """SetPosition(int pos)"""
1778 return _controls
.SpinEvent_SetPosition(*args
, **kwargs
)
1781 class SpinEventPtr(SpinEvent
):
1782 def __init__(self
, this
):
1784 if not hasattr(self
,"thisown"): self
.thisown
= 0
1785 self
.__class
__ = SpinEvent
1786 _controls
.SpinEvent_swigregister(SpinEventPtr
)
1788 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1789 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1790 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1791 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1792 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1794 #---------------------------------------------------------------------------
1796 class RadioBox(core
.Control
):
1798 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1799 def __init__(self
, *args
, **kwargs
):
1801 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1802 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1803 int majorDimension=0,
1804 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1805 String name=RadioBoxNameStr) -> RadioBox
1807 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1808 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1809 self
.this
= newobj
.this
1812 self
._setOORInfo
(self
)
1814 def Create(*args
, **kwargs
):
1816 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1817 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1818 int majorDimension=0,
1819 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1820 String name=RadioBoxNameStr) -> bool
1822 return _controls
.RadioBox_Create(*args
, **kwargs
)
1824 def SetSelection(*args
, **kwargs
):
1825 """SetSelection(int n)"""
1826 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1828 def GetSelection(*args
, **kwargs
):
1829 """GetSelection() -> int"""
1830 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1832 def GetStringSelection(*args
, **kwargs
):
1833 """GetStringSelection() -> String"""
1834 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1836 def SetStringSelection(*args
, **kwargs
):
1837 """SetStringSelection(String s) -> bool"""
1838 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1840 def GetCount(*args
, **kwargs
):
1841 """GetCount() -> int"""
1842 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1844 def FindString(*args
, **kwargs
):
1845 """FindString(String s) -> int"""
1846 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1848 def GetString(*args
, **kwargs
):
1849 """GetString(int n) -> String"""
1850 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1852 def SetString(*args
, **kwargs
):
1853 """SetString(int n, String label)"""
1854 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1856 GetItemLabel
= GetString
1857 SetItemLabel
= SetString
1858 def EnableItem(*args
, **kwargs
):
1859 """EnableItem(int n, bool enable=True)"""
1860 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1862 def ShowItem(*args
, **kwargs
):
1863 """ShowItem(int n, bool show=True)"""
1864 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1866 def GetColumnCount(*args
, **kwargs
):
1867 """GetColumnCount() -> int"""
1868 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1870 def GetRowCount(*args
, **kwargs
):
1871 """GetRowCount() -> int"""
1872 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1874 def GetNextItem(*args
, **kwargs
):
1875 """GetNextItem(int item, int dir, long style) -> int"""
1876 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1879 class RadioBoxPtr(RadioBox
):
1880 def __init__(self
, this
):
1882 if not hasattr(self
,"thisown"): self
.thisown
= 0
1883 self
.__class
__ = RadioBox
1884 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1885 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1886 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1888 def PreRadioBox(*args
, **kwargs
):
1889 """PreRadioBox() -> RadioBox"""
1890 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1894 #---------------------------------------------------------------------------
1896 class RadioButton(core
.Control
):
1898 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1899 def __init__(self
, *args
, **kwargs
):
1901 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1902 Size size=DefaultSize, long style=0,
1903 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1905 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1906 self
.this
= newobj
.this
1909 self
._setOORInfo
(self
)
1911 def Create(*args
, **kwargs
):
1913 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1914 Size size=DefaultSize, long style=0,
1915 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1917 return _controls
.RadioButton_Create(*args
, **kwargs
)
1919 def GetValue(*args
, **kwargs
):
1920 """GetValue() -> bool"""
1921 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1923 def SetValue(*args
, **kwargs
):
1924 """SetValue(bool value)"""
1925 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1928 class RadioButtonPtr(RadioButton
):
1929 def __init__(self
, this
):
1931 if not hasattr(self
,"thisown"): self
.thisown
= 0
1932 self
.__class
__ = RadioButton
1933 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1935 def PreRadioButton(*args
, **kwargs
):
1936 """PreRadioButton() -> RadioButton"""
1937 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1941 #---------------------------------------------------------------------------
1943 class Slider(core
.Control
):
1945 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1946 def __init__(self
, *args
, **kwargs
):
1948 __init__(Window parent, int id, int value, int minValue, int maxValue,
1949 Point pos=DefaultPosition, Size size=DefaultSize,
1950 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1951 String name=SliderNameStr) -> Slider
1953 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1954 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1955 self
.this
= newobj
.this
1958 self
._setOORInfo
(self
)
1960 def Create(*args
, **kwargs
):
1962 Create(Window parent, int id, int value, int minValue, int maxValue,
1963 Point pos=DefaultPosition, Size size=DefaultSize,
1964 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1965 String name=SliderNameStr) -> bool
1967 return _controls
.Slider_Create(*args
, **kwargs
)
1969 def GetValue(*args
, **kwargs
):
1970 """GetValue() -> int"""
1971 return _controls
.Slider_GetValue(*args
, **kwargs
)
1973 def SetValue(*args
, **kwargs
):
1974 """SetValue(int value)"""
1975 return _controls
.Slider_SetValue(*args
, **kwargs
)
1977 def SetRange(*args
, **kwargs
):
1978 """SetRange(int minValue, int maxValue)"""
1979 return _controls
.Slider_SetRange(*args
, **kwargs
)
1981 def GetMin(*args
, **kwargs
):
1982 """GetMin() -> int"""
1983 return _controls
.Slider_GetMin(*args
, **kwargs
)
1985 def GetMax(*args
, **kwargs
):
1986 """GetMax() -> int"""
1987 return _controls
.Slider_GetMax(*args
, **kwargs
)
1989 def SetMin(*args
, **kwargs
):
1990 """SetMin(int minValue)"""
1991 return _controls
.Slider_SetMin(*args
, **kwargs
)
1993 def SetMax(*args
, **kwargs
):
1994 """SetMax(int maxValue)"""
1995 return _controls
.Slider_SetMax(*args
, **kwargs
)
1997 def SetLineSize(*args
, **kwargs
):
1998 """SetLineSize(int lineSize)"""
1999 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
2001 def SetPageSize(*args
, **kwargs
):
2002 """SetPageSize(int pageSize)"""
2003 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
2005 def GetLineSize(*args
, **kwargs
):
2006 """GetLineSize() -> int"""
2007 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
2009 def GetPageSize(*args
, **kwargs
):
2010 """GetPageSize() -> int"""
2011 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
2013 def SetThumbLength(*args
, **kwargs
):
2014 """SetThumbLength(int lenPixels)"""
2015 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
2017 def GetThumbLength(*args
, **kwargs
):
2018 """GetThumbLength() -> int"""
2019 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
2021 def SetTickFreq(*args
, **kwargs
):
2022 """SetTickFreq(int n, int pos=1)"""
2023 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
2025 def GetTickFreq(*args
, **kwargs
):
2026 """GetTickFreq() -> int"""
2027 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
2029 def ClearTicks(*args
, **kwargs
):
2031 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
2033 def SetTick(*args
, **kwargs
):
2034 """SetTick(int tickPos)"""
2035 return _controls
.Slider_SetTick(*args
, **kwargs
)
2037 def ClearSel(*args
, **kwargs
):
2039 return _controls
.Slider_ClearSel(*args
, **kwargs
)
2041 def GetSelEnd(*args
, **kwargs
):
2042 """GetSelEnd() -> int"""
2043 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
2045 def GetSelStart(*args
, **kwargs
):
2046 """GetSelStart() -> int"""
2047 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
2049 def SetSelection(*args
, **kwargs
):
2050 """SetSelection(int min, int max)"""
2051 return _controls
.Slider_SetSelection(*args
, **kwargs
)
2054 class SliderPtr(Slider
):
2055 def __init__(self
, this
):
2057 if not hasattr(self
,"thisown"): self
.thisown
= 0
2058 self
.__class
__ = Slider
2059 _controls
.Slider_swigregister(SliderPtr
)
2060 SliderNameStr
= cvar
.SliderNameStr
2062 def PreSlider(*args
, **kwargs
):
2063 """PreSlider() -> Slider"""
2064 val
= _controls
.new_PreSlider(*args
, **kwargs
)
2068 #---------------------------------------------------------------------------
2070 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2071 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2073 class ToggleButton(core
.Control
):
2075 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2076 def __init__(self
, *args
, **kwargs
):
2078 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
2079 Size size=DefaultSize, long style=0,
2080 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2082 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
2083 self
.this
= newobj
.this
2086 self
._setOORInfo
(self
)
2089 class ToggleButtonPtr(ToggleButton
):
2090 def __init__(self
, this
):
2092 if not hasattr(self
,"thisown"): self
.thisown
= 0
2093 self
.__class
__ = ToggleButton
2094 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
2095 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2097 def PreToggleButton(*args
, **kwargs
):
2098 """PreToggleButton() -> ToggleButton"""
2099 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
2103 #---------------------------------------------------------------------------
2105 class BookCtrl(core
.Control
):
2106 def __init__(self
): raise RuntimeError, "No constructor defined"
2108 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2109 def GetPageCount(*args
, **kwargs
):
2110 """GetPageCount() -> size_t"""
2111 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
2113 def GetPage(*args
, **kwargs
):
2114 """GetPage(size_t n) -> Window"""
2115 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
2117 def GetSelection(*args
, **kwargs
):
2118 """GetSelection() -> int"""
2119 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
2121 def SetPageText(*args
, **kwargs
):
2122 """SetPageText(size_t n, String strText) -> bool"""
2123 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
2125 def GetPageText(*args
, **kwargs
):
2126 """GetPageText(size_t n) -> String"""
2127 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
2129 def SetImageList(*args
, **kwargs
):
2130 """SetImageList(ImageList imageList)"""
2131 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
2133 def AssignImageList(*args
, **kwargs
):
2134 """AssignImageList(ImageList imageList)"""
2135 return _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
2137 def GetImageList(*args
, **kwargs
):
2138 """GetImageList() -> ImageList"""
2139 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
2141 def GetPageImage(*args
, **kwargs
):
2142 """GetPageImage(size_t n) -> int"""
2143 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
2145 def SetPageImage(*args
, **kwargs
):
2146 """SetPageImage(size_t n, int imageId) -> bool"""
2147 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
2149 def SetPageSize(*args
, **kwargs
):
2150 """SetPageSize(Size size)"""
2151 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
2153 def CalcSizeFromPage(*args
, **kwargs
):
2154 """CalcSizeFromPage(Size sizePage) -> Size"""
2155 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2157 def DeletePage(*args
, **kwargs
):
2158 """DeletePage(size_t n) -> bool"""
2159 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
2161 def RemovePage(*args
, **kwargs
):
2162 """RemovePage(size_t n) -> bool"""
2163 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
2165 def DeleteAllPages(*args
, **kwargs
):
2166 """DeleteAllPages() -> bool"""
2167 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2169 def AddPage(*args
, **kwargs
):
2170 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
2171 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
2173 def InsertPage(*args
, **kwargs
):
2175 InsertPage(size_t n, Window page, String text, bool select=False,
2176 int imageId=-1) -> bool
2178 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
2180 def SetSelection(*args
, **kwargs
):
2181 """SetSelection(size_t n) -> int"""
2182 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
2184 def AdvanceSelection(*args
, **kwargs
):
2185 """AdvanceSelection(bool forward=True)"""
2186 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2189 class BookCtrlPtr(BookCtrl
):
2190 def __init__(self
, this
):
2192 if not hasattr(self
,"thisown"): self
.thisown
= 0
2193 self
.__class
__ = BookCtrl
2194 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
2195 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2197 class BookCtrlEvent(core
.NotifyEvent
):
2199 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2200 def __init__(self
, *args
, **kwargs
):
2202 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2203 int nOldSel=-1) -> BookCtrlEvent
2205 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
2206 self
.this
= newobj
.this
2209 def GetSelection(*args
, **kwargs
):
2210 """GetSelection() -> int"""
2211 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2213 def SetSelection(*args
, **kwargs
):
2214 """SetSelection(int nSel)"""
2215 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2217 def GetOldSelection(*args
, **kwargs
):
2218 """GetOldSelection() -> int"""
2219 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2221 def SetOldSelection(*args
, **kwargs
):
2222 """SetOldSelection(int nOldSel)"""
2223 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2226 class BookCtrlEventPtr(BookCtrlEvent
):
2227 def __init__(self
, this
):
2229 if not hasattr(self
,"thisown"): self
.thisown
= 0
2230 self
.__class
__ = BookCtrlEvent
2231 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2233 #---------------------------------------------------------------------------
2235 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2236 NB_TOP
= _controls
.NB_TOP
2237 NB_LEFT
= _controls
.NB_LEFT
2238 NB_RIGHT
= _controls
.NB_RIGHT
2239 NB_BOTTOM
= _controls
.NB_BOTTOM
2240 NB_MULTILINE
= _controls
.NB_MULTILINE
2241 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2242 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2243 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2244 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2245 class Notebook(BookCtrl
):
2247 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2248 def __init__(self
, *args
, **kwargs
):
2250 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
2251 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2253 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2254 self
.this
= newobj
.this
2257 self
._setOORInfo
(self
)
2259 def Create(*args
, **kwargs
):
2261 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2262 long style=0, String name=NOTEBOOK_NAME) -> bool
2264 return _controls
.Notebook_Create(*args
, **kwargs
)
2266 def GetRowCount(*args
, **kwargs
):
2267 """GetRowCount() -> int"""
2268 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2270 def SetPadding(*args
, **kwargs
):
2271 """SetPadding(Size padding)"""
2272 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2274 def SetTabSize(*args
, **kwargs
):
2275 """SetTabSize(Size sz)"""
2276 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2278 def HitTest(*args
, **kwargs
):
2280 HitTest(Point pt) -> (tab, where)
2282 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2284 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2286 def CalcSizeFromPage(*args
, **kwargs
):
2287 """CalcSizeFromPage(Size sizePage) -> Size"""
2288 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2291 class NotebookPtr(Notebook
):
2292 def __init__(self
, this
):
2294 if not hasattr(self
,"thisown"): self
.thisown
= 0
2295 self
.__class
__ = Notebook
2296 _controls
.Notebook_swigregister(NotebookPtr
)
2298 def PreNotebook(*args
, **kwargs
):
2299 """PreNotebook() -> Notebook"""
2300 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2304 class NotebookEvent(BookCtrlEvent
):
2306 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2307 def __init__(self
, *args
, **kwargs
):
2309 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2310 int nOldSel=-1) -> NotebookEvent
2312 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2313 self
.this
= newobj
.this
2317 class NotebookEventPtr(NotebookEvent
):
2318 def __init__(self
, this
):
2320 if not hasattr(self
,"thisown"): self
.thisown
= 0
2321 self
.__class
__ = NotebookEvent
2322 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2324 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2325 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2327 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2328 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2330 #----------------------------------------------------------------------------
2332 class NotebookPage(wx
.Panel
):
2334 There is an old (and apparently unsolvable) bug when placing a
2335 window with a nonstandard background colour in a wxNotebook on
2336 wxGTK, as the notbooks's background colour would always be used
2337 when the window is refreshed. The solution is to place a panel in
2338 the notbook and the coloured window on the panel, sized to cover
2339 the panel. This simple class does that for you, just put an
2340 instance of this in the notebook and make your regular window a
2341 child of this one and it will handle the resize for you.
2343 def __init__(self
, parent
, id=-1,
2344 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2345 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2346 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2348 EVT_SIZE(self
, self
.OnSize
)
2350 def OnSize(self
, evt
):
2351 if self
.child
is None:
2352 children
= self
.GetChildren()
2354 self
.child
= children
[0]
2356 self
.child
.SetPosition((0,0))
2357 self
.child
.SetSize(self
.GetSize())
2360 #---------------------------------------------------------------------------
2362 LB_DEFAULT
= _controls
.LB_DEFAULT
2363 LB_TOP
= _controls
.LB_TOP
2364 LB_BOTTOM
= _controls
.LB_BOTTOM
2365 LB_LEFT
= _controls
.LB_LEFT
2366 LB_RIGHT
= _controls
.LB_RIGHT
2367 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2368 class Listbook(BookCtrl
):
2370 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2371 def __init__(self
, *args
, **kwargs
):
2373 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
2374 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
2376 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2377 self
.this
= newobj
.this
2380 self
._setOORInfo
(self
)
2382 def Create(*args
, **kwargs
):
2384 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2385 long style=0, String name=EmptyString) -> bool
2387 return _controls
.Listbook_Create(*args
, **kwargs
)
2389 def IsVertical(*args
, **kwargs
):
2390 """IsVertical() -> bool"""
2391 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2394 class ListbookPtr(Listbook
):
2395 def __init__(self
, this
):
2397 if not hasattr(self
,"thisown"): self
.thisown
= 0
2398 self
.__class
__ = Listbook
2399 _controls
.Listbook_swigregister(ListbookPtr
)
2401 def PreListbook(*args
, **kwargs
):
2402 """PreListbook() -> Listbook"""
2403 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2407 class ListbookEvent(BookCtrlEvent
):
2409 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2410 def __init__(self
, *args
, **kwargs
):
2412 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2413 int nOldSel=-1) -> ListbookEvent
2415 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2416 self
.this
= newobj
.this
2420 class ListbookEventPtr(ListbookEvent
):
2421 def __init__(self
, this
):
2423 if not hasattr(self
,"thisown"): self
.thisown
= 0
2424 self
.__class
__ = ListbookEvent
2425 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2427 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2428 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2429 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2430 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2432 #---------------------------------------------------------------------------
2434 class BookCtrlSizer(core
.Sizer
):
2436 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2437 def __init__(self
, *args
, **kwargs
):
2438 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2439 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2440 self
.this
= newobj
.this
2443 self
._setOORInfo
(self
)
2445 def RecalcSizes(*args
, **kwargs
):
2447 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2449 def CalcMin(*args
, **kwargs
):
2450 """CalcMin() -> Size"""
2451 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2453 def GetControl(*args
, **kwargs
):
2454 """GetControl() -> BookCtrl"""
2455 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2458 class BookCtrlSizerPtr(BookCtrlSizer
):
2459 def __init__(self
, this
):
2461 if not hasattr(self
,"thisown"): self
.thisown
= 0
2462 self
.__class
__ = BookCtrlSizer
2463 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2465 class NotebookSizer(core
.Sizer
):
2467 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2468 def __init__(self
, *args
, **kwargs
):
2469 """__init__(Notebook nb) -> NotebookSizer"""
2470 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2471 self
.this
= newobj
.this
2474 self
._setOORInfo
(self
)
2476 def RecalcSizes(*args
, **kwargs
):
2478 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2480 def CalcMin(*args
, **kwargs
):
2481 """CalcMin() -> Size"""
2482 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2484 def GetNotebook(*args
, **kwargs
):
2485 """GetNotebook() -> Notebook"""
2486 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2489 class NotebookSizerPtr(NotebookSizer
):
2490 def __init__(self
, this
):
2492 if not hasattr(self
,"thisown"): self
.thisown
= 0
2493 self
.__class
__ = NotebookSizer
2494 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2496 #---------------------------------------------------------------------------
2498 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2499 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2500 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2501 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2502 TB_VERTICAL
= _controls
.TB_VERTICAL
2503 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2504 TB_FLAT
= _controls
.TB_FLAT
2505 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2506 TB_NOICONS
= _controls
.TB_NOICONS
2507 TB_TEXT
= _controls
.TB_TEXT
2508 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2509 TB_NOALIGN
= _controls
.TB_NOALIGN
2510 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2511 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2512 class ToolBarToolBase(core
.Object
):
2513 def __init__(self
): raise RuntimeError, "No constructor defined"
2515 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2516 def GetId(*args
, **kwargs
):
2517 """GetId() -> int"""
2518 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2520 def GetControl(*args
, **kwargs
):
2521 """GetControl() -> Control"""
2522 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2524 def GetToolBar(*args
, **kwargs
):
2525 """GetToolBar() -> ToolBarBase"""
2526 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2528 def IsButton(*args
, **kwargs
):
2529 """IsButton() -> int"""
2530 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2532 def IsControl(*args
, **kwargs
):
2533 """IsControl() -> int"""
2534 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2536 def IsSeparator(*args
, **kwargs
):
2537 """IsSeparator() -> int"""
2538 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2540 def GetStyle(*args
, **kwargs
):
2541 """GetStyle() -> int"""
2542 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2544 def GetKind(*args
, **kwargs
):
2545 """GetKind() -> int"""
2546 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2548 def IsEnabled(*args
, **kwargs
):
2549 """IsEnabled() -> bool"""
2550 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2552 def IsToggled(*args
, **kwargs
):
2553 """IsToggled() -> bool"""
2554 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2556 def CanBeToggled(*args
, **kwargs
):
2557 """CanBeToggled() -> bool"""
2558 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2560 def GetNormalBitmap(*args
, **kwargs
):
2561 """GetNormalBitmap() -> Bitmap"""
2562 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2564 def GetDisabledBitmap(*args
, **kwargs
):
2565 """GetDisabledBitmap() -> Bitmap"""
2566 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2568 def GetBitmap(*args
, **kwargs
):
2569 """GetBitmap() -> Bitmap"""
2570 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2572 def GetLabel(*args
, **kwargs
):
2573 """GetLabel() -> String"""
2574 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2576 def GetShortHelp(*args
, **kwargs
):
2577 """GetShortHelp() -> String"""
2578 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2580 def GetLongHelp(*args
, **kwargs
):
2581 """GetLongHelp() -> String"""
2582 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2584 def Enable(*args
, **kwargs
):
2585 """Enable(bool enable) -> bool"""
2586 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2588 def Toggle(*args
, **kwargs
):
2590 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2592 def SetToggle(*args
, **kwargs
):
2593 """SetToggle(bool toggle) -> bool"""
2594 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2596 def SetShortHelp(*args
, **kwargs
):
2597 """SetShortHelp(String help) -> bool"""
2598 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2600 def SetLongHelp(*args
, **kwargs
):
2601 """SetLongHelp(String help) -> bool"""
2602 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2604 def SetNormalBitmap(*args
, **kwargs
):
2605 """SetNormalBitmap(Bitmap bmp)"""
2606 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2608 def SetDisabledBitmap(*args
, **kwargs
):
2609 """SetDisabledBitmap(Bitmap bmp)"""
2610 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2612 def SetLabel(*args
, **kwargs
):
2613 """SetLabel(String label)"""
2614 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2616 def Detach(*args
, **kwargs
):
2618 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2620 def Attach(*args
, **kwargs
):
2621 """Attach(ToolBarBase tbar)"""
2622 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2624 def GetClientData(*args
, **kwargs
):
2625 """GetClientData() -> PyObject"""
2626 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2628 def SetClientData(*args
, **kwargs
):
2629 """SetClientData(PyObject clientData)"""
2630 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2632 GetBitmap1
= GetNormalBitmap
2633 GetBitmap2
= GetDisabledBitmap
2634 SetBitmap1
= SetNormalBitmap
2635 SetBitmap2
= SetDisabledBitmap
2638 class ToolBarToolBasePtr(ToolBarToolBase
):
2639 def __init__(self
, this
):
2641 if not hasattr(self
,"thisown"): self
.thisown
= 0
2642 self
.__class
__ = ToolBarToolBase
2643 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2645 class ToolBarBase(core
.Control
):
2646 def __init__(self
): raise RuntimeError, "No constructor defined"
2648 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2649 def DoAddTool(*args
, **kwargs
):
2651 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2652 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2653 String longHelp=EmptyString,
2654 PyObject clientData=None) -> ToolBarToolBase
2656 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2658 def DoInsertTool(*args
, **kwargs
):
2660 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2661 int kind=ITEM_NORMAL,
2662 String shortHelp=EmptyString, String longHelp=EmptyString,
2663 PyObject clientData=None) -> ToolBarToolBase
2665 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2667 # These match the original Add methods for this class, kept for
2668 # backwards compatibility with versions < 2.3.3.
2671 def AddTool(self
, id, bitmap
,
2672 pushedBitmap
= wx
.NullBitmap
,
2675 shortHelpString
= '',
2676 longHelpString
= '') :
2677 '''Old style method to add a tool to the toolbar.'''
2678 kind
= wx
.ITEM_NORMAL
2679 if isToggle
: kind
= wx
.ITEM_CHECK
2680 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2681 shortHelpString
, longHelpString
, clientData
)
2683 def AddSimpleTool(self
, id, bitmap
,
2684 shortHelpString
= '',
2685 longHelpString
= '',
2687 '''Old style method to add a tool to the toolbar.'''
2688 kind
= wx
.ITEM_NORMAL
2689 if isToggle
: kind
= wx
.ITEM_CHECK
2690 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2691 shortHelpString
, longHelpString
, None)
2693 def InsertTool(self
, pos
, id, bitmap
,
2694 pushedBitmap
= wx
.NullBitmap
,
2697 shortHelpString
= '',
2698 longHelpString
= ''):
2699 '''Old style method to insert a tool in the toolbar.'''
2700 kind
= wx
.ITEM_NORMAL
2701 if isToggle
: kind
= wx
.ITEM_CHECK
2702 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2703 shortHelpString
, longHelpString
, clientData
)
2705 def InsertSimpleTool(self
, pos
, id, bitmap
,
2706 shortHelpString
= '',
2707 longHelpString
= '',
2709 '''Old style method to insert a tool in the toolbar.'''
2710 kind
= wx
.ITEM_NORMAL
2711 if isToggle
: kind
= wx
.ITEM_CHECK
2712 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2713 shortHelpString
, longHelpString
, None)
2716 # The following are the new toolbar Add methods starting with
2717 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2718 # able to keep backwards compatibility with using the above
2719 # methods. Eventually these should migrate to be the methods used
2720 # primarily and lose the 'Label' in the name...
2722 def AddLabelTool(self
, id, label
, bitmap
,
2723 bmpDisabled
= wx
.NullBitmap
,
2724 kind
= wx
.ITEM_NORMAL
,
2725 shortHelp
= '', longHelp
= '',
2728 The full AddTool() function.
2730 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2731 is created and used as the disabled image.
2733 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2734 shortHelp
, longHelp
, clientData
)
2737 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2738 bmpDisabled
= wx
.NullBitmap
,
2739 kind
= wx
.ITEM_NORMAL
,
2740 shortHelp
= '', longHelp
= '',
2743 Insert the new tool at the given position, if pos == GetToolsCount(), it
2744 is equivalent to AddTool()
2746 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2747 shortHelp
, longHelp
, clientData
)
2749 def AddCheckLabelTool(self
, id, label
, bitmap
,
2750 bmpDisabled
= wx
.NullBitmap
,
2751 shortHelp
= '', longHelp
= '',
2753 '''Add a check tool, i.e. a tool which can be toggled'''
2754 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2755 shortHelp
, longHelp
, clientData
)
2757 def AddRadioLabelTool(self
, id, label
, bitmap
,
2758 bmpDisabled
= wx
.NullBitmap
,
2759 shortHelp
= '', longHelp
= '',
2762 Add a radio tool, i.e. a tool which can be toggled and releases any
2763 other toggled radio tools in the same group when it happens
2765 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2766 shortHelp
, longHelp
, clientData
)
2769 # For consistency with the backwards compatible methods above, here are
2770 # some non-'Label' versions of the Check and Radio methods
2771 def AddCheckTool(self
, id, bitmap
,
2772 bmpDisabled
= wx
.NullBitmap
,
2773 shortHelp
= '', longHelp
= '',
2775 '''Add a check tool, i.e. a tool which can be toggled'''
2776 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2777 shortHelp
, longHelp
, clientData
)
2779 def AddRadioTool(self
, id, bitmap
,
2780 bmpDisabled
= wx
.NullBitmap
,
2781 shortHelp
= '', longHelp
= '',
2784 Add a radio tool, i.e. a tool which can be toggled and releases any
2785 other toggled radio tools in the same group when it happens
2787 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2788 shortHelp
, longHelp
, clientData
)
2790 def AddToolItem(*args
, **kwargs
):
2791 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2792 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2794 def InsertToolItem(*args
, **kwargs
):
2795 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2796 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2798 def AddControl(*args
, **kwargs
):
2799 """AddControl(Control control) -> ToolBarToolBase"""
2800 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2802 def InsertControl(*args
, **kwargs
):
2803 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2804 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2806 def FindControl(*args
, **kwargs
):
2807 """FindControl(int id) -> Control"""
2808 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2810 def AddSeparator(*args
, **kwargs
):
2811 """AddSeparator() -> ToolBarToolBase"""
2812 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2814 def InsertSeparator(*args
, **kwargs
):
2815 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2816 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2818 def RemoveTool(*args
, **kwargs
):
2819 """RemoveTool(int id) -> ToolBarToolBase"""
2820 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2822 def DeleteToolByPos(*args
, **kwargs
):
2823 """DeleteToolByPos(size_t pos) -> bool"""
2824 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2826 def DeleteTool(*args
, **kwargs
):
2827 """DeleteTool(int id) -> bool"""
2828 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2830 def ClearTools(*args
, **kwargs
):
2832 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2834 def Realize(*args
, **kwargs
):
2835 """Realize() -> bool"""
2836 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2838 def EnableTool(*args
, **kwargs
):
2839 """EnableTool(int id, bool enable)"""
2840 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2842 def ToggleTool(*args
, **kwargs
):
2843 """ToggleTool(int id, bool toggle)"""
2844 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2846 def SetToggle(*args
, **kwargs
):
2847 """SetToggle(int id, bool toggle)"""
2848 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2850 def GetToolClientData(*args
, **kwargs
):
2851 """GetToolClientData(int id) -> PyObject"""
2852 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2854 def SetToolClientData(*args
, **kwargs
):
2855 """SetToolClientData(int id, PyObject clientData)"""
2856 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2858 def GetToolPos(*args
, **kwargs
):
2859 """GetToolPos(int id) -> int"""
2860 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2862 def GetToolState(*args
, **kwargs
):
2863 """GetToolState(int id) -> bool"""
2864 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2866 def GetToolEnabled(*args
, **kwargs
):
2867 """GetToolEnabled(int id) -> bool"""
2868 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2870 def SetToolShortHelp(*args
, **kwargs
):
2871 """SetToolShortHelp(int id, String helpString)"""
2872 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2874 def GetToolShortHelp(*args
, **kwargs
):
2875 """GetToolShortHelp(int id) -> String"""
2876 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2878 def SetToolLongHelp(*args
, **kwargs
):
2879 """SetToolLongHelp(int id, String helpString)"""
2880 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2882 def GetToolLongHelp(*args
, **kwargs
):
2883 """GetToolLongHelp(int id) -> String"""
2884 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2886 def SetMarginsXY(*args
, **kwargs
):
2887 """SetMarginsXY(int x, int y)"""
2888 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2890 def SetMargins(*args
, **kwargs
):
2891 """SetMargins(Size size)"""
2892 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2894 def SetToolPacking(*args
, **kwargs
):
2895 """SetToolPacking(int packing)"""
2896 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2898 def SetToolSeparation(*args
, **kwargs
):
2899 """SetToolSeparation(int separation)"""
2900 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2902 def GetToolMargins(*args
, **kwargs
):
2903 """GetToolMargins() -> Size"""
2904 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2906 def GetMargins(*args
, **kwargs
):
2907 """GetMargins() -> Size"""
2908 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2910 def GetToolPacking(*args
, **kwargs
):
2911 """GetToolPacking() -> int"""
2912 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2914 def GetToolSeparation(*args
, **kwargs
):
2915 """GetToolSeparation() -> int"""
2916 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2918 def SetRows(*args
, **kwargs
):
2919 """SetRows(int nRows)"""
2920 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2922 def SetMaxRowsCols(*args
, **kwargs
):
2923 """SetMaxRowsCols(int rows, int cols)"""
2924 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2926 def GetMaxRows(*args
, **kwargs
):
2927 """GetMaxRows() -> int"""
2928 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2930 def GetMaxCols(*args
, **kwargs
):
2931 """GetMaxCols() -> int"""
2932 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2934 def SetToolBitmapSize(*args
, **kwargs
):
2935 """SetToolBitmapSize(Size size)"""
2936 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2938 def GetToolBitmapSize(*args
, **kwargs
):
2939 """GetToolBitmapSize() -> Size"""
2940 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2942 def GetToolSize(*args
, **kwargs
):
2943 """GetToolSize() -> Size"""
2944 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2946 def FindToolForPosition(*args
, **kwargs
):
2947 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2948 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2950 def FindById(*args
, **kwargs
):
2951 """FindById(int toolid) -> ToolBarToolBase"""
2952 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2954 def IsVertical(*args
, **kwargs
):
2955 """IsVertical() -> bool"""
2956 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2959 class ToolBarBasePtr(ToolBarBase
):
2960 def __init__(self
, this
):
2962 if not hasattr(self
,"thisown"): self
.thisown
= 0
2963 self
.__class
__ = ToolBarBase
2964 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2966 class ToolBar(ToolBarBase
):
2968 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2969 def __init__(self
, *args
, **kwargs
):
2971 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2972 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2973 String name=wxPyToolBarNameStr) -> ToolBar
2975 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2976 self
.this
= newobj
.this
2979 self
._setOORInfo
(self
)
2981 def Create(*args
, **kwargs
):
2983 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2984 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2985 String name=wxPyToolBarNameStr) -> bool
2987 return _controls
.ToolBar_Create(*args
, **kwargs
)
2989 def FindToolForPosition(*args
, **kwargs
):
2990 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2991 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2994 class ToolBarPtr(ToolBar
):
2995 def __init__(self
, this
):
2997 if not hasattr(self
,"thisown"): self
.thisown
= 0
2998 self
.__class
__ = ToolBar
2999 _controls
.ToolBar_swigregister(ToolBarPtr
)
3001 def PreToolBar(*args
, **kwargs
):
3002 """PreToolBar() -> ToolBar"""
3003 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
3007 #---------------------------------------------------------------------------
3009 LC_VRULES
= _controls
.LC_VRULES
3010 LC_HRULES
= _controls
.LC_HRULES
3011 LC_ICON
= _controls
.LC_ICON
3012 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
3013 LC_LIST
= _controls
.LC_LIST
3014 LC_REPORT
= _controls
.LC_REPORT
3015 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
3016 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
3017 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
3018 LC_VIRTUAL
= _controls
.LC_VIRTUAL
3019 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
3020 LC_NO_HEADER
= _controls
.LC_NO_HEADER
3021 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
3022 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
3023 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
3024 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
3025 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
3026 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
3027 LC_MASK_SORT
= _controls
.LC_MASK_SORT
3028 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
3029 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
3030 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
3031 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
3032 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
3033 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
3034 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
3035 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
3036 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
3037 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
3038 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
3039 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
3040 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
3041 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
3042 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
3043 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
3044 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
3045 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
3046 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
3047 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
3048 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
3049 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
3050 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
3051 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
3052 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
3053 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
3054 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
3055 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
3056 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
3057 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
3058 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
3059 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
3060 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
3061 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
3062 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
3063 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
3064 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
3065 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
3066 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
3067 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
3068 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
3069 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
3070 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
3071 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
3072 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
3073 LIST_FIND_UP
= _controls
.LIST_FIND_UP
3074 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
3075 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
3076 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
3077 #---------------------------------------------------------------------------
3079 class ListItemAttr(object):
3081 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3082 def __init__(self
, *args
, **kwargs
):
3084 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
3085 Font font=wxNullFont) -> ListItemAttr
3087 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
3088 self
.this
= newobj
.this
3091 def SetTextColour(*args
, **kwargs
):
3092 """SetTextColour(Colour colText)"""
3093 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3095 def SetBackgroundColour(*args
, **kwargs
):
3096 """SetBackgroundColour(Colour colBack)"""
3097 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3099 def SetFont(*args
, **kwargs
):
3100 """SetFont(Font font)"""
3101 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
3103 def HasTextColour(*args
, **kwargs
):
3104 """HasTextColour() -> bool"""
3105 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3107 def HasBackgroundColour(*args
, **kwargs
):
3108 """HasBackgroundColour() -> bool"""
3109 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3111 def HasFont(*args
, **kwargs
):
3112 """HasFont() -> bool"""
3113 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
3115 def GetTextColour(*args
, **kwargs
):
3116 """GetTextColour() -> Colour"""
3117 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3119 def GetBackgroundColour(*args
, **kwargs
):
3120 """GetBackgroundColour() -> Colour"""
3121 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3123 def GetFont(*args
, **kwargs
):
3124 """GetFont() -> Font"""
3125 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
3127 def Destroy(*args
, **kwargs
):
3129 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
3132 class ListItemAttrPtr(ListItemAttr
):
3133 def __init__(self
, this
):
3135 if not hasattr(self
,"thisown"): self
.thisown
= 0
3136 self
.__class
__ = ListItemAttr
3137 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
3138 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3140 #---------------------------------------------------------------------------
3142 class ListItem(core
.Object
):
3144 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3145 def __init__(self
, *args
, **kwargs
):
3146 """__init__() -> ListItem"""
3147 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
3148 self
.this
= newobj
.this
3151 def __del__(self
, destroy
=_controls
.delete_ListItem
):
3154 if self
.thisown
: destroy(self
)
3157 def Clear(*args
, **kwargs
):
3159 return _controls
.ListItem_Clear(*args
, **kwargs
)
3161 def ClearAttributes(*args
, **kwargs
):
3162 """ClearAttributes()"""
3163 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
3165 def SetMask(*args
, **kwargs
):
3166 """SetMask(long mask)"""
3167 return _controls
.ListItem_SetMask(*args
, **kwargs
)
3169 def SetId(*args
, **kwargs
):
3170 """SetId(long id)"""
3171 return _controls
.ListItem_SetId(*args
, **kwargs
)
3173 def SetColumn(*args
, **kwargs
):
3174 """SetColumn(int col)"""
3175 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
3177 def SetState(*args
, **kwargs
):
3178 """SetState(long state)"""
3179 return _controls
.ListItem_SetState(*args
, **kwargs
)
3181 def SetStateMask(*args
, **kwargs
):
3182 """SetStateMask(long stateMask)"""
3183 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
3185 def SetText(*args
, **kwargs
):
3186 """SetText(String text)"""
3187 return _controls
.ListItem_SetText(*args
, **kwargs
)
3189 def SetImage(*args
, **kwargs
):
3190 """SetImage(int image)"""
3191 return _controls
.ListItem_SetImage(*args
, **kwargs
)
3193 def SetData(*args
, **kwargs
):
3194 """SetData(long data)"""
3195 return _controls
.ListItem_SetData(*args
, **kwargs
)
3197 def SetWidth(*args
, **kwargs
):
3198 """SetWidth(int width)"""
3199 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
3201 def SetAlign(*args
, **kwargs
):
3202 """SetAlign(int align)"""
3203 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
3205 def SetTextColour(*args
, **kwargs
):
3206 """SetTextColour(Colour colText)"""
3207 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
3209 def SetBackgroundColour(*args
, **kwargs
):
3210 """SetBackgroundColour(Colour colBack)"""
3211 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3213 def SetFont(*args
, **kwargs
):
3214 """SetFont(Font font)"""
3215 return _controls
.ListItem_SetFont(*args
, **kwargs
)
3217 def GetMask(*args
, **kwargs
):
3218 """GetMask() -> long"""
3219 return _controls
.ListItem_GetMask(*args
, **kwargs
)
3221 def GetId(*args
, **kwargs
):
3222 """GetId() -> long"""
3223 return _controls
.ListItem_GetId(*args
, **kwargs
)
3225 def GetColumn(*args
, **kwargs
):
3226 """GetColumn() -> int"""
3227 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
3229 def GetState(*args
, **kwargs
):
3230 """GetState() -> long"""
3231 return _controls
.ListItem_GetState(*args
, **kwargs
)
3233 def GetText(*args
, **kwargs
):
3234 """GetText() -> String"""
3235 return _controls
.ListItem_GetText(*args
, **kwargs
)
3237 def GetImage(*args
, **kwargs
):
3238 """GetImage() -> int"""
3239 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3241 def GetData(*args
, **kwargs
):
3242 """GetData() -> long"""
3243 return _controls
.ListItem_GetData(*args
, **kwargs
)
3245 def GetWidth(*args
, **kwargs
):
3246 """GetWidth() -> int"""
3247 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3249 def GetAlign(*args
, **kwargs
):
3250 """GetAlign() -> int"""
3251 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3253 def GetAttributes(*args
, **kwargs
):
3254 """GetAttributes() -> ListItemAttr"""
3255 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3257 def HasAttributes(*args
, **kwargs
):
3258 """HasAttributes() -> bool"""
3259 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3261 def GetTextColour(*args
, **kwargs
):
3262 """GetTextColour() -> Colour"""
3263 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3265 def GetBackgroundColour(*args
, **kwargs
):
3266 """GetBackgroundColour() -> Colour"""
3267 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3269 def GetFont(*args
, **kwargs
):
3270 """GetFont() -> Font"""
3271 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3273 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3274 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3275 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3276 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3277 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3278 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3279 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3280 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3281 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3282 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3284 class ListItemPtr(ListItem
):
3285 def __init__(self
, this
):
3287 if not hasattr(self
,"thisown"): self
.thisown
= 0
3288 self
.__class
__ = ListItem
3289 _controls
.ListItem_swigregister(ListItemPtr
)
3291 #---------------------------------------------------------------------------
3293 class ListEvent(core
.NotifyEvent
):
3295 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3296 def __init__(self
, *args
, **kwargs
):
3297 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3298 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3299 self
.this
= newobj
.this
3302 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3303 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3304 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3305 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3306 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3307 m_item
= property(_controls
.ListEvent_m_item_get
)
3308 def GetKeyCode(*args
, **kwargs
):
3309 """GetKeyCode() -> int"""
3310 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3312 GetCode
= GetKeyCode
3313 def GetIndex(*args
, **kwargs
):
3314 """GetIndex() -> long"""
3315 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3317 def GetColumn(*args
, **kwargs
):
3318 """GetColumn() -> int"""
3319 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3321 def GetPoint(*args
, **kwargs
):
3322 """GetPoint() -> Point"""
3323 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3325 GetPosition
= GetPoint
3326 def GetLabel(*args
, **kwargs
):
3327 """GetLabel() -> String"""
3328 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3330 def GetText(*args
, **kwargs
):
3331 """GetText() -> String"""
3332 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3334 def GetImage(*args
, **kwargs
):
3335 """GetImage() -> int"""
3336 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3338 def GetData(*args
, **kwargs
):
3339 """GetData() -> long"""
3340 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3342 def GetMask(*args
, **kwargs
):
3343 """GetMask() -> long"""
3344 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3346 def GetItem(*args
, **kwargs
):
3347 """GetItem() -> ListItem"""
3348 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3350 def GetCacheFrom(*args
, **kwargs
):
3351 """GetCacheFrom() -> long"""
3352 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3354 def GetCacheTo(*args
, **kwargs
):
3355 """GetCacheTo() -> long"""
3356 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3358 def IsEditCancelled(*args
, **kwargs
):
3359 """IsEditCancelled() -> bool"""
3360 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3362 def SetEditCanceled(*args
, **kwargs
):
3363 """SetEditCanceled(bool editCancelled)"""
3364 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3367 class ListEventPtr(ListEvent
):
3368 def __init__(self
, this
):
3370 if not hasattr(self
,"thisown"): self
.thisown
= 0
3371 self
.__class
__ = ListEvent
3372 _controls
.ListEvent_swigregister(ListEventPtr
)
3374 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3375 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3376 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3377 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3378 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3379 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3380 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3381 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3382 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3383 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3384 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3385 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3386 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3387 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3388 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3389 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3390 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3391 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3392 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3393 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3394 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3395 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3396 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3397 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3398 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3399 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3400 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3401 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3402 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3403 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3404 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3405 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3406 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3407 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3408 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3409 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3410 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3411 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3412 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3413 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3414 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3415 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3416 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3417 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3419 #---------------------------------------------------------------------------
3421 class ListCtrl(core
.Control
):
3423 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3424 def __init__(self
, *args
, **kwargs
):
3426 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3427 Size size=DefaultSize, long style=LC_ICON,
3428 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3430 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3431 self
.this
= newobj
.this
3434 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3436 def Create(*args
, **kwargs
):
3438 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3439 Size size=DefaultSize, long style=LC_ICON,
3440 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3442 Do the 2nd phase and create the GUI control.
3444 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3446 def _setCallbackInfo(*args
, **kwargs
):
3447 """_setCallbackInfo(PyObject self, PyObject _class)"""
3448 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3450 def SetForegroundColour(*args
, **kwargs
):
3451 """SetForegroundColour(Colour col) -> bool"""
3452 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3454 def SetBackgroundColour(*args
, **kwargs
):
3455 """SetBackgroundColour(Colour col) -> bool"""
3456 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3458 def GetColumn(*args
, **kwargs
):
3459 """GetColumn(int col) -> ListItem"""
3460 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3461 if val
is not None: val
.thisown
= 1
3464 def SetColumn(*args
, **kwargs
):
3465 """SetColumn(int col, ListItem item) -> bool"""
3466 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3468 def GetColumnWidth(*args
, **kwargs
):
3469 """GetColumnWidth(int col) -> int"""
3470 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3472 def SetColumnWidth(*args
, **kwargs
):
3473 """SetColumnWidth(int col, int width) -> bool"""
3474 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3476 def GetCountPerPage(*args
, **kwargs
):
3477 """GetCountPerPage() -> int"""
3478 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3480 def GetViewRect(*args
, **kwargs
):
3481 """GetViewRect() -> Rect"""
3482 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3484 def GetItem(*args
, **kwargs
):
3485 """GetItem(long itemId, int col=0) -> ListItem"""
3486 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3487 if val
is not None: val
.thisown
= 1
3490 def SetItem(*args
, **kwargs
):
3491 """SetItem(ListItem info) -> bool"""
3492 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3494 def SetStringItem(*args
, **kwargs
):
3495 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3496 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3498 def GetItemState(*args
, **kwargs
):
3499 """GetItemState(long item, long stateMask) -> int"""
3500 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3502 def SetItemState(*args
, **kwargs
):
3503 """SetItemState(long item, long state, long stateMask) -> bool"""
3504 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3506 def SetItemImage(*args
, **kwargs
):
3507 """SetItemImage(long item, int image, int selImage) -> bool"""
3508 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3510 def GetItemText(*args
, **kwargs
):
3511 """GetItemText(long item) -> String"""
3512 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3514 def SetItemText(*args
, **kwargs
):
3515 """SetItemText(long item, String str)"""
3516 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3518 def GetItemData(*args
, **kwargs
):
3519 """GetItemData(long item) -> long"""
3520 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3522 def SetItemData(*args
, **kwargs
):
3523 """SetItemData(long item, long data) -> bool"""
3524 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3526 def GetItemPosition(*args
, **kwargs
):
3527 """GetItemPosition(long item) -> Point"""
3528 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3530 def GetItemRect(*args
, **kwargs
):
3531 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3532 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3534 def SetItemPosition(*args
, **kwargs
):
3535 """SetItemPosition(long item, Point pos) -> bool"""
3536 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3538 def GetItemCount(*args
, **kwargs
):
3539 """GetItemCount() -> int"""
3540 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3542 def GetColumnCount(*args
, **kwargs
):
3543 """GetColumnCount() -> int"""
3544 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3546 def GetItemSpacing(*args
, **kwargs
):
3547 """GetItemSpacing() -> Size"""
3548 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3550 def SetItemSpacing(*args
, **kwargs
):
3551 """SetItemSpacing(int spacing, bool isSmall=False)"""
3552 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3554 def GetSelectedItemCount(*args
, **kwargs
):
3555 """GetSelectedItemCount() -> int"""
3556 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3558 def GetTextColour(*args
, **kwargs
):
3559 """GetTextColour() -> Colour"""
3560 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3562 def SetTextColour(*args
, **kwargs
):
3563 """SetTextColour(Colour col)"""
3564 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3566 def GetTopItem(*args
, **kwargs
):
3567 """GetTopItem() -> long"""
3568 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3570 def SetSingleStyle(*args
, **kwargs
):
3571 """SetSingleStyle(long style, bool add=True)"""
3572 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3574 def SetWindowStyleFlag(*args
, **kwargs
):
3576 SetWindowStyleFlag(long style)
3578 Sets the style of the window. Please note that some styles cannot be
3579 changed after the window creation and that Refresh() might be called
3580 after changing the others for the change to take place immediately.
3582 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3584 def GetNextItem(*args
, **kwargs
):
3585 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3586 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3588 def GetImageList(*args
, **kwargs
):
3589 """GetImageList(int which) -> ImageList"""
3590 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3592 def SetImageList(*args
, **kwargs
):
3593 """SetImageList(ImageList imageList, int which)"""
3594 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3596 def AssignImageList(*args
, **kwargs
):
3597 """AssignImageList(ImageList imageList, int which)"""
3598 return _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3600 def InReportView(*args
, **kwargs
):
3601 """InReportView() -> bool"""
3602 return _controls
.ListCtrl_InReportView(*args
, **kwargs
)
3604 def IsVirtual(*args
, **kwargs
):
3605 """IsVirtual() -> bool"""
3606 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3608 def RefreshItem(*args
, **kwargs
):
3609 """RefreshItem(long item)"""
3610 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3612 def RefreshItems(*args
, **kwargs
):
3613 """RefreshItems(long itemFrom, long itemTo)"""
3614 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3616 def Arrange(*args
, **kwargs
):
3617 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3618 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3620 def DeleteItem(*args
, **kwargs
):
3621 """DeleteItem(long item) -> bool"""
3622 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3624 def DeleteAllItems(*args
, **kwargs
):
3625 """DeleteAllItems() -> bool"""
3626 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3628 def DeleteColumn(*args
, **kwargs
):
3629 """DeleteColumn(int col) -> bool"""
3630 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3632 def DeleteAllColumns(*args
, **kwargs
):
3633 """DeleteAllColumns() -> bool"""
3634 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3636 def ClearAll(*args
, **kwargs
):
3638 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3640 def EditLabel(*args
, **kwargs
):
3641 """EditLabel(long item)"""
3642 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3644 def EnsureVisible(*args
, **kwargs
):
3645 """EnsureVisible(long item) -> bool"""
3646 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3648 def FindItem(*args
, **kwargs
):
3649 """FindItem(long start, String str, bool partial=False) -> long"""
3650 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3652 def FindItemData(*args
, **kwargs
):
3653 """FindItemData(long start, long data) -> long"""
3654 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3656 def FindItemAtPos(*args
, **kwargs
):
3657 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3658 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3660 def HitTest(*args
, **kwargs
):
3662 HitTest(Point point) -> (item, where)
3664 Determines which item (if any) is at the specified point,
3665 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3667 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3669 def InsertItem(*args
, **kwargs
):
3670 """InsertItem(ListItem info) -> long"""
3671 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3673 def InsertStringItem(*args
, **kwargs
):
3674 """InsertStringItem(long index, String label) -> long"""
3675 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3677 def InsertImageItem(*args
, **kwargs
):
3678 """InsertImageItem(long index, int imageIndex) -> long"""
3679 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3681 def InsertImageStringItem(*args
, **kwargs
):
3682 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3683 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3685 def InsertColumnInfo(*args
, **kwargs
):
3686 """InsertColumnInfo(long col, ListItem info) -> long"""
3687 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3689 def InsertColumn(*args
, **kwargs
):
3691 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3692 int width=-1) -> long
3694 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3696 def SetItemCount(*args
, **kwargs
):
3697 """SetItemCount(long count)"""
3698 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3700 def ScrollList(*args
, **kwargs
):
3701 """ScrollList(int dx, int dy) -> bool"""
3702 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3704 def SetItemTextColour(*args
, **kwargs
):
3705 """SetItemTextColour(long item, Colour col)"""
3706 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3708 def GetItemTextColour(*args
, **kwargs
):
3709 """GetItemTextColour(long item) -> Colour"""
3710 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3712 def SetItemBackgroundColour(*args
, **kwargs
):
3713 """SetItemBackgroundColour(long item, Colour col)"""
3714 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3716 def GetItemBackgroundColour(*args
, **kwargs
):
3717 """GetItemBackgroundColour(long item) -> Colour"""
3718 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3722 def Select(self
, idx
, on
=1):
3723 '''[de]select an item'''
3724 if on
: state
= wx
.LIST_STATE_SELECTED
3726 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3728 def Focus(self
, idx
):
3729 '''Focus and show the given item'''
3730 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3731 self
.EnsureVisible(idx
)
3733 def GetFocusedItem(self
):
3734 '''get the currently focused item or -1 if none'''
3735 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3737 def GetFirstSelected(self
, *args
):
3738 '''return first selected item, or -1 when none'''
3739 return self
.GetNextSelected(-1)
3741 def GetNextSelected(self
, item
):
3742 '''return subsequent selected items, or -1 when no more'''
3743 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3745 def IsSelected(self
, idx
):
3746 '''return True if the item is selected'''
3747 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3749 def SetColumnImage(self
, col
, image
):
3750 item
= self
.GetColumn(col
)
3751 # preserve all other attributes too
3752 item
.SetMask( wx
.LIST_MASK_STATE |
3754 wx
.LIST_MASK_IMAGE |
3757 wx
.LIST_MASK_WIDTH |
3758 wx
.LIST_MASK_FORMAT
)
3759 item
.SetImage(image
)
3760 self
.SetColumn(col
, item
)
3762 def ClearColumnImage(self
, col
):
3763 self
.SetColumnImage(col
, -1)
3765 def Append(self
, entry
):
3766 '''Append an item to the list control. The entry parameter should be a
3767 sequence with an item for each column'''
3773 pos
= self
.GetItemCount()
3774 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3775 for i
in range(1, len(entry
)):
3776 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3779 def SortItems(*args
, **kwargs
):
3780 """SortItems(PyObject func) -> bool"""
3781 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3783 def GetMainWindow(*args
, **kwargs
):
3784 """GetMainWindow() -> Window"""
3785 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3787 def GetClassDefaultAttributes(*args
, **kwargs
):
3789 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3791 Get the default attributes for this class. This is useful if
3792 you want to use the same font or colour in your own control as
3793 in a standard control -- which is a much better idea than hard
3794 coding specific colours or fonts which might look completely out
3795 of place on the users system, especially if it uses themes.
3797 The variant parameter is only relevant under Mac currently and is
3798 ignore under other platforms. Under Mac, it will change the size of the
3799 returned font. See SetWindowVariant for more about this.
3801 return _controls
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3803 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3805 class ListCtrlPtr(ListCtrl
):
3806 def __init__(self
, this
):
3808 if not hasattr(self
,"thisown"): self
.thisown
= 0
3809 self
.__class
__ = ListCtrl
3810 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3812 def PreListCtrl(*args
, **kwargs
):
3813 """PreListCtrl() -> ListCtrl"""
3814 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3818 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
3820 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3822 Get the default attributes for this class. This is useful if
3823 you want to use the same font or colour in your own control as
3824 in a standard control -- which is a much better idea than hard
3825 coding specific colours or fonts which might look completely out
3826 of place on the users system, especially if it uses themes.
3828 The variant parameter is only relevant under Mac currently and is
3829 ignore under other platforms. Under Mac, it will change the size of the
3830 returned font. See SetWindowVariant for more about this.
3832 return _controls
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3834 #---------------------------------------------------------------------------
3836 class ListView(ListCtrl
):
3838 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3839 def __init__(self
, *args
, **kwargs
):
3841 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3842 Size size=DefaultSize, long style=LC_REPORT,
3843 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3845 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3846 self
.this
= newobj
.this
3849 self
._setOORInfo
(self
)
3851 def Create(*args
, **kwargs
):
3853 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3854 Size size=DefaultSize, long style=LC_REPORT,
3855 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3857 Do the 2nd phase and create the GUI control.
3859 return _controls
.ListView_Create(*args
, **kwargs
)
3861 def Select(*args
, **kwargs
):
3862 """Select(long n, bool on=True)"""
3863 return _controls
.ListView_Select(*args
, **kwargs
)
3865 def Focus(*args
, **kwargs
):
3866 """Focus(long index)"""
3867 return _controls
.ListView_Focus(*args
, **kwargs
)
3869 def GetFocusedItem(*args
, **kwargs
):
3870 """GetFocusedItem() -> long"""
3871 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3873 def GetNextSelected(*args
, **kwargs
):
3874 """GetNextSelected(long item) -> long"""
3875 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3877 def GetFirstSelected(*args
, **kwargs
):
3878 """GetFirstSelected() -> long"""
3879 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3881 def IsSelected(*args
, **kwargs
):
3882 """IsSelected(long index) -> bool"""
3883 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3885 def SetColumnImage(*args
, **kwargs
):
3886 """SetColumnImage(int col, int image)"""
3887 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3889 def ClearColumnImage(*args
, **kwargs
):
3890 """ClearColumnImage(int col)"""
3891 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3894 class ListViewPtr(ListView
):
3895 def __init__(self
, this
):
3897 if not hasattr(self
,"thisown"): self
.thisown
= 0
3898 self
.__class
__ = ListView
3899 _controls
.ListView_swigregister(ListViewPtr
)
3901 def PreListView(*args
, **kwargs
):
3902 """PreListView() -> ListView"""
3903 val
= _controls
.new_PreListView(*args
, **kwargs
)
3907 #---------------------------------------------------------------------------
3909 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3910 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3911 TR_NO_LINES
= _controls
.TR_NO_LINES
3912 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3913 TR_SINGLE
= _controls
.TR_SINGLE
3914 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3915 TR_EXTENDED
= _controls
.TR_EXTENDED
3916 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3917 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3918 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3919 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3920 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3921 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3922 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3923 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3924 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3925 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3926 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3927 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3928 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3929 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3930 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3931 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3932 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3933 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3934 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3935 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3936 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3937 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3938 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3939 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3940 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3941 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3942 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3943 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3944 #---------------------------------------------------------------------------
3946 class TreeItemId(object):
3948 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3949 def __init__(self
, *args
, **kwargs
):
3950 """__init__() -> TreeItemId"""
3951 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3952 self
.this
= newobj
.this
3955 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3958 if self
.thisown
: destroy(self
)
3961 def IsOk(*args
, **kwargs
):
3962 """IsOk() -> bool"""
3963 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3965 def __eq__(*args
, **kwargs
):
3966 """__eq__(TreeItemId other) -> bool"""
3967 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3969 def __ne__(*args
, **kwargs
):
3970 """__ne__(TreeItemId other) -> bool"""
3971 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3973 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3975 def __nonzero__(self
): return self
.IsOk()
3977 class TreeItemIdPtr(TreeItemId
):
3978 def __init__(self
, this
):
3980 if not hasattr(self
,"thisown"): self
.thisown
= 0
3981 self
.__class
__ = TreeItemId
3982 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3983 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
3985 class TreeItemData(object):
3987 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3988 def __init__(self
, *args
, **kwargs
):
3989 """__init__(PyObject obj=None) -> TreeItemData"""
3990 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3991 self
.this
= newobj
.this
3994 def GetData(*args
, **kwargs
):
3995 """GetData() -> PyObject"""
3996 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3998 def SetData(*args
, **kwargs
):
3999 """SetData(PyObject obj)"""
4000 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
4002 def GetId(*args
, **kwargs
):
4003 """GetId() -> TreeItemId"""
4004 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
4006 def SetId(*args
, **kwargs
):
4007 """SetId(TreeItemId id)"""
4008 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
4010 def Destroy(*args
, **kwargs
):
4012 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
4015 class TreeItemDataPtr(TreeItemData
):
4016 def __init__(self
, this
):
4018 if not hasattr(self
,"thisown"): self
.thisown
= 0
4019 self
.__class
__ = TreeItemData
4020 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
4022 #---------------------------------------------------------------------------
4024 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4025 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4026 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4027 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4028 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
4029 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
4030 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
4031 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4032 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4033 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4034 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4035 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
4036 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
4037 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
4038 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4039 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4040 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4041 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
4042 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4043 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4044 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4045 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4046 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4047 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4048 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4049 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4050 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4051 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4052 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4053 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4054 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4055 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4056 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4057 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4058 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4059 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4060 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4061 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4062 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4063 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4065 class TreeEvent(core
.NotifyEvent
):
4067 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4068 def __init__(self
, *args
, **kwargs
):
4069 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4070 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
4071 self
.this
= newobj
.this
4074 def GetItem(*args
, **kwargs
):
4075 """GetItem() -> TreeItemId"""
4076 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
4078 def SetItem(*args
, **kwargs
):
4079 """SetItem(TreeItemId item)"""
4080 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
4082 def GetOldItem(*args
, **kwargs
):
4083 """GetOldItem() -> TreeItemId"""
4084 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
4086 def SetOldItem(*args
, **kwargs
):
4087 """SetOldItem(TreeItemId item)"""
4088 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
4090 def GetPoint(*args
, **kwargs
):
4091 """GetPoint() -> Point"""
4092 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
4094 def SetPoint(*args
, **kwargs
):
4095 """SetPoint(Point pt)"""
4096 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
4098 def GetKeyEvent(*args
, **kwargs
):
4099 """GetKeyEvent() -> KeyEvent"""
4100 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4102 def GetKeyCode(*args
, **kwargs
):
4103 """GetKeyCode() -> int"""
4104 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4106 def SetKeyEvent(*args
, **kwargs
):
4107 """SetKeyEvent(KeyEvent evt)"""
4108 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4110 def GetLabel(*args
, **kwargs
):
4111 """GetLabel() -> String"""
4112 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
4114 def SetLabel(*args
, **kwargs
):
4115 """SetLabel(String label)"""
4116 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
4118 def IsEditCancelled(*args
, **kwargs
):
4119 """IsEditCancelled() -> bool"""
4120 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4122 def SetEditCanceled(*args
, **kwargs
):
4123 """SetEditCanceled(bool editCancelled)"""
4124 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4126 def SetToolTip(*args
, **kwargs
):
4127 """SetToolTip(String toolTip)"""
4128 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
4131 class TreeEventPtr(TreeEvent
):
4132 def __init__(self
, this
):
4134 if not hasattr(self
,"thisown"): self
.thisown
= 0
4135 self
.__class
__ = TreeEvent
4136 _controls
.TreeEvent_swigregister(TreeEventPtr
)
4138 #---------------------------------------------------------------------------
4140 class TreeCtrl(core
.Control
):
4142 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4143 def __init__(self
, *args
, **kwargs
):
4145 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
4146 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4147 Validator validator=DefaultValidator,
4148 String name=TreeCtrlNameStr) -> TreeCtrl
4150 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
4151 self
.this
= newobj
.this
4154 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4156 def Create(*args
, **kwargs
):
4158 Create(Window parent, int id=-1, Point pos=DefaultPosition,
4159 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4160 Validator validator=DefaultValidator,
4161 String name=TreeCtrlNameStr) -> bool
4163 Do the 2nd phase and create the GUI control.
4165 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
4167 def _setCallbackInfo(*args
, **kwargs
):
4168 """_setCallbackInfo(PyObject self, PyObject _class)"""
4169 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4171 def GetCount(*args
, **kwargs
):
4172 """GetCount() -> size_t"""
4173 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
4175 def GetIndent(*args
, **kwargs
):
4176 """GetIndent() -> unsigned int"""
4177 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
4179 def SetIndent(*args
, **kwargs
):
4180 """SetIndent(unsigned int indent)"""
4181 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
4183 def GetSpacing(*args
, **kwargs
):
4184 """GetSpacing() -> unsigned int"""
4185 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4187 def SetSpacing(*args
, **kwargs
):
4188 """SetSpacing(unsigned int spacing)"""
4189 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4191 def GetImageList(*args
, **kwargs
):
4192 """GetImageList() -> ImageList"""
4193 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
4195 def GetStateImageList(*args
, **kwargs
):
4196 """GetStateImageList() -> ImageList"""
4197 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4199 def SetImageList(*args
, **kwargs
):
4200 """SetImageList(ImageList imageList)"""
4201 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
4203 def SetStateImageList(*args
, **kwargs
):
4204 """SetStateImageList(ImageList imageList)"""
4205 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4207 def AssignImageList(*args
, **kwargs
):
4208 """AssignImageList(ImageList imageList)"""
4209 return _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4211 def AssignStateImageList(*args
, **kwargs
):
4212 """AssignStateImageList(ImageList imageList)"""
4213 return _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4215 def GetItemText(*args
, **kwargs
):
4216 """GetItemText(TreeItemId item) -> String"""
4217 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
4219 def GetItemImage(*args
, **kwargs
):
4220 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4221 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4223 def GetItemData(*args
, **kwargs
):
4224 """GetItemData(TreeItemId item) -> TreeItemData"""
4225 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
4227 def GetItemPyData(*args
, **kwargs
):
4228 """GetItemPyData(TreeItemId item) -> PyObject"""
4229 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4231 GetPyData
= GetItemPyData
4232 def GetItemTextColour(*args
, **kwargs
):
4233 """GetItemTextColour(TreeItemId item) -> Colour"""
4234 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4236 def GetItemBackgroundColour(*args
, **kwargs
):
4237 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
4238 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4240 def GetItemFont(*args
, **kwargs
):
4241 """GetItemFont(TreeItemId item) -> Font"""
4242 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4244 def SetItemText(*args
, **kwargs
):
4245 """SetItemText(TreeItemId item, String text)"""
4246 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
4248 def SetItemImage(*args
, **kwargs
):
4249 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4250 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4252 def SetItemData(*args
, **kwargs
):
4253 """SetItemData(TreeItemId item, TreeItemData data)"""
4254 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
4256 def SetItemPyData(*args
, **kwargs
):
4257 """SetItemPyData(TreeItemId item, PyObject obj)"""
4258 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4260 SetPyData
= SetItemPyData
4261 def SetItemHasChildren(*args
, **kwargs
):
4262 """SetItemHasChildren(TreeItemId item, bool has=True)"""
4263 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4265 def SetItemBold(*args
, **kwargs
):
4266 """SetItemBold(TreeItemId item, bool bold=True)"""
4267 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4269 def SetItemTextColour(*args
, **kwargs
):
4270 """SetItemTextColour(TreeItemId item, Colour col)"""
4271 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4273 def SetItemBackgroundColour(*args
, **kwargs
):
4274 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
4275 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4277 def SetItemFont(*args
, **kwargs
):
4278 """SetItemFont(TreeItemId item, Font font)"""
4279 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4281 def IsVisible(*args
, **kwargs
):
4282 """IsVisible(TreeItemId item) -> bool"""
4283 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4285 def ItemHasChildren(*args
, **kwargs
):
4286 """ItemHasChildren(TreeItemId item) -> bool"""
4287 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4289 def IsExpanded(*args
, **kwargs
):
4290 """IsExpanded(TreeItemId item) -> bool"""
4291 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4293 def IsSelected(*args
, **kwargs
):
4294 """IsSelected(TreeItemId item) -> bool"""
4295 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4297 def IsBold(*args
, **kwargs
):
4298 """IsBold(TreeItemId item) -> bool"""
4299 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4301 def GetChildrenCount(*args
, **kwargs
):
4302 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4303 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4305 def GetRootItem(*args
, **kwargs
):
4306 """GetRootItem() -> TreeItemId"""
4307 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4309 def GetSelection(*args
, **kwargs
):
4310 """GetSelection() -> TreeItemId"""
4311 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4313 def GetSelections(*args
, **kwargs
):
4314 """GetSelections() -> PyObject"""
4315 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4317 def GetItemParent(*args
, **kwargs
):
4318 """GetItemParent(TreeItemId item) -> TreeItemId"""
4319 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4321 def GetFirstChild(*args
, **kwargs
):
4322 """GetFirstChild(TreeItemId item) -> PyObject"""
4323 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4325 def GetNextChild(*args
, **kwargs
):
4326 """GetNextChild(TreeItemId item, void cookie) -> PyObject"""
4327 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4329 def GetLastChild(*args
, **kwargs
):
4330 """GetLastChild(TreeItemId item) -> TreeItemId"""
4331 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4333 def GetNextSibling(*args
, **kwargs
):
4334 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4335 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4337 def GetPrevSibling(*args
, **kwargs
):
4338 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4339 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4341 def GetFirstVisibleItem(*args
, **kwargs
):
4342 """GetFirstVisibleItem() -> TreeItemId"""
4343 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4345 def GetNextVisible(*args
, **kwargs
):
4346 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4347 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4349 def GetPrevVisible(*args
, **kwargs
):
4350 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4351 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4353 def AddRoot(*args
, **kwargs
):
4354 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4355 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4357 def PrependItem(*args
, **kwargs
):
4359 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4360 TreeItemData data=None) -> TreeItemId
4362 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4364 def InsertItem(*args
, **kwargs
):
4366 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4367 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4369 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4371 def InsertItemBefore(*args
, **kwargs
):
4373 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4374 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4376 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4378 def AppendItem(*args
, **kwargs
):
4380 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4381 TreeItemData data=None) -> TreeItemId
4383 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4385 def Delete(*args
, **kwargs
):
4386 """Delete(TreeItemId item)"""
4387 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4389 def DeleteChildren(*args
, **kwargs
):
4390 """DeleteChildren(TreeItemId item)"""
4391 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4393 def DeleteAllItems(*args
, **kwargs
):
4394 """DeleteAllItems()"""
4395 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4397 def Expand(*args
, **kwargs
):
4398 """Expand(TreeItemId item)"""
4399 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4401 def Collapse(*args
, **kwargs
):
4402 """Collapse(TreeItemId item)"""
4403 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4405 def CollapseAndReset(*args
, **kwargs
):
4406 """CollapseAndReset(TreeItemId item)"""
4407 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4409 def Toggle(*args
, **kwargs
):
4410 """Toggle(TreeItemId item)"""
4411 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4413 def Unselect(*args
, **kwargs
):
4415 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4417 def UnselectItem(*args
, **kwargs
):
4418 """UnselectItem(TreeItemId item)"""
4419 return _controls
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4421 def UnselectAll(*args
, **kwargs
):
4423 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4425 def SelectItem(*args
, **kwargs
):
4426 """SelectItem(TreeItemId item, bool select=True)"""
4427 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4429 def ToggleItemSelection(*args
, **kwargs
):
4430 """ToggleItemSelection(TreeItemId item)"""
4431 return _controls
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4433 def EnsureVisible(*args
, **kwargs
):
4434 """EnsureVisible(TreeItemId item)"""
4435 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4437 def ScrollTo(*args
, **kwargs
):
4438 """ScrollTo(TreeItemId item)"""
4439 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4441 def EditLabel(*args
, **kwargs
):
4442 """EditLabel(TreeItemId item)"""
4443 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4445 def GetEditControl(*args
, **kwargs
):
4446 """GetEditControl() -> TextCtrl"""
4447 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4449 def SortChildren(*args
, **kwargs
):
4450 """SortChildren(TreeItemId item)"""
4451 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4453 def HitTest(*args
, **kwargs
):
4455 HitTest(Point point) -> (item, where)
4457 Determine which item (if any) belongs the given point. The
4458 coordinates specified are relative to the client area of tree ctrl
4459 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4463 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4465 def GetBoundingRect(*args
, **kwargs
):
4466 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4467 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4469 def GetClassDefaultAttributes(*args
, **kwargs
):
4471 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4473 Get the default attributes for this class. This is useful if
4474 you want to use the same font or colour in your own control as
4475 in a standard control -- which is a much better idea than hard
4476 coding specific colours or fonts which might look completely out
4477 of place on the users system, especially if it uses themes.
4479 The variant parameter is only relevant under Mac currently and is
4480 ignore under other platforms. Under Mac, it will change the size of the
4481 returned font. See SetWindowVariant for more about this.
4483 return _controls
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4485 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4487 class TreeCtrlPtr(TreeCtrl
):
4488 def __init__(self
, this
):
4490 if not hasattr(self
,"thisown"): self
.thisown
= 0
4491 self
.__class
__ = TreeCtrl
4492 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4494 def PreTreeCtrl(*args
, **kwargs
):
4495 """PreTreeCtrl() -> TreeCtrl"""
4496 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4500 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4502 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4504 Get the default attributes for this class. This is useful if
4505 you want to use the same font or colour in your own control as
4506 in a standard control -- which is a much better idea than hard
4507 coding specific colours or fonts which might look completely out
4508 of place on the users system, especially if it uses themes.
4510 The variant parameter is only relevant under Mac currently and is
4511 ignore under other platforms. Under Mac, it will change the size of the
4512 returned font. See SetWindowVariant for more about this.
4514 return _controls
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4516 #---------------------------------------------------------------------------
4518 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4519 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4520 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4521 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4522 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4523 class GenericDirCtrl(core
.Control
):
4525 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4526 def __init__(self
, *args
, **kwargs
):
4528 __init__(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4529 Point pos=DefaultPosition, Size size=DefaultSize,
4530 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4531 String filter=EmptyString,
4532 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4534 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4535 self
.this
= newobj
.this
4538 self
._setOORInfo
(self
)
4540 def Create(*args
, **kwargs
):
4542 Create(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4543 Point pos=DefaultPosition, Size size=DefaultSize,
4544 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4545 String filter=EmptyString,
4546 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4548 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4550 def ExpandPath(*args
, **kwargs
):
4551 """ExpandPath(String path) -> bool"""
4552 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4554 def GetDefaultPath(*args
, **kwargs
):
4555 """GetDefaultPath() -> String"""
4556 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4558 def SetDefaultPath(*args
, **kwargs
):
4559 """SetDefaultPath(String path)"""
4560 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4562 def GetPath(*args
, **kwargs
):
4563 """GetPath() -> String"""
4564 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4566 def GetFilePath(*args
, **kwargs
):
4567 """GetFilePath() -> String"""
4568 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4570 def SetPath(*args
, **kwargs
):
4571 """SetPath(String path)"""
4572 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4574 def ShowHidden(*args
, **kwargs
):
4575 """ShowHidden(bool show)"""
4576 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4578 def GetShowHidden(*args
, **kwargs
):
4579 """GetShowHidden() -> bool"""
4580 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4582 def GetFilter(*args
, **kwargs
):
4583 """GetFilter() -> String"""
4584 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4586 def SetFilter(*args
, **kwargs
):
4587 """SetFilter(String filter)"""
4588 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4590 def GetFilterIndex(*args
, **kwargs
):
4591 """GetFilterIndex() -> int"""
4592 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4594 def SetFilterIndex(*args
, **kwargs
):
4595 """SetFilterIndex(int n)"""
4596 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4598 def GetRootId(*args
, **kwargs
):
4599 """GetRootId() -> TreeItemId"""
4600 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4602 def GetTreeCtrl(*args
, **kwargs
):
4603 """GetTreeCtrl() -> TreeCtrl"""
4604 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4606 def GetFilterListCtrl(*args
, **kwargs
):
4607 """GetFilterListCtrl() -> DirFilterListCtrl"""
4608 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4610 def FindChild(*args
, **kwargs
):
4612 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4614 Find the child that matches the first part of 'path'. E.g. if a child path is
4615 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4616 If the path string has been used (we're at the leaf), done is set to True
4619 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4621 def DoResize(*args
, **kwargs
):
4623 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4625 def ReCreateTree(*args
, **kwargs
):
4626 """ReCreateTree()"""
4627 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4630 class GenericDirCtrlPtr(GenericDirCtrl
):
4631 def __init__(self
, this
):
4633 if not hasattr(self
,"thisown"): self
.thisown
= 0
4634 self
.__class
__ = GenericDirCtrl
4635 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4636 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4638 def PreGenericDirCtrl(*args
, **kwargs
):
4639 """PreGenericDirCtrl() -> GenericDirCtrl"""
4640 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4644 class DirFilterListCtrl(Choice
):
4646 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4647 def __init__(self
, *args
, **kwargs
):
4649 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4650 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4652 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4653 self
.this
= newobj
.this
4656 self
._setOORInfo
(self
)
4658 def Create(*args
, **kwargs
):
4660 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4661 Size size=DefaultSize, long style=0) -> bool
4663 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4665 def FillFilterList(*args
, **kwargs
):
4666 """FillFilterList(String filter, int defaultFilter)"""
4667 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4670 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4671 def __init__(self
, this
):
4673 if not hasattr(self
,"thisown"): self
.thisown
= 0
4674 self
.__class
__ = DirFilterListCtrl
4675 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4677 def PreDirFilterListCtrl(*args
, **kwargs
):
4678 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4679 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4683 #---------------------------------------------------------------------------
4685 class PyControl(core
.Control
):
4687 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4688 def __init__(self
, *args
, **kwargs
):
4690 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4691 long style=0, Validator validator=DefaultValidator,
4692 String name=ControlNameStr) -> PyControl
4694 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4695 self
.this
= newobj
.this
4698 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4700 def _setCallbackInfo(*args
, **kwargs
):
4701 """_setCallbackInfo(PyObject self, PyObject _class)"""
4702 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4704 def base_DoMoveWindow(*args
, **kwargs
):
4705 """base_DoMoveWindow(int x, int y, int width, int height)"""
4706 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4708 def base_DoSetSize(*args
, **kwargs
):
4709 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4710 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4712 def base_DoSetClientSize(*args
, **kwargs
):
4713 """base_DoSetClientSize(int width, int height)"""
4714 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4716 def base_DoSetVirtualSize(*args
, **kwargs
):
4717 """base_DoSetVirtualSize(int x, int y)"""
4718 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4720 def base_DoGetSize(*args
, **kwargs
):
4721 """base_DoGetSize() -> (width, height)"""
4722 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4724 def base_DoGetClientSize(*args
, **kwargs
):
4725 """base_DoGetClientSize() -> (width, height)"""
4726 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4728 def base_DoGetPosition(*args
, **kwargs
):
4729 """base_DoGetPosition() -> (x,y)"""
4730 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4732 def base_DoGetVirtualSize(*args
, **kwargs
):
4733 """base_DoGetVirtualSize() -> Size"""
4734 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4736 def base_DoGetBestSize(*args
, **kwargs
):
4737 """base_DoGetBestSize() -> Size"""
4738 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4740 def base_InitDialog(*args
, **kwargs
):
4741 """base_InitDialog()"""
4742 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4744 def base_TransferDataToWindow(*args
, **kwargs
):
4745 """base_TransferDataToWindow() -> bool"""
4746 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4748 def base_TransferDataFromWindow(*args
, **kwargs
):
4749 """base_TransferDataFromWindow() -> bool"""
4750 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4752 def base_Validate(*args
, **kwargs
):
4753 """base_Validate() -> bool"""
4754 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4756 def base_AcceptsFocus(*args
, **kwargs
):
4757 """base_AcceptsFocus() -> bool"""
4758 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4760 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4761 """base_AcceptsFocusFromKeyboard() -> bool"""
4762 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4764 def base_GetMaxSize(*args
, **kwargs
):
4765 """base_GetMaxSize() -> Size"""
4766 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4768 def base_AddChild(*args
, **kwargs
):
4769 """base_AddChild(Window child)"""
4770 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4772 def base_RemoveChild(*args
, **kwargs
):
4773 """base_RemoveChild(Window child)"""
4774 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4776 def base_ShouldInheritColours(*args
, **kwargs
):
4777 """base_ShouldInheritColours() -> bool"""
4778 return _controls
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
4780 def base_ApplyParentThemeBackground(*args
, **kwargs
):
4781 """base_ApplyParentThemeBackground(Colour c)"""
4782 return _controls
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
4785 class PyControlPtr(PyControl
):
4786 def __init__(self
, this
):
4788 if not hasattr(self
,"thisown"): self
.thisown
= 0
4789 self
.__class
__ = PyControl
4790 _controls
.PyControl_swigregister(PyControlPtr
)
4792 def PrePyControl(*args
, **kwargs
):
4793 """PrePyControl() -> PyControl"""
4794 val
= _controls
.new_PrePyControl(*args
, **kwargs
)
4798 #---------------------------------------------------------------------------
4800 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4801 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4802 wxEVT_HELP
= _controls
.wxEVT_HELP
4803 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4804 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4805 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4806 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4807 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4809 class HelpEvent(core
.CommandEvent
):
4811 A help event is sent when the user has requested
4812 context-sensitive help. This can either be caused by the
4813 application requesting context-sensitive help mode via
4814 wx.ContextHelp, or (on MS Windows) by the system generating a
4815 WM_HELP message when the user pressed F1 or clicked on the query
4816 button in a dialog caption.
4818 A help event is sent to the window that the user clicked on, and
4819 is propagated up the window hierarchy until the event is
4820 processed or there are no more event handlers. The application
4821 should call event.GetId to check the identity of the clicked-on
4822 window, and then either show some suitable help or call
4823 event.Skip if the identifier is unrecognised. Calling Skip is
4824 important because it allows wxWindows to generate further events
4825 for ancestors of the clicked-on window. Otherwise it would be
4826 impossible to show help for container windows, since processing
4827 would stop after the first window found.
4830 EVT_HELP Sent when the user has requested context-
4832 EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs
4836 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4837 def __init__(self
, *args
, **kwargs
):
4838 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4839 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4840 self
.this
= newobj
.this
4843 def GetPosition(*args
, **kwargs
):
4845 GetPosition() -> Point
4847 Returns the left-click position of the mouse, in screen
4848 coordinates. This allows the application to position the help
4851 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4853 def SetPosition(*args
, **kwargs
):
4855 SetPosition(Point pos)
4857 Sets the left-click position of the mouse, in screen coordinates.
4859 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4861 def GetLink(*args
, **kwargs
):
4865 Get an optional link to further help
4867 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4869 def SetLink(*args
, **kwargs
):
4871 SetLink(String link)
4873 Set an optional link to further help
4875 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4877 def GetTarget(*args
, **kwargs
):
4879 GetTarget() -> String
4881 Get an optional target to display help in. E.g. a window specification
4883 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4885 def SetTarget(*args
, **kwargs
):
4887 SetTarget(String target)
4889 Set an optional target to display help in. E.g. a window specification
4891 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4894 class HelpEventPtr(HelpEvent
):
4895 def __init__(self
, this
):
4897 if not hasattr(self
,"thisown"): self
.thisown
= 0
4898 self
.__class
__ = HelpEvent
4899 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4901 class ContextHelp(core
.Object
):
4903 This class changes the cursor to a query and puts the application
4904 into a 'context-sensitive help mode'. When the user left-clicks
4905 on a window within the specified window, a EVT_HELP event is sent
4906 to that control, and the application may respond to it by popping
4909 There are a couple of ways to invoke this behaviour implicitly:
4911 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a
4912 dialog (Windows only). This will put a question mark in the
4913 titlebar, and Windows will put the application into
4914 context-sensitive help mode automatically, with further
4917 * Create a wx.ContextHelpButton, whose predefined behaviour
4918 is to create a context help object. Normally you will write
4919 your application so that this button is only added to a
4920 dialog for non-Windows platforms (use
4921 wx.DIALOG_EX_CONTEXTHELP on Windows).
4925 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4926 def __init__(self
, *args
, **kwargs
):
4928 __init__(Window window=None, bool doNow=True) -> ContextHelp
4930 Constructs a context help object, calling BeginContextHelp if
4931 doNow is true (the default).
4933 If window is None, the top window is used.
4935 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4936 self
.this
= newobj
.this
4939 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4942 if self
.thisown
: destroy(self
)
4945 def BeginContextHelp(*args
, **kwargs
):
4947 BeginContextHelp(Window window=None) -> bool
4949 Puts the application into context-sensitive help mode. window is
4950 the window which will be used to catch events; if NULL, the top
4951 window will be used.
4953 Returns true if the application was successfully put into
4954 context-sensitive help mode. This function only returns when the
4955 event loop has finished.
4957 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4959 def EndContextHelp(*args
, **kwargs
):
4961 EndContextHelp() -> bool
4963 Ends context-sensitive help mode. Not normally called by the
4966 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4969 class ContextHelpPtr(ContextHelp
):
4970 def __init__(self
, this
):
4972 if not hasattr(self
,"thisown"): self
.thisown
= 0
4973 self
.__class
__ = ContextHelp
4974 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4976 class ContextHelpButton(BitmapButton
):
4978 Instances of this class may be used to add a question mark button
4979 that when pressed, puts the application into context-help
4980 mode. It does this by creating a wx.ContextHelp object which
4981 itself generates a EVT_HELP event when the user clicks on a
4984 On Windows, you may add a question-mark icon to a dialog by use
4985 of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other
4986 platforms you will have to add a button explicitly, usually next
4987 to OK, Cancel or similar buttons.
4991 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4992 def __init__(self
, *args
, **kwargs
):
4994 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4995 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4997 Constructor, creating and showing a context help button.
4999 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
5000 self
.this
= newobj
.this
5003 self
._setOORInfo
(self
)
5006 class ContextHelpButtonPtr(ContextHelpButton
):
5007 def __init__(self
, this
):
5009 if not hasattr(self
,"thisown"): self
.thisown
= 0
5010 self
.__class
__ = ContextHelpButton
5011 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5013 class HelpProvider(object):
5015 wx.HelpProvider is an abstract class used by a program
5016 implementing context-sensitive help to show the help text for the
5019 The current help provider must be explicitly set by the
5020 application using wx.HelpProvider.Set().
5022 def __init__(self
): raise RuntimeError, "No constructor defined"
5024 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5025 def Set(*args
, **kwargs
):
5027 Set(HelpProvider helpProvider) -> HelpProvider
5029 Sset the current, application-wide help provider. Returns the
5030 previous one. Unlike some other classes, the help provider is
5031 not created on demand. This must be explicitly done by the
5034 return _controls
.HelpProvider_Set(*args
, **kwargs
)
5036 Set
= staticmethod(Set
)
5037 def Get(*args
, **kwargs
):
5039 Get() -> HelpProvider
5041 Return the current application-wide help provider.
5043 return _controls
.HelpProvider_Get(*args
, **kwargs
)
5045 Get
= staticmethod(Get
)
5046 def GetHelp(*args
, **kwargs
):
5048 GetHelp(Window window) -> String
5050 Gets the help string for this window. Its interpretation is
5051 dependent on the help provider except that empty string always
5052 means that no help is associated with the window.
5054 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
5056 def ShowHelp(*args
, **kwargs
):
5058 ShowHelp(Window window) -> bool
5060 Shows help for the given window. Uses GetHelp internally if
5063 Returns true if it was done, or false if no help was available
5066 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
5068 def AddHelp(*args
, **kwargs
):
5070 AddHelp(Window window, String text)
5072 Associates the text with the given window.
5074 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
5076 def AddHelpById(*args
, **kwargs
):
5078 AddHelpById(int id, String text)
5080 This version associates the given text with all windows with this
5081 id. May be used to set the same help string for all Cancel
5082 buttons in the application, for example.
5084 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
5086 def RemoveHelp(*args
, **kwargs
):
5088 RemoveHelp(Window window)
5090 Removes the association between the window pointer and the help
5091 text. This is called by the wx.Window destructor. Without this,
5092 the table of help strings will fill up and when window pointers
5093 are reused, the wrong help string will be found.
5095 return _controls
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5097 def Destroy(*args
, **kwargs
):
5099 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
5102 class HelpProviderPtr(HelpProvider
):
5103 def __init__(self
, this
):
5105 if not hasattr(self
,"thisown"): self
.thisown
= 0
5106 self
.__class
__ = HelpProvider
5107 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
5109 def HelpProvider_Set(*args
, **kwargs
):
5111 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5113 Sset the current, application-wide help provider. Returns the
5114 previous one. Unlike some other classes, the help provider is
5115 not created on demand. This must be explicitly done by the
5118 return _controls
.HelpProvider_Set(*args
, **kwargs
)
5120 def HelpProvider_Get(*args
, **kwargs
):
5122 HelpProvider_Get() -> HelpProvider
5124 Return the current application-wide help provider.
5126 return _controls
.HelpProvider_Get(*args
, **kwargs
)
5128 class SimpleHelpProvider(HelpProvider
):
5130 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5131 which supports only plain text help strings, and shows the string
5132 associated with the control (if any) in a tooltip.
5135 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5136 def __init__(self
, *args
, **kwargs
):
5138 __init__() -> SimpleHelpProvider
5140 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5141 which supports only plain text help strings, and shows the string
5142 associated with the control (if any) in a tooltip.
5144 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
5145 self
.this
= newobj
.this
5149 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5150 def __init__(self
, this
):
5152 if not hasattr(self
,"thisown"): self
.thisown
= 0
5153 self
.__class
__ = SimpleHelpProvider
5154 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5156 #---------------------------------------------------------------------------
5158 class DragImage(core
.Object
):
5160 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5161 def __init__(self
, *args
, **kwargs
):
5162 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5163 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
5164 self
.this
= newobj
.this
5167 def __del__(self
, destroy
=_controls
.delete_DragImage
):
5170 if self
.thisown
: destroy(self
)
5173 def SetBackingBitmap(*args
, **kwargs
):
5174 """SetBackingBitmap(Bitmap bitmap)"""
5175 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5177 def BeginDrag(*args
, **kwargs
):
5179 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
5180 Rect rect=None) -> bool
5182 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
5184 def BeginDragBounded(*args
, **kwargs
):
5185 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
5186 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
5188 def EndDrag(*args
, **kwargs
):
5189 """EndDrag() -> bool"""
5190 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
5192 def Move(*args
, **kwargs
):
5193 """Move(Point pt) -> bool"""
5194 return _controls
.DragImage_Move(*args
, **kwargs
)
5196 def Show(*args
, **kwargs
):
5197 """Show() -> bool"""
5198 return _controls
.DragImage_Show(*args
, **kwargs
)
5200 def Hide(*args
, **kwargs
):
5201 """Hide() -> bool"""
5202 return _controls
.DragImage_Hide(*args
, **kwargs
)
5204 def GetImageRect(*args
, **kwargs
):
5205 """GetImageRect(Point pos) -> Rect"""
5206 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
5208 def DoDrawImage(*args
, **kwargs
):
5209 """DoDrawImage(DC dc, Point pos) -> bool"""
5210 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
5212 def UpdateBackingFromWindow(*args
, **kwargs
):
5213 """UpdateBackingFromWindow(DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
5214 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
5216 def RedrawImage(*args
, **kwargs
):
5217 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
5218 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
5221 class DragImagePtr(DragImage
):
5222 def __init__(self
, this
):
5224 if not hasattr(self
,"thisown"): self
.thisown
= 0
5225 self
.__class
__ = DragImage
5226 _controls
.DragImage_swigregister(DragImagePtr
)
5228 def DragIcon(*args
, **kwargs
):
5229 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
5230 val
= _controls
.new_DragIcon(*args
, **kwargs
)
5234 def DragString(*args
, **kwargs
):
5235 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
5236 val
= _controls
.new_DragString(*args
, **kwargs
)
5240 def DragTreeItem(*args
, **kwargs
):
5241 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
5242 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
5246 def DragListItem(*args
, **kwargs
):
5247 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
5248 val
= _controls
.new_DragListItem(*args
, **kwargs
)