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 Choice 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 def Create(*args
, **kwargs
):
805 Create(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
806 Size size=DefaultSize, long style=0,
807 String name=StaticBitmapNameStr) -> bool
809 return _controls
.StaticBitmap_Create(*args
, **kwargs
)
811 def GetBitmap(*args
, **kwargs
):
812 """GetBitmap() -> Bitmap"""
813 return _controls
.StaticBitmap_GetBitmap(*args
, **kwargs
)
815 def SetBitmap(*args
, **kwargs
):
816 """SetBitmap(Bitmap bitmap)"""
817 return _controls
.StaticBitmap_SetBitmap(*args
, **kwargs
)
819 def SetIcon(*args
, **kwargs
):
820 """SetIcon(Icon icon)"""
821 return _controls
.StaticBitmap_SetIcon(*args
, **kwargs
)
824 class StaticBitmapPtr(StaticBitmap
):
825 def __init__(self
, this
):
827 if not hasattr(self
,"thisown"): self
.thisown
= 0
828 self
.__class
__ = StaticBitmap
829 _controls
.StaticBitmap_swigregister(StaticBitmapPtr
)
831 def PreStaticBitmap(*args
, **kwargs
):
832 """PreStaticBitmap() -> StaticBitmap"""
833 val
= _controls
.new_PreStaticBitmap(*args
, **kwargs
)
837 #---------------------------------------------------------------------------
839 class ListBox(core
.ControlWithItems
):
841 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
842 def __init__(self
, *args
, **kwargs
):
844 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
845 wxArrayString choices=wxPyEmptyStringArray,
846 long style=0, Validator validator=DefaultValidator,
847 String name=ListBoxNameStr) -> ListBox
849 newobj
= _controls
.new_ListBox(*args
, **kwargs
)
850 self
.this
= newobj
.this
853 self
._setOORInfo
(self
)
855 def Create(*args
, **kwargs
):
857 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
858 wxArrayString choices=wxPyEmptyStringArray,
859 long style=0, Validator validator=DefaultValidator,
860 String name=ListBoxNameStr) -> bool
862 return _controls
.ListBox_Create(*args
, **kwargs
)
864 def Insert(*args
, **kwargs
):
865 """Insert(String item, int pos, PyObject clientData=None)"""
866 return _controls
.ListBox_Insert(*args
, **kwargs
)
868 def InsertItems(*args
, **kwargs
):
869 """InsertItems(wxArrayString items, int pos)"""
870 return _controls
.ListBox_InsertItems(*args
, **kwargs
)
872 def Set(*args
, **kwargs
):
873 """Set(wxArrayString items)"""
874 return _controls
.ListBox_Set(*args
, **kwargs
)
876 def IsSelected(*args
, **kwargs
):
877 """IsSelected(int n) -> bool"""
878 return _controls
.ListBox_IsSelected(*args
, **kwargs
)
880 def SetSelection(*args
, **kwargs
):
881 """SetSelection(int n, bool select=True)"""
882 return _controls
.ListBox_SetSelection(*args
, **kwargs
)
884 def Select(*args
, **kwargs
):
886 return _controls
.ListBox_Select(*args
, **kwargs
)
888 def Deselect(*args
, **kwargs
):
889 """Deselect(int n)"""
890 return _controls
.ListBox_Deselect(*args
, **kwargs
)
892 def DeselectAll(*args
, **kwargs
):
893 """DeselectAll(int itemToLeaveSelected=-1)"""
894 return _controls
.ListBox_DeselectAll(*args
, **kwargs
)
896 def SetStringSelection(*args
, **kwargs
):
897 """SetStringSelection(String s, bool select=True) -> bool"""
898 return _controls
.ListBox_SetStringSelection(*args
, **kwargs
)
900 def GetSelections(*args
, **kwargs
):
901 """GetSelections() -> PyObject"""
902 return _controls
.ListBox_GetSelections(*args
, **kwargs
)
904 def SetFirstItem(*args
, **kwargs
):
905 """SetFirstItem(int n)"""
906 return _controls
.ListBox_SetFirstItem(*args
, **kwargs
)
908 def SetFirstItemStr(*args
, **kwargs
):
909 """SetFirstItemStr(String s)"""
910 return _controls
.ListBox_SetFirstItemStr(*args
, **kwargs
)
912 def EnsureVisible(*args
, **kwargs
):
913 """EnsureVisible(int n)"""
914 return _controls
.ListBox_EnsureVisible(*args
, **kwargs
)
916 def AppendAndEnsureVisible(*args
, **kwargs
):
917 """AppendAndEnsureVisible(String s)"""
918 return _controls
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
920 def IsSorted(*args
, **kwargs
):
921 """IsSorted() -> bool"""
922 return _controls
.ListBox_IsSorted(*args
, **kwargs
)
924 def SetItemForegroundColour(*args
, **kwargs
):
925 """SetItemForegroundColour(int item, Colour c)"""
926 return _controls
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
928 def SetItemBackgroundColour(*args
, **kwargs
):
929 """SetItemBackgroundColour(int item, Colour c)"""
930 return _controls
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
932 def SetItemFont(*args
, **kwargs
):
933 """SetItemFont(int item, Font f)"""
934 return _controls
.ListBox_SetItemFont(*args
, **kwargs
)
937 class ListBoxPtr(ListBox
):
938 def __init__(self
, this
):
940 if not hasattr(self
,"thisown"): self
.thisown
= 0
941 self
.__class
__ = ListBox
942 _controls
.ListBox_swigregister(ListBoxPtr
)
943 ListBoxNameStr
= cvar
.ListBoxNameStr
945 def PreListBox(*args
, **kwargs
):
946 """PreListBox() -> ListBox"""
947 val
= _controls
.new_PreListBox(*args
, **kwargs
)
951 #---------------------------------------------------------------------------
953 class CheckListBox(ListBox
):
955 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
956 def __init__(self
, *args
, **kwargs
):
958 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
959 wxArrayString choices=wxPyEmptyStringArray,
960 long style=0, Validator validator=DefaultValidator,
961 String name=ListBoxNameStr) -> CheckListBox
963 newobj
= _controls
.new_CheckListBox(*args
, **kwargs
)
964 self
.this
= newobj
.this
967 self
._setOORInfo
(self
)
969 def Create(*args
, **kwargs
):
971 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
972 wxArrayString choices=wxPyEmptyStringArray,
973 long style=0, Validator validator=DefaultValidator,
974 String name=ListBoxNameStr) -> bool
976 return _controls
.CheckListBox_Create(*args
, **kwargs
)
978 def IsChecked(*args
, **kwargs
):
979 """IsChecked(int index) -> bool"""
980 return _controls
.CheckListBox_IsChecked(*args
, **kwargs
)
982 def Check(*args
, **kwargs
):
983 """Check(int index, int check=True)"""
984 return _controls
.CheckListBox_Check(*args
, **kwargs
)
986 def GetItemHeight(*args
, **kwargs
):
987 """GetItemHeight() -> int"""
988 return _controls
.CheckListBox_GetItemHeight(*args
, **kwargs
)
990 def HitTest(*args
, **kwargs
):
991 """HitTest(Point pt) -> int"""
992 return _controls
.CheckListBox_HitTest(*args
, **kwargs
)
994 def HitTestXY(*args
, **kwargs
):
995 """HitTestXY(int x, int y) -> int"""
996 return _controls
.CheckListBox_HitTestXY(*args
, **kwargs
)
999 class CheckListBoxPtr(CheckListBox
):
1000 def __init__(self
, this
):
1002 if not hasattr(self
,"thisown"): self
.thisown
= 0
1003 self
.__class
__ = CheckListBox
1004 _controls
.CheckListBox_swigregister(CheckListBoxPtr
)
1006 def PreCheckListBox(*args
, **kwargs
):
1007 """PreCheckListBox() -> CheckListBox"""
1008 val
= _controls
.new_PreCheckListBox(*args
, **kwargs
)
1012 #---------------------------------------------------------------------------
1014 TE_NO_VSCROLL
= _controls
.TE_NO_VSCROLL
1015 TE_AUTO_SCROLL
= _controls
.TE_AUTO_SCROLL
1016 TE_READONLY
= _controls
.TE_READONLY
1017 TE_MULTILINE
= _controls
.TE_MULTILINE
1018 TE_PROCESS_TAB
= _controls
.TE_PROCESS_TAB
1019 TE_LEFT
= _controls
.TE_LEFT
1020 TE_CENTER
= _controls
.TE_CENTER
1021 TE_RIGHT
= _controls
.TE_RIGHT
1022 TE_CENTRE
= _controls
.TE_CENTRE
1023 TE_RICH
= _controls
.TE_RICH
1024 TE_PROCESS_ENTER
= _controls
.TE_PROCESS_ENTER
1025 TE_PASSWORD
= _controls
.TE_PASSWORD
1026 TE_AUTO_URL
= _controls
.TE_AUTO_URL
1027 TE_NOHIDESEL
= _controls
.TE_NOHIDESEL
1028 TE_DONTWRAP
= _controls
.TE_DONTWRAP
1029 TE_LINEWRAP
= _controls
.TE_LINEWRAP
1030 TE_WORDWRAP
= _controls
.TE_WORDWRAP
1031 TE_RICH2
= _controls
.TE_RICH2
1032 TEXT_ALIGNMENT_DEFAULT
= _controls
.TEXT_ALIGNMENT_DEFAULT
1033 TEXT_ALIGNMENT_LEFT
= _controls
.TEXT_ALIGNMENT_LEFT
1034 TEXT_ALIGNMENT_CENTRE
= _controls
.TEXT_ALIGNMENT_CENTRE
1035 TEXT_ALIGNMENT_CENTER
= _controls
.TEXT_ALIGNMENT_CENTER
1036 TEXT_ALIGNMENT_RIGHT
= _controls
.TEXT_ALIGNMENT_RIGHT
1037 TEXT_ALIGNMENT_JUSTIFIED
= _controls
.TEXT_ALIGNMENT_JUSTIFIED
1038 TEXT_ATTR_TEXT_COLOUR
= _controls
.TEXT_ATTR_TEXT_COLOUR
1039 TEXT_ATTR_BACKGROUND_COLOUR
= _controls
.TEXT_ATTR_BACKGROUND_COLOUR
1040 TEXT_ATTR_FONT_FACE
= _controls
.TEXT_ATTR_FONT_FACE
1041 TEXT_ATTR_FONT_SIZE
= _controls
.TEXT_ATTR_FONT_SIZE
1042 TEXT_ATTR_FONT_WEIGHT
= _controls
.TEXT_ATTR_FONT_WEIGHT
1043 TEXT_ATTR_FONT_ITALIC
= _controls
.TEXT_ATTR_FONT_ITALIC
1044 TEXT_ATTR_FONT_UNDERLINE
= _controls
.TEXT_ATTR_FONT_UNDERLINE
1045 TEXT_ATTR_FONT
= _controls
.TEXT_ATTR_FONT
1046 TEXT_ATTR_ALIGNMENT
= _controls
.TEXT_ATTR_ALIGNMENT
1047 TEXT_ATTR_LEFT_INDENT
= _controls
.TEXT_ATTR_LEFT_INDENT
1048 TEXT_ATTR_RIGHT_INDENT
= _controls
.TEXT_ATTR_RIGHT_INDENT
1049 TEXT_ATTR_TABS
= _controls
.TEXT_ATTR_TABS
1050 TE_HT_UNKNOWN
= _controls
.TE_HT_UNKNOWN
1051 TE_HT_BEFORE
= _controls
.TE_HT_BEFORE
1052 TE_HT_ON_TEXT
= _controls
.TE_HT_ON_TEXT
1053 TE_HT_BELOW
= _controls
.TE_HT_BELOW
1054 TE_HT_BEYOND
= _controls
.TE_HT_BEYOND
1055 class TextAttr(object):
1057 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1058 def __init__(self
, *args
):
1060 __init__() -> TextAttr
1061 __init__(Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1062 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1064 newobj
= _controls
.new_TextAttr(*args
)
1065 self
.this
= newobj
.this
1068 def __del__(self
, destroy
=_controls
.delete_TextAttr
):
1071 if self
.thisown
: destroy(self
)
1074 def Init(*args
, **kwargs
):
1076 return _controls
.TextAttr_Init(*args
, **kwargs
)
1078 def SetTextColour(*args
, **kwargs
):
1079 """SetTextColour(Colour colText)"""
1080 return _controls
.TextAttr_SetTextColour(*args
, **kwargs
)
1082 def SetBackgroundColour(*args
, **kwargs
):
1083 """SetBackgroundColour(Colour colBack)"""
1084 return _controls
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1086 def SetFont(*args
, **kwargs
):
1087 """SetFont(Font font, long flags=TEXT_ATTR_FONT)"""
1088 return _controls
.TextAttr_SetFont(*args
, **kwargs
)
1090 def SetAlignment(*args
, **kwargs
):
1091 """SetAlignment(int alignment)"""
1092 return _controls
.TextAttr_SetAlignment(*args
, **kwargs
)
1094 def SetTabs(*args
, **kwargs
):
1095 """SetTabs(wxArrayInt tabs)"""
1096 return _controls
.TextAttr_SetTabs(*args
, **kwargs
)
1098 def SetLeftIndent(*args
, **kwargs
):
1099 """SetLeftIndent(int indent)"""
1100 return _controls
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1102 def SetRightIndent(*args
, **kwargs
):
1103 """SetRightIndent(int indent)"""
1104 return _controls
.TextAttr_SetRightIndent(*args
, **kwargs
)
1106 def SetFlags(*args
, **kwargs
):
1107 """SetFlags(long flags)"""
1108 return _controls
.TextAttr_SetFlags(*args
, **kwargs
)
1110 def HasTextColour(*args
, **kwargs
):
1111 """HasTextColour() -> bool"""
1112 return _controls
.TextAttr_HasTextColour(*args
, **kwargs
)
1114 def HasBackgroundColour(*args
, **kwargs
):
1115 """HasBackgroundColour() -> bool"""
1116 return _controls
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1118 def HasFont(*args
, **kwargs
):
1119 """HasFont() -> bool"""
1120 return _controls
.TextAttr_HasFont(*args
, **kwargs
)
1122 def HasAlignment(*args
, **kwargs
):
1123 """HasAlignment() -> bool"""
1124 return _controls
.TextAttr_HasAlignment(*args
, **kwargs
)
1126 def HasTabs(*args
, **kwargs
):
1127 """HasTabs() -> bool"""
1128 return _controls
.TextAttr_HasTabs(*args
, **kwargs
)
1130 def HasLeftIndent(*args
, **kwargs
):
1131 """HasLeftIndent() -> bool"""
1132 return _controls
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1134 def HasRightIndent(*args
, **kwargs
):
1135 """HasRightIndent() -> bool"""
1136 return _controls
.TextAttr_HasRightIndent(*args
, **kwargs
)
1138 def HasFlag(*args
, **kwargs
):
1139 """HasFlag(long flag) -> bool"""
1140 return _controls
.TextAttr_HasFlag(*args
, **kwargs
)
1142 def GetTextColour(*args
, **kwargs
):
1143 """GetTextColour() -> Colour"""
1144 return _controls
.TextAttr_GetTextColour(*args
, **kwargs
)
1146 def GetBackgroundColour(*args
, **kwargs
):
1147 """GetBackgroundColour() -> Colour"""
1148 return _controls
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1150 def GetFont(*args
, **kwargs
):
1151 """GetFont() -> Font"""
1152 return _controls
.TextAttr_GetFont(*args
, **kwargs
)
1154 def GetAlignment(*args
, **kwargs
):
1155 """GetAlignment() -> int"""
1156 return _controls
.TextAttr_GetAlignment(*args
, **kwargs
)
1158 def GetTabs(*args
, **kwargs
):
1159 """GetTabs() -> wxArrayInt"""
1160 return _controls
.TextAttr_GetTabs(*args
, **kwargs
)
1162 def GetLeftIndent(*args
, **kwargs
):
1163 """GetLeftIndent() -> long"""
1164 return _controls
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1166 def GetRightIndent(*args
, **kwargs
):
1167 """GetRightIndent() -> long"""
1168 return _controls
.TextAttr_GetRightIndent(*args
, **kwargs
)
1170 def GetFlags(*args
, **kwargs
):
1171 """GetFlags() -> long"""
1172 return _controls
.TextAttr_GetFlags(*args
, **kwargs
)
1174 def IsDefault(*args
, **kwargs
):
1175 """IsDefault() -> bool"""
1176 return _controls
.TextAttr_IsDefault(*args
, **kwargs
)
1178 def Combine(*args
, **kwargs
):
1179 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1180 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1182 Combine
= staticmethod(Combine
)
1184 class TextAttrPtr(TextAttr
):
1185 def __init__(self
, this
):
1187 if not hasattr(self
,"thisown"): self
.thisown
= 0
1188 self
.__class
__ = TextAttr
1189 _controls
.TextAttr_swigregister(TextAttrPtr
)
1190 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1192 def TextAttr_Combine(*args
, **kwargs
):
1193 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1194 return _controls
.TextAttr_Combine(*args
, **kwargs
)
1196 class TextCtrl(core
.Control
):
1198 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1199 def __init__(self
, *args
, **kwargs
):
1201 __init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1202 Size size=DefaultSize,
1203 long style=0, Validator validator=DefaultValidator,
1204 String name=TextCtrlNameStr) -> TextCtrl
1206 newobj
= _controls
.new_TextCtrl(*args
, **kwargs
)
1207 self
.this
= newobj
.this
1210 self
._setOORInfo
(self
)
1212 def Create(*args
, **kwargs
):
1214 Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1215 Size size=DefaultSize,
1216 long style=0, Validator validator=DefaultValidator,
1217 String name=TextCtrlNameStr) -> bool
1219 return _controls
.TextCtrl_Create(*args
, **kwargs
)
1221 def GetValue(*args
, **kwargs
):
1222 """GetValue() -> String"""
1223 return _controls
.TextCtrl_GetValue(*args
, **kwargs
)
1225 def SetValue(*args
, **kwargs
):
1226 """SetValue(String value)"""
1227 return _controls
.TextCtrl_SetValue(*args
, **kwargs
)
1229 def GetRange(*args
, **kwargs
):
1230 """GetRange(long from, long to) -> String"""
1231 return _controls
.TextCtrl_GetRange(*args
, **kwargs
)
1233 def GetLineLength(*args
, **kwargs
):
1234 """GetLineLength(long lineNo) -> int"""
1235 return _controls
.TextCtrl_GetLineLength(*args
, **kwargs
)
1237 def GetLineText(*args
, **kwargs
):
1238 """GetLineText(long lineNo) -> String"""
1239 return _controls
.TextCtrl_GetLineText(*args
, **kwargs
)
1241 def GetNumberOfLines(*args
, **kwargs
):
1242 """GetNumberOfLines() -> int"""
1243 return _controls
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1245 def IsModified(*args
, **kwargs
):
1246 """IsModified() -> bool"""
1247 return _controls
.TextCtrl_IsModified(*args
, **kwargs
)
1249 def IsEditable(*args
, **kwargs
):
1250 """IsEditable() -> bool"""
1251 return _controls
.TextCtrl_IsEditable(*args
, **kwargs
)
1253 def IsSingleLine(*args
, **kwargs
):
1254 """IsSingleLine() -> bool"""
1255 return _controls
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1257 def IsMultiLine(*args
, **kwargs
):
1258 """IsMultiLine() -> bool"""
1259 return _controls
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1261 def GetSelection(*args
, **kwargs
):
1263 GetSelection() -> (from, to)
1265 If the return values from and to are the same, there is no selection.
1267 return _controls
.TextCtrl_GetSelection(*args
, **kwargs
)
1269 def GetStringSelection(*args
, **kwargs
):
1270 """GetStringSelection() -> String"""
1271 return _controls
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1273 def Clear(*args
, **kwargs
):
1275 return _controls
.TextCtrl_Clear(*args
, **kwargs
)
1277 def Replace(*args
, **kwargs
):
1278 """Replace(long from, long to, String value)"""
1279 return _controls
.TextCtrl_Replace(*args
, **kwargs
)
1281 def Remove(*args
, **kwargs
):
1282 """Remove(long from, long to)"""
1283 return _controls
.TextCtrl_Remove(*args
, **kwargs
)
1285 def LoadFile(*args
, **kwargs
):
1286 """LoadFile(String file) -> bool"""
1287 return _controls
.TextCtrl_LoadFile(*args
, **kwargs
)
1289 def SaveFile(*args
, **kwargs
):
1290 """SaveFile(String file=EmptyString) -> bool"""
1291 return _controls
.TextCtrl_SaveFile(*args
, **kwargs
)
1293 def MarkDirty(*args
, **kwargs
):
1295 return _controls
.TextCtrl_MarkDirty(*args
, **kwargs
)
1297 def DiscardEdits(*args
, **kwargs
):
1298 """DiscardEdits()"""
1299 return _controls
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1301 def SetMaxLength(*args
, **kwargs
):
1302 """SetMaxLength(unsigned long len)"""
1303 return _controls
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1305 def WriteText(*args
, **kwargs
):
1306 """WriteText(String text)"""
1307 return _controls
.TextCtrl_WriteText(*args
, **kwargs
)
1309 def AppendText(*args
, **kwargs
):
1310 """AppendText(String text)"""
1311 return _controls
.TextCtrl_AppendText(*args
, **kwargs
)
1313 def EmulateKeyPress(*args
, **kwargs
):
1314 """EmulateKeyPress(KeyEvent event) -> bool"""
1315 return _controls
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1317 def SetStyle(*args
, **kwargs
):
1318 """SetStyle(long start, long end, TextAttr style) -> bool"""
1319 return _controls
.TextCtrl_SetStyle(*args
, **kwargs
)
1321 def GetStyle(*args
, **kwargs
):
1322 """GetStyle(long position, TextAttr style) -> bool"""
1323 return _controls
.TextCtrl_GetStyle(*args
, **kwargs
)
1325 def SetDefaultStyle(*args
, **kwargs
):
1326 """SetDefaultStyle(TextAttr style) -> bool"""
1327 return _controls
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1329 def GetDefaultStyle(*args
, **kwargs
):
1330 """GetDefaultStyle() -> TextAttr"""
1331 return _controls
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1333 def XYToPosition(*args
, **kwargs
):
1334 """XYToPosition(long x, long y) -> long"""
1335 return _controls
.TextCtrl_XYToPosition(*args
, **kwargs
)
1337 def PositionToXY(*args
, **kwargs
):
1338 """PositionToXY(long pos) -> (x, y)"""
1339 return _controls
.TextCtrl_PositionToXY(*args
, **kwargs
)
1341 def ShowPosition(*args
, **kwargs
):
1342 """ShowPosition(long pos)"""
1343 return _controls
.TextCtrl_ShowPosition(*args
, **kwargs
)
1345 def HitTest(*args
, **kwargs
):
1347 HitTest(Point pt) -> (result, row, col)
1349 Find the character at position given in pixels.
1350 NB: pt is in device coords (not adjusted for the client area
1351 origin nor scrolling)
1353 return _controls
.TextCtrl_HitTest(*args
, **kwargs
)
1355 def Copy(*args
, **kwargs
):
1357 return _controls
.TextCtrl_Copy(*args
, **kwargs
)
1359 def Cut(*args
, **kwargs
):
1361 return _controls
.TextCtrl_Cut(*args
, **kwargs
)
1363 def Paste(*args
, **kwargs
):
1365 return _controls
.TextCtrl_Paste(*args
, **kwargs
)
1367 def CanCopy(*args
, **kwargs
):
1368 """CanCopy() -> bool"""
1369 return _controls
.TextCtrl_CanCopy(*args
, **kwargs
)
1371 def CanCut(*args
, **kwargs
):
1372 """CanCut() -> bool"""
1373 return _controls
.TextCtrl_CanCut(*args
, **kwargs
)
1375 def CanPaste(*args
, **kwargs
):
1376 """CanPaste() -> bool"""
1377 return _controls
.TextCtrl_CanPaste(*args
, **kwargs
)
1379 def Undo(*args
, **kwargs
):
1381 return _controls
.TextCtrl_Undo(*args
, **kwargs
)
1383 def Redo(*args
, **kwargs
):
1385 return _controls
.TextCtrl_Redo(*args
, **kwargs
)
1387 def CanUndo(*args
, **kwargs
):
1388 """CanUndo() -> bool"""
1389 return _controls
.TextCtrl_CanUndo(*args
, **kwargs
)
1391 def CanRedo(*args
, **kwargs
):
1392 """CanRedo() -> bool"""
1393 return _controls
.TextCtrl_CanRedo(*args
, **kwargs
)
1395 def SetInsertionPoint(*args
, **kwargs
):
1396 """SetInsertionPoint(long pos)"""
1397 return _controls
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1399 def SetInsertionPointEnd(*args
, **kwargs
):
1400 """SetInsertionPointEnd()"""
1401 return _controls
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1403 def GetInsertionPoint(*args
, **kwargs
):
1404 """GetInsertionPoint() -> long"""
1405 return _controls
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1407 def GetLastPosition(*args
, **kwargs
):
1408 """GetLastPosition() -> long"""
1409 return _controls
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1411 def SetSelection(*args
, **kwargs
):
1412 """SetSelection(long from, long to)"""
1413 return _controls
.TextCtrl_SetSelection(*args
, **kwargs
)
1415 def SelectAll(*args
, **kwargs
):
1417 return _controls
.TextCtrl_SelectAll(*args
, **kwargs
)
1419 def SetEditable(*args
, **kwargs
):
1420 """SetEditable(bool editable)"""
1421 return _controls
.TextCtrl_SetEditable(*args
, **kwargs
)
1423 def write(*args
, **kwargs
):
1424 """write(String text)"""
1425 return _controls
.TextCtrl_write(*args
, **kwargs
)
1427 def GetString(*args
, **kwargs
):
1428 """GetString(long from, long to) -> String"""
1429 return _controls
.TextCtrl_GetString(*args
, **kwargs
)
1432 class TextCtrlPtr(TextCtrl
):
1433 def __init__(self
, this
):
1435 if not hasattr(self
,"thisown"): self
.thisown
= 0
1436 self
.__class
__ = TextCtrl
1437 _controls
.TextCtrl_swigregister(TextCtrlPtr
)
1439 def PreTextCtrl(*args
, **kwargs
):
1440 """PreTextCtrl() -> TextCtrl"""
1441 val
= _controls
.new_PreTextCtrl(*args
, **kwargs
)
1445 wxEVT_COMMAND_TEXT_UPDATED
= _controls
.wxEVT_COMMAND_TEXT_UPDATED
1446 wxEVT_COMMAND_TEXT_ENTER
= _controls
.wxEVT_COMMAND_TEXT_ENTER
1447 wxEVT_COMMAND_TEXT_URL
= _controls
.wxEVT_COMMAND_TEXT_URL
1448 wxEVT_COMMAND_TEXT_MAXLEN
= _controls
.wxEVT_COMMAND_TEXT_MAXLEN
1449 class TextUrlEvent(core
.CommandEvent
):
1451 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1452 def __init__(self
, *args
, **kwargs
):
1453 """__init__(int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1454 newobj
= _controls
.new_TextUrlEvent(*args
, **kwargs
)
1455 self
.this
= newobj
.this
1458 def GetMouseEvent(*args
, **kwargs
):
1459 """GetMouseEvent() -> MouseEvent"""
1460 return _controls
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1462 def GetURLStart(*args
, **kwargs
):
1463 """GetURLStart() -> long"""
1464 return _controls
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1466 def GetURLEnd(*args
, **kwargs
):
1467 """GetURLEnd() -> long"""
1468 return _controls
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1471 class TextUrlEventPtr(TextUrlEvent
):
1472 def __init__(self
, this
):
1474 if not hasattr(self
,"thisown"): self
.thisown
= 0
1475 self
.__class
__ = TextUrlEvent
1476 _controls
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1478 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1479 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1480 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1481 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1483 #---------------------------------------------------------------------------
1485 class ScrollBar(core
.Control
):
1487 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1488 def __init__(self
, *args
, **kwargs
):
1490 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1491 Size size=DefaultSize, long style=SB_HORIZONTAL,
1492 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1494 newobj
= _controls
.new_ScrollBar(*args
, **kwargs
)
1495 self
.this
= newobj
.this
1498 self
._setOORInfo
(self
)
1500 def Create(*args
, **kwargs
):
1502 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1503 Size size=DefaultSize, long style=SB_HORIZONTAL,
1504 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1506 return _controls
.ScrollBar_Create(*args
, **kwargs
)
1508 def GetThumbPosition(*args
, **kwargs
):
1509 """GetThumbPosition() -> int"""
1510 return _controls
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1512 def GetThumbSize(*args
, **kwargs
):
1513 """GetThumbSize() -> int"""
1514 return _controls
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1516 GetThumbLength
= GetThumbSize
1517 def GetPageSize(*args
, **kwargs
):
1518 """GetPageSize() -> int"""
1519 return _controls
.ScrollBar_GetPageSize(*args
, **kwargs
)
1521 def GetRange(*args
, **kwargs
):
1522 """GetRange() -> int"""
1523 return _controls
.ScrollBar_GetRange(*args
, **kwargs
)
1525 def IsVertical(*args
, **kwargs
):
1526 """IsVertical() -> bool"""
1527 return _controls
.ScrollBar_IsVertical(*args
, **kwargs
)
1529 def SetThumbPosition(*args
, **kwargs
):
1530 """SetThumbPosition(int viewStart)"""
1531 return _controls
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1533 def SetScrollbar(*args
, **kwargs
):
1535 SetScrollbar(int position, int thumbSize, int range, int pageSize,
1538 return _controls
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1541 class ScrollBarPtr(ScrollBar
):
1542 def __init__(self
, this
):
1544 if not hasattr(self
,"thisown"): self
.thisown
= 0
1545 self
.__class
__ = ScrollBar
1546 _controls
.ScrollBar_swigregister(ScrollBarPtr
)
1547 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1549 def PreScrollBar(*args
, **kwargs
):
1550 """PreScrollBar() -> ScrollBar"""
1551 val
= _controls
.new_PreScrollBar(*args
, **kwargs
)
1555 #---------------------------------------------------------------------------
1557 SP_HORIZONTAL
= _controls
.SP_HORIZONTAL
1558 SP_VERTICAL
= _controls
.SP_VERTICAL
1559 SP_ARROW_KEYS
= _controls
.SP_ARROW_KEYS
1560 SP_WRAP
= _controls
.SP_WRAP
1561 class SpinButton(core
.Control
):
1563 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1564 def __init__(self
, *args
, **kwargs
):
1566 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
1567 Size size=DefaultSize, long style=SP_HORIZONTAL,
1568 String name=SPIN_BUTTON_NAME) -> SpinButton
1570 newobj
= _controls
.new_SpinButton(*args
, **kwargs
)
1571 self
.this
= newobj
.this
1574 self
._setOORInfo
(self
)
1576 def Create(*args
, **kwargs
):
1578 Create(Window parent, int id=-1, Point pos=DefaultPosition,
1579 Size size=DefaultSize, long style=SP_HORIZONTAL,
1580 String name=SPIN_BUTTON_NAME) -> bool
1582 return _controls
.SpinButton_Create(*args
, **kwargs
)
1584 def GetValue(*args
, **kwargs
):
1585 """GetValue() -> int"""
1586 return _controls
.SpinButton_GetValue(*args
, **kwargs
)
1588 def GetMin(*args
, **kwargs
):
1589 """GetMin() -> int"""
1590 return _controls
.SpinButton_GetMin(*args
, **kwargs
)
1592 def GetMax(*args
, **kwargs
):
1593 """GetMax() -> int"""
1594 return _controls
.SpinButton_GetMax(*args
, **kwargs
)
1596 def SetValue(*args
, **kwargs
):
1597 """SetValue(int val)"""
1598 return _controls
.SpinButton_SetValue(*args
, **kwargs
)
1600 def SetMin(*args
, **kwargs
):
1601 """SetMin(int minVal)"""
1602 return _controls
.SpinButton_SetMin(*args
, **kwargs
)
1604 def SetMax(*args
, **kwargs
):
1605 """SetMax(int maxVal)"""
1606 return _controls
.SpinButton_SetMax(*args
, **kwargs
)
1608 def SetRange(*args
, **kwargs
):
1609 """SetRange(int minVal, int maxVal)"""
1610 return _controls
.SpinButton_SetRange(*args
, **kwargs
)
1612 def IsVertical(*args
, **kwargs
):
1613 """IsVertical() -> bool"""
1614 return _controls
.SpinButton_IsVertical(*args
, **kwargs
)
1617 class SpinButtonPtr(SpinButton
):
1618 def __init__(self
, this
):
1620 if not hasattr(self
,"thisown"): self
.thisown
= 0
1621 self
.__class
__ = SpinButton
1622 _controls
.SpinButton_swigregister(SpinButtonPtr
)
1623 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1624 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1626 def PreSpinButton(*args
, **kwargs
):
1627 """PreSpinButton() -> SpinButton"""
1628 val
= _controls
.new_PreSpinButton(*args
, **kwargs
)
1632 class SpinCtrl(core
.Control
):
1634 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1635 def __init__(self
, *args
, **kwargs
):
1637 __init__(Window parent, int id=-1, String value=EmptyString,
1638 Point pos=DefaultPosition, Size size=DefaultSize,
1639 long style=SP_ARROW_KEYS, int min=0, int max=100,
1640 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1642 newobj
= _controls
.new_SpinCtrl(*args
, **kwargs
)
1643 self
.this
= newobj
.this
1646 self
._setOORInfo
(self
)
1648 def Create(*args
, **kwargs
):
1650 Create(Window parent, int id=-1, String value=EmptyString,
1651 Point pos=DefaultPosition, Size size=DefaultSize,
1652 long style=SP_ARROW_KEYS, int min=0, int max=100,
1653 int initial=0, String name=SpinCtrlNameStr) -> bool
1655 return _controls
.SpinCtrl_Create(*args
, **kwargs
)
1657 def GetValue(*args
, **kwargs
):
1658 """GetValue() -> int"""
1659 return _controls
.SpinCtrl_GetValue(*args
, **kwargs
)
1661 def SetValue(*args
, **kwargs
):
1662 """SetValue(int value)"""
1663 return _controls
.SpinCtrl_SetValue(*args
, **kwargs
)
1665 def SetValueString(*args
, **kwargs
):
1666 """SetValueString(String text)"""
1667 return _controls
.SpinCtrl_SetValueString(*args
, **kwargs
)
1669 def SetRange(*args
, **kwargs
):
1670 """SetRange(int minVal, int maxVal)"""
1671 return _controls
.SpinCtrl_SetRange(*args
, **kwargs
)
1673 def GetMin(*args
, **kwargs
):
1674 """GetMin() -> int"""
1675 return _controls
.SpinCtrl_GetMin(*args
, **kwargs
)
1677 def GetMax(*args
, **kwargs
):
1678 """GetMax() -> int"""
1679 return _controls
.SpinCtrl_GetMax(*args
, **kwargs
)
1681 def SetSelection(*args
, **kwargs
):
1682 """SetSelection(long from, long to)"""
1683 return _controls
.SpinCtrl_SetSelection(*args
, **kwargs
)
1686 class SpinCtrlPtr(SpinCtrl
):
1687 def __init__(self
, this
):
1689 if not hasattr(self
,"thisown"): self
.thisown
= 0
1690 self
.__class
__ = SpinCtrl
1691 _controls
.SpinCtrl_swigregister(SpinCtrlPtr
)
1693 def PreSpinCtrl(*args
, **kwargs
):
1694 """PreSpinCtrl() -> SpinCtrl"""
1695 val
= _controls
.new_PreSpinCtrl(*args
, **kwargs
)
1699 class SpinEvent(core
.NotifyEvent
):
1701 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1702 def __init__(self
, *args
, **kwargs
):
1703 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1704 newobj
= _controls
.new_SpinEvent(*args
, **kwargs
)
1705 self
.this
= newobj
.this
1708 def GetPosition(*args
, **kwargs
):
1709 """GetPosition() -> int"""
1710 return _controls
.SpinEvent_GetPosition(*args
, **kwargs
)
1712 def SetPosition(*args
, **kwargs
):
1713 """SetPosition(int pos)"""
1714 return _controls
.SpinEvent_SetPosition(*args
, **kwargs
)
1717 class SpinEventPtr(SpinEvent
):
1718 def __init__(self
, this
):
1720 if not hasattr(self
,"thisown"): self
.thisown
= 0
1721 self
.__class
__ = SpinEvent
1722 _controls
.SpinEvent_swigregister(SpinEventPtr
)
1724 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls
.wxEVT_COMMAND_SPINCTRL_UPDATED
1725 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1726 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1727 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1728 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1730 #---------------------------------------------------------------------------
1732 class RadioBox(core
.Control
):
1734 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1735 def __init__(self
, *args
, **kwargs
):
1737 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1738 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1739 int majorDimension=0,
1740 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1741 String name=RadioBoxNameStr) -> RadioBox
1743 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1744 newobj
= _controls
.new_RadioBox(*args
, **kwargs
)
1745 self
.this
= newobj
.this
1748 self
._setOORInfo
(self
)
1750 def Create(*args
, **kwargs
):
1752 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1753 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1754 int majorDimension=0,
1755 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1756 String name=RadioBoxNameStr) -> bool
1758 return _controls
.RadioBox_Create(*args
, **kwargs
)
1760 def SetSelection(*args
, **kwargs
):
1761 """SetSelection(int n)"""
1762 return _controls
.RadioBox_SetSelection(*args
, **kwargs
)
1764 def GetSelection(*args
, **kwargs
):
1765 """GetSelection() -> int"""
1766 return _controls
.RadioBox_GetSelection(*args
, **kwargs
)
1768 def GetStringSelection(*args
, **kwargs
):
1769 """GetStringSelection() -> String"""
1770 return _controls
.RadioBox_GetStringSelection(*args
, **kwargs
)
1772 def SetStringSelection(*args
, **kwargs
):
1773 """SetStringSelection(String s) -> bool"""
1774 return _controls
.RadioBox_SetStringSelection(*args
, **kwargs
)
1776 def GetCount(*args
, **kwargs
):
1777 """GetCount() -> int"""
1778 return _controls
.RadioBox_GetCount(*args
, **kwargs
)
1780 def FindString(*args
, **kwargs
):
1781 """FindString(String s) -> int"""
1782 return _controls
.RadioBox_FindString(*args
, **kwargs
)
1784 def GetString(*args
, **kwargs
):
1785 """GetString(int n) -> String"""
1786 return _controls
.RadioBox_GetString(*args
, **kwargs
)
1788 def SetString(*args
, **kwargs
):
1789 """SetString(int n, String label)"""
1790 return _controls
.RadioBox_SetString(*args
, **kwargs
)
1792 GetItemLabel
= GetString
1793 SetItemLabel
= SetString
1794 def EnableItem(*args
, **kwargs
):
1795 """EnableItem(int n, bool enable=True)"""
1796 return _controls
.RadioBox_EnableItem(*args
, **kwargs
)
1798 def ShowItem(*args
, **kwargs
):
1799 """ShowItem(int n, bool show=True)"""
1800 return _controls
.RadioBox_ShowItem(*args
, **kwargs
)
1802 def GetColumnCount(*args
, **kwargs
):
1803 """GetColumnCount() -> int"""
1804 return _controls
.RadioBox_GetColumnCount(*args
, **kwargs
)
1806 def GetRowCount(*args
, **kwargs
):
1807 """GetRowCount() -> int"""
1808 return _controls
.RadioBox_GetRowCount(*args
, **kwargs
)
1810 def GetNextItem(*args
, **kwargs
):
1811 """GetNextItem(int item, int dir, long style) -> int"""
1812 return _controls
.RadioBox_GetNextItem(*args
, **kwargs
)
1815 class RadioBoxPtr(RadioBox
):
1816 def __init__(self
, this
):
1818 if not hasattr(self
,"thisown"): self
.thisown
= 0
1819 self
.__class
__ = RadioBox
1820 _controls
.RadioBox_swigregister(RadioBoxPtr
)
1821 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1822 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1824 def PreRadioBox(*args
, **kwargs
):
1825 """PreRadioBox() -> RadioBox"""
1826 val
= _controls
.new_PreRadioBox(*args
, **kwargs
)
1830 #---------------------------------------------------------------------------
1832 class RadioButton(core
.Control
):
1834 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1835 def __init__(self
, *args
, **kwargs
):
1837 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
1838 Size size=DefaultSize, long style=0,
1839 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1841 newobj
= _controls
.new_RadioButton(*args
, **kwargs
)
1842 self
.this
= newobj
.this
1845 self
._setOORInfo
(self
)
1847 def Create(*args
, **kwargs
):
1849 Create(Window parent, int id, String label, Point pos=DefaultPosition,
1850 Size size=DefaultSize, long style=0,
1851 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1853 return _controls
.RadioButton_Create(*args
, **kwargs
)
1855 def GetValue(*args
, **kwargs
):
1856 """GetValue() -> bool"""
1857 return _controls
.RadioButton_GetValue(*args
, **kwargs
)
1859 def SetValue(*args
, **kwargs
):
1860 """SetValue(bool value)"""
1861 return _controls
.RadioButton_SetValue(*args
, **kwargs
)
1864 class RadioButtonPtr(RadioButton
):
1865 def __init__(self
, this
):
1867 if not hasattr(self
,"thisown"): self
.thisown
= 0
1868 self
.__class
__ = RadioButton
1869 _controls
.RadioButton_swigregister(RadioButtonPtr
)
1871 def PreRadioButton(*args
, **kwargs
):
1872 """PreRadioButton() -> RadioButton"""
1873 val
= _controls
.new_PreRadioButton(*args
, **kwargs
)
1877 #---------------------------------------------------------------------------
1879 class Slider(core
.Control
):
1881 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1882 def __init__(self
, *args
, **kwargs
):
1884 __init__(Window parent, int id, int value, int minValue, int maxValue,
1885 Point pos=DefaultPosition, Size size=DefaultSize,
1886 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1887 String name=SliderNameStr) -> Slider
1889 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
1890 newobj
= _controls
.new_Slider(*args
, **kwargs
)
1891 self
.this
= newobj
.this
1894 self
._setOORInfo
(self
)
1896 def Create(*args
, **kwargs
):
1898 Create(Window parent, int id, int value, int minValue, int maxValue,
1899 Point pos=DefaultPosition, Size size=DefaultSize,
1900 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1901 String name=SliderNameStr) -> bool
1903 return _controls
.Slider_Create(*args
, **kwargs
)
1905 def GetValue(*args
, **kwargs
):
1906 """GetValue() -> int"""
1907 return _controls
.Slider_GetValue(*args
, **kwargs
)
1909 def SetValue(*args
, **kwargs
):
1910 """SetValue(int value)"""
1911 return _controls
.Slider_SetValue(*args
, **kwargs
)
1913 def SetRange(*args
, **kwargs
):
1914 """SetRange(int minValue, int maxValue)"""
1915 return _controls
.Slider_SetRange(*args
, **kwargs
)
1917 def GetMin(*args
, **kwargs
):
1918 """GetMin() -> int"""
1919 return _controls
.Slider_GetMin(*args
, **kwargs
)
1921 def GetMax(*args
, **kwargs
):
1922 """GetMax() -> int"""
1923 return _controls
.Slider_GetMax(*args
, **kwargs
)
1925 def SetMin(*args
, **kwargs
):
1926 """SetMin(int minValue)"""
1927 return _controls
.Slider_SetMin(*args
, **kwargs
)
1929 def SetMax(*args
, **kwargs
):
1930 """SetMax(int maxValue)"""
1931 return _controls
.Slider_SetMax(*args
, **kwargs
)
1933 def SetLineSize(*args
, **kwargs
):
1934 """SetLineSize(int lineSize)"""
1935 return _controls
.Slider_SetLineSize(*args
, **kwargs
)
1937 def SetPageSize(*args
, **kwargs
):
1938 """SetPageSize(int pageSize)"""
1939 return _controls
.Slider_SetPageSize(*args
, **kwargs
)
1941 def GetLineSize(*args
, **kwargs
):
1942 """GetLineSize() -> int"""
1943 return _controls
.Slider_GetLineSize(*args
, **kwargs
)
1945 def GetPageSize(*args
, **kwargs
):
1946 """GetPageSize() -> int"""
1947 return _controls
.Slider_GetPageSize(*args
, **kwargs
)
1949 def SetThumbLength(*args
, **kwargs
):
1950 """SetThumbLength(int lenPixels)"""
1951 return _controls
.Slider_SetThumbLength(*args
, **kwargs
)
1953 def GetThumbLength(*args
, **kwargs
):
1954 """GetThumbLength() -> int"""
1955 return _controls
.Slider_GetThumbLength(*args
, **kwargs
)
1957 def SetTickFreq(*args
, **kwargs
):
1958 """SetTickFreq(int n, int pos=1)"""
1959 return _controls
.Slider_SetTickFreq(*args
, **kwargs
)
1961 def GetTickFreq(*args
, **kwargs
):
1962 """GetTickFreq() -> int"""
1963 return _controls
.Slider_GetTickFreq(*args
, **kwargs
)
1965 def ClearTicks(*args
, **kwargs
):
1967 return _controls
.Slider_ClearTicks(*args
, **kwargs
)
1969 def SetTick(*args
, **kwargs
):
1970 """SetTick(int tickPos)"""
1971 return _controls
.Slider_SetTick(*args
, **kwargs
)
1973 def ClearSel(*args
, **kwargs
):
1975 return _controls
.Slider_ClearSel(*args
, **kwargs
)
1977 def GetSelEnd(*args
, **kwargs
):
1978 """GetSelEnd() -> int"""
1979 return _controls
.Slider_GetSelEnd(*args
, **kwargs
)
1981 def GetSelStart(*args
, **kwargs
):
1982 """GetSelStart() -> int"""
1983 return _controls
.Slider_GetSelStart(*args
, **kwargs
)
1985 def SetSelection(*args
, **kwargs
):
1986 """SetSelection(int min, int max)"""
1987 return _controls
.Slider_SetSelection(*args
, **kwargs
)
1990 class SliderPtr(Slider
):
1991 def __init__(self
, this
):
1993 if not hasattr(self
,"thisown"): self
.thisown
= 0
1994 self
.__class
__ = Slider
1995 _controls
.Slider_swigregister(SliderPtr
)
1996 SliderNameStr
= cvar
.SliderNameStr
1998 def PreSlider(*args
, **kwargs
):
1999 """PreSlider() -> Slider"""
2000 val
= _controls
.new_PreSlider(*args
, **kwargs
)
2004 #---------------------------------------------------------------------------
2006 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2007 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2009 class ToggleButton(core
.Control
):
2011 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2012 def __init__(self
, *args
, **kwargs
):
2014 __init__(Window parent, int id, String label, Point pos=DefaultPosition,
2015 Size size=DefaultSize, long style=0,
2016 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2018 newobj
= _controls
.new_ToggleButton(*args
, **kwargs
)
2019 self
.this
= newobj
.this
2022 self
._setOORInfo
(self
)
2024 def Create(*args
, **kwargs
):
2026 Create(Window parent, int id, String label, Point pos=DefaultPosition,
2027 Size size=DefaultSize, long style=0,
2028 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
2030 return _controls
.ToggleButton_Create(*args
, **kwargs
)
2032 def SetValue(*args
, **kwargs
):
2033 """SetValue(bool value)"""
2034 return _controls
.ToggleButton_SetValue(*args
, **kwargs
)
2036 def GetValue(*args
, **kwargs
):
2037 """GetValue() -> bool"""
2038 return _controls
.ToggleButton_GetValue(*args
, **kwargs
)
2040 def SetLabel(*args
, **kwargs
):
2041 """SetLabel(String label)"""
2042 return _controls
.ToggleButton_SetLabel(*args
, **kwargs
)
2045 class ToggleButtonPtr(ToggleButton
):
2046 def __init__(self
, this
):
2048 if not hasattr(self
,"thisown"): self
.thisown
= 0
2049 self
.__class
__ = ToggleButton
2050 _controls
.ToggleButton_swigregister(ToggleButtonPtr
)
2051 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2053 def PreToggleButton(*args
, **kwargs
):
2054 """PreToggleButton() -> ToggleButton"""
2055 val
= _controls
.new_PreToggleButton(*args
, **kwargs
)
2059 #---------------------------------------------------------------------------
2061 class BookCtrl(core
.Control
):
2062 def __init__(self
): raise RuntimeError, "No constructor defined"
2064 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2065 def GetPageCount(*args
, **kwargs
):
2066 """GetPageCount() -> size_t"""
2067 return _controls
.BookCtrl_GetPageCount(*args
, **kwargs
)
2069 def GetPage(*args
, **kwargs
):
2070 """GetPage(size_t n) -> Window"""
2071 return _controls
.BookCtrl_GetPage(*args
, **kwargs
)
2073 def GetSelection(*args
, **kwargs
):
2074 """GetSelection() -> int"""
2075 return _controls
.BookCtrl_GetSelection(*args
, **kwargs
)
2077 def SetPageText(*args
, **kwargs
):
2078 """SetPageText(size_t n, String strText) -> bool"""
2079 return _controls
.BookCtrl_SetPageText(*args
, **kwargs
)
2081 def GetPageText(*args
, **kwargs
):
2082 """GetPageText(size_t n) -> String"""
2083 return _controls
.BookCtrl_GetPageText(*args
, **kwargs
)
2085 def SetImageList(*args
, **kwargs
):
2086 """SetImageList(ImageList imageList)"""
2087 return _controls
.BookCtrl_SetImageList(*args
, **kwargs
)
2089 def AssignImageList(*args
, **kwargs
):
2090 """AssignImageList(ImageList imageList)"""
2091 return _controls
.BookCtrl_AssignImageList(*args
, **kwargs
)
2093 def GetImageList(*args
, **kwargs
):
2094 """GetImageList() -> ImageList"""
2095 return _controls
.BookCtrl_GetImageList(*args
, **kwargs
)
2097 def GetPageImage(*args
, **kwargs
):
2098 """GetPageImage(size_t n) -> int"""
2099 return _controls
.BookCtrl_GetPageImage(*args
, **kwargs
)
2101 def SetPageImage(*args
, **kwargs
):
2102 """SetPageImage(size_t n, int imageId) -> bool"""
2103 return _controls
.BookCtrl_SetPageImage(*args
, **kwargs
)
2105 def SetPageSize(*args
, **kwargs
):
2106 """SetPageSize(Size size)"""
2107 return _controls
.BookCtrl_SetPageSize(*args
, **kwargs
)
2109 def CalcSizeFromPage(*args
, **kwargs
):
2110 """CalcSizeFromPage(Size sizePage) -> Size"""
2111 return _controls
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2113 def DeletePage(*args
, **kwargs
):
2114 """DeletePage(size_t n) -> bool"""
2115 return _controls
.BookCtrl_DeletePage(*args
, **kwargs
)
2117 def RemovePage(*args
, **kwargs
):
2118 """RemovePage(size_t n) -> bool"""
2119 return _controls
.BookCtrl_RemovePage(*args
, **kwargs
)
2121 def DeleteAllPages(*args
, **kwargs
):
2122 """DeleteAllPages() -> bool"""
2123 return _controls
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2125 def AddPage(*args
, **kwargs
):
2126 """AddPage(Window page, String text, bool select=False, int imageId=-1) -> bool"""
2127 return _controls
.BookCtrl_AddPage(*args
, **kwargs
)
2129 def InsertPage(*args
, **kwargs
):
2131 InsertPage(size_t n, Window page, String text, bool select=False,
2132 int imageId=-1) -> bool
2134 return _controls
.BookCtrl_InsertPage(*args
, **kwargs
)
2136 def SetSelection(*args
, **kwargs
):
2137 """SetSelection(size_t n) -> int"""
2138 return _controls
.BookCtrl_SetSelection(*args
, **kwargs
)
2140 def AdvanceSelection(*args
, **kwargs
):
2141 """AdvanceSelection(bool forward=True)"""
2142 return _controls
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2145 class BookCtrlPtr(BookCtrl
):
2146 def __init__(self
, this
):
2148 if not hasattr(self
,"thisown"): self
.thisown
= 0
2149 self
.__class
__ = BookCtrl
2150 _controls
.BookCtrl_swigregister(BookCtrlPtr
)
2151 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2153 class BookCtrlEvent(core
.NotifyEvent
):
2155 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2156 def __init__(self
, *args
, **kwargs
):
2158 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2159 int nOldSel=-1) -> BookCtrlEvent
2161 newobj
= _controls
.new_BookCtrlEvent(*args
, **kwargs
)
2162 self
.this
= newobj
.this
2165 def GetSelection(*args
, **kwargs
):
2166 """GetSelection() -> int"""
2167 return _controls
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2169 def SetSelection(*args
, **kwargs
):
2170 """SetSelection(int nSel)"""
2171 return _controls
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2173 def GetOldSelection(*args
, **kwargs
):
2174 """GetOldSelection() -> int"""
2175 return _controls
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2177 def SetOldSelection(*args
, **kwargs
):
2178 """SetOldSelection(int nOldSel)"""
2179 return _controls
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2182 class BookCtrlEventPtr(BookCtrlEvent
):
2183 def __init__(self
, this
):
2185 if not hasattr(self
,"thisown"): self
.thisown
= 0
2186 self
.__class
__ = BookCtrlEvent
2187 _controls
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2189 #---------------------------------------------------------------------------
2191 NB_FIXEDWIDTH
= _controls
.NB_FIXEDWIDTH
2192 NB_TOP
= _controls
.NB_TOP
2193 NB_LEFT
= _controls
.NB_LEFT
2194 NB_RIGHT
= _controls
.NB_RIGHT
2195 NB_BOTTOM
= _controls
.NB_BOTTOM
2196 NB_MULTILINE
= _controls
.NB_MULTILINE
2197 NB_HITTEST_NOWHERE
= _controls
.NB_HITTEST_NOWHERE
2198 NB_HITTEST_ONICON
= _controls
.NB_HITTEST_ONICON
2199 NB_HITTEST_ONLABEL
= _controls
.NB_HITTEST_ONLABEL
2200 NB_HITTEST_ONITEM
= _controls
.NB_HITTEST_ONITEM
2201 class Notebook(BookCtrl
):
2203 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2204 def __init__(self
, *args
, **kwargs
):
2206 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2207 long style=0, String name=NOTEBOOK_NAME) -> Notebook
2209 newobj
= _controls
.new_Notebook(*args
, **kwargs
)
2210 self
.this
= newobj
.this
2213 self
._setOORInfo
(self
)
2215 def Create(*args
, **kwargs
):
2217 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2218 long style=0, String name=NOTEBOOK_NAME) -> bool
2220 return _controls
.Notebook_Create(*args
, **kwargs
)
2222 def GetRowCount(*args
, **kwargs
):
2223 """GetRowCount() -> int"""
2224 return _controls
.Notebook_GetRowCount(*args
, **kwargs
)
2226 def SetPadding(*args
, **kwargs
):
2227 """SetPadding(Size padding)"""
2228 return _controls
.Notebook_SetPadding(*args
, **kwargs
)
2230 def SetTabSize(*args
, **kwargs
):
2231 """SetTabSize(Size sz)"""
2232 return _controls
.Notebook_SetTabSize(*args
, **kwargs
)
2234 def HitTest(*args
, **kwargs
):
2236 HitTest(Point pt) -> (tab, where)
2238 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2240 return _controls
.Notebook_HitTest(*args
, **kwargs
)
2242 def CalcSizeFromPage(*args
, **kwargs
):
2243 """CalcSizeFromPage(Size sizePage) -> Size"""
2244 return _controls
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2247 class NotebookPtr(Notebook
):
2248 def __init__(self
, this
):
2250 if not hasattr(self
,"thisown"): self
.thisown
= 0
2251 self
.__class
__ = Notebook
2252 _controls
.Notebook_swigregister(NotebookPtr
)
2254 def PreNotebook(*args
, **kwargs
):
2255 """PreNotebook() -> Notebook"""
2256 val
= _controls
.new_PreNotebook(*args
, **kwargs
)
2260 class NotebookEvent(BookCtrlEvent
):
2262 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2263 def __init__(self
, *args
, **kwargs
):
2265 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2266 int nOldSel=-1) -> NotebookEvent
2268 newobj
= _controls
.new_NotebookEvent(*args
, **kwargs
)
2269 self
.this
= newobj
.this
2273 class NotebookEventPtr(NotebookEvent
):
2274 def __init__(self
, this
):
2276 if not hasattr(self
,"thisown"): self
.thisown
= 0
2277 self
.__class
__ = NotebookEvent
2278 _controls
.NotebookEvent_swigregister(NotebookEventPtr
)
2280 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2281 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2283 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2284 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2286 #----------------------------------------------------------------------------
2288 class NotebookPage(wx
.Panel
):
2290 There is an old (and apparently unsolvable) bug when placing a
2291 window with a nonstandard background colour in a wxNotebook on
2292 wxGTK, as the notbooks's background colour would always be used
2293 when the window is refreshed. The solution is to place a panel in
2294 the notbook and the coloured window on the panel, sized to cover
2295 the panel. This simple class does that for you, just put an
2296 instance of this in the notebook and make your regular window a
2297 child of this one and it will handle the resize for you.
2299 def __init__(self
, parent
, id=-1,
2300 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2301 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2302 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2304 EVT_SIZE(self
, self
.OnSize
)
2306 def OnSize(self
, evt
):
2307 if self
.child
is None:
2308 children
= self
.GetChildren()
2310 self
.child
= children
[0]
2312 self
.child
.SetPosition((0,0))
2313 self
.child
.SetSize(self
.GetSize())
2316 #---------------------------------------------------------------------------
2318 LB_DEFAULT
= _controls
.LB_DEFAULT
2319 LB_TOP
= _controls
.LB_TOP
2320 LB_BOTTOM
= _controls
.LB_BOTTOM
2321 LB_LEFT
= _controls
.LB_LEFT
2322 LB_RIGHT
= _controls
.LB_RIGHT
2323 LB_ALIGN_MASK
= _controls
.LB_ALIGN_MASK
2324 class Listbook(BookCtrl
):
2326 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2327 def __init__(self
, *args
, **kwargs
):
2329 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2330 long style=0, String name=EmptyString) -> Listbook
2332 newobj
= _controls
.new_Listbook(*args
, **kwargs
)
2333 self
.this
= newobj
.this
2336 self
._setOORInfo
(self
)
2338 def Create(*args
, **kwargs
):
2340 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2341 long style=0, String name=EmptyString) -> bool
2343 return _controls
.Listbook_Create(*args
, **kwargs
)
2345 def IsVertical(*args
, **kwargs
):
2346 """IsVertical() -> bool"""
2347 return _controls
.Listbook_IsVertical(*args
, **kwargs
)
2350 class ListbookPtr(Listbook
):
2351 def __init__(self
, this
):
2353 if not hasattr(self
,"thisown"): self
.thisown
= 0
2354 self
.__class
__ = Listbook
2355 _controls
.Listbook_swigregister(ListbookPtr
)
2357 def PreListbook(*args
, **kwargs
):
2358 """PreListbook() -> Listbook"""
2359 val
= _controls
.new_PreListbook(*args
, **kwargs
)
2363 class ListbookEvent(BookCtrlEvent
):
2365 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2366 def __init__(self
, *args
, **kwargs
):
2368 __init__(wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2369 int nOldSel=-1) -> ListbookEvent
2371 newobj
= _controls
.new_ListbookEvent(*args
, **kwargs
)
2372 self
.this
= newobj
.this
2376 class ListbookEventPtr(ListbookEvent
):
2377 def __init__(self
, this
):
2379 if not hasattr(self
,"thisown"): self
.thisown
= 0
2380 self
.__class
__ = ListbookEvent
2381 _controls
.ListbookEvent_swigregister(ListbookEventPtr
)
2383 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2384 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2385 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2386 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2388 #---------------------------------------------------------------------------
2390 class BookCtrlSizer(core
.Sizer
):
2392 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2393 def __init__(self
, *args
, **kwargs
):
2394 """__init__(BookCtrl nb) -> BookCtrlSizer"""
2395 newobj
= _controls
.new_BookCtrlSizer(*args
, **kwargs
)
2396 self
.this
= newobj
.this
2399 self
._setOORInfo
(self
)
2401 def RecalcSizes(*args
, **kwargs
):
2403 return _controls
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2405 def CalcMin(*args
, **kwargs
):
2406 """CalcMin() -> Size"""
2407 return _controls
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2409 def GetControl(*args
, **kwargs
):
2410 """GetControl() -> BookCtrl"""
2411 return _controls
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2414 class BookCtrlSizerPtr(BookCtrlSizer
):
2415 def __init__(self
, this
):
2417 if not hasattr(self
,"thisown"): self
.thisown
= 0
2418 self
.__class
__ = BookCtrlSizer
2419 _controls
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2421 class NotebookSizer(core
.Sizer
):
2423 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2424 def __init__(self
, *args
, **kwargs
):
2425 """__init__(Notebook nb) -> NotebookSizer"""
2426 newobj
= _controls
.new_NotebookSizer(*args
, **kwargs
)
2427 self
.this
= newobj
.this
2430 self
._setOORInfo
(self
)
2432 def RecalcSizes(*args
, **kwargs
):
2434 return _controls
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2436 def CalcMin(*args
, **kwargs
):
2437 """CalcMin() -> Size"""
2438 return _controls
.NotebookSizer_CalcMin(*args
, **kwargs
)
2440 def GetNotebook(*args
, **kwargs
):
2441 """GetNotebook() -> Notebook"""
2442 return _controls
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2445 class NotebookSizerPtr(NotebookSizer
):
2446 def __init__(self
, this
):
2448 if not hasattr(self
,"thisown"): self
.thisown
= 0
2449 self
.__class
__ = NotebookSizer
2450 _controls
.NotebookSizer_swigregister(NotebookSizerPtr
)
2452 #---------------------------------------------------------------------------
2454 TOOL_STYLE_BUTTON
= _controls
.TOOL_STYLE_BUTTON
2455 TOOL_STYLE_SEPARATOR
= _controls
.TOOL_STYLE_SEPARATOR
2456 TOOL_STYLE_CONTROL
= _controls
.TOOL_STYLE_CONTROL
2457 TB_HORIZONTAL
= _controls
.TB_HORIZONTAL
2458 TB_VERTICAL
= _controls
.TB_VERTICAL
2459 TB_3DBUTTONS
= _controls
.TB_3DBUTTONS
2460 TB_FLAT
= _controls
.TB_FLAT
2461 TB_DOCKABLE
= _controls
.TB_DOCKABLE
2462 TB_NOICONS
= _controls
.TB_NOICONS
2463 TB_TEXT
= _controls
.TB_TEXT
2464 TB_NODIVIDER
= _controls
.TB_NODIVIDER
2465 TB_NOALIGN
= _controls
.TB_NOALIGN
2466 TB_HORZ_LAYOUT
= _controls
.TB_HORZ_LAYOUT
2467 TB_HORZ_TEXT
= _controls
.TB_HORZ_TEXT
2468 class ToolBarToolBase(core
.Object
):
2469 def __init__(self
): raise RuntimeError, "No constructor defined"
2471 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2472 def GetId(*args
, **kwargs
):
2473 """GetId() -> int"""
2474 return _controls
.ToolBarToolBase_GetId(*args
, **kwargs
)
2476 def GetControl(*args
, **kwargs
):
2477 """GetControl() -> Control"""
2478 return _controls
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2480 def GetToolBar(*args
, **kwargs
):
2481 """GetToolBar() -> ToolBarBase"""
2482 return _controls
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2484 def IsButton(*args
, **kwargs
):
2485 """IsButton() -> int"""
2486 return _controls
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2488 def IsControl(*args
, **kwargs
):
2489 """IsControl() -> int"""
2490 return _controls
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2492 def IsSeparator(*args
, **kwargs
):
2493 """IsSeparator() -> int"""
2494 return _controls
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2496 def GetStyle(*args
, **kwargs
):
2497 """GetStyle() -> int"""
2498 return _controls
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2500 def GetKind(*args
, **kwargs
):
2501 """GetKind() -> int"""
2502 return _controls
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2504 def IsEnabled(*args
, **kwargs
):
2505 """IsEnabled() -> bool"""
2506 return _controls
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2508 def IsToggled(*args
, **kwargs
):
2509 """IsToggled() -> bool"""
2510 return _controls
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2512 def CanBeToggled(*args
, **kwargs
):
2513 """CanBeToggled() -> bool"""
2514 return _controls
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2516 def GetNormalBitmap(*args
, **kwargs
):
2517 """GetNormalBitmap() -> Bitmap"""
2518 return _controls
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2520 def GetDisabledBitmap(*args
, **kwargs
):
2521 """GetDisabledBitmap() -> Bitmap"""
2522 return _controls
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2524 def GetBitmap(*args
, **kwargs
):
2525 """GetBitmap() -> Bitmap"""
2526 return _controls
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2528 def GetLabel(*args
, **kwargs
):
2529 """GetLabel() -> String"""
2530 return _controls
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2532 def GetShortHelp(*args
, **kwargs
):
2533 """GetShortHelp() -> String"""
2534 return _controls
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2536 def GetLongHelp(*args
, **kwargs
):
2537 """GetLongHelp() -> String"""
2538 return _controls
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2540 def Enable(*args
, **kwargs
):
2541 """Enable(bool enable) -> bool"""
2542 return _controls
.ToolBarToolBase_Enable(*args
, **kwargs
)
2544 def Toggle(*args
, **kwargs
):
2546 return _controls
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2548 def SetToggle(*args
, **kwargs
):
2549 """SetToggle(bool toggle) -> bool"""
2550 return _controls
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2552 def SetShortHelp(*args
, **kwargs
):
2553 """SetShortHelp(String help) -> bool"""
2554 return _controls
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2556 def SetLongHelp(*args
, **kwargs
):
2557 """SetLongHelp(String help) -> bool"""
2558 return _controls
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2560 def SetNormalBitmap(*args
, **kwargs
):
2561 """SetNormalBitmap(Bitmap bmp)"""
2562 return _controls
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2564 def SetDisabledBitmap(*args
, **kwargs
):
2565 """SetDisabledBitmap(Bitmap bmp)"""
2566 return _controls
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2568 def SetLabel(*args
, **kwargs
):
2569 """SetLabel(String label)"""
2570 return _controls
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2572 def Detach(*args
, **kwargs
):
2574 return _controls
.ToolBarToolBase_Detach(*args
, **kwargs
)
2576 def Attach(*args
, **kwargs
):
2577 """Attach(ToolBarBase tbar)"""
2578 return _controls
.ToolBarToolBase_Attach(*args
, **kwargs
)
2580 def GetClientData(*args
, **kwargs
):
2581 """GetClientData() -> PyObject"""
2582 return _controls
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2584 def SetClientData(*args
, **kwargs
):
2585 """SetClientData(PyObject clientData)"""
2586 return _controls
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2588 GetBitmap1
= GetNormalBitmap
2589 GetBitmap2
= GetDisabledBitmap
2590 SetBitmap1
= SetNormalBitmap
2591 SetBitmap2
= SetDisabledBitmap
2594 class ToolBarToolBasePtr(ToolBarToolBase
):
2595 def __init__(self
, this
):
2597 if not hasattr(self
,"thisown"): self
.thisown
= 0
2598 self
.__class
__ = ToolBarToolBase
2599 _controls
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2601 class ToolBarBase(core
.Control
):
2602 def __init__(self
): raise RuntimeError, "No constructor defined"
2604 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2605 def DoAddTool(*args
, **kwargs
):
2607 DoAddTool(int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2608 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2609 String longHelp=EmptyString,
2610 PyObject clientData=None) -> ToolBarToolBase
2612 return _controls
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2614 def DoInsertTool(*args
, **kwargs
):
2616 DoInsertTool(size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2617 int kind=ITEM_NORMAL,
2618 String shortHelp=EmptyString, String longHelp=EmptyString,
2619 PyObject clientData=None) -> ToolBarToolBase
2621 return _controls
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2623 # These match the original Add methods for this class, kept for
2624 # backwards compatibility with versions < 2.3.3.
2627 def AddTool(self
, id, bitmap
,
2628 pushedBitmap
= wx
.NullBitmap
,
2631 shortHelpString
= '',
2632 longHelpString
= '') :
2633 '''Old style method to add a tool to the toolbar.'''
2634 kind
= wx
.ITEM_NORMAL
2635 if isToggle
: kind
= wx
.ITEM_CHECK
2636 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2637 shortHelpString
, longHelpString
, clientData
)
2639 def AddSimpleTool(self
, id, bitmap
,
2640 shortHelpString
= '',
2641 longHelpString
= '',
2643 '''Old style method to add a tool to the toolbar.'''
2644 kind
= wx
.ITEM_NORMAL
2645 if isToggle
: kind
= wx
.ITEM_CHECK
2646 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2647 shortHelpString
, longHelpString
, None)
2649 def InsertTool(self
, pos
, id, bitmap
,
2650 pushedBitmap
= wx
.NullBitmap
,
2653 shortHelpString
= '',
2654 longHelpString
= ''):
2655 '''Old style method to insert a tool in the toolbar.'''
2656 kind
= wx
.ITEM_NORMAL
2657 if isToggle
: kind
= wx
.ITEM_CHECK
2658 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2659 shortHelpString
, longHelpString
, clientData
)
2661 def InsertSimpleTool(self
, pos
, id, bitmap
,
2662 shortHelpString
= '',
2663 longHelpString
= '',
2665 '''Old style method to insert a tool in the toolbar.'''
2666 kind
= wx
.ITEM_NORMAL
2667 if isToggle
: kind
= wx
.ITEM_CHECK
2668 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2669 shortHelpString
, longHelpString
, None)
2672 # The following are the new toolbar Add methods starting with
2673 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2674 # able to keep backwards compatibility with using the above
2675 # methods. Eventually these should migrate to be the methods used
2676 # primarily and lose the 'Label' in the name...
2678 def AddLabelTool(self
, id, label
, bitmap
,
2679 bmpDisabled
= wx
.NullBitmap
,
2680 kind
= wx
.ITEM_NORMAL
,
2681 shortHelp
= '', longHelp
= '',
2684 The full AddTool() function.
2686 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2687 is created and used as the disabled image.
2689 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2690 shortHelp
, longHelp
, clientData
)
2693 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2694 bmpDisabled
= wx
.NullBitmap
,
2695 kind
= wx
.ITEM_NORMAL
,
2696 shortHelp
= '', longHelp
= '',
2699 Insert the new tool at the given position, if pos == GetToolsCount(), it
2700 is equivalent to AddTool()
2702 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2703 shortHelp
, longHelp
, clientData
)
2705 def AddCheckLabelTool(self
, id, label
, bitmap
,
2706 bmpDisabled
= wx
.NullBitmap
,
2707 shortHelp
= '', longHelp
= '',
2709 '''Add a check tool, i.e. a tool which can be toggled'''
2710 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2711 shortHelp
, longHelp
, clientData
)
2713 def AddRadioLabelTool(self
, id, label
, bitmap
,
2714 bmpDisabled
= wx
.NullBitmap
,
2715 shortHelp
= '', longHelp
= '',
2718 Add a radio tool, i.e. a tool which can be toggled and releases any
2719 other toggled radio tools in the same group when it happens
2721 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2722 shortHelp
, longHelp
, clientData
)
2725 # For consistency with the backwards compatible methods above, here are
2726 # some non-'Label' versions of the Check and Radio methods
2727 def AddCheckTool(self
, id, bitmap
,
2728 bmpDisabled
= wx
.NullBitmap
,
2729 shortHelp
= '', longHelp
= '',
2731 '''Add a check tool, i.e. a tool which can be toggled'''
2732 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2733 shortHelp
, longHelp
, clientData
)
2735 def AddRadioTool(self
, id, bitmap
,
2736 bmpDisabled
= wx
.NullBitmap
,
2737 shortHelp
= '', longHelp
= '',
2740 Add a radio tool, i.e. a tool which can be toggled and releases any
2741 other toggled radio tools in the same group when it happens
2743 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2744 shortHelp
, longHelp
, clientData
)
2746 def AddToolItem(*args
, **kwargs
):
2747 """AddToolItem(ToolBarToolBase tool) -> ToolBarToolBase"""
2748 return _controls
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2750 def InsertToolItem(*args
, **kwargs
):
2751 """InsertToolItem(size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2752 return _controls
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2754 def AddControl(*args
, **kwargs
):
2755 """AddControl(Control control) -> ToolBarToolBase"""
2756 return _controls
.ToolBarBase_AddControl(*args
, **kwargs
)
2758 def InsertControl(*args
, **kwargs
):
2759 """InsertControl(size_t pos, Control control) -> ToolBarToolBase"""
2760 return _controls
.ToolBarBase_InsertControl(*args
, **kwargs
)
2762 def FindControl(*args
, **kwargs
):
2763 """FindControl(int id) -> Control"""
2764 return _controls
.ToolBarBase_FindControl(*args
, **kwargs
)
2766 def AddSeparator(*args
, **kwargs
):
2767 """AddSeparator() -> ToolBarToolBase"""
2768 return _controls
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2770 def InsertSeparator(*args
, **kwargs
):
2771 """InsertSeparator(size_t pos) -> ToolBarToolBase"""
2772 return _controls
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2774 def RemoveTool(*args
, **kwargs
):
2775 """RemoveTool(int id) -> ToolBarToolBase"""
2776 return _controls
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2778 def DeleteToolByPos(*args
, **kwargs
):
2779 """DeleteToolByPos(size_t pos) -> bool"""
2780 return _controls
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2782 def DeleteTool(*args
, **kwargs
):
2783 """DeleteTool(int id) -> bool"""
2784 return _controls
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2786 def ClearTools(*args
, **kwargs
):
2788 return _controls
.ToolBarBase_ClearTools(*args
, **kwargs
)
2790 def Realize(*args
, **kwargs
):
2791 """Realize() -> bool"""
2792 return _controls
.ToolBarBase_Realize(*args
, **kwargs
)
2794 def EnableTool(*args
, **kwargs
):
2795 """EnableTool(int id, bool enable)"""
2796 return _controls
.ToolBarBase_EnableTool(*args
, **kwargs
)
2798 def ToggleTool(*args
, **kwargs
):
2799 """ToggleTool(int id, bool toggle)"""
2800 return _controls
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2802 def SetToggle(*args
, **kwargs
):
2803 """SetToggle(int id, bool toggle)"""
2804 return _controls
.ToolBarBase_SetToggle(*args
, **kwargs
)
2806 def GetToolClientData(*args
, **kwargs
):
2807 """GetToolClientData(int id) -> PyObject"""
2808 return _controls
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2810 def SetToolClientData(*args
, **kwargs
):
2811 """SetToolClientData(int id, PyObject clientData)"""
2812 return _controls
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2814 def GetToolPos(*args
, **kwargs
):
2815 """GetToolPos(int id) -> int"""
2816 return _controls
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2818 def GetToolState(*args
, **kwargs
):
2819 """GetToolState(int id) -> bool"""
2820 return _controls
.ToolBarBase_GetToolState(*args
, **kwargs
)
2822 def GetToolEnabled(*args
, **kwargs
):
2823 """GetToolEnabled(int id) -> bool"""
2824 return _controls
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2826 def SetToolShortHelp(*args
, **kwargs
):
2827 """SetToolShortHelp(int id, String helpString)"""
2828 return _controls
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2830 def GetToolShortHelp(*args
, **kwargs
):
2831 """GetToolShortHelp(int id) -> String"""
2832 return _controls
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2834 def SetToolLongHelp(*args
, **kwargs
):
2835 """SetToolLongHelp(int id, String helpString)"""
2836 return _controls
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2838 def GetToolLongHelp(*args
, **kwargs
):
2839 """GetToolLongHelp(int id) -> String"""
2840 return _controls
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2842 def SetMarginsXY(*args
, **kwargs
):
2843 """SetMarginsXY(int x, int y)"""
2844 return _controls
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2846 def SetMargins(*args
, **kwargs
):
2847 """SetMargins(Size size)"""
2848 return _controls
.ToolBarBase_SetMargins(*args
, **kwargs
)
2850 def SetToolPacking(*args
, **kwargs
):
2851 """SetToolPacking(int packing)"""
2852 return _controls
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2854 def SetToolSeparation(*args
, **kwargs
):
2855 """SetToolSeparation(int separation)"""
2856 return _controls
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2858 def GetToolMargins(*args
, **kwargs
):
2859 """GetToolMargins() -> Size"""
2860 return _controls
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2862 def GetMargins(*args
, **kwargs
):
2863 """GetMargins() -> Size"""
2864 return _controls
.ToolBarBase_GetMargins(*args
, **kwargs
)
2866 def GetToolPacking(*args
, **kwargs
):
2867 """GetToolPacking() -> int"""
2868 return _controls
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2870 def GetToolSeparation(*args
, **kwargs
):
2871 """GetToolSeparation() -> int"""
2872 return _controls
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2874 def SetRows(*args
, **kwargs
):
2875 """SetRows(int nRows)"""
2876 return _controls
.ToolBarBase_SetRows(*args
, **kwargs
)
2878 def SetMaxRowsCols(*args
, **kwargs
):
2879 """SetMaxRowsCols(int rows, int cols)"""
2880 return _controls
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2882 def GetMaxRows(*args
, **kwargs
):
2883 """GetMaxRows() -> int"""
2884 return _controls
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2886 def GetMaxCols(*args
, **kwargs
):
2887 """GetMaxCols() -> int"""
2888 return _controls
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2890 def SetToolBitmapSize(*args
, **kwargs
):
2891 """SetToolBitmapSize(Size size)"""
2892 return _controls
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2894 def GetToolBitmapSize(*args
, **kwargs
):
2895 """GetToolBitmapSize() -> Size"""
2896 return _controls
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2898 def GetToolSize(*args
, **kwargs
):
2899 """GetToolSize() -> Size"""
2900 return _controls
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2902 def FindToolForPosition(*args
, **kwargs
):
2903 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2904 return _controls
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2906 def FindById(*args
, **kwargs
):
2907 """FindById(int toolid) -> ToolBarToolBase"""
2908 return _controls
.ToolBarBase_FindById(*args
, **kwargs
)
2910 def IsVertical(*args
, **kwargs
):
2911 """IsVertical() -> bool"""
2912 return _controls
.ToolBarBase_IsVertical(*args
, **kwargs
)
2915 class ToolBarBasePtr(ToolBarBase
):
2916 def __init__(self
, this
):
2918 if not hasattr(self
,"thisown"): self
.thisown
= 0
2919 self
.__class
__ = ToolBarBase
2920 _controls
.ToolBarBase_swigregister(ToolBarBasePtr
)
2922 class ToolBar(ToolBarBase
):
2924 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2925 def __init__(self
, *args
, **kwargs
):
2927 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2928 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2929 String name=wxPyToolBarNameStr) -> ToolBar
2931 newobj
= _controls
.new_ToolBar(*args
, **kwargs
)
2932 self
.this
= newobj
.this
2935 self
._setOORInfo
(self
)
2937 def Create(*args
, **kwargs
):
2939 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2940 long style=wxNO_BORDER|wxTB_HORIZONTAL,
2941 String name=wxPyToolBarNameStr) -> bool
2943 return _controls
.ToolBar_Create(*args
, **kwargs
)
2945 def FindToolForPosition(*args
, **kwargs
):
2946 """FindToolForPosition(int x, int y) -> ToolBarToolBase"""
2947 return _controls
.ToolBar_FindToolForPosition(*args
, **kwargs
)
2950 class ToolBarPtr(ToolBar
):
2951 def __init__(self
, this
):
2953 if not hasattr(self
,"thisown"): self
.thisown
= 0
2954 self
.__class
__ = ToolBar
2955 _controls
.ToolBar_swigregister(ToolBarPtr
)
2957 def PreToolBar(*args
, **kwargs
):
2958 """PreToolBar() -> ToolBar"""
2959 val
= _controls
.new_PreToolBar(*args
, **kwargs
)
2963 #---------------------------------------------------------------------------
2965 LC_VRULES
= _controls
.LC_VRULES
2966 LC_HRULES
= _controls
.LC_HRULES
2967 LC_ICON
= _controls
.LC_ICON
2968 LC_SMALL_ICON
= _controls
.LC_SMALL_ICON
2969 LC_LIST
= _controls
.LC_LIST
2970 LC_REPORT
= _controls
.LC_REPORT
2971 LC_ALIGN_TOP
= _controls
.LC_ALIGN_TOP
2972 LC_ALIGN_LEFT
= _controls
.LC_ALIGN_LEFT
2973 LC_AUTOARRANGE
= _controls
.LC_AUTOARRANGE
2974 LC_VIRTUAL
= _controls
.LC_VIRTUAL
2975 LC_EDIT_LABELS
= _controls
.LC_EDIT_LABELS
2976 LC_NO_HEADER
= _controls
.LC_NO_HEADER
2977 LC_NO_SORT_HEADER
= _controls
.LC_NO_SORT_HEADER
2978 LC_SINGLE_SEL
= _controls
.LC_SINGLE_SEL
2979 LC_SORT_ASCENDING
= _controls
.LC_SORT_ASCENDING
2980 LC_SORT_DESCENDING
= _controls
.LC_SORT_DESCENDING
2981 LC_MASK_TYPE
= _controls
.LC_MASK_TYPE
2982 LC_MASK_ALIGN
= _controls
.LC_MASK_ALIGN
2983 LC_MASK_SORT
= _controls
.LC_MASK_SORT
2984 LIST_MASK_STATE
= _controls
.LIST_MASK_STATE
2985 LIST_MASK_TEXT
= _controls
.LIST_MASK_TEXT
2986 LIST_MASK_IMAGE
= _controls
.LIST_MASK_IMAGE
2987 LIST_MASK_DATA
= _controls
.LIST_MASK_DATA
2988 LIST_SET_ITEM
= _controls
.LIST_SET_ITEM
2989 LIST_MASK_WIDTH
= _controls
.LIST_MASK_WIDTH
2990 LIST_MASK_FORMAT
= _controls
.LIST_MASK_FORMAT
2991 LIST_STATE_DONTCARE
= _controls
.LIST_STATE_DONTCARE
2992 LIST_STATE_DROPHILITED
= _controls
.LIST_STATE_DROPHILITED
2993 LIST_STATE_FOCUSED
= _controls
.LIST_STATE_FOCUSED
2994 LIST_STATE_SELECTED
= _controls
.LIST_STATE_SELECTED
2995 LIST_STATE_CUT
= _controls
.LIST_STATE_CUT
2996 LIST_STATE_DISABLED
= _controls
.LIST_STATE_DISABLED
2997 LIST_STATE_FILTERED
= _controls
.LIST_STATE_FILTERED
2998 LIST_STATE_INUSE
= _controls
.LIST_STATE_INUSE
2999 LIST_STATE_PICKED
= _controls
.LIST_STATE_PICKED
3000 LIST_STATE_SOURCE
= _controls
.LIST_STATE_SOURCE
3001 LIST_HITTEST_ABOVE
= _controls
.LIST_HITTEST_ABOVE
3002 LIST_HITTEST_BELOW
= _controls
.LIST_HITTEST_BELOW
3003 LIST_HITTEST_NOWHERE
= _controls
.LIST_HITTEST_NOWHERE
3004 LIST_HITTEST_ONITEMICON
= _controls
.LIST_HITTEST_ONITEMICON
3005 LIST_HITTEST_ONITEMLABEL
= _controls
.LIST_HITTEST_ONITEMLABEL
3006 LIST_HITTEST_ONITEMRIGHT
= _controls
.LIST_HITTEST_ONITEMRIGHT
3007 LIST_HITTEST_ONITEMSTATEICON
= _controls
.LIST_HITTEST_ONITEMSTATEICON
3008 LIST_HITTEST_TOLEFT
= _controls
.LIST_HITTEST_TOLEFT
3009 LIST_HITTEST_TORIGHT
= _controls
.LIST_HITTEST_TORIGHT
3010 LIST_HITTEST_ONITEM
= _controls
.LIST_HITTEST_ONITEM
3011 LIST_NEXT_ABOVE
= _controls
.LIST_NEXT_ABOVE
3012 LIST_NEXT_ALL
= _controls
.LIST_NEXT_ALL
3013 LIST_NEXT_BELOW
= _controls
.LIST_NEXT_BELOW
3014 LIST_NEXT_LEFT
= _controls
.LIST_NEXT_LEFT
3015 LIST_NEXT_RIGHT
= _controls
.LIST_NEXT_RIGHT
3016 LIST_ALIGN_DEFAULT
= _controls
.LIST_ALIGN_DEFAULT
3017 LIST_ALIGN_LEFT
= _controls
.LIST_ALIGN_LEFT
3018 LIST_ALIGN_TOP
= _controls
.LIST_ALIGN_TOP
3019 LIST_ALIGN_SNAP_TO_GRID
= _controls
.LIST_ALIGN_SNAP_TO_GRID
3020 LIST_FORMAT_LEFT
= _controls
.LIST_FORMAT_LEFT
3021 LIST_FORMAT_RIGHT
= _controls
.LIST_FORMAT_RIGHT
3022 LIST_FORMAT_CENTRE
= _controls
.LIST_FORMAT_CENTRE
3023 LIST_FORMAT_CENTER
= _controls
.LIST_FORMAT_CENTER
3024 LIST_AUTOSIZE
= _controls
.LIST_AUTOSIZE
3025 LIST_AUTOSIZE_USEHEADER
= _controls
.LIST_AUTOSIZE_USEHEADER
3026 LIST_RECT_BOUNDS
= _controls
.LIST_RECT_BOUNDS
3027 LIST_RECT_ICON
= _controls
.LIST_RECT_ICON
3028 LIST_RECT_LABEL
= _controls
.LIST_RECT_LABEL
3029 LIST_FIND_UP
= _controls
.LIST_FIND_UP
3030 LIST_FIND_DOWN
= _controls
.LIST_FIND_DOWN
3031 LIST_FIND_LEFT
= _controls
.LIST_FIND_LEFT
3032 LIST_FIND_RIGHT
= _controls
.LIST_FIND_RIGHT
3033 #---------------------------------------------------------------------------
3035 class ListItemAttr(object):
3037 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3038 def __init__(self
, *args
, **kwargs
):
3040 __init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
3041 Font font=wxNullFont) -> ListItemAttr
3043 newobj
= _controls
.new_ListItemAttr(*args
, **kwargs
)
3044 self
.this
= newobj
.this
3047 def SetTextColour(*args
, **kwargs
):
3048 """SetTextColour(Colour colText)"""
3049 return _controls
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3051 def SetBackgroundColour(*args
, **kwargs
):
3052 """SetBackgroundColour(Colour colBack)"""
3053 return _controls
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3055 def SetFont(*args
, **kwargs
):
3056 """SetFont(Font font)"""
3057 return _controls
.ListItemAttr_SetFont(*args
, **kwargs
)
3059 def HasTextColour(*args
, **kwargs
):
3060 """HasTextColour() -> bool"""
3061 return _controls
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3063 def HasBackgroundColour(*args
, **kwargs
):
3064 """HasBackgroundColour() -> bool"""
3065 return _controls
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3067 def HasFont(*args
, **kwargs
):
3068 """HasFont() -> bool"""
3069 return _controls
.ListItemAttr_HasFont(*args
, **kwargs
)
3071 def GetTextColour(*args
, **kwargs
):
3072 """GetTextColour() -> Colour"""
3073 return _controls
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3075 def GetBackgroundColour(*args
, **kwargs
):
3076 """GetBackgroundColour() -> Colour"""
3077 return _controls
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3079 def GetFont(*args
, **kwargs
):
3080 """GetFont() -> Font"""
3081 return _controls
.ListItemAttr_GetFont(*args
, **kwargs
)
3083 def Destroy(*args
, **kwargs
):
3085 return _controls
.ListItemAttr_Destroy(*args
, **kwargs
)
3088 class ListItemAttrPtr(ListItemAttr
):
3089 def __init__(self
, this
):
3091 if not hasattr(self
,"thisown"): self
.thisown
= 0
3092 self
.__class
__ = ListItemAttr
3093 _controls
.ListItemAttr_swigregister(ListItemAttrPtr
)
3094 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3096 #---------------------------------------------------------------------------
3098 class ListItem(core
.Object
):
3100 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3101 def __init__(self
, *args
, **kwargs
):
3102 """__init__() -> ListItem"""
3103 newobj
= _controls
.new_ListItem(*args
, **kwargs
)
3104 self
.this
= newobj
.this
3107 def __del__(self
, destroy
=_controls
.delete_ListItem
):
3110 if self
.thisown
: destroy(self
)
3113 def Clear(*args
, **kwargs
):
3115 return _controls
.ListItem_Clear(*args
, **kwargs
)
3117 def ClearAttributes(*args
, **kwargs
):
3118 """ClearAttributes()"""
3119 return _controls
.ListItem_ClearAttributes(*args
, **kwargs
)
3121 def SetMask(*args
, **kwargs
):
3122 """SetMask(long mask)"""
3123 return _controls
.ListItem_SetMask(*args
, **kwargs
)
3125 def SetId(*args
, **kwargs
):
3126 """SetId(long id)"""
3127 return _controls
.ListItem_SetId(*args
, **kwargs
)
3129 def SetColumn(*args
, **kwargs
):
3130 """SetColumn(int col)"""
3131 return _controls
.ListItem_SetColumn(*args
, **kwargs
)
3133 def SetState(*args
, **kwargs
):
3134 """SetState(long state)"""
3135 return _controls
.ListItem_SetState(*args
, **kwargs
)
3137 def SetStateMask(*args
, **kwargs
):
3138 """SetStateMask(long stateMask)"""
3139 return _controls
.ListItem_SetStateMask(*args
, **kwargs
)
3141 def SetText(*args
, **kwargs
):
3142 """SetText(String text)"""
3143 return _controls
.ListItem_SetText(*args
, **kwargs
)
3145 def SetImage(*args
, **kwargs
):
3146 """SetImage(int image)"""
3147 return _controls
.ListItem_SetImage(*args
, **kwargs
)
3149 def SetData(*args
, **kwargs
):
3150 """SetData(long data)"""
3151 return _controls
.ListItem_SetData(*args
, **kwargs
)
3153 def SetWidth(*args
, **kwargs
):
3154 """SetWidth(int width)"""
3155 return _controls
.ListItem_SetWidth(*args
, **kwargs
)
3157 def SetAlign(*args
, **kwargs
):
3158 """SetAlign(int align)"""
3159 return _controls
.ListItem_SetAlign(*args
, **kwargs
)
3161 def SetTextColour(*args
, **kwargs
):
3162 """SetTextColour(Colour colText)"""
3163 return _controls
.ListItem_SetTextColour(*args
, **kwargs
)
3165 def SetBackgroundColour(*args
, **kwargs
):
3166 """SetBackgroundColour(Colour colBack)"""
3167 return _controls
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3169 def SetFont(*args
, **kwargs
):
3170 """SetFont(Font font)"""
3171 return _controls
.ListItem_SetFont(*args
, **kwargs
)
3173 def GetMask(*args
, **kwargs
):
3174 """GetMask() -> long"""
3175 return _controls
.ListItem_GetMask(*args
, **kwargs
)
3177 def GetId(*args
, **kwargs
):
3178 """GetId() -> long"""
3179 return _controls
.ListItem_GetId(*args
, **kwargs
)
3181 def GetColumn(*args
, **kwargs
):
3182 """GetColumn() -> int"""
3183 return _controls
.ListItem_GetColumn(*args
, **kwargs
)
3185 def GetState(*args
, **kwargs
):
3186 """GetState() -> long"""
3187 return _controls
.ListItem_GetState(*args
, **kwargs
)
3189 def GetText(*args
, **kwargs
):
3190 """GetText() -> String"""
3191 return _controls
.ListItem_GetText(*args
, **kwargs
)
3193 def GetImage(*args
, **kwargs
):
3194 """GetImage() -> int"""
3195 return _controls
.ListItem_GetImage(*args
, **kwargs
)
3197 def GetData(*args
, **kwargs
):
3198 """GetData() -> long"""
3199 return _controls
.ListItem_GetData(*args
, **kwargs
)
3201 def GetWidth(*args
, **kwargs
):
3202 """GetWidth() -> int"""
3203 return _controls
.ListItem_GetWidth(*args
, **kwargs
)
3205 def GetAlign(*args
, **kwargs
):
3206 """GetAlign() -> int"""
3207 return _controls
.ListItem_GetAlign(*args
, **kwargs
)
3209 def GetAttributes(*args
, **kwargs
):
3210 """GetAttributes() -> ListItemAttr"""
3211 return _controls
.ListItem_GetAttributes(*args
, **kwargs
)
3213 def HasAttributes(*args
, **kwargs
):
3214 """HasAttributes() -> bool"""
3215 return _controls
.ListItem_HasAttributes(*args
, **kwargs
)
3217 def GetTextColour(*args
, **kwargs
):
3218 """GetTextColour() -> Colour"""
3219 return _controls
.ListItem_GetTextColour(*args
, **kwargs
)
3221 def GetBackgroundColour(*args
, **kwargs
):
3222 """GetBackgroundColour() -> Colour"""
3223 return _controls
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3225 def GetFont(*args
, **kwargs
):
3226 """GetFont() -> Font"""
3227 return _controls
.ListItem_GetFont(*args
, **kwargs
)
3229 m_mask
= property(_controls
.ListItem_m_mask_get
, _controls
.ListItem_m_mask_set
)
3230 m_itemId
= property(_controls
.ListItem_m_itemId_get
, _controls
.ListItem_m_itemId_set
)
3231 m_col
= property(_controls
.ListItem_m_col_get
, _controls
.ListItem_m_col_set
)
3232 m_state
= property(_controls
.ListItem_m_state_get
, _controls
.ListItem_m_state_set
)
3233 m_stateMask
= property(_controls
.ListItem_m_stateMask_get
, _controls
.ListItem_m_stateMask_set
)
3234 m_text
= property(_controls
.ListItem_m_text_get
, _controls
.ListItem_m_text_set
)
3235 m_image
= property(_controls
.ListItem_m_image_get
, _controls
.ListItem_m_image_set
)
3236 m_data
= property(_controls
.ListItem_m_data_get
, _controls
.ListItem_m_data_set
)
3237 m_format
= property(_controls
.ListItem_m_format_get
, _controls
.ListItem_m_format_set
)
3238 m_width
= property(_controls
.ListItem_m_width_get
, _controls
.ListItem_m_width_set
)
3240 class ListItemPtr(ListItem
):
3241 def __init__(self
, this
):
3243 if not hasattr(self
,"thisown"): self
.thisown
= 0
3244 self
.__class
__ = ListItem
3245 _controls
.ListItem_swigregister(ListItemPtr
)
3247 #---------------------------------------------------------------------------
3249 class ListEvent(core
.NotifyEvent
):
3251 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3252 def __init__(self
, *args
, **kwargs
):
3253 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3254 newobj
= _controls
.new_ListEvent(*args
, **kwargs
)
3255 self
.this
= newobj
.this
3258 m_code
= property(_controls
.ListEvent_m_code_get
, _controls
.ListEvent_m_code_set
)
3259 m_oldItemIndex
= property(_controls
.ListEvent_m_oldItemIndex_get
, _controls
.ListEvent_m_oldItemIndex_set
)
3260 m_itemIndex
= property(_controls
.ListEvent_m_itemIndex_get
, _controls
.ListEvent_m_itemIndex_set
)
3261 m_col
= property(_controls
.ListEvent_m_col_get
, _controls
.ListEvent_m_col_set
)
3262 m_pointDrag
= property(_controls
.ListEvent_m_pointDrag_get
, _controls
.ListEvent_m_pointDrag_set
)
3263 m_item
= property(_controls
.ListEvent_m_item_get
)
3264 def GetKeyCode(*args
, **kwargs
):
3265 """GetKeyCode() -> int"""
3266 return _controls
.ListEvent_GetKeyCode(*args
, **kwargs
)
3268 GetCode
= GetKeyCode
3269 def GetIndex(*args
, **kwargs
):
3270 """GetIndex() -> long"""
3271 return _controls
.ListEvent_GetIndex(*args
, **kwargs
)
3273 def GetColumn(*args
, **kwargs
):
3274 """GetColumn() -> int"""
3275 return _controls
.ListEvent_GetColumn(*args
, **kwargs
)
3277 def GetPoint(*args
, **kwargs
):
3278 """GetPoint() -> Point"""
3279 return _controls
.ListEvent_GetPoint(*args
, **kwargs
)
3281 GetPosition
= GetPoint
3282 def GetLabel(*args
, **kwargs
):
3283 """GetLabel() -> String"""
3284 return _controls
.ListEvent_GetLabel(*args
, **kwargs
)
3286 def GetText(*args
, **kwargs
):
3287 """GetText() -> String"""
3288 return _controls
.ListEvent_GetText(*args
, **kwargs
)
3290 def GetImage(*args
, **kwargs
):
3291 """GetImage() -> int"""
3292 return _controls
.ListEvent_GetImage(*args
, **kwargs
)
3294 def GetData(*args
, **kwargs
):
3295 """GetData() -> long"""
3296 return _controls
.ListEvent_GetData(*args
, **kwargs
)
3298 def GetMask(*args
, **kwargs
):
3299 """GetMask() -> long"""
3300 return _controls
.ListEvent_GetMask(*args
, **kwargs
)
3302 def GetItem(*args
, **kwargs
):
3303 """GetItem() -> ListItem"""
3304 return _controls
.ListEvent_GetItem(*args
, **kwargs
)
3306 def GetCacheFrom(*args
, **kwargs
):
3307 """GetCacheFrom() -> long"""
3308 return _controls
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3310 def GetCacheTo(*args
, **kwargs
):
3311 """GetCacheTo() -> long"""
3312 return _controls
.ListEvent_GetCacheTo(*args
, **kwargs
)
3314 def IsEditCancelled(*args
, **kwargs
):
3315 """IsEditCancelled() -> bool"""
3316 return _controls
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3318 def SetEditCanceled(*args
, **kwargs
):
3319 """SetEditCanceled(bool editCancelled)"""
3320 return _controls
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3323 class ListEventPtr(ListEvent
):
3324 def __init__(self
, this
):
3326 if not hasattr(self
,"thisown"): self
.thisown
= 0
3327 self
.__class
__ = ListEvent
3328 _controls
.ListEvent_swigregister(ListEventPtr
)
3330 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3331 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3332 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3333 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3334 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls
.wxEVT_COMMAND_LIST_DELETE_ITEM
3335 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3336 wxEVT_COMMAND_LIST_GET_INFO
= _controls
.wxEVT_COMMAND_LIST_GET_INFO
3337 wxEVT_COMMAND_LIST_SET_INFO
= _controls
.wxEVT_COMMAND_LIST_SET_INFO
3338 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3339 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3340 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls
.wxEVT_COMMAND_LIST_KEY_DOWN
3341 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls
.wxEVT_COMMAND_LIST_INSERT_ITEM
3342 wxEVT_COMMAND_LIST_COL_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_CLICK
3343 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3344 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3345 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3346 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls
.wxEVT_COMMAND_LIST_CACHE_HINT
3347 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3348 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3349 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls
.wxEVT_COMMAND_LIST_COL_DRAGGING
3350 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls
.wxEVT_COMMAND_LIST_COL_END_DRAG
3351 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3352 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3353 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3354 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3355 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3356 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3357 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3358 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3359 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3360 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3361 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3362 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3363 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3364 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3365 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3366 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3367 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3368 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3369 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3370 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3371 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3372 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3373 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3375 #---------------------------------------------------------------------------
3377 class ListCtrl(core
.Control
):
3379 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3380 def __init__(self
, *args
, **kwargs
):
3382 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3383 Size size=DefaultSize, long style=LC_ICON,
3384 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3386 newobj
= _controls
.new_ListCtrl(*args
, **kwargs
)
3387 self
.this
= newobj
.this
3390 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3392 def Create(*args
, **kwargs
):
3394 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3395 Size size=DefaultSize, long style=LC_ICON,
3396 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3398 return _controls
.ListCtrl_Create(*args
, **kwargs
)
3400 def _setCallbackInfo(*args
, **kwargs
):
3401 """_setCallbackInfo(PyObject self, PyObject _class)"""
3402 return _controls
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3404 def SetForegroundColour(*args
, **kwargs
):
3405 """SetForegroundColour(Colour col) -> bool"""
3406 return _controls
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3408 def SetBackgroundColour(*args
, **kwargs
):
3409 """SetBackgroundColour(Colour col) -> bool"""
3410 return _controls
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3412 def GetColumn(*args
, **kwargs
):
3413 """GetColumn(int col) -> ListItem"""
3414 val
= _controls
.ListCtrl_GetColumn(*args
, **kwargs
)
3415 if val
is not None: val
.thisown
= 1
3418 def SetColumn(*args
, **kwargs
):
3419 """SetColumn(int col, ListItem item) -> bool"""
3420 return _controls
.ListCtrl_SetColumn(*args
, **kwargs
)
3422 def GetColumnWidth(*args
, **kwargs
):
3423 """GetColumnWidth(int col) -> int"""
3424 return _controls
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3426 def SetColumnWidth(*args
, **kwargs
):
3427 """SetColumnWidth(int col, int width) -> bool"""
3428 return _controls
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3430 def GetCountPerPage(*args
, **kwargs
):
3431 """GetCountPerPage() -> int"""
3432 return _controls
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3434 def GetViewRect(*args
, **kwargs
):
3435 """GetViewRect() -> Rect"""
3436 return _controls
.ListCtrl_GetViewRect(*args
, **kwargs
)
3438 def GetItem(*args
, **kwargs
):
3439 """GetItem(long itemId, int col=0) -> ListItem"""
3440 val
= _controls
.ListCtrl_GetItem(*args
, **kwargs
)
3441 if val
is not None: val
.thisown
= 1
3444 def SetItem(*args
, **kwargs
):
3445 """SetItem(ListItem info) -> bool"""
3446 return _controls
.ListCtrl_SetItem(*args
, **kwargs
)
3448 def SetStringItem(*args
, **kwargs
):
3449 """SetStringItem(long index, int col, String label, int imageId=-1) -> long"""
3450 return _controls
.ListCtrl_SetStringItem(*args
, **kwargs
)
3452 def GetItemState(*args
, **kwargs
):
3453 """GetItemState(long item, long stateMask) -> int"""
3454 return _controls
.ListCtrl_GetItemState(*args
, **kwargs
)
3456 def SetItemState(*args
, **kwargs
):
3457 """SetItemState(long item, long state, long stateMask) -> bool"""
3458 return _controls
.ListCtrl_SetItemState(*args
, **kwargs
)
3460 def SetItemImage(*args
, **kwargs
):
3461 """SetItemImage(long item, int image, int selImage) -> bool"""
3462 return _controls
.ListCtrl_SetItemImage(*args
, **kwargs
)
3464 def GetItemText(*args
, **kwargs
):
3465 """GetItemText(long item) -> String"""
3466 return _controls
.ListCtrl_GetItemText(*args
, **kwargs
)
3468 def SetItemText(*args
, **kwargs
):
3469 """SetItemText(long item, String str)"""
3470 return _controls
.ListCtrl_SetItemText(*args
, **kwargs
)
3472 def GetItemData(*args
, **kwargs
):
3473 """GetItemData(long item) -> long"""
3474 return _controls
.ListCtrl_GetItemData(*args
, **kwargs
)
3476 def SetItemData(*args
, **kwargs
):
3477 """SetItemData(long item, long data) -> bool"""
3478 return _controls
.ListCtrl_SetItemData(*args
, **kwargs
)
3480 def GetItemPosition(*args
, **kwargs
):
3481 """GetItemPosition(long item) -> Point"""
3482 return _controls
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3484 def GetItemRect(*args
, **kwargs
):
3485 """GetItemRect(long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3486 return _controls
.ListCtrl_GetItemRect(*args
, **kwargs
)
3488 def SetItemPosition(*args
, **kwargs
):
3489 """SetItemPosition(long item, Point pos) -> bool"""
3490 return _controls
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3492 def GetItemCount(*args
, **kwargs
):
3493 """GetItemCount() -> int"""
3494 return _controls
.ListCtrl_GetItemCount(*args
, **kwargs
)
3496 def GetColumnCount(*args
, **kwargs
):
3497 """GetColumnCount() -> int"""
3498 return _controls
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3500 def GetItemSpacing(*args
, **kwargs
):
3501 """GetItemSpacing() -> Size"""
3502 return _controls
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3504 def SetItemSpacing(*args
, **kwargs
):
3505 """SetItemSpacing(int spacing, bool isSmall=False)"""
3506 return _controls
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3508 def GetSelectedItemCount(*args
, **kwargs
):
3509 """GetSelectedItemCount() -> int"""
3510 return _controls
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3512 def GetTextColour(*args
, **kwargs
):
3513 """GetTextColour() -> Colour"""
3514 return _controls
.ListCtrl_GetTextColour(*args
, **kwargs
)
3516 def SetTextColour(*args
, **kwargs
):
3517 """SetTextColour(Colour col)"""
3518 return _controls
.ListCtrl_SetTextColour(*args
, **kwargs
)
3520 def GetTopItem(*args
, **kwargs
):
3521 """GetTopItem() -> long"""
3522 return _controls
.ListCtrl_GetTopItem(*args
, **kwargs
)
3524 def SetSingleStyle(*args
, **kwargs
):
3525 """SetSingleStyle(long style, bool add=True)"""
3526 return _controls
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3528 def SetWindowStyleFlag(*args
, **kwargs
):
3529 """SetWindowStyleFlag(long style)"""
3530 return _controls
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3532 def GetNextItem(*args
, **kwargs
):
3533 """GetNextItem(long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3534 return _controls
.ListCtrl_GetNextItem(*args
, **kwargs
)
3536 def GetImageList(*args
, **kwargs
):
3537 """GetImageList(int which) -> ImageList"""
3538 return _controls
.ListCtrl_GetImageList(*args
, **kwargs
)
3540 def SetImageList(*args
, **kwargs
):
3541 """SetImageList(ImageList imageList, int which)"""
3542 return _controls
.ListCtrl_SetImageList(*args
, **kwargs
)
3544 def AssignImageList(*args
, **kwargs
):
3545 """AssignImageList(ImageList imageList, int which)"""
3546 return _controls
.ListCtrl_AssignImageList(*args
, **kwargs
)
3548 def IsVirtual(*args
, **kwargs
):
3549 """IsVirtual() -> bool"""
3550 return _controls
.ListCtrl_IsVirtual(*args
, **kwargs
)
3552 def RefreshItem(*args
, **kwargs
):
3553 """RefreshItem(long item)"""
3554 return _controls
.ListCtrl_RefreshItem(*args
, **kwargs
)
3556 def RefreshItems(*args
, **kwargs
):
3557 """RefreshItems(long itemFrom, long itemTo)"""
3558 return _controls
.ListCtrl_RefreshItems(*args
, **kwargs
)
3560 def Arrange(*args
, **kwargs
):
3561 """Arrange(int flag=LIST_ALIGN_DEFAULT) -> bool"""
3562 return _controls
.ListCtrl_Arrange(*args
, **kwargs
)
3564 def DeleteItem(*args
, **kwargs
):
3565 """DeleteItem(long item) -> bool"""
3566 return _controls
.ListCtrl_DeleteItem(*args
, **kwargs
)
3568 def DeleteAllItems(*args
, **kwargs
):
3569 """DeleteAllItems() -> bool"""
3570 return _controls
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3572 def DeleteColumn(*args
, **kwargs
):
3573 """DeleteColumn(int col) -> bool"""
3574 return _controls
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3576 def DeleteAllColumns(*args
, **kwargs
):
3577 """DeleteAllColumns() -> bool"""
3578 return _controls
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3580 def ClearAll(*args
, **kwargs
):
3582 return _controls
.ListCtrl_ClearAll(*args
, **kwargs
)
3584 def EditLabel(*args
, **kwargs
):
3585 """EditLabel(long item)"""
3586 return _controls
.ListCtrl_EditLabel(*args
, **kwargs
)
3588 def EnsureVisible(*args
, **kwargs
):
3589 """EnsureVisible(long item) -> bool"""
3590 return _controls
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3592 def FindItem(*args
, **kwargs
):
3593 """FindItem(long start, String str, bool partial=False) -> long"""
3594 return _controls
.ListCtrl_FindItem(*args
, **kwargs
)
3596 def FindItemData(*args
, **kwargs
):
3597 """FindItemData(long start, long data) -> long"""
3598 return _controls
.ListCtrl_FindItemData(*args
, **kwargs
)
3600 def FindItemAtPos(*args
, **kwargs
):
3601 """FindItemAtPos(long start, Point pt, int direction) -> long"""
3602 return _controls
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3604 def HitTest(*args
, **kwargs
):
3606 HitTest(Point point) -> (item, where)
3608 Determines which item (if any) is at the specified point,
3609 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3611 return _controls
.ListCtrl_HitTest(*args
, **kwargs
)
3613 def InsertItem(*args
, **kwargs
):
3614 """InsertItem(ListItem info) -> long"""
3615 return _controls
.ListCtrl_InsertItem(*args
, **kwargs
)
3617 def InsertStringItem(*args
, **kwargs
):
3618 """InsertStringItem(long index, String label) -> long"""
3619 return _controls
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3621 def InsertImageItem(*args
, **kwargs
):
3622 """InsertImageItem(long index, int imageIndex) -> long"""
3623 return _controls
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3625 def InsertImageStringItem(*args
, **kwargs
):
3626 """InsertImageStringItem(long index, String label, int imageIndex) -> long"""
3627 return _controls
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3629 def InsertColumnInfo(*args
, **kwargs
):
3630 """InsertColumnInfo(long col, ListItem info) -> long"""
3631 return _controls
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3633 def InsertColumn(*args
, **kwargs
):
3635 InsertColumn(long col, String heading, int format=LIST_FORMAT_LEFT,
3636 int width=-1) -> long
3638 return _controls
.ListCtrl_InsertColumn(*args
, **kwargs
)
3640 def SetItemCount(*args
, **kwargs
):
3641 """SetItemCount(long count)"""
3642 return _controls
.ListCtrl_SetItemCount(*args
, **kwargs
)
3644 def ScrollList(*args
, **kwargs
):
3645 """ScrollList(int dx, int dy) -> bool"""
3646 return _controls
.ListCtrl_ScrollList(*args
, **kwargs
)
3648 def SetItemTextColour(*args
, **kwargs
):
3649 """SetItemTextColour(long item, Colour col)"""
3650 return _controls
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3652 def GetItemTextColour(*args
, **kwargs
):
3653 """GetItemTextColour(long item) -> Colour"""
3654 return _controls
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3656 def SetItemBackgroundColour(*args
, **kwargs
):
3657 """SetItemBackgroundColour(long item, Colour col)"""
3658 return _controls
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3660 def GetItemBackgroundColour(*args
, **kwargs
):
3661 """GetItemBackgroundColour(long item) -> Colour"""
3662 return _controls
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3666 def Select(self
, idx
, on
=1):
3667 '''[de]select an item'''
3668 if on
: state
= wx
.LIST_STATE_SELECTED
3670 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3672 def Focus(self
, idx
):
3673 '''Focus and show the given item'''
3674 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3675 self
.EnsureVisible(idx
)
3677 def GetFocusedItem(self
):
3678 '''get the currently focused item or -1 if none'''
3679 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3681 def GetFirstSelected(self
, *args
):
3682 '''return first selected item, or -1 when none'''
3683 return self
.GetNextSelected(-1)
3685 def GetNextSelected(self
, item
):
3686 '''return subsequent selected items, or -1 when no more'''
3687 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3689 def IsSelected(self
, idx
):
3690 '''return True if the item is selected'''
3691 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3693 def SetColumnImage(self
, col
, image
):
3694 item
= self
.GetColumn(col
)
3695 # preserve all other attributes too
3696 item
.SetMask( wx
.LIST_MASK_STATE |
3698 wx
.LIST_MASK_IMAGE |
3701 wx
.LIST_MASK_WIDTH |
3702 wx
.LIST_MASK_FORMAT
)
3703 item
.SetImage(image
)
3704 self
.SetColumn(col
, item
)
3706 def ClearColumnImage(self
, col
):
3707 self
.SetColumnImage(col
, -1)
3709 def Append(self
, entry
):
3710 '''Append an item to the list control. The entry parameter should be a
3711 sequence with an item for each column'''
3717 pos
= self
.GetItemCount()
3718 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3719 for i
in range(1, len(entry
)):
3720 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3723 def SortItems(*args
, **kwargs
):
3724 """SortItems(PyObject func) -> bool"""
3725 return _controls
.ListCtrl_SortItems(*args
, **kwargs
)
3727 def GetMainWindow(*args
, **kwargs
):
3728 """GetMainWindow() -> Window"""
3729 return _controls
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3732 class ListCtrlPtr(ListCtrl
):
3733 def __init__(self
, this
):
3735 if not hasattr(self
,"thisown"): self
.thisown
= 0
3736 self
.__class
__ = ListCtrl
3737 _controls
.ListCtrl_swigregister(ListCtrlPtr
)
3739 def PreListCtrl(*args
, **kwargs
):
3740 """PreListCtrl() -> ListCtrl"""
3741 val
= _controls
.new_PreListCtrl(*args
, **kwargs
)
3745 #---------------------------------------------------------------------------
3747 class ListView(ListCtrl
):
3749 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3750 def __init__(self
, *args
, **kwargs
):
3752 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
3753 Size size=DefaultSize, long style=LC_REPORT,
3754 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3756 newobj
= _controls
.new_ListView(*args
, **kwargs
)
3757 self
.this
= newobj
.this
3760 self
._setOORInfo
(self
)
3762 def Create(*args
, **kwargs
):
3764 Create(Window parent, int id=-1, Point pos=DefaultPosition,
3765 Size size=DefaultSize, long style=LC_REPORT,
3766 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3768 return _controls
.ListView_Create(*args
, **kwargs
)
3770 def Select(*args
, **kwargs
):
3771 """Select(long n, bool on=True)"""
3772 return _controls
.ListView_Select(*args
, **kwargs
)
3774 def Focus(*args
, **kwargs
):
3775 """Focus(long index)"""
3776 return _controls
.ListView_Focus(*args
, **kwargs
)
3778 def GetFocusedItem(*args
, **kwargs
):
3779 """GetFocusedItem() -> long"""
3780 return _controls
.ListView_GetFocusedItem(*args
, **kwargs
)
3782 def GetNextSelected(*args
, **kwargs
):
3783 """GetNextSelected(long item) -> long"""
3784 return _controls
.ListView_GetNextSelected(*args
, **kwargs
)
3786 def GetFirstSelected(*args
, **kwargs
):
3787 """GetFirstSelected() -> long"""
3788 return _controls
.ListView_GetFirstSelected(*args
, **kwargs
)
3790 def IsSelected(*args
, **kwargs
):
3791 """IsSelected(long index) -> bool"""
3792 return _controls
.ListView_IsSelected(*args
, **kwargs
)
3794 def SetColumnImage(*args
, **kwargs
):
3795 """SetColumnImage(int col, int image)"""
3796 return _controls
.ListView_SetColumnImage(*args
, **kwargs
)
3798 def ClearColumnImage(*args
, **kwargs
):
3799 """ClearColumnImage(int col)"""
3800 return _controls
.ListView_ClearColumnImage(*args
, **kwargs
)
3803 class ListViewPtr(ListView
):
3804 def __init__(self
, this
):
3806 if not hasattr(self
,"thisown"): self
.thisown
= 0
3807 self
.__class
__ = ListView
3808 _controls
.ListView_swigregister(ListViewPtr
)
3810 def PreListView(*args
, **kwargs
):
3811 """PreListView() -> ListView"""
3812 val
= _controls
.new_PreListView(*args
, **kwargs
)
3816 #---------------------------------------------------------------------------
3818 TR_NO_BUTTONS
= _controls
.TR_NO_BUTTONS
3819 TR_HAS_BUTTONS
= _controls
.TR_HAS_BUTTONS
3820 TR_NO_LINES
= _controls
.TR_NO_LINES
3821 TR_LINES_AT_ROOT
= _controls
.TR_LINES_AT_ROOT
3822 TR_SINGLE
= _controls
.TR_SINGLE
3823 TR_MULTIPLE
= _controls
.TR_MULTIPLE
3824 TR_EXTENDED
= _controls
.TR_EXTENDED
3825 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls
.TR_HAS_VARIABLE_ROW_HEIGHT
3826 TR_EDIT_LABELS
= _controls
.TR_EDIT_LABELS
3827 TR_HIDE_ROOT
= _controls
.TR_HIDE_ROOT
3828 TR_ROW_LINES
= _controls
.TR_ROW_LINES
3829 TR_FULL_ROW_HIGHLIGHT
= _controls
.TR_FULL_ROW_HIGHLIGHT
3830 TR_DEFAULT_STYLE
= _controls
.TR_DEFAULT_STYLE
3831 TR_TWIST_BUTTONS
= _controls
.TR_TWIST_BUTTONS
3832 TR_MAC_BUTTONS
= _controls
.TR_MAC_BUTTONS
3833 TR_AQUA_BUTTONS
= _controls
.TR_AQUA_BUTTONS
3834 TreeItemIcon_Normal
= _controls
.TreeItemIcon_Normal
3835 TreeItemIcon_Selected
= _controls
.TreeItemIcon_Selected
3836 TreeItemIcon_Expanded
= _controls
.TreeItemIcon_Expanded
3837 TreeItemIcon_SelectedExpanded
= _controls
.TreeItemIcon_SelectedExpanded
3838 TreeItemIcon_Max
= _controls
.TreeItemIcon_Max
3839 TREE_HITTEST_ABOVE
= _controls
.TREE_HITTEST_ABOVE
3840 TREE_HITTEST_BELOW
= _controls
.TREE_HITTEST_BELOW
3841 TREE_HITTEST_NOWHERE
= _controls
.TREE_HITTEST_NOWHERE
3842 TREE_HITTEST_ONITEMBUTTON
= _controls
.TREE_HITTEST_ONITEMBUTTON
3843 TREE_HITTEST_ONITEMICON
= _controls
.TREE_HITTEST_ONITEMICON
3844 TREE_HITTEST_ONITEMINDENT
= _controls
.TREE_HITTEST_ONITEMINDENT
3845 TREE_HITTEST_ONITEMLABEL
= _controls
.TREE_HITTEST_ONITEMLABEL
3846 TREE_HITTEST_ONITEMRIGHT
= _controls
.TREE_HITTEST_ONITEMRIGHT
3847 TREE_HITTEST_ONITEMSTATEICON
= _controls
.TREE_HITTEST_ONITEMSTATEICON
3848 TREE_HITTEST_TOLEFT
= _controls
.TREE_HITTEST_TOLEFT
3849 TREE_HITTEST_TORIGHT
= _controls
.TREE_HITTEST_TORIGHT
3850 TREE_HITTEST_ONITEMUPPERPART
= _controls
.TREE_HITTEST_ONITEMUPPERPART
3851 TREE_HITTEST_ONITEMLOWERPART
= _controls
.TREE_HITTEST_ONITEMLOWERPART
3852 TREE_HITTEST_ONITEM
= _controls
.TREE_HITTEST_ONITEM
3853 #---------------------------------------------------------------------------
3855 class TreeItemId(object):
3857 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3858 def __init__(self
, *args
, **kwargs
):
3859 """__init__() -> TreeItemId"""
3860 newobj
= _controls
.new_TreeItemId(*args
, **kwargs
)
3861 self
.this
= newobj
.this
3864 def __del__(self
, destroy
=_controls
.delete_TreeItemId
):
3867 if self
.thisown
: destroy(self
)
3870 def IsOk(*args
, **kwargs
):
3871 """IsOk() -> bool"""
3872 return _controls
.TreeItemId_IsOk(*args
, **kwargs
)
3874 def __eq__(*args
, **kwargs
):
3875 """__eq__(TreeItemId other) -> bool"""
3876 return _controls
.TreeItemId___eq__(*args
, **kwargs
)
3878 def __ne__(*args
, **kwargs
):
3879 """__ne__(TreeItemId other) -> bool"""
3880 return _controls
.TreeItemId___ne__(*args
, **kwargs
)
3882 m_pItem
= property(_controls
.TreeItemId_m_pItem_get
, _controls
.TreeItemId_m_pItem_set
)
3884 def __nonzero__(self
): return self
.IsOk()
3886 class TreeItemIdPtr(TreeItemId
):
3887 def __init__(self
, this
):
3889 if not hasattr(self
,"thisown"): self
.thisown
= 0
3890 self
.__class
__ = TreeItemId
3891 _controls
.TreeItemId_swigregister(TreeItemIdPtr
)
3892 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
3894 class TreeItemData(object):
3896 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3897 def __init__(self
, *args
, **kwargs
):
3898 """__init__(PyObject obj=None) -> TreeItemData"""
3899 newobj
= _controls
.new_TreeItemData(*args
, **kwargs
)
3900 self
.this
= newobj
.this
3903 def GetData(*args
, **kwargs
):
3904 """GetData() -> PyObject"""
3905 return _controls
.TreeItemData_GetData(*args
, **kwargs
)
3907 def SetData(*args
, **kwargs
):
3908 """SetData(PyObject obj)"""
3909 return _controls
.TreeItemData_SetData(*args
, **kwargs
)
3911 def GetId(*args
, **kwargs
):
3912 """GetId() -> TreeItemId"""
3913 return _controls
.TreeItemData_GetId(*args
, **kwargs
)
3915 def SetId(*args
, **kwargs
):
3916 """SetId(TreeItemId id)"""
3917 return _controls
.TreeItemData_SetId(*args
, **kwargs
)
3919 def Destroy(*args
, **kwargs
):
3921 return _controls
.TreeItemData_Destroy(*args
, **kwargs
)
3924 class TreeItemDataPtr(TreeItemData
):
3925 def __init__(self
, this
):
3927 if not hasattr(self
,"thisown"): self
.thisown
= 0
3928 self
.__class
__ = TreeItemData
3929 _controls
.TreeItemData_swigregister(TreeItemDataPtr
)
3931 #---------------------------------------------------------------------------
3933 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_DRAG
3934 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
3935 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
3936 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
3937 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls
.wxEVT_COMMAND_TREE_DELETE_ITEM
3938 wxEVT_COMMAND_TREE_GET_INFO
= _controls
.wxEVT_COMMAND_TREE_GET_INFO
3939 wxEVT_COMMAND_TREE_SET_INFO
= _controls
.wxEVT_COMMAND_TREE_SET_INFO
3940 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
3941 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
3942 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
3943 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
3944 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGED
3945 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls
.wxEVT_COMMAND_TREE_SEL_CHANGING
3946 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls
.wxEVT_COMMAND_TREE_KEY_DOWN
3947 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
3948 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
3949 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
3950 wxEVT_COMMAND_TREE_END_DRAG
= _controls
.wxEVT_COMMAND_TREE_END_DRAG
3951 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
3952 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
3953 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
3954 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
3955 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
3956 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
3957 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
3958 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
3959 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
3960 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
3961 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
3962 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
3963 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
3964 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
3965 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
3966 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
3967 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
3968 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
3969 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
3970 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
3971 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
3972 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
3974 class TreeEvent(core
.NotifyEvent
):
3976 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3977 def __init__(self
, *args
, **kwargs
):
3978 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
3979 newobj
= _controls
.new_TreeEvent(*args
, **kwargs
)
3980 self
.this
= newobj
.this
3983 def GetItem(*args
, **kwargs
):
3984 """GetItem() -> TreeItemId"""
3985 return _controls
.TreeEvent_GetItem(*args
, **kwargs
)
3987 def SetItem(*args
, **kwargs
):
3988 """SetItem(TreeItemId item)"""
3989 return _controls
.TreeEvent_SetItem(*args
, **kwargs
)
3991 def GetOldItem(*args
, **kwargs
):
3992 """GetOldItem() -> TreeItemId"""
3993 return _controls
.TreeEvent_GetOldItem(*args
, **kwargs
)
3995 def SetOldItem(*args
, **kwargs
):
3996 """SetOldItem(TreeItemId item)"""
3997 return _controls
.TreeEvent_SetOldItem(*args
, **kwargs
)
3999 def GetPoint(*args
, **kwargs
):
4000 """GetPoint() -> Point"""
4001 return _controls
.TreeEvent_GetPoint(*args
, **kwargs
)
4003 def SetPoint(*args
, **kwargs
):
4004 """SetPoint(Point pt)"""
4005 return _controls
.TreeEvent_SetPoint(*args
, **kwargs
)
4007 def GetKeyEvent(*args
, **kwargs
):
4008 """GetKeyEvent() -> KeyEvent"""
4009 return _controls
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4011 def GetKeyCode(*args
, **kwargs
):
4012 """GetKeyCode() -> int"""
4013 return _controls
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4015 def SetKeyEvent(*args
, **kwargs
):
4016 """SetKeyEvent(KeyEvent evt)"""
4017 return _controls
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4019 def GetLabel(*args
, **kwargs
):
4020 """GetLabel() -> String"""
4021 return _controls
.TreeEvent_GetLabel(*args
, **kwargs
)
4023 def SetLabel(*args
, **kwargs
):
4024 """SetLabel(String label)"""
4025 return _controls
.TreeEvent_SetLabel(*args
, **kwargs
)
4027 def IsEditCancelled(*args
, **kwargs
):
4028 """IsEditCancelled() -> bool"""
4029 return _controls
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4031 def SetEditCanceled(*args
, **kwargs
):
4032 """SetEditCanceled(bool editCancelled)"""
4033 return _controls
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4035 def SetToolTip(*args
, **kwargs
):
4036 """SetToolTip(String toolTip)"""
4037 return _controls
.TreeEvent_SetToolTip(*args
, **kwargs
)
4040 class TreeEventPtr(TreeEvent
):
4041 def __init__(self
, this
):
4043 if not hasattr(self
,"thisown"): self
.thisown
= 0
4044 self
.__class
__ = TreeEvent
4045 _controls
.TreeEvent_swigregister(TreeEventPtr
)
4047 #---------------------------------------------------------------------------
4049 class TreeCtrl(core
.Control
):
4051 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4052 def __init__(self
, *args
, **kwargs
):
4054 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
4055 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4056 Validator validator=DefaultValidator,
4057 String name=TreeCtrlNameStr) -> TreeCtrl
4059 newobj
= _controls
.new_TreeCtrl(*args
, **kwargs
)
4060 self
.this
= newobj
.this
4063 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4065 def Create(*args
, **kwargs
):
4067 Create(Window parent, int id=-1, Point pos=DefaultPosition,
4068 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4069 Validator validator=DefaultValidator,
4070 String name=TreeCtrlNameStr) -> bool
4072 return _controls
.TreeCtrl_Create(*args
, **kwargs
)
4074 def _setCallbackInfo(*args
, **kwargs
):
4075 """_setCallbackInfo(PyObject self, PyObject _class)"""
4076 return _controls
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4078 def GetCount(*args
, **kwargs
):
4079 """GetCount() -> size_t"""
4080 return _controls
.TreeCtrl_GetCount(*args
, **kwargs
)
4082 def GetIndent(*args
, **kwargs
):
4083 """GetIndent() -> unsigned int"""
4084 return _controls
.TreeCtrl_GetIndent(*args
, **kwargs
)
4086 def SetIndent(*args
, **kwargs
):
4087 """SetIndent(unsigned int indent)"""
4088 return _controls
.TreeCtrl_SetIndent(*args
, **kwargs
)
4090 def GetSpacing(*args
, **kwargs
):
4091 """GetSpacing() -> unsigned int"""
4092 return _controls
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4094 def SetSpacing(*args
, **kwargs
):
4095 """SetSpacing(unsigned int spacing)"""
4096 return _controls
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4098 def GetImageList(*args
, **kwargs
):
4099 """GetImageList() -> ImageList"""
4100 return _controls
.TreeCtrl_GetImageList(*args
, **kwargs
)
4102 def GetStateImageList(*args
, **kwargs
):
4103 """GetStateImageList() -> ImageList"""
4104 return _controls
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4106 def SetImageList(*args
, **kwargs
):
4107 """SetImageList(ImageList imageList)"""
4108 return _controls
.TreeCtrl_SetImageList(*args
, **kwargs
)
4110 def SetStateImageList(*args
, **kwargs
):
4111 """SetStateImageList(ImageList imageList)"""
4112 return _controls
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4114 def AssignImageList(*args
, **kwargs
):
4115 """AssignImageList(ImageList imageList)"""
4116 return _controls
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4118 def AssignStateImageList(*args
, **kwargs
):
4119 """AssignStateImageList(ImageList imageList)"""
4120 return _controls
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4122 def GetItemText(*args
, **kwargs
):
4123 """GetItemText(TreeItemId item) -> String"""
4124 return _controls
.TreeCtrl_GetItemText(*args
, **kwargs
)
4126 def GetItemImage(*args
, **kwargs
):
4127 """GetItemImage(TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4128 return _controls
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4130 def GetItemData(*args
, **kwargs
):
4131 """GetItemData(TreeItemId item) -> TreeItemData"""
4132 return _controls
.TreeCtrl_GetItemData(*args
, **kwargs
)
4134 def GetItemPyData(*args
, **kwargs
):
4135 """GetItemPyData(TreeItemId item) -> PyObject"""
4136 return _controls
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4138 GetPyData
= GetItemPyData
4139 def GetItemTextColour(*args
, **kwargs
):
4140 """GetItemTextColour(TreeItemId item) -> Colour"""
4141 return _controls
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4143 def GetItemBackgroundColour(*args
, **kwargs
):
4144 """GetItemBackgroundColour(TreeItemId item) -> Colour"""
4145 return _controls
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4147 def GetItemFont(*args
, **kwargs
):
4148 """GetItemFont(TreeItemId item) -> Font"""
4149 return _controls
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4151 def SetItemText(*args
, **kwargs
):
4152 """SetItemText(TreeItemId item, String text)"""
4153 return _controls
.TreeCtrl_SetItemText(*args
, **kwargs
)
4155 def SetItemImage(*args
, **kwargs
):
4156 """SetItemImage(TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4157 return _controls
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4159 def SetItemData(*args
, **kwargs
):
4160 """SetItemData(TreeItemId item, TreeItemData data)"""
4161 return _controls
.TreeCtrl_SetItemData(*args
, **kwargs
)
4163 def SetItemPyData(*args
, **kwargs
):
4164 """SetItemPyData(TreeItemId item, PyObject obj)"""
4165 return _controls
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4167 SetPyData
= SetItemPyData
4168 def SetItemHasChildren(*args
, **kwargs
):
4169 """SetItemHasChildren(TreeItemId item, bool has=True)"""
4170 return _controls
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4172 def SetItemBold(*args
, **kwargs
):
4173 """SetItemBold(TreeItemId item, bool bold=True)"""
4174 return _controls
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4176 def SetItemTextColour(*args
, **kwargs
):
4177 """SetItemTextColour(TreeItemId item, Colour col)"""
4178 return _controls
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4180 def SetItemBackgroundColour(*args
, **kwargs
):
4181 """SetItemBackgroundColour(TreeItemId item, Colour col)"""
4182 return _controls
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4184 def SetItemFont(*args
, **kwargs
):
4185 """SetItemFont(TreeItemId item, Font font)"""
4186 return _controls
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4188 def IsVisible(*args
, **kwargs
):
4189 """IsVisible(TreeItemId item) -> bool"""
4190 return _controls
.TreeCtrl_IsVisible(*args
, **kwargs
)
4192 def ItemHasChildren(*args
, **kwargs
):
4193 """ItemHasChildren(TreeItemId item) -> bool"""
4194 return _controls
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4196 def IsExpanded(*args
, **kwargs
):
4197 """IsExpanded(TreeItemId item) -> bool"""
4198 return _controls
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4200 def IsSelected(*args
, **kwargs
):
4201 """IsSelected(TreeItemId item) -> bool"""
4202 return _controls
.TreeCtrl_IsSelected(*args
, **kwargs
)
4204 def IsBold(*args
, **kwargs
):
4205 """IsBold(TreeItemId item) -> bool"""
4206 return _controls
.TreeCtrl_IsBold(*args
, **kwargs
)
4208 def GetChildrenCount(*args
, **kwargs
):
4209 """GetChildrenCount(TreeItemId item, bool recursively=True) -> size_t"""
4210 return _controls
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4212 def GetRootItem(*args
, **kwargs
):
4213 """GetRootItem() -> TreeItemId"""
4214 return _controls
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4216 def GetSelection(*args
, **kwargs
):
4217 """GetSelection() -> TreeItemId"""
4218 return _controls
.TreeCtrl_GetSelection(*args
, **kwargs
)
4220 def GetSelections(*args
, **kwargs
):
4221 """GetSelections() -> PyObject"""
4222 return _controls
.TreeCtrl_GetSelections(*args
, **kwargs
)
4224 def GetItemParent(*args
, **kwargs
):
4225 """GetItemParent(TreeItemId item) -> TreeItemId"""
4226 return _controls
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4228 def GetFirstChild(*args
, **kwargs
):
4229 """GetFirstChild(TreeItemId item) -> PyObject"""
4230 return _controls
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4232 def GetNextChild(*args
, **kwargs
):
4233 """GetNextChild(TreeItemId item, void cookie) -> PyObject"""
4234 return _controls
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4236 def GetLastChild(*args
, **kwargs
):
4237 """GetLastChild(TreeItemId item) -> TreeItemId"""
4238 return _controls
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4240 def GetNextSibling(*args
, **kwargs
):
4241 """GetNextSibling(TreeItemId item) -> TreeItemId"""
4242 return _controls
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4244 def GetPrevSibling(*args
, **kwargs
):
4245 """GetPrevSibling(TreeItemId item) -> TreeItemId"""
4246 return _controls
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4248 def GetFirstVisibleItem(*args
, **kwargs
):
4249 """GetFirstVisibleItem() -> TreeItemId"""
4250 return _controls
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4252 def GetNextVisible(*args
, **kwargs
):
4253 """GetNextVisible(TreeItemId item) -> TreeItemId"""
4254 return _controls
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4256 def GetPrevVisible(*args
, **kwargs
):
4257 """GetPrevVisible(TreeItemId item) -> TreeItemId"""
4258 return _controls
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4260 def AddRoot(*args
, **kwargs
):
4261 """AddRoot(String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4262 return _controls
.TreeCtrl_AddRoot(*args
, **kwargs
)
4264 def PrependItem(*args
, **kwargs
):
4266 PrependItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4267 TreeItemData data=None) -> TreeItemId
4269 return _controls
.TreeCtrl_PrependItem(*args
, **kwargs
)
4271 def InsertItem(*args
, **kwargs
):
4273 InsertItem(TreeItemId parent, TreeItemId idPrevious, String text,
4274 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4276 return _controls
.TreeCtrl_InsertItem(*args
, **kwargs
)
4278 def InsertItemBefore(*args
, **kwargs
):
4280 InsertItemBefore(TreeItemId parent, size_t index, String text, int image=-1,
4281 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4283 return _controls
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4285 def AppendItem(*args
, **kwargs
):
4287 AppendItem(TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4288 TreeItemData data=None) -> TreeItemId
4290 return _controls
.TreeCtrl_AppendItem(*args
, **kwargs
)
4292 def Delete(*args
, **kwargs
):
4293 """Delete(TreeItemId item)"""
4294 return _controls
.TreeCtrl_Delete(*args
, **kwargs
)
4296 def DeleteChildren(*args
, **kwargs
):
4297 """DeleteChildren(TreeItemId item)"""
4298 return _controls
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4300 def DeleteAllItems(*args
, **kwargs
):
4301 """DeleteAllItems()"""
4302 return _controls
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4304 def Expand(*args
, **kwargs
):
4305 """Expand(TreeItemId item)"""
4306 return _controls
.TreeCtrl_Expand(*args
, **kwargs
)
4308 def Collapse(*args
, **kwargs
):
4309 """Collapse(TreeItemId item)"""
4310 return _controls
.TreeCtrl_Collapse(*args
, **kwargs
)
4312 def CollapseAndReset(*args
, **kwargs
):
4313 """CollapseAndReset(TreeItemId item)"""
4314 return _controls
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4316 def Toggle(*args
, **kwargs
):
4317 """Toggle(TreeItemId item)"""
4318 return _controls
.TreeCtrl_Toggle(*args
, **kwargs
)
4320 def Unselect(*args
, **kwargs
):
4322 return _controls
.TreeCtrl_Unselect(*args
, **kwargs
)
4324 def UnselectItem(*args
, **kwargs
):
4325 """UnselectItem(TreeItemId item)"""
4326 return _controls
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4328 def UnselectAll(*args
, **kwargs
):
4330 return _controls
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4332 def SelectItem(*args
, **kwargs
):
4333 """SelectItem(TreeItemId item, bool select=True)"""
4334 return _controls
.TreeCtrl_SelectItem(*args
, **kwargs
)
4336 def ToggleItemSelection(*args
, **kwargs
):
4337 """ToggleItemSelection(TreeItemId item)"""
4338 return _controls
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4340 def EnsureVisible(*args
, **kwargs
):
4341 """EnsureVisible(TreeItemId item)"""
4342 return _controls
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4344 def ScrollTo(*args
, **kwargs
):
4345 """ScrollTo(TreeItemId item)"""
4346 return _controls
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4348 def EditLabel(*args
, **kwargs
):
4349 """EditLabel(TreeItemId item)"""
4350 return _controls
.TreeCtrl_EditLabel(*args
, **kwargs
)
4352 def GetEditControl(*args
, **kwargs
):
4353 """GetEditControl() -> TextCtrl"""
4354 return _controls
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4356 def SortChildren(*args
, **kwargs
):
4357 """SortChildren(TreeItemId item)"""
4358 return _controls
.TreeCtrl_SortChildren(*args
, **kwargs
)
4360 def HitTest(*args
, **kwargs
):
4362 HitTest(Point point) -> (item, where)
4364 Determine which item (if any) belongs the given point. The
4365 coordinates specified are relative to the client area of tree ctrl
4366 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4370 return _controls
.TreeCtrl_HitTest(*args
, **kwargs
)
4372 def GetBoundingRect(*args
, **kwargs
):
4373 """GetBoundingRect(TreeItemId item, bool textOnly=False) -> PyObject"""
4374 return _controls
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4377 class TreeCtrlPtr(TreeCtrl
):
4378 def __init__(self
, this
):
4380 if not hasattr(self
,"thisown"): self
.thisown
= 0
4381 self
.__class
__ = TreeCtrl
4382 _controls
.TreeCtrl_swigregister(TreeCtrlPtr
)
4384 def PreTreeCtrl(*args
, **kwargs
):
4385 """PreTreeCtrl() -> TreeCtrl"""
4386 val
= _controls
.new_PreTreeCtrl(*args
, **kwargs
)
4390 #---------------------------------------------------------------------------
4392 DIRCTRL_DIR_ONLY
= _controls
.DIRCTRL_DIR_ONLY
4393 DIRCTRL_SELECT_FIRST
= _controls
.DIRCTRL_SELECT_FIRST
4394 DIRCTRL_SHOW_FILTERS
= _controls
.DIRCTRL_SHOW_FILTERS
4395 DIRCTRL_3D_INTERNAL
= _controls
.DIRCTRL_3D_INTERNAL
4396 DIRCTRL_EDIT_LABELS
= _controls
.DIRCTRL_EDIT_LABELS
4397 class GenericDirCtrl(core
.Control
):
4399 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4400 def __init__(self
, *args
, **kwargs
):
4402 __init__(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4403 Point pos=DefaultPosition, Size size=DefaultSize,
4404 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4405 String filter=EmptyString,
4406 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4408 newobj
= _controls
.new_GenericDirCtrl(*args
, **kwargs
)
4409 self
.this
= newobj
.this
4412 self
._setOORInfo
(self
)
4414 def Create(*args
, **kwargs
):
4416 Create(Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4417 Point pos=DefaultPosition, Size size=DefaultSize,
4418 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4419 String filter=EmptyString,
4420 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4422 return _controls
.GenericDirCtrl_Create(*args
, **kwargs
)
4424 def ExpandPath(*args
, **kwargs
):
4425 """ExpandPath(String path) -> bool"""
4426 return _controls
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4428 def GetDefaultPath(*args
, **kwargs
):
4429 """GetDefaultPath() -> String"""
4430 return _controls
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4432 def SetDefaultPath(*args
, **kwargs
):
4433 """SetDefaultPath(String path)"""
4434 return _controls
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4436 def GetPath(*args
, **kwargs
):
4437 """GetPath() -> String"""
4438 return _controls
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4440 def GetFilePath(*args
, **kwargs
):
4441 """GetFilePath() -> String"""
4442 return _controls
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4444 def SetPath(*args
, **kwargs
):
4445 """SetPath(String path)"""
4446 return _controls
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4448 def ShowHidden(*args
, **kwargs
):
4449 """ShowHidden(bool show)"""
4450 return _controls
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4452 def GetShowHidden(*args
, **kwargs
):
4453 """GetShowHidden() -> bool"""
4454 return _controls
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4456 def GetFilter(*args
, **kwargs
):
4457 """GetFilter() -> String"""
4458 return _controls
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4460 def SetFilter(*args
, **kwargs
):
4461 """SetFilter(String filter)"""
4462 return _controls
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4464 def GetFilterIndex(*args
, **kwargs
):
4465 """GetFilterIndex() -> int"""
4466 return _controls
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4468 def SetFilterIndex(*args
, **kwargs
):
4469 """SetFilterIndex(int n)"""
4470 return _controls
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4472 def GetRootId(*args
, **kwargs
):
4473 """GetRootId() -> TreeItemId"""
4474 return _controls
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4476 def GetTreeCtrl(*args
, **kwargs
):
4477 """GetTreeCtrl() -> TreeCtrl"""
4478 return _controls
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4480 def GetFilterListCtrl(*args
, **kwargs
):
4481 """GetFilterListCtrl() -> DirFilterListCtrl"""
4482 return _controls
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4484 def FindChild(*args
, **kwargs
):
4486 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4488 Find the child that matches the first part of 'path'. E.g. if a child path is
4489 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4490 If the path string has been used (we're at the leaf), done is set to True
4493 return _controls
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4495 def DoResize(*args
, **kwargs
):
4497 return _controls
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4499 def ReCreateTree(*args
, **kwargs
):
4500 """ReCreateTree()"""
4501 return _controls
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4504 class GenericDirCtrlPtr(GenericDirCtrl
):
4505 def __init__(self
, this
):
4507 if not hasattr(self
,"thisown"): self
.thisown
= 0
4508 self
.__class
__ = GenericDirCtrl
4509 _controls
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4510 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4512 def PreGenericDirCtrl(*args
, **kwargs
):
4513 """PreGenericDirCtrl() -> GenericDirCtrl"""
4514 val
= _controls
.new_PreGenericDirCtrl(*args
, **kwargs
)
4518 class DirFilterListCtrl(Choice
):
4520 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4521 def __init__(self
, *args
, **kwargs
):
4523 __init__(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4524 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4526 newobj
= _controls
.new_DirFilterListCtrl(*args
, **kwargs
)
4527 self
.this
= newobj
.this
4530 self
._setOORInfo
(self
)
4532 def Create(*args
, **kwargs
):
4534 Create(GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4535 Size size=DefaultSize, long style=0) -> bool
4537 return _controls
.DirFilterListCtrl_Create(*args
, **kwargs
)
4539 def FillFilterList(*args
, **kwargs
):
4540 """FillFilterList(String filter, int defaultFilter)"""
4541 return _controls
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4544 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4545 def __init__(self
, this
):
4547 if not hasattr(self
,"thisown"): self
.thisown
= 0
4548 self
.__class
__ = DirFilterListCtrl
4549 _controls
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4551 def PreDirFilterListCtrl(*args
, **kwargs
):
4552 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4553 val
= _controls
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4557 #---------------------------------------------------------------------------
4559 class PyControl(core
.Control
):
4561 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4562 def __init__(self
, *args
, **kwargs
):
4564 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4565 long style=0, Validator validator=DefaultValidator,
4566 String name=ControlNameStr) -> PyControl
4568 newobj
= _controls
.new_PyControl(*args
, **kwargs
)
4569 self
.this
= newobj
.this
4572 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4574 def _setCallbackInfo(*args
, **kwargs
):
4575 """_setCallbackInfo(PyObject self, PyObject _class)"""
4576 return _controls
.PyControl__setCallbackInfo(*args
, **kwargs
)
4578 def base_DoMoveWindow(*args
, **kwargs
):
4579 """base_DoMoveWindow(int x, int y, int width, int height)"""
4580 return _controls
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4582 def base_DoSetSize(*args
, **kwargs
):
4583 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4584 return _controls
.PyControl_base_DoSetSize(*args
, **kwargs
)
4586 def base_DoSetClientSize(*args
, **kwargs
):
4587 """base_DoSetClientSize(int width, int height)"""
4588 return _controls
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4590 def base_DoSetVirtualSize(*args
, **kwargs
):
4591 """base_DoSetVirtualSize(int x, int y)"""
4592 return _controls
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4594 def base_DoGetSize(*args
, **kwargs
):
4595 """base_DoGetSize() -> (width, height)"""
4596 return _controls
.PyControl_base_DoGetSize(*args
, **kwargs
)
4598 def base_DoGetClientSize(*args
, **kwargs
):
4599 """base_DoGetClientSize() -> (width, height)"""
4600 return _controls
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4602 def base_DoGetPosition(*args
, **kwargs
):
4603 """base_DoGetPosition() -> (x,y)"""
4604 return _controls
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4606 def base_DoGetVirtualSize(*args
, **kwargs
):
4607 """base_DoGetVirtualSize() -> Size"""
4608 return _controls
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4610 def base_DoGetBestSize(*args
, **kwargs
):
4611 """base_DoGetBestSize() -> Size"""
4612 return _controls
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4614 def base_InitDialog(*args
, **kwargs
):
4615 """base_InitDialog()"""
4616 return _controls
.PyControl_base_InitDialog(*args
, **kwargs
)
4618 def base_TransferDataToWindow(*args
, **kwargs
):
4619 """base_TransferDataToWindow() -> bool"""
4620 return _controls
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4622 def base_TransferDataFromWindow(*args
, **kwargs
):
4623 """base_TransferDataFromWindow() -> bool"""
4624 return _controls
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4626 def base_Validate(*args
, **kwargs
):
4627 """base_Validate() -> bool"""
4628 return _controls
.PyControl_base_Validate(*args
, **kwargs
)
4630 def base_AcceptsFocus(*args
, **kwargs
):
4631 """base_AcceptsFocus() -> bool"""
4632 return _controls
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4634 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4635 """base_AcceptsFocusFromKeyboard() -> bool"""
4636 return _controls
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4638 def base_GetMaxSize(*args
, **kwargs
):
4639 """base_GetMaxSize() -> Size"""
4640 return _controls
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4642 def base_AddChild(*args
, **kwargs
):
4643 """base_AddChild(Window child)"""
4644 return _controls
.PyControl_base_AddChild(*args
, **kwargs
)
4646 def base_RemoveChild(*args
, **kwargs
):
4647 """base_RemoveChild(Window child)"""
4648 return _controls
.PyControl_base_RemoveChild(*args
, **kwargs
)
4651 class PyControlPtr(PyControl
):
4652 def __init__(self
, this
):
4654 if not hasattr(self
,"thisown"): self
.thisown
= 0
4655 self
.__class
__ = PyControl
4656 _controls
.PyControl_swigregister(PyControlPtr
)
4658 #---------------------------------------------------------------------------
4660 FRAME_EX_CONTEXTHELP
= _controls
.FRAME_EX_CONTEXTHELP
4661 DIALOG_EX_CONTEXTHELP
= _controls
.DIALOG_EX_CONTEXTHELP
4662 wxEVT_HELP
= _controls
.wxEVT_HELP
4663 wxEVT_DETAILED_HELP
= _controls
.wxEVT_DETAILED_HELP
4664 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4665 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4666 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4667 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4669 class HelpEvent(core
.CommandEvent
):
4671 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4672 def __init__(self
, *args
, **kwargs
):
4673 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4674 newobj
= _controls
.new_HelpEvent(*args
, **kwargs
)
4675 self
.this
= newobj
.this
4678 def GetPosition(*args
, **kwargs
):
4679 """GetPosition() -> Point"""
4680 return _controls
.HelpEvent_GetPosition(*args
, **kwargs
)
4682 def SetPosition(*args
, **kwargs
):
4683 """SetPosition(Point pos)"""
4684 return _controls
.HelpEvent_SetPosition(*args
, **kwargs
)
4686 def GetLink(*args
, **kwargs
):
4687 """GetLink() -> String"""
4688 return _controls
.HelpEvent_GetLink(*args
, **kwargs
)
4690 def SetLink(*args
, **kwargs
):
4691 """SetLink(String link)"""
4692 return _controls
.HelpEvent_SetLink(*args
, **kwargs
)
4694 def GetTarget(*args
, **kwargs
):
4695 """GetTarget() -> String"""
4696 return _controls
.HelpEvent_GetTarget(*args
, **kwargs
)
4698 def SetTarget(*args
, **kwargs
):
4699 """SetTarget(String target)"""
4700 return _controls
.HelpEvent_SetTarget(*args
, **kwargs
)
4703 class HelpEventPtr(HelpEvent
):
4704 def __init__(self
, this
):
4706 if not hasattr(self
,"thisown"): self
.thisown
= 0
4707 self
.__class
__ = HelpEvent
4708 _controls
.HelpEvent_swigregister(HelpEventPtr
)
4710 class ContextHelp(core
.Object
):
4712 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4713 def __init__(self
, *args
, **kwargs
):
4714 """__init__(Window window=None, bool doNow=True) -> ContextHelp"""
4715 newobj
= _controls
.new_ContextHelp(*args
, **kwargs
)
4716 self
.this
= newobj
.this
4719 def __del__(self
, destroy
=_controls
.delete_ContextHelp
):
4722 if self
.thisown
: destroy(self
)
4725 def BeginContextHelp(*args
, **kwargs
):
4726 """BeginContextHelp(Window window=None) -> bool"""
4727 return _controls
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
4729 def EndContextHelp(*args
, **kwargs
):
4730 """EndContextHelp() -> bool"""
4731 return _controls
.ContextHelp_EndContextHelp(*args
, **kwargs
)
4734 class ContextHelpPtr(ContextHelp
):
4735 def __init__(self
, this
):
4737 if not hasattr(self
,"thisown"): self
.thisown
= 0
4738 self
.__class
__ = ContextHelp
4739 _controls
.ContextHelp_swigregister(ContextHelpPtr
)
4741 class ContextHelpButton(BitmapButton
):
4743 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4744 def __init__(self
, *args
, **kwargs
):
4746 __init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
4747 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
4749 newobj
= _controls
.new_ContextHelpButton(*args
, **kwargs
)
4750 self
.this
= newobj
.this
4753 self
._setOORInfo
(self
)
4756 class ContextHelpButtonPtr(ContextHelpButton
):
4757 def __init__(self
, this
):
4759 if not hasattr(self
,"thisown"): self
.thisown
= 0
4760 self
.__class
__ = ContextHelpButton
4761 _controls
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
4763 class HelpProvider(object):
4764 def __init__(self
): raise RuntimeError, "No constructor defined"
4766 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4767 def Set(*args
, **kwargs
):
4768 """Set(HelpProvider helpProvider) -> HelpProvider"""
4769 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4771 Set
= staticmethod(Set
)
4772 def Get(*args
, **kwargs
):
4773 """Get() -> HelpProvider"""
4774 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4776 Get
= staticmethod(Get
)
4777 def GetHelp(*args
, **kwargs
):
4778 """GetHelp(Window window) -> String"""
4779 return _controls
.HelpProvider_GetHelp(*args
, **kwargs
)
4781 def ShowHelp(*args
, **kwargs
):
4782 """ShowHelp(Window window) -> bool"""
4783 return _controls
.HelpProvider_ShowHelp(*args
, **kwargs
)
4785 def AddHelp(*args
, **kwargs
):
4786 """AddHelp(Window window, String text)"""
4787 return _controls
.HelpProvider_AddHelp(*args
, **kwargs
)
4789 def AddHelpById(*args
, **kwargs
):
4790 """AddHelpById(int id, String text)"""
4791 return _controls
.HelpProvider_AddHelpById(*args
, **kwargs
)
4793 def Destroy(*args
, **kwargs
):
4795 return _controls
.HelpProvider_Destroy(*args
, **kwargs
)
4798 class HelpProviderPtr(HelpProvider
):
4799 def __init__(self
, this
):
4801 if not hasattr(self
,"thisown"): self
.thisown
= 0
4802 self
.__class
__ = HelpProvider
4803 _controls
.HelpProvider_swigregister(HelpProviderPtr
)
4805 def HelpProvider_Set(*args
, **kwargs
):
4806 """HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider"""
4807 return _controls
.HelpProvider_Set(*args
, **kwargs
)
4809 def HelpProvider_Get(*args
, **kwargs
):
4810 """HelpProvider_Get() -> HelpProvider"""
4811 return _controls
.HelpProvider_Get(*args
, **kwargs
)
4813 class SimpleHelpProvider(HelpProvider
):
4815 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4816 def __init__(self
, *args
, **kwargs
):
4817 """__init__() -> SimpleHelpProvider"""
4818 newobj
= _controls
.new_SimpleHelpProvider(*args
, **kwargs
)
4819 self
.this
= newobj
.this
4823 class SimpleHelpProviderPtr(SimpleHelpProvider
):
4824 def __init__(self
, this
):
4826 if not hasattr(self
,"thisown"): self
.thisown
= 0
4827 self
.__class
__ = SimpleHelpProvider
4828 _controls
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
4830 #---------------------------------------------------------------------------
4832 class DragImage(core
.Object
):
4834 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4835 def __init__(self
, *args
, **kwargs
):
4836 """__init__(Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
4837 newobj
= _controls
.new_DragImage(*args
, **kwargs
)
4838 self
.this
= newobj
.this
4841 def __del__(self
, destroy
=_controls
.delete_DragImage
):
4844 if self
.thisown
: destroy(self
)
4847 def SetBackingBitmap(*args
, **kwargs
):
4848 """SetBackingBitmap(Bitmap bitmap)"""
4849 return _controls
.DragImage_SetBackingBitmap(*args
, **kwargs
)
4851 def BeginDrag(*args
, **kwargs
):
4853 BeginDrag(Point hotspot, Window window, bool fullScreen=False,
4854 Rect rect=None) -> bool
4856 return _controls
.DragImage_BeginDrag(*args
, **kwargs
)
4858 def BeginDragBounded(*args
, **kwargs
):
4859 """BeginDragBounded(Point hotspot, Window window, Window boundingWindow) -> bool"""
4860 return _controls
.DragImage_BeginDragBounded(*args
, **kwargs
)
4862 def EndDrag(*args
, **kwargs
):
4863 """EndDrag() -> bool"""
4864 return _controls
.DragImage_EndDrag(*args
, **kwargs
)
4866 def Move(*args
, **kwargs
):
4867 """Move(Point pt) -> bool"""
4868 return _controls
.DragImage_Move(*args
, **kwargs
)
4870 def Show(*args
, **kwargs
):
4871 """Show() -> bool"""
4872 return _controls
.DragImage_Show(*args
, **kwargs
)
4874 def Hide(*args
, **kwargs
):
4875 """Hide() -> bool"""
4876 return _controls
.DragImage_Hide(*args
, **kwargs
)
4878 def GetImageRect(*args
, **kwargs
):
4879 """GetImageRect(Point pos) -> Rect"""
4880 return _controls
.DragImage_GetImageRect(*args
, **kwargs
)
4882 def DoDrawImage(*args
, **kwargs
):
4883 """DoDrawImage(DC dc, Point pos) -> bool"""
4884 return _controls
.DragImage_DoDrawImage(*args
, **kwargs
)
4886 def UpdateBackingFromWindow(*args
, **kwargs
):
4887 """UpdateBackingFromWindow(DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
4888 return _controls
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
4890 def RedrawImage(*args
, **kwargs
):
4891 """RedrawImage(Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
4892 return _controls
.DragImage_RedrawImage(*args
, **kwargs
)
4895 class DragImagePtr(DragImage
):
4896 def __init__(self
, this
):
4898 if not hasattr(self
,"thisown"): self
.thisown
= 0
4899 self
.__class
__ = DragImage
4900 _controls
.DragImage_swigregister(DragImagePtr
)
4902 def DragIcon(*args
, **kwargs
):
4903 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
4904 val
= _controls
.new_DragIcon(*args
, **kwargs
)
4908 def DragString(*args
, **kwargs
):
4909 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
4910 val
= _controls
.new_DragString(*args
, **kwargs
)
4914 def DragTreeItem(*args
, **kwargs
):
4915 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
4916 val
= _controls
.new_DragTreeItem(*args
, **kwargs
)
4920 def DragListItem(*args
, **kwargs
):
4921 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
4922 val
= _controls
.new_DragListItem(*args
, **kwargs
)