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__(self, Window parent, int id=-1, String label=EmptyString,
27 Point pos=DefaultPosition, Size size=DefaultSize,
28 long style=0, Validator validator=DefaultValidator,
29 String name=ButtonNameStr) -> Button
31 Create and show a button.
33 newobj
= _controls_
.new_Button(*args
, **kwargs
)
34 self
.this
= newobj
.this
37 self
._setOORInfo
(self
)
39 def Create(*args
, **kwargs
):
41 Create(self, Window parent, int id=-1, String label=EmptyString,
42 Point pos=DefaultPosition, Size size=DefaultSize,
43 long style=0, Validator validator=DefaultValidator,
44 String name=ButtonNameStr) -> bool
46 Acutally create the GUI Button for 2-phase creation.
48 return _controls_
.Button_Create(*args
, **kwargs
)
50 def SetDefault(*args
, **kwargs
):
54 This sets the button to be the default item for the panel or dialog box.
56 return _controls_
.Button_SetDefault(*args
, **kwargs
)
58 def GetDefaultSize(*args
, **kwargs
):
60 GetDefaultSize() -> Size
62 Returns the default button size for this platform.
64 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
66 GetDefaultSize
= staticmethod(GetDefaultSize
)
67 def GetClassDefaultAttributes(*args
, **kwargs
):
68 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
69 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
71 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
73 class ButtonPtr(Button
):
74 def __init__(self
, this
):
76 if not hasattr(self
,"thisown"): self
.thisown
= 0
77 self
.__class
__ = Button
78 _controls_
.Button_swigregister(ButtonPtr
)
79 cvar
= _controls_
.cvar
80 ButtonNameStr
= cvar
.ButtonNameStr
82 def PreButton(*args
, **kwargs
):
86 Precreate a Button for 2-phase creation.
88 val
= _controls_
.new_PreButton(*args
, **kwargs
)
92 def Button_GetDefaultSize(*args
, **kwargs
):
94 Button_GetDefaultSize() -> Size
96 Returns the default button size for this platform.
98 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
100 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
101 """Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
102 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
104 class BitmapButton(Button
):
106 A Button that contains a bitmap. A bitmap button can be supplied with a
107 single bitmap, and wxWidgets will draw all button states using this bitmap. If
108 the application needs more control, additional bitmaps for the selected state,
109 unpressed focused state, and greyed-out state may be supplied.
112 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
113 def __init__(self
, *args
, **kwargs
):
115 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
116 Point pos=DefaultPosition, Size size=DefaultSize,
117 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
118 String name=ButtonNameStr) -> BitmapButton
120 Create and show a button with a bitmap for the label.
122 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
123 self
.this
= newobj
.this
126 self
._setOORInfo
(self
)
128 def Create(*args
, **kwargs
):
130 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
131 Point pos=DefaultPosition, Size size=DefaultSize,
132 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
133 String name=ButtonNameStr) -> bool
135 Acutally create the GUI BitmapButton for 2-phase creation.
137 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
139 def GetBitmapLabel(*args
, **kwargs
):
141 GetBitmapLabel(self) -> Bitmap
143 Returns the label bitmap (the one passed to the constructor).
145 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
147 def GetBitmapDisabled(*args
, **kwargs
):
149 GetBitmapDisabled(self) -> Bitmap
151 Returns the bitmap for the disabled state.
153 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
155 def GetBitmapFocus(*args
, **kwargs
):
157 GetBitmapFocus(self) -> Bitmap
159 Returns the bitmap for the focused state.
161 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
163 def GetBitmapSelected(*args
, **kwargs
):
165 GetBitmapSelected(self) -> Bitmap
167 Returns the bitmap for the selected state.
169 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
171 def SetBitmapDisabled(*args
, **kwargs
):
173 SetBitmapDisabled(self, Bitmap bitmap)
175 Sets the bitmap for the disabled button appearance.
177 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
179 def SetBitmapFocus(*args
, **kwargs
):
181 SetBitmapFocus(self, Bitmap bitmap)
183 Sets the bitmap for the button appearance when it has the keyboard focus.
185 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
187 def SetBitmapSelected(*args
, **kwargs
):
189 SetBitmapSelected(self, Bitmap bitmap)
191 Sets the bitmap for the selected (depressed) button appearance.
193 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
195 def SetBitmapLabel(*args
, **kwargs
):
197 SetBitmapLabel(self, Bitmap bitmap)
199 Sets the bitmap label for the button. This is the bitmap used for the
200 unselected state, and for all other states if no other bitmaps are provided.
202 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
204 def SetMargins(*args
, **kwargs
):
205 """SetMargins(self, int x, int y)"""
206 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
208 def GetMarginX(*args
, **kwargs
):
209 """GetMarginX(self) -> int"""
210 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
212 def GetMarginY(*args
, **kwargs
):
213 """GetMarginY(self) -> int"""
214 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
217 class BitmapButtonPtr(BitmapButton
):
218 def __init__(self
, this
):
220 if not hasattr(self
,"thisown"): self
.thisown
= 0
221 self
.__class
__ = BitmapButton
222 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
224 def PreBitmapButton(*args
, **kwargs
):
226 PreBitmapButton() -> BitmapButton
228 Precreate a BitmapButton for 2-phase creation.
230 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
234 #---------------------------------------------------------------------------
236 CHK_2STATE
= _controls_
.CHK_2STATE
237 CHK_3STATE
= _controls_
.CHK_3STATE
238 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
239 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
240 CHK_CHECKED
= _controls_
.CHK_CHECKED
241 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
242 class CheckBox(_core
.Control
):
244 A checkbox is a labelled box which by default is either on (the
245 checkmark is visible) or off (no checkmark). Optionally (When the
246 wx.CHK_3STATE style flag is set) it can have a third state, called the
247 mixed or undetermined state. Often this is used as a "Does Not
251 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
252 def __init__(self
, *args
, **kwargs
):
254 __init__(self, Window parent, int id=-1, String label=EmptyString,
255 Point pos=DefaultPosition, Size size=DefaultSize,
256 long style=0, Validator validator=DefaultValidator,
257 String name=CheckBoxNameStr) -> CheckBox
259 Creates and shows a CheckBox control
261 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
262 self
.this
= newobj
.this
265 self
._setOORInfo
(self
)
267 def Create(*args
, **kwargs
):
269 Create(self, Window parent, int id=-1, String label=EmptyString,
270 Point pos=DefaultPosition, Size size=DefaultSize,
271 long style=0, Validator validator=DefaultValidator,
272 String name=CheckBoxNameStr) -> bool
274 Actually create the GUI CheckBox for 2-phase creation.
276 return _controls_
.CheckBox_Create(*args
, **kwargs
)
278 def GetValue(*args
, **kwargs
):
280 GetValue(self) -> bool
282 Gets the state of a 2-state CheckBox. Returns True if it is checked,
285 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
287 def IsChecked(*args
, **kwargs
):
289 IsChecked(self) -> bool
291 Similar to GetValue, but raises an exception if it is not a 2-state
294 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
296 def SetValue(*args
, **kwargs
):
298 SetValue(self, bool state)
300 Set the state of a 2-state CheckBox. Pass True for checked, False for
303 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
305 def Get3StateValue(*args
, **kwargs
):
307 Get3StateValue(self) -> int
309 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
310 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
311 the undetermined state. Raises an exceptiion when the function is
312 used with a 2-state CheckBox.
314 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
316 def Set3StateValue(*args
, **kwargs
):
318 Set3StateValue(self, int state)
320 Sets the CheckBox to the given state. The state parameter can be one
321 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
322 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
323 exception when the CheckBox is a 2-state checkbox and setting the
324 state to wx.CHK_UNDETERMINED.
326 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
328 def Is3State(*args
, **kwargs
):
330 Is3State(self) -> bool
332 Returns whether or not the CheckBox is a 3-state CheckBox.
334 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
336 def Is3rdStateAllowedForUser(*args
, **kwargs
):
338 Is3rdStateAllowedForUser(self) -> bool
340 Returns whether or not the user can set the CheckBox to the third
343 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
345 def GetClassDefaultAttributes(*args
, **kwargs
):
346 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
347 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
349 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
351 class CheckBoxPtr(CheckBox
):
352 def __init__(self
, this
):
354 if not hasattr(self
,"thisown"): self
.thisown
= 0
355 self
.__class
__ = CheckBox
356 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
357 CheckBoxNameStr
= cvar
.CheckBoxNameStr
359 def PreCheckBox(*args
, **kwargs
):
361 PreCheckBox() -> CheckBox
363 Precreate a CheckBox for 2-phase creation.
365 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
369 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
370 """CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
371 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
373 #---------------------------------------------------------------------------
375 class Choice(_core
.ControlWithItems
):
377 A Choice control is used to select one of a list of strings.
378 Unlike a `wx.ListBox`, only the selection is visible until the
379 user pulls down the menu of choices.
382 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
383 def __init__(self
, *args
, **kwargs
):
385 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
386 List choices=[], long style=0, Validator validator=DefaultValidator,
387 String name=ChoiceNameStr) -> Choice
389 Create and show a Choice control
391 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
392 self
.this
= newobj
.this
395 self
._setOORInfo
(self
)
397 def Create(*args
, **kwargs
):
399 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
400 List choices=[], long style=0, Validator validator=DefaultValidator,
401 String name=ChoiceNameStr) -> bool
403 Actually create the GUI Choice control for 2-phase creation
405 return _controls_
.Choice_Create(*args
, **kwargs
)
407 def SetSelection(*args
, **kwargs
):
409 SetSelection(self, int n)
411 Select the n'th item (zero based) in the list.
413 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
415 def SetStringSelection(*args
, **kwargs
):
417 SetStringSelection(self, String string) -> bool
419 Select the item with the specifed string
421 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
423 def SetString(*args
, **kwargs
):
425 SetString(self, int n, String string)
427 Set the label for the n'th item (zero based) in the list.
429 return _controls_
.Choice_SetString(*args
, **kwargs
)
431 Select
= SetSelection
432 def GetClassDefaultAttributes(*args
, **kwargs
):
433 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
434 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
436 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
438 class ChoicePtr(Choice
):
439 def __init__(self
, this
):
441 if not hasattr(self
,"thisown"): self
.thisown
= 0
442 self
.__class
__ = Choice
443 _controls_
.Choice_swigregister(ChoicePtr
)
444 ChoiceNameStr
= cvar
.ChoiceNameStr
446 def PreChoice(*args
, **kwargs
):
448 PreChoice() -> Choice
450 Precreate a Choice control for 2-phase creation.
452 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
456 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
457 """Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
458 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
460 #---------------------------------------------------------------------------
462 class ComboBox(Choice
):
464 A combobox is like a combination of an edit control and a
465 listbox. It can be displayed as static list with editable or
466 read-only text field; or a drop-down list with text field.
468 A combobox permits a single selection only. Combobox items are
472 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
473 def __init__(self
, *args
, **kwargs
):
475 __init__(Window parent, int id, String value=EmptyString,
476 Point pos=DefaultPosition, Size size=DefaultSize,
477 List choices=[], long style=0, Validator validator=DefaultValidator,
478 String name=ComboBoxNameStr) -> ComboBox
480 Constructor, creates and shows a ComboBox control.
482 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
483 self
.this
= newobj
.this
486 self
._setOORInfo
(self
)
488 def Create(*args
, **kwargs
):
490 Create(Window parent, int id, String value=EmptyString,
491 Point pos=DefaultPosition, Size size=DefaultSize,
492 List choices=[], long style=0, Validator validator=DefaultValidator,
493 String name=ChoiceNameStr) -> bool
495 Actually create the GUI wxComboBox control for 2-phase creation
497 return _controls_
.ComboBox_Create(*args
, **kwargs
)
499 def GetValue(*args
, **kwargs
):
501 GetValue(self) -> String
503 Returns the current value in the combobox text field.
505 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
507 def SetValue(*args
, **kwargs
):
508 """SetValue(self, String value)"""
509 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
511 def Copy(*args
, **kwargs
):
515 Copies the selected text to the clipboard.
517 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
519 def Cut(*args
, **kwargs
):
523 Copies the selected text to the clipboard and removes the selection.
525 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
527 def Paste(*args
, **kwargs
):
531 Pastes text from the clipboard to the text field.
533 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
535 def SetInsertionPoint(*args
, **kwargs
):
537 SetInsertionPoint(self, long pos)
539 Sets the insertion point in the combobox text field.
541 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
543 def GetInsertionPoint(*args
, **kwargs
):
545 GetInsertionPoint(self) -> long
547 Returns the insertion point for the combobox's text field.
549 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
551 def GetLastPosition(*args
, **kwargs
):
553 GetLastPosition(self) -> long
555 Returns the last position in the combobox text field.
557 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
559 def Replace(*args
, **kwargs
):
561 Replace(self, long from, long to, String value)
563 Replaces the text between two positions with the given text, in the
566 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
568 def SetSelection(*args
, **kwargs
):
570 SetSelection(self, int n)
572 Sets the item at index 'n' to be the selected item.
574 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
576 def SetMark(*args
, **kwargs
):
578 SetMark(self, long from, long to)
580 Selects the text between the two positions in the combobox text field.
582 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
584 def SetStringSelection(*args
, **kwargs
):
586 SetStringSelection(self, String string) -> bool
588 Select the item with the specifed string
590 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
592 def SetString(*args
, **kwargs
):
594 SetString(self, int n, String string)
596 Set the label for the n'th item (zero based) in the list.
598 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
600 def SetEditable(*args
, **kwargs
):
601 """SetEditable(self, bool editable)"""
602 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
604 def SetInsertionPointEnd(*args
, **kwargs
):
606 SetInsertionPointEnd(self)
608 Sets the insertion point at the end of the combobox text field.
610 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
612 def Remove(*args
, **kwargs
):
614 Remove(self, long from, long to)
616 Removes the text between the two positions in the combobox text field.
618 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
620 def GetClassDefaultAttributes(*args
, **kwargs
):
621 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
622 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
624 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
626 class ComboBoxPtr(ComboBox
):
627 def __init__(self
, this
):
629 if not hasattr(self
,"thisown"): self
.thisown
= 0
630 self
.__class
__ = ComboBox
631 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
632 ComboBoxNameStr
= cvar
.ComboBoxNameStr
634 def PreComboBox(*args
, **kwargs
):
636 PreComboBox() -> ComboBox
638 Precreate a ComboBox control for 2-phase creation.
640 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
644 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
645 """ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
646 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
648 #---------------------------------------------------------------------------
650 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
651 GA_VERTICAL
= _controls_
.GA_VERTICAL
652 GA_SMOOTH
= _controls_
.GA_SMOOTH
653 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
654 class Gauge(_core
.Control
):
656 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
657 def __init__(self
, *args
, **kwargs
):
659 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
660 Size size=DefaultSize, long style=GA_HORIZONTAL,
661 Validator validator=DefaultValidator,
662 String name=GaugeNameStr) -> Gauge
664 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
665 self
.this
= newobj
.this
668 self
._setOORInfo
(self
)
670 def Create(*args
, **kwargs
):
672 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
673 Size size=DefaultSize, long style=GA_HORIZONTAL,
674 Validator validator=DefaultValidator,
675 String name=GaugeNameStr) -> bool
677 return _controls_
.Gauge_Create(*args
, **kwargs
)
679 def SetRange(*args
, **kwargs
):
680 """SetRange(self, int range)"""
681 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
683 def GetRange(*args
, **kwargs
):
684 """GetRange(self) -> int"""
685 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
687 def SetValue(*args
, **kwargs
):
688 """SetValue(self, int pos)"""
689 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
691 def GetValue(*args
, **kwargs
):
692 """GetValue(self) -> int"""
693 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
695 def IsVertical(*args
, **kwargs
):
696 """IsVertical(self) -> bool"""
697 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
699 def SetShadowWidth(*args
, **kwargs
):
700 """SetShadowWidth(self, int w)"""
701 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
703 def GetShadowWidth(*args
, **kwargs
):
704 """GetShadowWidth(self) -> int"""
705 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
707 def SetBezelFace(*args
, **kwargs
):
708 """SetBezelFace(self, int w)"""
709 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
711 def GetBezelFace(*args
, **kwargs
):
712 """GetBezelFace(self) -> int"""
713 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
715 def GetClassDefaultAttributes(*args
, **kwargs
):
716 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
717 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
719 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
721 class GaugePtr(Gauge
):
722 def __init__(self
, this
):
724 if not hasattr(self
,"thisown"): self
.thisown
= 0
725 self
.__class
__ = Gauge
726 _controls_
.Gauge_swigregister(GaugePtr
)
727 GaugeNameStr
= cvar
.GaugeNameStr
729 def PreGauge(*args
, **kwargs
):
730 """PreGauge() -> Gauge"""
731 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
735 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
736 """Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
737 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
739 #---------------------------------------------------------------------------
741 class StaticBox(_core
.Control
):
743 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
744 def __init__(self
, *args
, **kwargs
):
746 __init__(self, Window parent, int id=-1, String label=EmptyString,
747 Point pos=DefaultPosition, Size size=DefaultSize,
748 long style=0, String name=StaticBoxNameStr) -> StaticBox
750 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
751 self
.this
= newobj
.this
754 self
._setOORInfo
(self
)
756 def Create(*args
, **kwargs
):
758 Create(self, Window parent, int id=-1, String label=EmptyString,
759 Point pos=DefaultPosition, Size size=DefaultSize,
760 long style=0, String name=StaticBoxNameStr) -> bool
762 return _controls_
.StaticBox_Create(*args
, **kwargs
)
764 def GetClassDefaultAttributes(*args
, **kwargs
):
765 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
766 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
768 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
770 class StaticBoxPtr(StaticBox
):
771 def __init__(self
, this
):
773 if not hasattr(self
,"thisown"): self
.thisown
= 0
774 self
.__class
__ = StaticBox
775 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
776 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
777 StaticBoxNameStr
= cvar
.StaticBoxNameStr
778 StaticTextNameStr
= cvar
.StaticTextNameStr
780 def PreStaticBox(*args
, **kwargs
):
781 """PreStaticBox() -> StaticBox"""
782 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
786 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
787 """StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
788 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
790 #---------------------------------------------------------------------------
792 class StaticLine(_core
.Control
):
794 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
795 def __init__(self
, *args
, **kwargs
):
797 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
798 Size size=DefaultSize, long style=LI_HORIZONTAL,
799 String name=StaticTextNameStr) -> StaticLine
801 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
802 self
.this
= newobj
.this
805 self
._setOORInfo
(self
)
807 def Create(*args
, **kwargs
):
809 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
810 Size size=DefaultSize, long style=LI_HORIZONTAL,
811 String name=StaticTextNameStr) -> bool
813 return _controls_
.StaticLine_Create(*args
, **kwargs
)
815 def IsVertical(*args
, **kwargs
):
816 """IsVertical(self) -> bool"""
817 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
819 def GetDefaultSize(*args
, **kwargs
):
820 """GetDefaultSize() -> int"""
821 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
823 GetDefaultSize
= staticmethod(GetDefaultSize
)
824 def GetClassDefaultAttributes(*args
, **kwargs
):
825 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
826 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
828 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
830 class StaticLinePtr(StaticLine
):
831 def __init__(self
, this
):
833 if not hasattr(self
,"thisown"): self
.thisown
= 0
834 self
.__class
__ = StaticLine
835 _controls_
.StaticLine_swigregister(StaticLinePtr
)
837 def PreStaticLine(*args
, **kwargs
):
838 """PreStaticLine() -> StaticLine"""
839 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
843 def StaticLine_GetDefaultSize(*args
, **kwargs
):
844 """StaticLine_GetDefaultSize() -> int"""
845 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
847 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
848 """StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
849 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
851 #---------------------------------------------------------------------------
853 class StaticText(_core
.Control
):
855 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
856 def __init__(self
, *args
, **kwargs
):
858 __init__(self, Window parent, int id=-1, String label=EmptyString,
859 Point pos=DefaultPosition, Size size=DefaultSize,
860 long style=0, String name=StaticTextNameStr) -> StaticText
862 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
863 self
.this
= newobj
.this
866 self
._setOORInfo
(self
)
868 def Create(*args
, **kwargs
):
870 Create(self, Window parent, int id=-1, String label=EmptyString,
871 Point pos=DefaultPosition, Size size=DefaultSize,
872 long style=0, String name=StaticTextNameStr) -> bool
874 return _controls_
.StaticText_Create(*args
, **kwargs
)
876 def GetClassDefaultAttributes(*args
, **kwargs
):
877 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
878 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
880 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
882 class StaticTextPtr(StaticText
):
883 def __init__(self
, this
):
885 if not hasattr(self
,"thisown"): self
.thisown
= 0
886 self
.__class
__ = StaticText
887 _controls_
.StaticText_swigregister(StaticTextPtr
)
889 def PreStaticText(*args
, **kwargs
):
890 """PreStaticText() -> StaticText"""
891 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
895 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
896 """StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
897 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
899 #---------------------------------------------------------------------------
901 class StaticBitmap(_core
.Control
):
903 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
904 def __init__(self
, *args
, **kwargs
):
906 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
907 Point pos=DefaultPosition, Size size=DefaultSize,
908 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
910 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
911 self
.this
= newobj
.this
914 self
._setOORInfo
(self
)
916 def Create(*args
, **kwargs
):
918 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
919 Point pos=DefaultPosition, Size size=DefaultSize,
920 long style=0, String name=StaticBitmapNameStr) -> bool
922 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
924 def GetBitmap(*args
, **kwargs
):
925 """GetBitmap(self) -> Bitmap"""
926 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
928 def SetBitmap(*args
, **kwargs
):
929 """SetBitmap(self, Bitmap bitmap)"""
930 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
932 def SetIcon(*args
, **kwargs
):
933 """SetIcon(self, Icon icon)"""
934 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
936 def GetClassDefaultAttributes(*args
, **kwargs
):
937 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
938 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
940 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
942 class StaticBitmapPtr(StaticBitmap
):
943 def __init__(self
, this
):
945 if not hasattr(self
,"thisown"): self
.thisown
= 0
946 self
.__class
__ = StaticBitmap
947 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
949 def PreStaticBitmap(*args
, **kwargs
):
950 """PreStaticBitmap() -> StaticBitmap"""
951 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
955 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
956 """StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
957 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
959 #---------------------------------------------------------------------------
961 class ListBox(_core
.ControlWithItems
):
963 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
964 def __init__(self
, *args
, **kwargs
):
966 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
967 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
968 long style=0, Validator validator=DefaultValidator,
969 String name=ListBoxNameStr) -> ListBox
971 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
972 self
.this
= newobj
.this
975 self
._setOORInfo
(self
)
977 def Create(*args
, **kwargs
):
979 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
980 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
981 long style=0, Validator validator=DefaultValidator,
982 String name=ListBoxNameStr) -> bool
984 return _controls_
.ListBox_Create(*args
, **kwargs
)
986 def Insert(*args
, **kwargs
):
988 Insert(self, String item, int pos, PyObject clientData=None)
990 Insert an item into the control before the item at the ``pos`` index,
991 optionally associating some data object with the item.
993 return _controls_
.ListBox_Insert(*args
, **kwargs
)
995 def InsertItems(*args
, **kwargs
):
996 """InsertItems(self, wxArrayString items, int pos)"""
997 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
999 def Set(*args
, **kwargs
):
1000 """Set(self, wxArrayString items)"""
1001 return _controls_
.ListBox_Set(*args
, **kwargs
)
1003 def IsSelected(*args
, **kwargs
):
1004 """IsSelected(self, int n) -> bool"""
1005 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1007 def SetSelection(*args
, **kwargs
):
1008 """SetSelection(self, int n, bool select=True)"""
1009 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1011 def Select(*args
, **kwargs
):
1015 Sets the item at index 'n' to be the selected item.
1017 return _controls_
.ListBox_Select(*args
, **kwargs
)
1019 def Deselect(*args
, **kwargs
):
1020 """Deselect(self, int n)"""
1021 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1023 def DeselectAll(*args
, **kwargs
):
1024 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1025 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1027 def SetStringSelection(*args
, **kwargs
):
1028 """SetStringSelection(self, String s, bool select=True) -> bool"""
1029 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1031 def GetSelections(*args
, **kwargs
):
1032 """GetSelections(self) -> PyObject"""
1033 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1035 def SetFirstItem(*args
, **kwargs
):
1036 """SetFirstItem(self, int n)"""
1037 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1039 def SetFirstItemStr(*args
, **kwargs
):
1040 """SetFirstItemStr(self, String s)"""
1041 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1043 def EnsureVisible(*args
, **kwargs
):
1044 """EnsureVisible(self, int n)"""
1045 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1047 def AppendAndEnsureVisible(*args
, **kwargs
):
1048 """AppendAndEnsureVisible(self, String s)"""
1049 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1051 def IsSorted(*args
, **kwargs
):
1052 """IsSorted(self) -> bool"""
1053 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1055 def SetItemForegroundColour(*args
, **kwargs
):
1056 """SetItemForegroundColour(self, int item, Colour c)"""
1057 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1059 def SetItemBackgroundColour(*args
, **kwargs
):
1060 """SetItemBackgroundColour(self, int item, Colour c)"""
1061 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1063 def SetItemFont(*args
, **kwargs
):
1064 """SetItemFont(self, int item, Font f)"""
1065 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1067 def GetClassDefaultAttributes(*args
, **kwargs
):
1068 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1069 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1071 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1073 class ListBoxPtr(ListBox
):
1074 def __init__(self
, this
):
1076 if not hasattr(self
,"thisown"): self
.thisown
= 0
1077 self
.__class
__ = ListBox
1078 _controls_
.ListBox_swigregister(ListBoxPtr
)
1079 ListBoxNameStr
= cvar
.ListBoxNameStr
1081 def PreListBox(*args
, **kwargs
):
1082 """PreListBox() -> ListBox"""
1083 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1087 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1088 """ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1089 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1091 #---------------------------------------------------------------------------
1093 class CheckListBox(ListBox
):
1095 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1096 def __init__(self
, *args
, **kwargs
):
1098 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1099 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1100 long style=0, Validator validator=DefaultValidator,
1101 String name=ListBoxNameStr) -> CheckListBox
1103 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1104 self
.this
= newobj
.this
1107 self
._setOORInfo
(self
)
1109 def Create(*args
, **kwargs
):
1111 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1112 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1113 long style=0, Validator validator=DefaultValidator,
1114 String name=ListBoxNameStr) -> bool
1116 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1118 def IsChecked(*args
, **kwargs
):
1119 """IsChecked(self, int index) -> bool"""
1120 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1122 def Check(*args
, **kwargs
):
1123 """Check(self, int index, int check=True)"""
1124 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1126 def GetItemHeight(*args
, **kwargs
):
1127 """GetItemHeight(self) -> int"""
1128 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1130 def HitTest(*args
, **kwargs
):
1132 HitTest(self, Point pt) -> int
1134 Test where the given (in client coords) point lies
1136 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1138 def HitTestXY(*args
, **kwargs
):
1140 HitTestXY(self, int x, int y) -> int
1142 Test where the given (in client coords) point lies
1144 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1147 class CheckListBoxPtr(CheckListBox
):
1148 def __init__(self
, this
):
1150 if not hasattr(self
,"thisown"): self
.thisown
= 0
1151 self
.__class
__ = CheckListBox
1152 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1154 def PreCheckListBox(*args
, **kwargs
):
1155 """PreCheckListBox() -> CheckListBox"""
1156 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1160 #---------------------------------------------------------------------------
1162 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1163 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1164 TE_READONLY
= _controls_
.TE_READONLY
1165 TE_MULTILINE
= _controls_
.TE_MULTILINE
1166 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1167 TE_LEFT
= _controls_
.TE_LEFT
1168 TE_CENTER
= _controls_
.TE_CENTER
1169 TE_RIGHT
= _controls_
.TE_RIGHT
1170 TE_CENTRE
= _controls_
.TE_CENTRE
1171 TE_RICH
= _controls_
.TE_RICH
1172 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1173 TE_PASSWORD
= _controls_
.TE_PASSWORD
1174 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1175 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1176 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1177 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1178 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1179 TE_RICH2
= _controls_
.TE_RICH2
1180 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1181 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1182 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1183 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1184 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1185 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1186 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1187 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1188 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1189 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1190 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1191 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1192 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1193 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1194 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1195 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1196 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1197 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1198 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1199 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1200 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1201 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1202 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1203 class TextAttr(object):
1205 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1206 def __init__(self
, *args
, **kwargs
):
1208 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1209 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1211 newobj
= _controls_
.new_TextAttr(*args
, **kwargs
)
1212 self
.this
= newobj
.this
1215 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1218 if self
.thisown
: destroy(self
)
1221 def Init(*args
, **kwargs
):
1223 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1225 def SetTextColour(*args
, **kwargs
):
1226 """SetTextColour(self, Colour colText)"""
1227 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1229 def SetBackgroundColour(*args
, **kwargs
):
1230 """SetBackgroundColour(self, Colour colBack)"""
1231 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1233 def SetFont(*args
, **kwargs
):
1234 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1235 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1237 def SetAlignment(*args
, **kwargs
):
1238 """SetAlignment(self, int alignment)"""
1239 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1241 def SetTabs(*args
, **kwargs
):
1242 """SetTabs(self, wxArrayInt tabs)"""
1243 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1245 def SetLeftIndent(*args
, **kwargs
):
1246 """SetLeftIndent(self, int indent, int subIndent=0)"""
1247 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1249 def SetRightIndent(*args
, **kwargs
):
1250 """SetRightIndent(self, int indent)"""
1251 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1253 def SetFlags(*args
, **kwargs
):
1254 """SetFlags(self, long flags)"""
1255 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1257 def HasTextColour(*args
, **kwargs
):
1258 """HasTextColour(self) -> bool"""
1259 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1261 def HasBackgroundColour(*args
, **kwargs
):
1262 """HasBackgroundColour(self) -> bool"""
1263 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1265 def HasFont(*args
, **kwargs
):
1266 """HasFont(self) -> bool"""
1267 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1269 def HasAlignment(*args
, **kwargs
):
1270 """HasAlignment(self) -> bool"""
1271 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1273 def HasTabs(*args
, **kwargs
):
1274 """HasTabs(self) -> bool"""
1275 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1277 def HasLeftIndent(*args
, **kwargs
):
1278 """HasLeftIndent(self) -> bool"""
1279 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1281 def HasRightIndent(*args
, **kwargs
):
1282 """HasRightIndent(self) -> bool"""
1283 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1285 def HasFlag(*args
, **kwargs
):
1286 """HasFlag(self, long flag) -> bool"""
1287 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1289 def GetTextColour(*args
, **kwargs
):
1290 """GetTextColour(self) -> Colour"""
1291 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1293 def GetBackgroundColour(*args
, **kwargs
):
1294 """GetBackgroundColour(self) -> Colour"""
1295 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1297 def GetFont(*args
, **kwargs
):
1298 """GetFont(self) -> Font"""
1299 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1301 def GetAlignment(*args
, **kwargs
):
1302 """GetAlignment(self) -> int"""
1303 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1305 def GetTabs(*args
, **kwargs
):
1306 """GetTabs(self) -> wxArrayInt"""
1307 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1309 def GetLeftIndent(*args
, **kwargs
):
1310 """GetLeftIndent(self) -> long"""
1311 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1313 def GetLeftSubIndent(*args
, **kwargs
):
1314 """GetLeftSubIndent(self) -> long"""
1315 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1317 def GetRightIndent(*args
, **kwargs
):
1318 """GetRightIndent(self) -> long"""
1319 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1321 def GetFlags(*args
, **kwargs
):
1322 """GetFlags(self) -> long"""
1323 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1325 def IsDefault(*args
, **kwargs
):
1326 """IsDefault(self) -> bool"""
1327 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1329 def Combine(*args
, **kwargs
):
1330 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1331 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1333 Combine
= staticmethod(Combine
)
1335 class TextAttrPtr(TextAttr
):
1336 def __init__(self
, this
):
1338 if not hasattr(self
,"thisown"): self
.thisown
= 0
1339 self
.__class
__ = TextAttr
1340 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1341 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1343 def TextAttr_Combine(*args
, **kwargs
):
1344 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1345 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1347 class TextCtrl(_core
.Control
):
1349 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1350 def __init__(self
, *args
, **kwargs
):
1352 __init__(self, Window parent, int id=-1, String value=EmptyString,
1353 Point pos=DefaultPosition, Size size=DefaultSize,
1354 long style=0, Validator validator=DefaultValidator,
1355 String name=TextCtrlNameStr) -> TextCtrl
1357 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1358 self
.this
= newobj
.this
1361 self
._setOORInfo
(self
)
1363 def Create(*args
, **kwargs
):
1365 Create(self, Window parent, int id=-1, String value=EmptyString,
1366 Point pos=DefaultPosition, Size size=DefaultSize,
1367 long style=0, Validator validator=DefaultValidator,
1368 String name=TextCtrlNameStr) -> bool
1370 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1372 def GetValue(*args
, **kwargs
):
1373 """GetValue(self) -> String"""
1374 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1376 def SetValue(*args
, **kwargs
):
1377 """SetValue(self, String value)"""
1378 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1380 def GetRange(*args
, **kwargs
):
1381 """GetRange(self, long from, long to) -> String"""
1382 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1384 def GetLineLength(*args
, **kwargs
):
1385 """GetLineLength(self, long lineNo) -> int"""
1386 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1388 def GetLineText(*args
, **kwargs
):
1389 """GetLineText(self, long lineNo) -> String"""
1390 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1392 def GetNumberOfLines(*args
, **kwargs
):
1393 """GetNumberOfLines(self) -> int"""
1394 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1396 def IsModified(*args
, **kwargs
):
1397 """IsModified(self) -> bool"""
1398 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1400 def IsEditable(*args
, **kwargs
):
1401 """IsEditable(self) -> bool"""
1402 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1404 def IsSingleLine(*args
, **kwargs
):
1405 """IsSingleLine(self) -> bool"""
1406 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1408 def IsMultiLine(*args
, **kwargs
):
1409 """IsMultiLine(self) -> bool"""
1410 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1412 def GetSelection(*args
, **kwargs
):
1414 GetSelection() -> (from, to)
1416 If the return values from and to are the same, there is no selection.
1418 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1420 def GetStringSelection(*args
, **kwargs
):
1421 """GetStringSelection(self) -> String"""
1422 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1424 def Clear(*args
, **kwargs
):
1426 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1428 def Replace(*args
, **kwargs
):
1429 """Replace(self, long from, long to, String value)"""
1430 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1432 def Remove(*args
, **kwargs
):
1433 """Remove(self, long from, long to)"""
1434 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1436 def LoadFile(*args
, **kwargs
):
1437 """LoadFile(self, String file) -> bool"""
1438 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1440 def SaveFile(*args
, **kwargs
):
1441 """SaveFile(self, String file=EmptyString) -> bool"""
1442 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1444 def MarkDirty(*args
, **kwargs
):
1445 """MarkDirty(self)"""
1446 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1448 def DiscardEdits(*args
, **kwargs
):
1449 """DiscardEdits(self)"""
1450 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1452 def SetMaxLength(*args
, **kwargs
):
1453 """SetMaxLength(self, unsigned long len)"""
1454 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1456 def WriteText(*args
, **kwargs
):
1457 """WriteText(self, String text)"""
1458 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1460 def AppendText(*args
, **kwargs
):
1461 """AppendText(self, String text)"""
1462 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1464 def EmulateKeyPress(*args
, **kwargs
):
1465 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1466 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1468 def SetStyle(*args
, **kwargs
):
1469 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1470 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1472 def GetStyle(*args
, **kwargs
):
1473 """GetStyle(self, long position, TextAttr style) -> bool"""
1474 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1476 def SetDefaultStyle(*args
, **kwargs
):
1477 """SetDefaultStyle(self, TextAttr style) -> bool"""
1478 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1480 def GetDefaultStyle(*args
, **kwargs
):
1481 """GetDefaultStyle(self) -> TextAttr"""
1482 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1484 def XYToPosition(*args
, **kwargs
):
1485 """XYToPosition(self, long x, long y) -> long"""
1486 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1488 def PositionToXY(*args
, **kwargs
):
1489 """PositionToXY(long pos) -> (x, y)"""
1490 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1492 def ShowPosition(*args
, **kwargs
):
1493 """ShowPosition(self, long pos)"""
1494 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1496 def HitTest(*args
, **kwargs
):
1498 HitTest(Point pt) -> (result, row, col)
1500 Find the character at position given in pixels. NB: pt is in device
1501 coords but is not adjusted for the client area origin nor scrolling
1503 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1505 def Copy(*args
, **kwargs
):
1507 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1509 def Cut(*args
, **kwargs
):
1511 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1513 def Paste(*args
, **kwargs
):
1515 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1517 def CanCopy(*args
, **kwargs
):
1518 """CanCopy(self) -> bool"""
1519 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1521 def CanCut(*args
, **kwargs
):
1522 """CanCut(self) -> bool"""
1523 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1525 def CanPaste(*args
, **kwargs
):
1526 """CanPaste(self) -> bool"""
1527 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1529 def Undo(*args
, **kwargs
):
1531 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1533 def Redo(*args
, **kwargs
):
1535 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1537 def CanUndo(*args
, **kwargs
):
1538 """CanUndo(self) -> bool"""
1539 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1541 def CanRedo(*args
, **kwargs
):
1542 """CanRedo(self) -> bool"""
1543 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1545 def SetInsertionPoint(*args
, **kwargs
):
1546 """SetInsertionPoint(self, long pos)"""
1547 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1549 def SetInsertionPointEnd(*args
, **kwargs
):
1550 """SetInsertionPointEnd(self)"""
1551 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1553 def GetInsertionPoint(*args
, **kwargs
):
1554 """GetInsertionPoint(self) -> long"""
1555 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1557 def GetLastPosition(*args
, **kwargs
):
1558 """GetLastPosition(self) -> long"""
1559 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1561 def SetSelection(*args
, **kwargs
):
1562 """SetSelection(self, long from, long to)"""
1563 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1565 def SelectAll(*args
, **kwargs
):
1566 """SelectAll(self)"""
1567 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1569 def SetEditable(*args
, **kwargs
):
1570 """SetEditable(self, bool editable)"""
1571 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1573 def ShowNativeCaret(*args
, **kwargs
):
1574 """ShowNativeCaret(self, bool show=True) -> bool"""
1575 return _controls_
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1577 def HideNativeCaret(*args
, **kwargs
):
1578 """HideNativeCaret(self) -> bool"""
1579 return _controls_
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1581 def write(*args
, **kwargs
):
1582 """write(self, String text)"""
1583 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1585 def GetString(*args
, **kwargs
):
1586 """GetString(self, long from, long to) -> String"""
1587 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1589 def GetClassDefaultAttributes(*args
, **kwargs
):
1590 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1591 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1593 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1595 class TextCtrlPtr(TextCtrl
):
1596 def __init__(self
, this
):
1598 if not hasattr(self
,"thisown"): self
.thisown
= 0
1599 self
.__class
__ = TextCtrl
1600 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
1602 def PreTextCtrl(*args
, **kwargs
):
1603 """PreTextCtrl() -> TextCtrl"""
1604 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1608 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1609 """TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1610 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1612 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1613 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1614 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1615 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1616 class TextUrlEvent(_core
.CommandEvent
):
1618 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1619 def __init__(self
, *args
, **kwargs
):
1620 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1621 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
1622 self
.this
= newobj
.this
1625 def GetMouseEvent(*args
, **kwargs
):
1626 """GetMouseEvent(self) -> MouseEvent"""
1627 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1629 def GetURLStart(*args
, **kwargs
):
1630 """GetURLStart(self) -> long"""
1631 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1633 def GetURLEnd(*args
, **kwargs
):
1634 """GetURLEnd(self) -> long"""
1635 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1638 class TextUrlEventPtr(TextUrlEvent
):
1639 def __init__(self
, this
):
1641 if not hasattr(self
,"thisown"): self
.thisown
= 0
1642 self
.__class
__ = TextUrlEvent
1643 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1645 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1646 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1647 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1648 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1650 #---------------------------------------------------------------------------
1652 class ScrollBar(_core
.Control
):
1654 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1655 def __init__(self
, *args
, **kwargs
):
1657 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1658 Size size=DefaultSize, long style=SB_HORIZONTAL,
1659 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1661 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
1662 self
.this
= newobj
.this
1665 self
._setOORInfo
(self
)
1667 def Create(*args
, **kwargs
):
1669 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1670 Size size=DefaultSize, long style=SB_HORIZONTAL,
1671 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1673 Do the 2nd phase and create the GUI control.
1675 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1677 def GetThumbPosition(*args
, **kwargs
):
1678 """GetThumbPosition(self) -> int"""
1679 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1681 def GetThumbSize(*args
, **kwargs
):
1682 """GetThumbSize(self) -> int"""
1683 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1685 GetThumbLength
= GetThumbSize
1686 def GetPageSize(*args
, **kwargs
):
1687 """GetPageSize(self) -> int"""
1688 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
1690 def GetRange(*args
, **kwargs
):
1691 """GetRange(self) -> int"""
1692 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
1694 def IsVertical(*args
, **kwargs
):
1695 """IsVertical(self) -> bool"""
1696 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
1698 def SetThumbPosition(*args
, **kwargs
):
1699 """SetThumbPosition(self, int viewStart)"""
1700 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1702 def SetScrollbar(*args
, **kwargs
):
1704 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
1707 Sets the scrollbar properties of a built-in scrollbar.
1709 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1711 def GetClassDefaultAttributes(*args
, **kwargs
):
1712 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1713 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
1715 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1717 class ScrollBarPtr(ScrollBar
):
1718 def __init__(self
, this
):
1720 if not hasattr(self
,"thisown"): self
.thisown
= 0
1721 self
.__class
__ = ScrollBar
1722 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
1723 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1725 def PreScrollBar(*args
, **kwargs
):
1726 """PreScrollBar() -> ScrollBar"""
1727 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
1731 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
1732 """ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1733 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
1735 #---------------------------------------------------------------------------
1737 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
1738 SP_VERTICAL
= _controls_
.SP_VERTICAL
1739 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
1740 SP_WRAP
= _controls_
.SP_WRAP
1741 class SpinButton(_core
.Control
):
1743 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1744 def __init__(self
, *args
, **kwargs
):
1746 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1747 Size size=DefaultSize, long style=SP_HORIZONTAL,
1748 String name=SPIN_BUTTON_NAME) -> SpinButton
1750 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
1751 self
.this
= newobj
.this
1754 self
._setOORInfo
(self
)
1756 def Create(*args
, **kwargs
):
1758 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1759 Size size=DefaultSize, long style=SP_HORIZONTAL,
1760 String name=SPIN_BUTTON_NAME) -> bool
1762 return _controls_
.SpinButton_Create(*args
, **kwargs
)
1764 def GetValue(*args
, **kwargs
):
1765 """GetValue(self) -> int"""
1766 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
1768 def GetMin(*args
, **kwargs
):
1769 """GetMin(self) -> int"""
1770 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
1772 def GetMax(*args
, **kwargs
):
1773 """GetMax(self) -> int"""
1774 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
1776 def SetValue(*args
, **kwargs
):
1777 """SetValue(self, int val)"""
1778 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
1780 def SetMin(*args
, **kwargs
):
1781 """SetMin(self, int minVal)"""
1782 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
1784 def SetMax(*args
, **kwargs
):
1785 """SetMax(self, int maxVal)"""
1786 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
1788 def SetRange(*args
, **kwargs
):
1789 """SetRange(self, int minVal, int maxVal)"""
1790 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
1792 def IsVertical(*args
, **kwargs
):
1793 """IsVertical(self) -> bool"""
1794 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
1796 def GetClassDefaultAttributes(*args
, **kwargs
):
1797 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1798 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
1800 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1802 class SpinButtonPtr(SpinButton
):
1803 def __init__(self
, this
):
1805 if not hasattr(self
,"thisown"): self
.thisown
= 0
1806 self
.__class
__ = SpinButton
1807 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
1808 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1809 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1811 def PreSpinButton(*args
, **kwargs
):
1812 """PreSpinButton() -> SpinButton"""
1813 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
1817 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
1818 """SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1819 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
1821 class SpinCtrl(_core
.Control
):
1823 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1824 def __init__(self
, *args
, **kwargs
):
1826 __init__(self, Window parent, int id=-1, String value=EmptyString,
1827 Point pos=DefaultPosition, Size size=DefaultSize,
1828 long style=SP_ARROW_KEYS, int min=0, int max=100,
1829 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1831 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
1832 self
.this
= newobj
.this
1835 self
._setOORInfo
(self
)
1837 def Create(*args
, **kwargs
):
1839 Create(self, Window parent, int id=-1, String value=EmptyString,
1840 Point pos=DefaultPosition, Size size=DefaultSize,
1841 long style=SP_ARROW_KEYS, int min=0, int max=100,
1842 int initial=0, String name=SpinCtrlNameStr) -> bool
1844 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
1846 def GetValue(*args
, **kwargs
):
1847 """GetValue(self) -> int"""
1848 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
1850 def SetValue(*args
, **kwargs
):
1851 """SetValue(self, int value)"""
1852 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
1854 def SetValueString(*args
, **kwargs
):
1855 """SetValueString(self, String text)"""
1856 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
1858 def SetRange(*args
, **kwargs
):
1859 """SetRange(self, int minVal, int maxVal)"""
1860 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
1862 def GetMin(*args
, **kwargs
):
1863 """GetMin(self) -> int"""
1864 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
1866 def GetMax(*args
, **kwargs
):
1867 """GetMax(self) -> int"""
1868 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
1870 def SetSelection(*args
, **kwargs
):
1871 """SetSelection(self, long from, long to)"""
1872 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
1874 def GetClassDefaultAttributes(*args
, **kwargs
):
1875 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1876 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1878 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1880 class SpinCtrlPtr(SpinCtrl
):
1881 def __init__(self
, this
):
1883 if not hasattr(self
,"thisown"): self
.thisown
= 0
1884 self
.__class
__ = SpinCtrl
1885 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
1887 def PreSpinCtrl(*args
, **kwargs
):
1888 """PreSpinCtrl() -> SpinCtrl"""
1889 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
1893 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1894 """SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
1895 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1897 class SpinEvent(_core
.NotifyEvent
):
1899 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1900 def __init__(self
, *args
, **kwargs
):
1901 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1902 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
1903 self
.this
= newobj
.this
1906 def GetPosition(*args
, **kwargs
):
1907 """GetPosition(self) -> int"""
1908 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
1910 def SetPosition(*args
, **kwargs
):
1911 """SetPosition(self, int pos)"""
1912 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
1915 class SpinEventPtr(SpinEvent
):
1916 def __init__(self
, this
):
1918 if not hasattr(self
,"thisown"): self
.thisown
= 0
1919 self
.__class
__ = SpinEvent
1920 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
1922 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
1923 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1924 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1925 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1926 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1928 #---------------------------------------------------------------------------
1930 class RadioBox(_core
.Control
):
1932 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1933 def __init__(self
, *args
, **kwargs
):
1935 __init__(self, Window parent, int id=-1, String label=EmptyString,
1936 Point pos=DefaultPosition, Size size=DefaultSize,
1937 wxArrayString choices=wxPyEmptyStringArray,
1938 int majorDimension=0, long style=RA_HORIZONTAL,
1939 Validator validator=DefaultValidator,
1940 String name=RadioBoxNameStr) -> RadioBox
1942 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1943 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
1944 self
.this
= newobj
.this
1947 self
._setOORInfo
(self
)
1949 def Create(*args
, **kwargs
):
1951 Create(self, Window parent, int id=-1, String label=EmptyString,
1952 Point pos=DefaultPosition, Size size=DefaultSize,
1953 wxArrayString choices=wxPyEmptyStringArray,
1954 int majorDimension=0, long style=RA_HORIZONTAL,
1955 Validator validator=DefaultValidator,
1956 String name=RadioBoxNameStr) -> bool
1958 return _controls_
.RadioBox_Create(*args
, **kwargs
)
1960 def SetSelection(*args
, **kwargs
):
1961 """SetSelection(self, int n)"""
1962 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
1964 def GetSelection(*args
, **kwargs
):
1965 """GetSelection(self) -> int"""
1966 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
1968 def GetStringSelection(*args
, **kwargs
):
1969 """GetStringSelection(self) -> String"""
1970 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
1972 def SetStringSelection(*args
, **kwargs
):
1973 """SetStringSelection(self, String s) -> bool"""
1974 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
1976 def GetCount(*args
, **kwargs
):
1977 """GetCount(self) -> int"""
1978 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
1980 def FindString(*args
, **kwargs
):
1981 """FindString(self, String s) -> int"""
1982 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
1984 def GetString(*args
, **kwargs
):
1985 """GetString(self, int n) -> String"""
1986 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
1988 def SetString(*args
, **kwargs
):
1989 """SetString(self, int n, String label)"""
1990 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
1992 GetItemLabel
= GetString
1993 SetItemLabel
= SetString
1994 def EnableItem(*args
, **kwargs
):
1995 """EnableItem(self, int n, bool enable=True)"""
1996 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
1998 def ShowItem(*args
, **kwargs
):
1999 """ShowItem(self, int n, bool show=True)"""
2000 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2002 def GetColumnCount(*args
, **kwargs
):
2003 """GetColumnCount(self) -> int"""
2004 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2006 def GetRowCount(*args
, **kwargs
):
2007 """GetRowCount(self) -> int"""
2008 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2010 def GetNextItem(*args
, **kwargs
):
2011 """GetNextItem(self, int item, int dir, long style) -> int"""
2012 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2014 def GetClassDefaultAttributes(*args
, **kwargs
):
2015 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2016 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2018 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2020 class RadioBoxPtr(RadioBox
):
2021 def __init__(self
, this
):
2023 if not hasattr(self
,"thisown"): self
.thisown
= 0
2024 self
.__class
__ = RadioBox
2025 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2026 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2027 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2029 def PreRadioBox(*args
, **kwargs
):
2030 """PreRadioBox() -> RadioBox"""
2031 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2035 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2036 """RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2037 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2039 #---------------------------------------------------------------------------
2041 class RadioButton(_core
.Control
):
2043 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2044 def __init__(self
, *args
, **kwargs
):
2046 __init__(self, Window parent, int id=-1, String label=EmptyString,
2047 Point pos=DefaultPosition, Size size=DefaultSize,
2048 long style=0, Validator validator=DefaultValidator,
2049 String name=RadioButtonNameStr) -> RadioButton
2051 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2052 self
.this
= newobj
.this
2055 self
._setOORInfo
(self
)
2057 def Create(*args
, **kwargs
):
2059 Create(self, Window parent, int id=-1, String label=EmptyString,
2060 Point pos=DefaultPosition, Size size=DefaultSize,
2061 long style=0, Validator validator=DefaultValidator,
2062 String name=RadioButtonNameStr) -> bool
2064 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2066 def GetValue(*args
, **kwargs
):
2067 """GetValue(self) -> bool"""
2068 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2070 def SetValue(*args
, **kwargs
):
2071 """SetValue(self, bool value)"""
2072 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2074 def GetClassDefaultAttributes(*args
, **kwargs
):
2075 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2076 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2078 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2080 class RadioButtonPtr(RadioButton
):
2081 def __init__(self
, this
):
2083 if not hasattr(self
,"thisown"): self
.thisown
= 0
2084 self
.__class
__ = RadioButton
2085 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2087 def PreRadioButton(*args
, **kwargs
):
2088 """PreRadioButton() -> RadioButton"""
2089 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2093 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2094 """RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2095 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2097 #---------------------------------------------------------------------------
2099 class Slider(_core
.Control
):
2101 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2102 def __init__(self
, *args
, **kwargs
):
2104 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2105 int maxValue=100, Point pos=DefaultPosition,
2106 Size size=DefaultSize, long style=SL_HORIZONTAL,
2107 Validator validator=DefaultValidator,
2108 String name=SliderNameStr) -> Slider
2110 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2111 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2112 self
.this
= newobj
.this
2115 self
._setOORInfo
(self
)
2117 def Create(*args
, **kwargs
):
2119 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2120 int maxValue=100, Point pos=DefaultPosition,
2121 Size size=DefaultSize, long style=SL_HORIZONTAL,
2122 Validator validator=DefaultValidator,
2123 String name=SliderNameStr) -> bool
2125 return _controls_
.Slider_Create(*args
, **kwargs
)
2127 def GetValue(*args
, **kwargs
):
2128 """GetValue(self) -> int"""
2129 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2131 def SetValue(*args
, **kwargs
):
2132 """SetValue(self, int value)"""
2133 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2135 def SetRange(*args
, **kwargs
):
2136 """SetRange(self, int minValue, int maxValue)"""
2137 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2139 def GetMin(*args
, **kwargs
):
2140 """GetMin(self) -> int"""
2141 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2143 def GetMax(*args
, **kwargs
):
2144 """GetMax(self) -> int"""
2145 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2147 def SetMin(*args
, **kwargs
):
2148 """SetMin(self, int minValue)"""
2149 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2151 def SetMax(*args
, **kwargs
):
2152 """SetMax(self, int maxValue)"""
2153 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2155 def SetLineSize(*args
, **kwargs
):
2156 """SetLineSize(self, int lineSize)"""
2157 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2159 def SetPageSize(*args
, **kwargs
):
2160 """SetPageSize(self, int pageSize)"""
2161 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2163 def GetLineSize(*args
, **kwargs
):
2164 """GetLineSize(self) -> int"""
2165 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2167 def GetPageSize(*args
, **kwargs
):
2168 """GetPageSize(self) -> int"""
2169 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2171 def SetThumbLength(*args
, **kwargs
):
2172 """SetThumbLength(self, int lenPixels)"""
2173 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2175 def GetThumbLength(*args
, **kwargs
):
2176 """GetThumbLength(self) -> int"""
2177 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2179 def SetTickFreq(*args
, **kwargs
):
2180 """SetTickFreq(self, int n, int pos=1)"""
2181 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2183 def GetTickFreq(*args
, **kwargs
):
2184 """GetTickFreq(self) -> int"""
2185 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2187 def ClearTicks(*args
, **kwargs
):
2188 """ClearTicks(self)"""
2189 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2191 def SetTick(*args
, **kwargs
):
2192 """SetTick(self, int tickPos)"""
2193 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2195 def ClearSel(*args
, **kwargs
):
2196 """ClearSel(self)"""
2197 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2199 def GetSelEnd(*args
, **kwargs
):
2200 """GetSelEnd(self) -> int"""
2201 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2203 def GetSelStart(*args
, **kwargs
):
2204 """GetSelStart(self) -> int"""
2205 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2207 def SetSelection(*args
, **kwargs
):
2208 """SetSelection(self, int min, int max)"""
2209 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2211 def GetClassDefaultAttributes(*args
, **kwargs
):
2212 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2213 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2215 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2217 class SliderPtr(Slider
):
2218 def __init__(self
, this
):
2220 if not hasattr(self
,"thisown"): self
.thisown
= 0
2221 self
.__class
__ = Slider
2222 _controls_
.Slider_swigregister(SliderPtr
)
2223 SliderNameStr
= cvar
.SliderNameStr
2225 def PreSlider(*args
, **kwargs
):
2226 """PreSlider() -> Slider"""
2227 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2231 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2232 """Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2233 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2235 #---------------------------------------------------------------------------
2237 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2238 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2240 class ToggleButton(_core
.Control
):
2242 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2243 def __init__(self
, *args
, **kwargs
):
2245 __init__(self, Window parent, int id=-1, String label=EmptyString,
2246 Point pos=DefaultPosition, Size size=DefaultSize,
2247 long style=0, Validator validator=DefaultValidator,
2248 String name=ToggleButtonNameStr) -> ToggleButton
2250 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2251 self
.this
= newobj
.this
2254 self
._setOORInfo
(self
)
2256 def Create(*args
, **kwargs
):
2258 Create(self, Window parent, int id=-1, String label=EmptyString,
2259 Point pos=DefaultPosition, Size size=DefaultSize,
2260 long style=0, Validator validator=DefaultValidator,
2261 String name=ToggleButtonNameStr) -> bool
2263 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2265 def SetValue(*args
, **kwargs
):
2266 """SetValue(self, bool value)"""
2267 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2269 def GetValue(*args
, **kwargs
):
2270 """GetValue(self) -> bool"""
2271 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2273 def SetLabel(*args
, **kwargs
):
2275 SetLabel(self, String label)
2277 Sets the item's text.
2279 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2281 def GetClassDefaultAttributes(*args
, **kwargs
):
2282 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2283 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2285 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2287 class ToggleButtonPtr(ToggleButton
):
2288 def __init__(self
, this
):
2290 if not hasattr(self
,"thisown"): self
.thisown
= 0
2291 self
.__class
__ = ToggleButton
2292 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2293 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2295 def PreToggleButton(*args
, **kwargs
):
2296 """PreToggleButton() -> ToggleButton"""
2297 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2301 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2302 """ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2303 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2305 #---------------------------------------------------------------------------
2307 class BookCtrl(_core
.Control
):
2308 def __init__(self
): raise RuntimeError, "No constructor defined"
2310 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2311 def GetPageCount(*args
, **kwargs
):
2312 """GetPageCount(self) -> size_t"""
2313 return _controls_
.BookCtrl_GetPageCount(*args
, **kwargs
)
2315 def GetPage(*args
, **kwargs
):
2316 """GetPage(self, size_t n) -> Window"""
2317 return _controls_
.BookCtrl_GetPage(*args
, **kwargs
)
2319 def GetSelection(*args
, **kwargs
):
2320 """GetSelection(self) -> int"""
2321 return _controls_
.BookCtrl_GetSelection(*args
, **kwargs
)
2323 def SetPageText(*args
, **kwargs
):
2324 """SetPageText(self, size_t n, String strText) -> bool"""
2325 return _controls_
.BookCtrl_SetPageText(*args
, **kwargs
)
2327 def GetPageText(*args
, **kwargs
):
2328 """GetPageText(self, size_t n) -> String"""
2329 return _controls_
.BookCtrl_GetPageText(*args
, **kwargs
)
2331 def SetImageList(*args
, **kwargs
):
2332 """SetImageList(self, ImageList imageList)"""
2333 return _controls_
.BookCtrl_SetImageList(*args
, **kwargs
)
2335 def AssignImageList(*args
, **kwargs
):
2336 """AssignImageList(self, ImageList imageList)"""
2337 return _controls_
.BookCtrl_AssignImageList(*args
, **kwargs
)
2339 def GetImageList(*args
, **kwargs
):
2340 """GetImageList(self) -> ImageList"""
2341 return _controls_
.BookCtrl_GetImageList(*args
, **kwargs
)
2343 def GetPageImage(*args
, **kwargs
):
2344 """GetPageImage(self, size_t n) -> int"""
2345 return _controls_
.BookCtrl_GetPageImage(*args
, **kwargs
)
2347 def SetPageImage(*args
, **kwargs
):
2348 """SetPageImage(self, size_t n, int imageId) -> bool"""
2349 return _controls_
.BookCtrl_SetPageImage(*args
, **kwargs
)
2351 def SetPageSize(*args
, **kwargs
):
2352 """SetPageSize(self, Size size)"""
2353 return _controls_
.BookCtrl_SetPageSize(*args
, **kwargs
)
2355 def CalcSizeFromPage(*args
, **kwargs
):
2356 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2357 return _controls_
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2359 def DeletePage(*args
, **kwargs
):
2360 """DeletePage(self, size_t n) -> bool"""
2361 return _controls_
.BookCtrl_DeletePage(*args
, **kwargs
)
2363 def RemovePage(*args
, **kwargs
):
2364 """RemovePage(self, size_t n) -> bool"""
2365 return _controls_
.BookCtrl_RemovePage(*args
, **kwargs
)
2367 def DeleteAllPages(*args
, **kwargs
):
2368 """DeleteAllPages(self) -> bool"""
2369 return _controls_
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2371 def AddPage(*args
, **kwargs
):
2372 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2373 return _controls_
.BookCtrl_AddPage(*args
, **kwargs
)
2375 def InsertPage(*args
, **kwargs
):
2377 InsertPage(self, size_t n, Window page, String text, bool select=False,
2378 int imageId=-1) -> bool
2380 return _controls_
.BookCtrl_InsertPage(*args
, **kwargs
)
2382 def SetSelection(*args
, **kwargs
):
2383 """SetSelection(self, size_t n) -> int"""
2384 return _controls_
.BookCtrl_SetSelection(*args
, **kwargs
)
2386 def AdvanceSelection(*args
, **kwargs
):
2387 """AdvanceSelection(self, bool forward=True)"""
2388 return _controls_
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2390 def GetClassDefaultAttributes(*args
, **kwargs
):
2391 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2392 return _controls_
.BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2394 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2396 class BookCtrlPtr(BookCtrl
):
2397 def __init__(self
, this
):
2399 if not hasattr(self
,"thisown"): self
.thisown
= 0
2400 self
.__class
__ = BookCtrl
2401 _controls_
.BookCtrl_swigregister(BookCtrlPtr
)
2402 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2404 def BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2405 """BookCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2406 return _controls_
.BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2408 class BookCtrlEvent(_core
.NotifyEvent
):
2410 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2411 def __init__(self
, *args
, **kwargs
):
2413 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2414 int nOldSel=-1) -> BookCtrlEvent
2416 newobj
= _controls_
.new_BookCtrlEvent(*args
, **kwargs
)
2417 self
.this
= newobj
.this
2420 def GetSelection(*args
, **kwargs
):
2421 """GetSelection(self) -> int"""
2422 return _controls_
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2424 def SetSelection(*args
, **kwargs
):
2425 """SetSelection(self, int nSel)"""
2426 return _controls_
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2428 def GetOldSelection(*args
, **kwargs
):
2429 """GetOldSelection(self) -> int"""
2430 return _controls_
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2432 def SetOldSelection(*args
, **kwargs
):
2433 """SetOldSelection(self, int nOldSel)"""
2434 return _controls_
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2437 class BookCtrlEventPtr(BookCtrlEvent
):
2438 def __init__(self
, this
):
2440 if not hasattr(self
,"thisown"): self
.thisown
= 0
2441 self
.__class
__ = BookCtrlEvent
2442 _controls_
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2444 #---------------------------------------------------------------------------
2446 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2447 NB_TOP
= _controls_
.NB_TOP
2448 NB_LEFT
= _controls_
.NB_LEFT
2449 NB_RIGHT
= _controls_
.NB_RIGHT
2450 NB_BOTTOM
= _controls_
.NB_BOTTOM
2451 NB_MULTILINE
= _controls_
.NB_MULTILINE
2452 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2453 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2454 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2455 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2456 class Notebook(BookCtrl
):
2458 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2459 def __init__(self
, *args
, **kwargs
):
2461 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2462 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2464 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
2465 self
.this
= newobj
.this
2468 self
._setOORInfo
(self
)
2470 def Create(*args
, **kwargs
):
2472 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2473 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool
2475 return _controls_
.Notebook_Create(*args
, **kwargs
)
2477 def GetRowCount(*args
, **kwargs
):
2478 """GetRowCount(self) -> int"""
2479 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2481 def SetPadding(*args
, **kwargs
):
2482 """SetPadding(self, Size padding)"""
2483 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2485 def SetTabSize(*args
, **kwargs
):
2486 """SetTabSize(self, Size sz)"""
2487 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
2489 def HitTest(*args
, **kwargs
):
2491 HitTest(Point pt) -> (tab, where)
2493 Returns the tab which is hit, and flags indicating where using
2494 wx.NB_HITTEST flags.
2496 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
2498 def CalcSizeFromPage(*args
, **kwargs
):
2499 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2500 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2502 def ApplyThemeBackground(*args
, **kwargs
):
2503 """ApplyThemeBackground(self, Window window, Colour colour)"""
2504 return _controls_
.Notebook_ApplyThemeBackground(*args
, **kwargs
)
2506 def GetClassDefaultAttributes(*args
, **kwargs
):
2507 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2508 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
2510 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2512 class NotebookPtr(Notebook
):
2513 def __init__(self
, this
):
2515 if not hasattr(self
,"thisown"): self
.thisown
= 0
2516 self
.__class
__ = Notebook
2517 _controls_
.Notebook_swigregister(NotebookPtr
)
2519 def PreNotebook(*args
, **kwargs
):
2520 """PreNotebook() -> Notebook"""
2521 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
2525 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
2526 """Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
2527 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
2529 class NotebookEvent(BookCtrlEvent
):
2531 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2532 def __init__(self
, *args
, **kwargs
):
2534 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2535 int nOldSel=-1) -> NotebookEvent
2537 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
2538 self
.this
= newobj
.this
2542 class NotebookEventPtr(NotebookEvent
):
2543 def __init__(self
, this
):
2545 if not hasattr(self
,"thisown"): self
.thisown
= 0
2546 self
.__class
__ = NotebookEvent
2547 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
2549 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2550 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2552 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2553 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2555 #----------------------------------------------------------------------------
2557 class NotebookPage(wx
.Panel
):
2559 There is an old (and apparently unsolvable) bug when placing a
2560 window with a nonstandard background colour in a wxNotebook on
2561 wxGTK, as the notbooks's background colour would always be used
2562 when the window is refreshed. The solution is to place a panel in
2563 the notbook and the coloured window on the panel, sized to cover
2564 the panel. This simple class does that for you, just put an
2565 instance of this in the notebook and make your regular window a
2566 child of this one and it will handle the resize for you.
2568 def __init__(self
, parent
, id=-1,
2569 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2570 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2571 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2573 EVT_SIZE(self
, self
.OnSize
)
2575 def OnSize(self
, evt
):
2576 if self
.child
is None:
2577 children
= self
.GetChildren()
2579 self
.child
= children
[0]
2581 self
.child
.SetPosition((0,0))
2582 self
.child
.SetSize(self
.GetSize())
2585 #---------------------------------------------------------------------------
2587 LB_DEFAULT
= _controls_
.LB_DEFAULT
2588 LB_TOP
= _controls_
.LB_TOP
2589 LB_BOTTOM
= _controls_
.LB_BOTTOM
2590 LB_LEFT
= _controls_
.LB_LEFT
2591 LB_RIGHT
= _controls_
.LB_RIGHT
2592 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
2593 class Listbook(BookCtrl
):
2595 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2596 def __init__(self
, *args
, **kwargs
):
2598 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2599 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
2601 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
2602 self
.this
= newobj
.this
2605 self
._setOORInfo
(self
)
2607 def Create(*args
, **kwargs
):
2609 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2610 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
2612 return _controls_
.Listbook_Create(*args
, **kwargs
)
2614 def IsVertical(*args
, **kwargs
):
2615 """IsVertical(self) -> bool"""
2616 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
2619 class ListbookPtr(Listbook
):
2620 def __init__(self
, this
):
2622 if not hasattr(self
,"thisown"): self
.thisown
= 0
2623 self
.__class
__ = Listbook
2624 _controls_
.Listbook_swigregister(ListbookPtr
)
2626 def PreListbook(*args
, **kwargs
):
2627 """PreListbook() -> Listbook"""
2628 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
2632 class ListbookEvent(BookCtrlEvent
):
2634 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2635 def __init__(self
, *args
, **kwargs
):
2637 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2638 int nOldSel=-1) -> ListbookEvent
2640 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
2641 self
.this
= newobj
.this
2645 class ListbookEventPtr(ListbookEvent
):
2646 def __init__(self
, this
):
2648 if not hasattr(self
,"thisown"): self
.thisown
= 0
2649 self
.__class
__ = ListbookEvent
2650 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
2652 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2653 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2654 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2655 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2657 #---------------------------------------------------------------------------
2659 class BookCtrlSizer(_core
.Sizer
):
2661 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2662 def __init__(self
, *args
, **kwargs
):
2663 """__init__(self, BookCtrl nb) -> BookCtrlSizer"""
2664 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
2665 self
.this
= newobj
.this
2668 self
._setOORInfo
(self
)
2670 def RecalcSizes(*args
, **kwargs
):
2674 Using the sizes calculated by `CalcMin` reposition and resize all the
2675 items managed by this sizer. You should not need to call this directly as
2676 it is called by `Layout`.
2678 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2680 def CalcMin(*args
, **kwargs
):
2682 CalcMin(self) -> Size
2684 This method is where the sizer will do the actual calculation of its
2685 children's minimal sizes. You should not need to call this directly as
2686 it is called by `Layout`.
2688 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2690 def GetControl(*args
, **kwargs
):
2691 """GetControl(self) -> BookCtrl"""
2692 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2695 class BookCtrlSizerPtr(BookCtrlSizer
):
2696 def __init__(self
, this
):
2698 if not hasattr(self
,"thisown"): self
.thisown
= 0
2699 self
.__class
__ = BookCtrlSizer
2700 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2702 class NotebookSizer(_core
.Sizer
):
2704 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2705 def __init__(self
, *args
, **kwargs
):
2706 """__init__(self, Notebook nb) -> NotebookSizer"""
2707 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
2708 self
.this
= newobj
.this
2711 self
._setOORInfo
(self
)
2713 def RecalcSizes(*args
, **kwargs
):
2717 Using the sizes calculated by `CalcMin` reposition and resize all the
2718 items managed by this sizer. You should not need to call this directly as
2719 it is called by `Layout`.
2721 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2723 def CalcMin(*args
, **kwargs
):
2725 CalcMin(self) -> Size
2727 This method is where the sizer will do the actual calculation of its
2728 children's minimal sizes. You should not need to call this directly as
2729 it is called by `Layout`.
2731 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
2733 def GetNotebook(*args
, **kwargs
):
2734 """GetNotebook(self) -> Notebook"""
2735 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2738 class NotebookSizerPtr(NotebookSizer
):
2739 def __init__(self
, this
):
2741 if not hasattr(self
,"thisown"): self
.thisown
= 0
2742 self
.__class
__ = NotebookSizer
2743 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
2745 #---------------------------------------------------------------------------
2747 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
2748 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
2749 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
2750 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
2751 TB_VERTICAL
= _controls_
.TB_VERTICAL
2752 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
2753 TB_FLAT
= _controls_
.TB_FLAT
2754 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
2755 TB_NOICONS
= _controls_
.TB_NOICONS
2756 TB_TEXT
= _controls_
.TB_TEXT
2757 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
2758 TB_NOALIGN
= _controls_
.TB_NOALIGN
2759 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
2760 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
2761 class ToolBarToolBase(_core
.Object
):
2762 def __init__(self
): raise RuntimeError, "No constructor defined"
2764 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2765 def GetId(*args
, **kwargs
):
2766 """GetId(self) -> int"""
2767 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
2769 def GetControl(*args
, **kwargs
):
2770 """GetControl(self) -> Control"""
2771 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2773 def GetToolBar(*args
, **kwargs
):
2774 """GetToolBar(self) -> ToolBarBase"""
2775 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2777 def IsButton(*args
, **kwargs
):
2778 """IsButton(self) -> int"""
2779 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2781 def IsControl(*args
, **kwargs
):
2782 """IsControl(self) -> int"""
2783 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2785 def IsSeparator(*args
, **kwargs
):
2786 """IsSeparator(self) -> int"""
2787 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2789 def GetStyle(*args
, **kwargs
):
2790 """GetStyle(self) -> int"""
2791 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2793 def GetKind(*args
, **kwargs
):
2794 """GetKind(self) -> int"""
2795 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2797 def IsEnabled(*args
, **kwargs
):
2798 """IsEnabled(self) -> bool"""
2799 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2801 def IsToggled(*args
, **kwargs
):
2802 """IsToggled(self) -> bool"""
2803 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2805 def CanBeToggled(*args
, **kwargs
):
2806 """CanBeToggled(self) -> bool"""
2807 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2809 def GetNormalBitmap(*args
, **kwargs
):
2810 """GetNormalBitmap(self) -> Bitmap"""
2811 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2813 def GetDisabledBitmap(*args
, **kwargs
):
2814 """GetDisabledBitmap(self) -> Bitmap"""
2815 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2817 def GetBitmap(*args
, **kwargs
):
2818 """GetBitmap(self) -> Bitmap"""
2819 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2821 def GetLabel(*args
, **kwargs
):
2822 """GetLabel(self) -> String"""
2823 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2825 def GetShortHelp(*args
, **kwargs
):
2826 """GetShortHelp(self) -> String"""
2827 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2829 def GetLongHelp(*args
, **kwargs
):
2830 """GetLongHelp(self) -> String"""
2831 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2833 def Enable(*args
, **kwargs
):
2834 """Enable(self, bool enable) -> bool"""
2835 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
2837 def Toggle(*args
, **kwargs
):
2839 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2841 def SetToggle(*args
, **kwargs
):
2842 """SetToggle(self, bool toggle) -> bool"""
2843 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2845 def SetShortHelp(*args
, **kwargs
):
2846 """SetShortHelp(self, String help) -> bool"""
2847 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2849 def SetLongHelp(*args
, **kwargs
):
2850 """SetLongHelp(self, String help) -> bool"""
2851 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2853 def SetNormalBitmap(*args
, **kwargs
):
2854 """SetNormalBitmap(self, Bitmap bmp)"""
2855 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2857 def SetDisabledBitmap(*args
, **kwargs
):
2858 """SetDisabledBitmap(self, Bitmap bmp)"""
2859 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2861 def SetLabel(*args
, **kwargs
):
2862 """SetLabel(self, String label)"""
2863 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2865 def Detach(*args
, **kwargs
):
2867 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
2869 def Attach(*args
, **kwargs
):
2870 """Attach(self, ToolBarBase tbar)"""
2871 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
2873 def GetClientData(*args
, **kwargs
):
2874 """GetClientData(self) -> PyObject"""
2875 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2877 def SetClientData(*args
, **kwargs
):
2878 """SetClientData(self, PyObject clientData)"""
2879 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2881 GetBitmap1
= GetNormalBitmap
2882 GetBitmap2
= GetDisabledBitmap
2883 SetBitmap1
= SetNormalBitmap
2884 SetBitmap2
= SetDisabledBitmap
2887 class ToolBarToolBasePtr(ToolBarToolBase
):
2888 def __init__(self
, this
):
2890 if not hasattr(self
,"thisown"): self
.thisown
= 0
2891 self
.__class
__ = ToolBarToolBase
2892 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2894 class ToolBarBase(_core
.Control
):
2895 def __init__(self
): raise RuntimeError, "No constructor defined"
2897 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2898 def DoAddTool(*args
, **kwargs
):
2900 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2901 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2902 String longHelp=EmptyString,
2903 PyObject clientData=None) -> ToolBarToolBase
2905 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2907 def DoInsertTool(*args
, **kwargs
):
2909 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2910 int kind=ITEM_NORMAL,
2911 String shortHelp=EmptyString, String longHelp=EmptyString,
2912 PyObject clientData=None) -> ToolBarToolBase
2914 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2916 # These match the original Add methods for this class, kept for
2917 # backwards compatibility with versions < 2.3.3.
2920 def AddTool(self
, id, bitmap
,
2921 pushedBitmap
= wx
.NullBitmap
,
2924 shortHelpString
= '',
2925 longHelpString
= '') :
2926 '''Old style method to add a tool to the toolbar.'''
2927 kind
= wx
.ITEM_NORMAL
2928 if isToggle
: kind
= wx
.ITEM_CHECK
2929 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2930 shortHelpString
, longHelpString
, clientData
)
2932 def AddSimpleTool(self
, id, bitmap
,
2933 shortHelpString
= '',
2934 longHelpString
= '',
2936 '''Old style method to add a tool to the toolbar.'''
2937 kind
= wx
.ITEM_NORMAL
2938 if isToggle
: kind
= wx
.ITEM_CHECK
2939 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2940 shortHelpString
, longHelpString
, None)
2942 def InsertTool(self
, pos
, id, bitmap
,
2943 pushedBitmap
= wx
.NullBitmap
,
2946 shortHelpString
= '',
2947 longHelpString
= ''):
2948 '''Old style method to insert a tool in the toolbar.'''
2949 kind
= wx
.ITEM_NORMAL
2950 if isToggle
: kind
= wx
.ITEM_CHECK
2951 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2952 shortHelpString
, longHelpString
, clientData
)
2954 def InsertSimpleTool(self
, pos
, id, bitmap
,
2955 shortHelpString
= '',
2956 longHelpString
= '',
2958 '''Old style method to insert a tool in the toolbar.'''
2959 kind
= wx
.ITEM_NORMAL
2960 if isToggle
: kind
= wx
.ITEM_CHECK
2961 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2962 shortHelpString
, longHelpString
, None)
2965 # The following are the new toolbar Add methods starting with
2966 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2967 # able to keep backwards compatibility with using the above
2968 # methods. Eventually these should migrate to be the methods used
2969 # primarily and lose the 'Label' in the name...
2971 def AddLabelTool(self
, id, label
, bitmap
,
2972 bmpDisabled
= wx
.NullBitmap
,
2973 kind
= wx
.ITEM_NORMAL
,
2974 shortHelp
= '', longHelp
= '',
2977 The full AddTool() function.
2979 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2980 is created and used as the disabled image.
2982 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2983 shortHelp
, longHelp
, clientData
)
2986 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2987 bmpDisabled
= wx
.NullBitmap
,
2988 kind
= wx
.ITEM_NORMAL
,
2989 shortHelp
= '', longHelp
= '',
2992 Insert the new tool at the given position, if pos == GetToolsCount(), it
2993 is equivalent to AddTool()
2995 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2996 shortHelp
, longHelp
, clientData
)
2998 def AddCheckLabelTool(self
, id, label
, bitmap
,
2999 bmpDisabled
= wx
.NullBitmap
,
3000 shortHelp
= '', longHelp
= '',
3002 '''Add a check tool, i.e. a tool which can be toggled'''
3003 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3004 shortHelp
, longHelp
, clientData
)
3006 def AddRadioLabelTool(self
, id, label
, bitmap
,
3007 bmpDisabled
= wx
.NullBitmap
,
3008 shortHelp
= '', longHelp
= '',
3011 Add a radio tool, i.e. a tool which can be toggled and releases any
3012 other toggled radio tools in the same group when it happens
3014 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3015 shortHelp
, longHelp
, clientData
)
3018 # For consistency with the backwards compatible methods above, here are
3019 # some non-'Label' versions of the Check and Radio methods
3021 def AddCheckTool(self
, id, bitmap
,
3022 bmpDisabled
= wx
.NullBitmap
,
3023 shortHelp
= '', longHelp
= '',
3025 '''Add a check tool, i.e. a tool which can be toggled'''
3026 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3027 shortHelp
, longHelp
, clientData
)
3029 def AddRadioTool(self
, id, bitmap
,
3030 bmpDisabled
= wx
.NullBitmap
,
3031 shortHelp
= '', longHelp
= '',
3034 Add a radio tool, i.e. a tool which can be toggled and releases any
3035 other toggled radio tools in the same group when it happens
3037 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3038 shortHelp
, longHelp
, clientData
)
3040 def AddToolItem(*args
, **kwargs
):
3041 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3042 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3044 def InsertToolItem(*args
, **kwargs
):
3045 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3046 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3048 def AddControl(*args
, **kwargs
):
3049 """AddControl(self, Control control) -> ToolBarToolBase"""
3050 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3052 def InsertControl(*args
, **kwargs
):
3053 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3054 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3056 def FindControl(*args
, **kwargs
):
3057 """FindControl(self, int id) -> Control"""
3058 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3060 def AddSeparator(*args
, **kwargs
):
3061 """AddSeparator(self) -> ToolBarToolBase"""
3062 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3064 def InsertSeparator(*args
, **kwargs
):
3065 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3066 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3068 def RemoveTool(*args
, **kwargs
):
3069 """RemoveTool(self, int id) -> ToolBarToolBase"""
3070 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3072 def DeleteToolByPos(*args
, **kwargs
):
3073 """DeleteToolByPos(self, size_t pos) -> bool"""
3074 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3076 def DeleteTool(*args
, **kwargs
):
3077 """DeleteTool(self, int id) -> bool"""
3078 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3080 def ClearTools(*args
, **kwargs
):
3081 """ClearTools(self)"""
3082 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3084 def Realize(*args
, **kwargs
):
3085 """Realize(self) -> bool"""
3086 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3088 def EnableTool(*args
, **kwargs
):
3089 """EnableTool(self, int id, bool enable)"""
3090 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3092 def ToggleTool(*args
, **kwargs
):
3093 """ToggleTool(self, int id, bool toggle)"""
3094 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3096 def SetToggle(*args
, **kwargs
):
3097 """SetToggle(self, int id, bool toggle)"""
3098 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3100 def GetToolClientData(*args
, **kwargs
):
3101 """GetToolClientData(self, int id) -> PyObject"""
3102 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3104 def SetToolClientData(*args
, **kwargs
):
3105 """SetToolClientData(self, int id, PyObject clientData)"""
3106 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3108 def GetToolPos(*args
, **kwargs
):
3109 """GetToolPos(self, int id) -> int"""
3110 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3112 def GetToolState(*args
, **kwargs
):
3113 """GetToolState(self, int id) -> bool"""
3114 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3116 def GetToolEnabled(*args
, **kwargs
):
3117 """GetToolEnabled(self, int id) -> bool"""
3118 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3120 def SetToolShortHelp(*args
, **kwargs
):
3121 """SetToolShortHelp(self, int id, String helpString)"""
3122 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3124 def GetToolShortHelp(*args
, **kwargs
):
3125 """GetToolShortHelp(self, int id) -> String"""
3126 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3128 def SetToolLongHelp(*args
, **kwargs
):
3129 """SetToolLongHelp(self, int id, String helpString)"""
3130 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3132 def GetToolLongHelp(*args
, **kwargs
):
3133 """GetToolLongHelp(self, int id) -> String"""
3134 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3136 def SetMarginsXY(*args
, **kwargs
):
3137 """SetMarginsXY(self, int x, int y)"""
3138 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3140 def SetMargins(*args
, **kwargs
):
3141 """SetMargins(self, Size size)"""
3142 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3144 def SetToolPacking(*args
, **kwargs
):
3145 """SetToolPacking(self, int packing)"""
3146 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3148 def SetToolSeparation(*args
, **kwargs
):
3149 """SetToolSeparation(self, int separation)"""
3150 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3152 def GetToolMargins(*args
, **kwargs
):
3153 """GetToolMargins(self) -> Size"""
3154 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3156 def GetMargins(*args
, **kwargs
):
3157 """GetMargins(self) -> Size"""
3158 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3160 def GetToolPacking(*args
, **kwargs
):
3161 """GetToolPacking(self) -> int"""
3162 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3164 def GetToolSeparation(*args
, **kwargs
):
3165 """GetToolSeparation(self) -> int"""
3166 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3168 def SetRows(*args
, **kwargs
):
3169 """SetRows(self, int nRows)"""
3170 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3172 def SetMaxRowsCols(*args
, **kwargs
):
3173 """SetMaxRowsCols(self, int rows, int cols)"""
3174 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3176 def GetMaxRows(*args
, **kwargs
):
3177 """GetMaxRows(self) -> int"""
3178 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3180 def GetMaxCols(*args
, **kwargs
):
3181 """GetMaxCols(self) -> int"""
3182 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3184 def SetToolBitmapSize(*args
, **kwargs
):
3185 """SetToolBitmapSize(self, Size size)"""
3186 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3188 def GetToolBitmapSize(*args
, **kwargs
):
3189 """GetToolBitmapSize(self) -> Size"""
3190 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3192 def GetToolSize(*args
, **kwargs
):
3193 """GetToolSize(self) -> Size"""
3194 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3196 def FindToolForPosition(*args
, **kwargs
):
3197 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3198 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3200 def FindById(*args
, **kwargs
):
3201 """FindById(self, int toolid) -> ToolBarToolBase"""
3202 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3204 def IsVertical(*args
, **kwargs
):
3205 """IsVertical(self) -> bool"""
3206 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3209 class ToolBarBasePtr(ToolBarBase
):
3210 def __init__(self
, this
):
3212 if not hasattr(self
,"thisown"): self
.thisown
= 0
3213 self
.__class
__ = ToolBarBase
3214 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3216 class ToolBar(ToolBarBase
):
3218 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3219 def __init__(self
, *args
, **kwargs
):
3221 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3222 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3223 String name=wxPyToolBarNameStr) -> ToolBar
3225 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3226 self
.this
= newobj
.this
3229 self
._setOORInfo
(self
)
3231 def Create(*args
, **kwargs
):
3233 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3234 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3235 String name=wxPyToolBarNameStr) -> bool
3237 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3239 def FindToolForPosition(*args
, **kwargs
):
3240 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3241 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3243 def GetClassDefaultAttributes(*args
, **kwargs
):
3244 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
3245 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3247 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3249 class ToolBarPtr(ToolBar
):
3250 def __init__(self
, this
):
3252 if not hasattr(self
,"thisown"): self
.thisown
= 0
3253 self
.__class
__ = ToolBar
3254 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3256 def PreToolBar(*args
, **kwargs
):
3257 """PreToolBar() -> ToolBar"""
3258 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3262 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3263 """ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
3264 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3266 #---------------------------------------------------------------------------
3268 LC_VRULES
= _controls_
.LC_VRULES
3269 LC_HRULES
= _controls_
.LC_HRULES
3270 LC_ICON
= _controls_
.LC_ICON
3271 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3272 LC_LIST
= _controls_
.LC_LIST
3273 LC_REPORT
= _controls_
.LC_REPORT
3274 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3275 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3276 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3277 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3278 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3279 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3280 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3281 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3282 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3283 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3284 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3285 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3286 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3287 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3288 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3289 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3290 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3291 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3292 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3293 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3294 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3295 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3296 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3297 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3298 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3299 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3300 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3301 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3302 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3303 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3304 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3305 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3306 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3307 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3308 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3309 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3310 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3311 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3312 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3313 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3314 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3315 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3316 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3317 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3318 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3319 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3320 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3321 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3322 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3323 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3324 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3325 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3326 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3327 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3328 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3329 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3330 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3331 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3332 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3333 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3334 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3335 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3336 #---------------------------------------------------------------------------
3338 class ListItemAttr(object):
3340 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3341 def __init__(self
, *args
, **kwargs
):
3343 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3344 Font font=wxNullFont) -> ListItemAttr
3346 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
3347 self
.this
= newobj
.this
3350 def SetTextColour(*args
, **kwargs
):
3351 """SetTextColour(self, Colour colText)"""
3352 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3354 def SetBackgroundColour(*args
, **kwargs
):
3355 """SetBackgroundColour(self, Colour colBack)"""
3356 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3358 def SetFont(*args
, **kwargs
):
3359 """SetFont(self, Font font)"""
3360 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3362 def HasTextColour(*args
, **kwargs
):
3363 """HasTextColour(self) -> bool"""
3364 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3366 def HasBackgroundColour(*args
, **kwargs
):
3367 """HasBackgroundColour(self) -> bool"""
3368 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3370 def HasFont(*args
, **kwargs
):
3371 """HasFont(self) -> bool"""
3372 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3374 def GetTextColour(*args
, **kwargs
):
3375 """GetTextColour(self) -> Colour"""
3376 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3378 def GetBackgroundColour(*args
, **kwargs
):
3379 """GetBackgroundColour(self) -> Colour"""
3380 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3382 def GetFont(*args
, **kwargs
):
3383 """GetFont(self) -> Font"""
3384 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
3386 def Destroy(*args
, **kwargs
):
3388 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
3391 class ListItemAttrPtr(ListItemAttr
):
3392 def __init__(self
, this
):
3394 if not hasattr(self
,"thisown"): self
.thisown
= 0
3395 self
.__class
__ = ListItemAttr
3396 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
3397 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3399 #---------------------------------------------------------------------------
3401 class ListItem(_core
.Object
):
3403 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3404 def __init__(self
, *args
, **kwargs
):
3405 """__init__(self) -> ListItem"""
3406 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
3407 self
.this
= newobj
.this
3410 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
3413 if self
.thisown
: destroy(self
)
3416 def Clear(*args
, **kwargs
):
3418 return _controls_
.ListItem_Clear(*args
, **kwargs
)
3420 def ClearAttributes(*args
, **kwargs
):
3421 """ClearAttributes(self)"""
3422 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
3424 def SetMask(*args
, **kwargs
):
3425 """SetMask(self, long mask)"""
3426 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
3428 def SetId(*args
, **kwargs
):
3429 """SetId(self, long id)"""
3430 return _controls_
.ListItem_SetId(*args
, **kwargs
)
3432 def SetColumn(*args
, **kwargs
):
3433 """SetColumn(self, int col)"""
3434 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
3436 def SetState(*args
, **kwargs
):
3437 """SetState(self, long state)"""
3438 return _controls_
.ListItem_SetState(*args
, **kwargs
)
3440 def SetStateMask(*args
, **kwargs
):
3441 """SetStateMask(self, long stateMask)"""
3442 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
3444 def SetText(*args
, **kwargs
):
3445 """SetText(self, String text)"""
3446 return _controls_
.ListItem_SetText(*args
, **kwargs
)
3448 def SetImage(*args
, **kwargs
):
3449 """SetImage(self, int image)"""
3450 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
3452 def SetData(*args
, **kwargs
):
3453 """SetData(self, long data)"""
3454 return _controls_
.ListItem_SetData(*args
, **kwargs
)
3456 def SetWidth(*args
, **kwargs
):
3457 """SetWidth(self, int width)"""
3458 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
3460 def SetAlign(*args
, **kwargs
):
3461 """SetAlign(self, int align)"""
3462 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
3464 def SetTextColour(*args
, **kwargs
):
3465 """SetTextColour(self, Colour colText)"""
3466 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
3468 def SetBackgroundColour(*args
, **kwargs
):
3469 """SetBackgroundColour(self, Colour colBack)"""
3470 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3472 def SetFont(*args
, **kwargs
):
3473 """SetFont(self, Font font)"""
3474 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
3476 def GetMask(*args
, **kwargs
):
3477 """GetMask(self) -> long"""
3478 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
3480 def GetId(*args
, **kwargs
):
3481 """GetId(self) -> long"""
3482 return _controls_
.ListItem_GetId(*args
, **kwargs
)
3484 def GetColumn(*args
, **kwargs
):
3485 """GetColumn(self) -> int"""
3486 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
3488 def GetState(*args
, **kwargs
):
3489 """GetState(self) -> long"""
3490 return _controls_
.ListItem_GetState(*args
, **kwargs
)
3492 def GetText(*args
, **kwargs
):
3493 """GetText(self) -> String"""
3494 return _controls_
.ListItem_GetText(*args
, **kwargs
)
3496 def GetImage(*args
, **kwargs
):
3497 """GetImage(self) -> int"""
3498 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
3500 def GetData(*args
, **kwargs
):
3501 """GetData(self) -> long"""
3502 return _controls_
.ListItem_GetData(*args
, **kwargs
)
3504 def GetWidth(*args
, **kwargs
):
3505 """GetWidth(self) -> int"""
3506 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
3508 def GetAlign(*args
, **kwargs
):
3509 """GetAlign(self) -> int"""
3510 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
3512 def GetAttributes(*args
, **kwargs
):
3513 """GetAttributes(self) -> ListItemAttr"""
3514 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
3516 def HasAttributes(*args
, **kwargs
):
3517 """HasAttributes(self) -> bool"""
3518 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
3520 def GetTextColour(*args
, **kwargs
):
3521 """GetTextColour(self) -> Colour"""
3522 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
3524 def GetBackgroundColour(*args
, **kwargs
):
3525 """GetBackgroundColour(self) -> Colour"""
3526 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3528 def GetFont(*args
, **kwargs
):
3529 """GetFont(self) -> Font"""
3530 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
3532 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
3533 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
3534 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
3535 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
3536 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
3537 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
3538 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
3539 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
3540 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
3541 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
3543 class ListItemPtr(ListItem
):
3544 def __init__(self
, this
):
3546 if not hasattr(self
,"thisown"): self
.thisown
= 0
3547 self
.__class
__ = ListItem
3548 _controls_
.ListItem_swigregister(ListItemPtr
)
3550 #---------------------------------------------------------------------------
3552 class ListEvent(_core
.NotifyEvent
):
3554 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3555 def __init__(self
, *args
, **kwargs
):
3556 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3557 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
3558 self
.this
= newobj
.this
3561 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
3562 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
3563 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
3564 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
3565 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
3566 m_item
= property(_controls_
.ListEvent_m_item_get
)
3567 def GetKeyCode(*args
, **kwargs
):
3568 """GetKeyCode(self) -> int"""
3569 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
3571 GetCode
= GetKeyCode
3572 def GetIndex(*args
, **kwargs
):
3573 """GetIndex(self) -> long"""
3574 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
3576 def GetColumn(*args
, **kwargs
):
3577 """GetColumn(self) -> int"""
3578 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
3580 def GetPoint(*args
, **kwargs
):
3581 """GetPoint(self) -> Point"""
3582 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
3584 GetPosition
= GetPoint
3585 def GetLabel(*args
, **kwargs
):
3586 """GetLabel(self) -> String"""
3587 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
3589 def GetText(*args
, **kwargs
):
3590 """GetText(self) -> String"""
3591 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
3593 def GetImage(*args
, **kwargs
):
3594 """GetImage(self) -> int"""
3595 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
3597 def GetData(*args
, **kwargs
):
3598 """GetData(self) -> long"""
3599 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
3601 def GetMask(*args
, **kwargs
):
3602 """GetMask(self) -> long"""
3603 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
3605 def GetItem(*args
, **kwargs
):
3606 """GetItem(self) -> ListItem"""
3607 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
3609 def GetCacheFrom(*args
, **kwargs
):
3610 """GetCacheFrom(self) -> long"""
3611 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3613 def GetCacheTo(*args
, **kwargs
):
3614 """GetCacheTo(self) -> long"""
3615 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
3617 def IsEditCancelled(*args
, **kwargs
):
3618 """IsEditCancelled(self) -> bool"""
3619 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3621 def SetEditCanceled(*args
, **kwargs
):
3622 """SetEditCanceled(self, bool editCancelled)"""
3623 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3626 class ListEventPtr(ListEvent
):
3627 def __init__(self
, this
):
3629 if not hasattr(self
,"thisown"): self
.thisown
= 0
3630 self
.__class
__ = ListEvent
3631 _controls_
.ListEvent_swigregister(ListEventPtr
)
3633 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3634 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3635 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3636 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3637 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
3638 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3639 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
3640 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
3641 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3642 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3643 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
3644 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
3645 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
3646 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3647 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3648 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3649 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
3650 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3651 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3652 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
3653 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
3654 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3655 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3656 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3657 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3658 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3659 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3660 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3661 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3662 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3663 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3664 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3665 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3666 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3667 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3668 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3669 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3670 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3671 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3672 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3673 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3674 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3675 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3676 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3678 #---------------------------------------------------------------------------
3680 class ListCtrl(_core
.Control
):
3682 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3683 def __init__(self
, *args
, **kwargs
):
3685 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3686 Size size=DefaultSize, long style=LC_ICON,
3687 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3689 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
3690 self
.this
= newobj
.this
3693 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3695 def Create(*args
, **kwargs
):
3697 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3698 Size size=DefaultSize, long style=LC_ICON,
3699 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3701 Do the 2nd phase and create the GUI control.
3703 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
3705 def _setCallbackInfo(*args
, **kwargs
):
3706 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3707 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3709 def SetForegroundColour(*args
, **kwargs
):
3710 """SetForegroundColour(self, Colour col) -> bool"""
3711 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3713 def SetBackgroundColour(*args
, **kwargs
):
3714 """SetBackgroundColour(self, Colour col) -> bool"""
3715 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3717 def GetColumn(*args
, **kwargs
):
3718 """GetColumn(self, int col) -> ListItem"""
3719 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
3720 if val
is not None: val
.thisown
= 1
3723 def SetColumn(*args
, **kwargs
):
3724 """SetColumn(self, int col, ListItem item) -> bool"""
3725 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
3727 def GetColumnWidth(*args
, **kwargs
):
3728 """GetColumnWidth(self, int col) -> int"""
3729 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3731 def SetColumnWidth(*args
, **kwargs
):
3732 """SetColumnWidth(self, int col, int width) -> bool"""
3733 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3735 def GetCountPerPage(*args
, **kwargs
):
3736 """GetCountPerPage(self) -> int"""
3737 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3739 def GetViewRect(*args
, **kwargs
):
3740 """GetViewRect(self) -> Rect"""
3741 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
3743 def GetEditControl(*args
, **kwargs
):
3744 """GetEditControl(self) -> TextCtrl"""
3745 return _controls_
.ListCtrl_GetEditControl(*args
, **kwargs
)
3747 def GetItem(*args
, **kwargs
):
3748 """GetItem(self, long itemId, int col=0) -> ListItem"""
3749 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
3750 if val
is not None: val
.thisown
= 1
3753 def SetItem(*args
, **kwargs
):
3754 """SetItem(self, ListItem info) -> bool"""
3755 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
3757 def SetStringItem(*args
, **kwargs
):
3758 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
3759 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
3761 def GetItemState(*args
, **kwargs
):
3762 """GetItemState(self, long item, long stateMask) -> int"""
3763 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
3765 def SetItemState(*args
, **kwargs
):
3766 """SetItemState(self, long item, long state, long stateMask) -> bool"""
3767 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
3769 def SetItemImage(*args
, **kwargs
):
3770 """SetItemImage(self, long item, int image, int selImage) -> bool"""
3771 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
3773 def GetItemText(*args
, **kwargs
):
3774 """GetItemText(self, long item) -> String"""
3775 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
3777 def SetItemText(*args
, **kwargs
):
3778 """SetItemText(self, long item, String str)"""
3779 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
3781 def GetItemData(*args
, **kwargs
):
3782 """GetItemData(self, long item) -> long"""
3783 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
3785 def SetItemData(*args
, **kwargs
):
3786 """SetItemData(self, long item, long data) -> bool"""
3787 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
3789 def GetItemPosition(*args
, **kwargs
):
3790 """GetItemPosition(self, long item) -> Point"""
3791 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3793 def GetItemRect(*args
, **kwargs
):
3794 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3795 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
3797 def SetItemPosition(*args
, **kwargs
):
3798 """SetItemPosition(self, long item, Point pos) -> bool"""
3799 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3801 def GetItemCount(*args
, **kwargs
):
3802 """GetItemCount(self) -> int"""
3803 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
3805 def GetColumnCount(*args
, **kwargs
):
3806 """GetColumnCount(self) -> int"""
3807 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3809 def GetItemSpacing(*args
, **kwargs
):
3810 """GetItemSpacing(self) -> Size"""
3811 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3813 def GetSelectedItemCount(*args
, **kwargs
):
3814 """GetSelectedItemCount(self) -> int"""
3815 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3817 def GetTextColour(*args
, **kwargs
):
3818 """GetTextColour(self) -> Colour"""
3819 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
3821 def SetTextColour(*args
, **kwargs
):
3822 """SetTextColour(self, Colour col)"""
3823 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
3825 def GetTopItem(*args
, **kwargs
):
3826 """GetTopItem(self) -> long"""
3827 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
3829 def SetSingleStyle(*args
, **kwargs
):
3830 """SetSingleStyle(self, long style, bool add=True)"""
3831 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3833 def SetWindowStyleFlag(*args
, **kwargs
):
3835 SetWindowStyleFlag(self, long style)
3837 Sets the style of the window. Please note that some styles cannot be
3838 changed after the window creation and that Refresh() might need to be
3839 called after changing the others for the change to take place
3842 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3844 def GetNextItem(*args
, **kwargs
):
3845 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3846 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
3848 def GetImageList(*args
, **kwargs
):
3849 """GetImageList(self, int which) -> ImageList"""
3850 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
3852 def SetImageList(*args
, **kwargs
):
3853 """SetImageList(self, ImageList imageList, int which)"""
3854 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
3856 def AssignImageList(*args
, **kwargs
):
3857 """AssignImageList(self, ImageList imageList, int which)"""
3858 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
3860 def InReportView(*args
, **kwargs
):
3861 """InReportView(self) -> bool"""
3862 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
3864 def IsVirtual(*args
, **kwargs
):
3865 """IsVirtual(self) -> bool"""
3866 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
3868 def RefreshItem(*args
, **kwargs
):
3869 """RefreshItem(self, long item)"""
3870 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
3872 def RefreshItems(*args
, **kwargs
):
3873 """RefreshItems(self, long itemFrom, long itemTo)"""
3874 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
3876 def Arrange(*args
, **kwargs
):
3877 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
3878 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
3880 def DeleteItem(*args
, **kwargs
):
3881 """DeleteItem(self, long item) -> bool"""
3882 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
3884 def DeleteAllItems(*args
, **kwargs
):
3885 """DeleteAllItems(self) -> bool"""
3886 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3888 def DeleteColumn(*args
, **kwargs
):
3889 """DeleteColumn(self, int col) -> bool"""
3890 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3892 def DeleteAllColumns(*args
, **kwargs
):
3893 """DeleteAllColumns(self) -> bool"""
3894 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3896 def ClearAll(*args
, **kwargs
):
3897 """ClearAll(self)"""
3898 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
3900 def EditLabel(*args
, **kwargs
):
3901 """EditLabel(self, long item) -> TextCtrl"""
3902 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
3904 def EndEditLabel(*args
, **kwargs
):
3905 """EndEditLabel(self, bool cancel) -> bool"""
3906 return _controls_
.ListCtrl_EndEditLabel(*args
, **kwargs
)
3908 def EnsureVisible(*args
, **kwargs
):
3909 """EnsureVisible(self, long item) -> bool"""
3910 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3912 def FindItem(*args
, **kwargs
):
3913 """FindItem(self, long start, String str, bool partial=False) -> long"""
3914 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
3916 def FindItemData(*args
, **kwargs
):
3917 """FindItemData(self, long start, long data) -> long"""
3918 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
3920 def FindItemAtPos(*args
, **kwargs
):
3921 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
3922 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3924 def HitTest(*args
, **kwargs
):
3926 HitTest(Point point) -> (item, where)
3928 Determines which item (if any) is at the specified point, giving
3929 in the second return value (see wxLIST_HITTEST_... flags.)
3931 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
3933 def InsertItem(*args
, **kwargs
):
3934 """InsertItem(self, ListItem info) -> long"""
3935 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
3937 def InsertStringItem(*args
, **kwargs
):
3938 """InsertStringItem(self, long index, String label) -> long"""
3939 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3941 def InsertImageItem(*args
, **kwargs
):
3942 """InsertImageItem(self, long index, int imageIndex) -> long"""
3943 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3945 def InsertImageStringItem(*args
, **kwargs
):
3946 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
3947 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3949 def InsertColumnInfo(*args
, **kwargs
):
3950 """InsertColumnInfo(self, long col, ListItem info) -> long"""
3951 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3953 def InsertColumn(*args
, **kwargs
):
3955 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
3956 int width=-1) -> long
3958 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
3960 def SetItemCount(*args
, **kwargs
):
3961 """SetItemCount(self, long count)"""
3962 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
3964 def ScrollList(*args
, **kwargs
):
3965 """ScrollList(self, int dx, int dy) -> bool"""
3966 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
3968 def SetItemTextColour(*args
, **kwargs
):
3969 """SetItemTextColour(self, long item, Colour col)"""
3970 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3972 def GetItemTextColour(*args
, **kwargs
):
3973 """GetItemTextColour(self, long item) -> Colour"""
3974 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3976 def SetItemBackgroundColour(*args
, **kwargs
):
3977 """SetItemBackgroundColour(self, long item, Colour col)"""
3978 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3980 def GetItemBackgroundColour(*args
, **kwargs
):
3981 """GetItemBackgroundColour(self, long item) -> Colour"""
3982 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3986 def Select(self
, idx
, on
=1):
3987 '''[de]select an item'''
3988 if on
: state
= wx
.LIST_STATE_SELECTED
3990 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3992 def Focus(self
, idx
):
3993 '''Focus and show the given item'''
3994 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3995 self
.EnsureVisible(idx
)
3997 def GetFocusedItem(self
):
3998 '''get the currently focused item or -1 if none'''
3999 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4001 def GetFirstSelected(self
, *args
):
4002 '''return first selected item, or -1 when none'''
4003 return self
.GetNextSelected(-1)
4005 def GetNextSelected(self
, item
):
4006 '''return subsequent selected items, or -1 when no more'''
4007 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4009 def IsSelected(self
, idx
):
4010 '''return True if the item is selected'''
4011 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
4013 def SetColumnImage(self
, col
, image
):
4014 item
= self
.GetColumn(col
)
4015 # preserve all other attributes too
4016 item
.SetMask( wx
.LIST_MASK_STATE |
4018 wx
.LIST_MASK_IMAGE |
4021 wx
.LIST_MASK_WIDTH |
4022 wx
.LIST_MASK_FORMAT
)
4023 item
.SetImage(image
)
4024 self
.SetColumn(col
, item
)
4026 def ClearColumnImage(self
, col
):
4027 self
.SetColumnImage(col
, -1)
4029 def Append(self
, entry
):
4030 '''Append an item to the list control. The entry parameter should be a
4031 sequence with an item for each column'''
4037 pos
= self
.GetItemCount()
4038 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4039 for i
in range(1, len(entry
)):
4040 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4043 def SortItems(*args
, **kwargs
):
4044 """SortItems(self, PyObject func) -> bool"""
4045 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4047 def GetMainWindow(*args
, **kwargs
):
4048 """GetMainWindow(self) -> Window"""
4049 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4051 def GetClassDefaultAttributes(*args
, **kwargs
):
4052 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
4053 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4055 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4057 class ListCtrlPtr(ListCtrl
):
4058 def __init__(self
, this
):
4060 if not hasattr(self
,"thisown"): self
.thisown
= 0
4061 self
.__class
__ = ListCtrl
4062 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
4064 def PreListCtrl(*args
, **kwargs
):
4065 """PreListCtrl() -> ListCtrl"""
4066 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4070 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4071 """ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
4072 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4074 #---------------------------------------------------------------------------
4076 class ListView(ListCtrl
):
4078 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4079 def __init__(self
, *args
, **kwargs
):
4081 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4082 Size size=DefaultSize, long style=LC_REPORT,
4083 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4085 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
4086 self
.this
= newobj
.this
4089 self
._setOORInfo
(self
)
4091 def Create(*args
, **kwargs
):
4093 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4094 Size size=DefaultSize, long style=LC_REPORT,
4095 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4097 Do the 2nd phase and create the GUI control.
4099 return _controls_
.ListView_Create(*args
, **kwargs
)
4101 def Select(*args
, **kwargs
):
4102 """Select(self, long n, bool on=True)"""
4103 return _controls_
.ListView_Select(*args
, **kwargs
)
4105 def Focus(*args
, **kwargs
):
4106 """Focus(self, long index)"""
4107 return _controls_
.ListView_Focus(*args
, **kwargs
)
4109 def GetFocusedItem(*args
, **kwargs
):
4110 """GetFocusedItem(self) -> long"""
4111 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4113 def GetNextSelected(*args
, **kwargs
):
4114 """GetNextSelected(self, long item) -> long"""
4115 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4117 def GetFirstSelected(*args
, **kwargs
):
4118 """GetFirstSelected(self) -> long"""
4119 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4121 def IsSelected(*args
, **kwargs
):
4122 """IsSelected(self, long index) -> bool"""
4123 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4125 def SetColumnImage(*args
, **kwargs
):
4126 """SetColumnImage(self, int col, int image)"""
4127 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4129 def ClearColumnImage(*args
, **kwargs
):
4130 """ClearColumnImage(self, int col)"""
4131 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4134 class ListViewPtr(ListView
):
4135 def __init__(self
, this
):
4137 if not hasattr(self
,"thisown"): self
.thisown
= 0
4138 self
.__class
__ = ListView
4139 _controls_
.ListView_swigregister(ListViewPtr
)
4141 def PreListView(*args
, **kwargs
):
4142 """PreListView() -> ListView"""
4143 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4147 #---------------------------------------------------------------------------
4149 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4150 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4151 TR_NO_LINES
= _controls_
.TR_NO_LINES
4152 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4153 TR_SINGLE
= _controls_
.TR_SINGLE
4154 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4155 TR_EXTENDED
= _controls_
.TR_EXTENDED
4156 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4157 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4158 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4159 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4160 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4161 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4162 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4163 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
4164 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
4165 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4166 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4167 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4168 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4169 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4170 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4171 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4172 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4173 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4174 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4175 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4176 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4177 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4178 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4179 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4180 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4181 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4182 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4183 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4184 #---------------------------------------------------------------------------
4186 class TreeItemId(object):
4188 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4189 def __init__(self
, *args
, **kwargs
):
4190 """__init__(self) -> TreeItemId"""
4191 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
4192 self
.this
= newobj
.this
4195 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
4198 if self
.thisown
: destroy(self
)
4201 def IsOk(*args
, **kwargs
):
4202 """IsOk(self) -> bool"""
4203 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4205 def __eq__(*args
, **kwargs
):
4206 """__eq__(self, TreeItemId other) -> bool"""
4207 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4209 def __ne__(*args
, **kwargs
):
4210 """__ne__(self, TreeItemId other) -> bool"""
4211 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4213 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4215 def __nonzero__(self
): return self
.IsOk()
4217 class TreeItemIdPtr(TreeItemId
):
4218 def __init__(self
, this
):
4220 if not hasattr(self
,"thisown"): self
.thisown
= 0
4221 self
.__class
__ = TreeItemId
4222 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
4223 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4225 class TreeItemData(object):
4227 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4228 def __init__(self
, *args
, **kwargs
):
4229 """__init__(self, PyObject obj=None) -> TreeItemData"""
4230 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
4231 self
.this
= newobj
.this
4234 def GetData(*args
, **kwargs
):
4235 """GetData(self) -> PyObject"""
4236 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4238 def SetData(*args
, **kwargs
):
4239 """SetData(self, PyObject obj)"""
4240 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4242 def GetId(*args
, **kwargs
):
4243 """GetId(self) -> TreeItemId"""
4244 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4246 def SetId(*args
, **kwargs
):
4247 """SetId(self, TreeItemId id)"""
4248 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4250 def Destroy(*args
, **kwargs
):
4252 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4255 class TreeItemDataPtr(TreeItemData
):
4256 def __init__(self
, this
):
4258 if not hasattr(self
,"thisown"): self
.thisown
= 0
4259 self
.__class
__ = TreeItemData
4260 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
4262 #---------------------------------------------------------------------------
4264 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4265 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4266 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4267 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4268 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4269 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4270 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4271 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4272 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4273 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4274 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4275 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4276 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4277 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4278 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4279 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4280 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4281 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4282 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4283 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4284 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4285 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4286 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4287 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4288 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4289 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4290 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4291 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4292 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4293 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4294 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4295 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4296 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4297 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4298 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4299 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4300 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4301 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4302 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4303 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4305 class TreeEvent(_core
.NotifyEvent
):
4307 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4308 def __init__(self
, *args
, **kwargs
):
4309 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4310 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
4311 self
.this
= newobj
.this
4314 def GetItem(*args
, **kwargs
):
4315 """GetItem(self) -> TreeItemId"""
4316 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4318 def SetItem(*args
, **kwargs
):
4319 """SetItem(self, TreeItemId item)"""
4320 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4322 def GetOldItem(*args
, **kwargs
):
4323 """GetOldItem(self) -> TreeItemId"""
4324 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4326 def SetOldItem(*args
, **kwargs
):
4327 """SetOldItem(self, TreeItemId item)"""
4328 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4330 def GetPoint(*args
, **kwargs
):
4331 """GetPoint(self) -> Point"""
4332 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4334 def SetPoint(*args
, **kwargs
):
4335 """SetPoint(self, Point pt)"""
4336 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4338 def GetKeyEvent(*args
, **kwargs
):
4339 """GetKeyEvent(self) -> KeyEvent"""
4340 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4342 def GetKeyCode(*args
, **kwargs
):
4343 """GetKeyCode(self) -> int"""
4344 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4346 def SetKeyEvent(*args
, **kwargs
):
4347 """SetKeyEvent(self, KeyEvent evt)"""
4348 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4350 def GetLabel(*args
, **kwargs
):
4351 """GetLabel(self) -> String"""
4352 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4354 def SetLabel(*args
, **kwargs
):
4355 """SetLabel(self, String label)"""
4356 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4358 def IsEditCancelled(*args
, **kwargs
):
4359 """IsEditCancelled(self) -> bool"""
4360 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4362 def SetEditCanceled(*args
, **kwargs
):
4363 """SetEditCanceled(self, bool editCancelled)"""
4364 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4366 def SetToolTip(*args
, **kwargs
):
4367 """SetToolTip(self, String toolTip)"""
4368 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4371 class TreeEventPtr(TreeEvent
):
4372 def __init__(self
, this
):
4374 if not hasattr(self
,"thisown"): self
.thisown
= 0
4375 self
.__class
__ = TreeEvent
4376 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
4378 #---------------------------------------------------------------------------
4380 class TreeCtrl(_core
.Control
):
4382 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4383 def __init__(self
, *args
, **kwargs
):
4385 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4386 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4387 Validator validator=DefaultValidator,
4388 String name=TreeCtrlNameStr) -> TreeCtrl
4390 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
4391 self
.this
= newobj
.this
4394 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4396 def Create(*args
, **kwargs
):
4398 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4399 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4400 Validator validator=DefaultValidator,
4401 String name=TreeCtrlNameStr) -> bool
4403 Do the 2nd phase and create the GUI control.
4405 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
4407 def _setCallbackInfo(*args
, **kwargs
):
4408 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4409 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4411 def GetCount(*args
, **kwargs
):
4412 """GetCount(self) -> size_t"""
4413 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
4415 def GetIndent(*args
, **kwargs
):
4416 """GetIndent(self) -> unsigned int"""
4417 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
4419 def SetIndent(*args
, **kwargs
):
4420 """SetIndent(self, unsigned int indent)"""
4421 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
4423 def GetSpacing(*args
, **kwargs
):
4424 """GetSpacing(self) -> unsigned int"""
4425 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4427 def SetSpacing(*args
, **kwargs
):
4428 """SetSpacing(self, unsigned int spacing)"""
4429 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4431 def GetImageList(*args
, **kwargs
):
4432 """GetImageList(self) -> ImageList"""
4433 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
4435 def GetStateImageList(*args
, **kwargs
):
4436 """GetStateImageList(self) -> ImageList"""
4437 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4439 def SetImageList(*args
, **kwargs
):
4440 """SetImageList(self, ImageList imageList)"""
4441 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
4443 def SetStateImageList(*args
, **kwargs
):
4444 """SetStateImageList(self, ImageList imageList)"""
4445 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4447 def AssignImageList(*args
, **kwargs
):
4448 """AssignImageList(self, ImageList imageList)"""
4449 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4451 def AssignStateImageList(*args
, **kwargs
):
4452 """AssignStateImageList(self, ImageList imageList)"""
4453 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4455 def GetItemText(*args
, **kwargs
):
4456 """GetItemText(self, TreeItemId item) -> String"""
4457 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
4459 def GetItemImage(*args
, **kwargs
):
4460 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4461 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4463 def GetItemData(*args
, **kwargs
):
4464 """GetItemData(self, TreeItemId item) -> TreeItemData"""
4465 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
4467 def GetItemPyData(*args
, **kwargs
):
4468 """GetItemPyData(self, TreeItemId item) -> PyObject"""
4469 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4471 GetPyData
= GetItemPyData
4472 def GetItemTextColour(*args
, **kwargs
):
4473 """GetItemTextColour(self, TreeItemId item) -> Colour"""
4474 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4476 def GetItemBackgroundColour(*args
, **kwargs
):
4477 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
4478 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4480 def GetItemFont(*args
, **kwargs
):
4481 """GetItemFont(self, TreeItemId item) -> Font"""
4482 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4484 def SetItemText(*args
, **kwargs
):
4485 """SetItemText(self, TreeItemId item, String text)"""
4486 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
4488 def SetItemImage(*args
, **kwargs
):
4489 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4490 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4492 def SetItemData(*args
, **kwargs
):
4493 """SetItemData(self, TreeItemId item, TreeItemData data)"""
4494 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
4496 def SetItemPyData(*args
, **kwargs
):
4497 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
4498 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4500 SetPyData
= SetItemPyData
4501 def SetItemHasChildren(*args
, **kwargs
):
4502 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
4503 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4505 def SetItemBold(*args
, **kwargs
):
4506 """SetItemBold(self, TreeItemId item, bool bold=True)"""
4507 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4509 def SetItemDropHighlight(*args
, **kwargs
):
4510 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
4511 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
4513 def SetItemTextColour(*args
, **kwargs
):
4514 """SetItemTextColour(self, TreeItemId item, Colour col)"""
4515 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4517 def SetItemBackgroundColour(*args
, **kwargs
):
4518 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
4519 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4521 def SetItemFont(*args
, **kwargs
):
4522 """SetItemFont(self, TreeItemId item, Font font)"""
4523 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4525 def IsVisible(*args
, **kwargs
):
4526 """IsVisible(self, TreeItemId item) -> bool"""
4527 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
4529 def ItemHasChildren(*args
, **kwargs
):
4530 """ItemHasChildren(self, TreeItemId item) -> bool"""
4531 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4533 def IsExpanded(*args
, **kwargs
):
4534 """IsExpanded(self, TreeItemId item) -> bool"""
4535 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4537 def IsSelected(*args
, **kwargs
):
4538 """IsSelected(self, TreeItemId item) -> bool"""
4539 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
4541 def IsBold(*args
, **kwargs
):
4542 """IsBold(self, TreeItemId item) -> bool"""
4543 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
4545 def GetChildrenCount(*args
, **kwargs
):
4546 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
4547 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4549 def GetRootItem(*args
, **kwargs
):
4550 """GetRootItem(self) -> TreeItemId"""
4551 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4553 def GetSelection(*args
, **kwargs
):
4554 """GetSelection(self) -> TreeItemId"""
4555 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
4557 def GetSelections(*args
, **kwargs
):
4558 """GetSelections(self) -> PyObject"""
4559 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
4561 def GetItemParent(*args
, **kwargs
):
4562 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
4563 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4565 def GetFirstChild(*args
, **kwargs
):
4566 """GetFirstChild(self, TreeItemId item) -> PyObject"""
4567 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4569 def GetNextChild(*args
, **kwargs
):
4570 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
4571 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4573 def GetLastChild(*args
, **kwargs
):
4574 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
4575 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4577 def GetNextSibling(*args
, **kwargs
):
4578 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
4579 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4581 def GetPrevSibling(*args
, **kwargs
):
4582 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
4583 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4585 def GetFirstVisibleItem(*args
, **kwargs
):
4586 """GetFirstVisibleItem(self) -> TreeItemId"""
4587 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4589 def GetNextVisible(*args
, **kwargs
):
4590 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
4591 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4593 def GetPrevVisible(*args
, **kwargs
):
4594 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
4595 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4597 def AddRoot(*args
, **kwargs
):
4598 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4599 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
4601 def PrependItem(*args
, **kwargs
):
4603 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4604 TreeItemData data=None) -> TreeItemId
4606 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
4608 def InsertItem(*args
, **kwargs
):
4610 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
4611 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4613 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
4615 def InsertItemBefore(*args
, **kwargs
):
4617 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
4618 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4620 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4622 def AppendItem(*args
, **kwargs
):
4624 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4625 TreeItemData data=None) -> TreeItemId
4627 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
4629 def Delete(*args
, **kwargs
):
4630 """Delete(self, TreeItemId item)"""
4631 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
4633 def DeleteChildren(*args
, **kwargs
):
4634 """DeleteChildren(self, TreeItemId item)"""
4635 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4637 def DeleteAllItems(*args
, **kwargs
):
4638 """DeleteAllItems(self)"""
4639 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4641 def Expand(*args
, **kwargs
):
4642 """Expand(self, TreeItemId item)"""
4643 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
4645 def Collapse(*args
, **kwargs
):
4646 """Collapse(self, TreeItemId item)"""
4647 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
4649 def CollapseAndReset(*args
, **kwargs
):
4650 """CollapseAndReset(self, TreeItemId item)"""
4651 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4653 def Toggle(*args
, **kwargs
):
4654 """Toggle(self, TreeItemId item)"""
4655 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
4657 def Unselect(*args
, **kwargs
):
4658 """Unselect(self)"""
4659 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
4661 def UnselectItem(*args
, **kwargs
):
4662 """UnselectItem(self, TreeItemId item)"""
4663 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4665 def UnselectAll(*args
, **kwargs
):
4666 """UnselectAll(self)"""
4667 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4669 def SelectItem(*args
, **kwargs
):
4670 """SelectItem(self, TreeItemId item, bool select=True)"""
4671 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
4673 def ToggleItemSelection(*args
, **kwargs
):
4674 """ToggleItemSelection(self, TreeItemId item)"""
4675 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4677 def EnsureVisible(*args
, **kwargs
):
4678 """EnsureVisible(self, TreeItemId item)"""
4679 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4681 def ScrollTo(*args
, **kwargs
):
4682 """ScrollTo(self, TreeItemId item)"""
4683 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4685 def EditLabel(*args
, **kwargs
):
4686 """EditLabel(self, TreeItemId item)"""
4687 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
4689 def GetEditControl(*args
, **kwargs
):
4690 """GetEditControl(self) -> TextCtrl"""
4691 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4693 def EndEditLabel(*args
, **kwargs
):
4694 """EndEditLabel(self, TreeItemId item, bool discardChanges=False)"""
4695 return _controls_
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
4697 def SortChildren(*args
, **kwargs
):
4698 """SortChildren(self, TreeItemId item)"""
4699 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
4701 def HitTest(*args
, **kwargs
):
4703 HitTest(Point point) -> (item, where)
4705 Determine which item (if any) belongs the given point. The coordinates
4706 specified are relative to the client area of tree ctrl and the where return
4707 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
4710 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
4712 def GetBoundingRect(*args
, **kwargs
):
4713 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
4714 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4716 def GetClassDefaultAttributes(*args
, **kwargs
):
4717 """GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
4718 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4720 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4722 class TreeCtrlPtr(TreeCtrl
):
4723 def __init__(self
, this
):
4725 if not hasattr(self
,"thisown"): self
.thisown
= 0
4726 self
.__class
__ = TreeCtrl
4727 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
4729 def PreTreeCtrl(*args
, **kwargs
):
4730 """PreTreeCtrl() -> TreeCtrl"""
4731 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
4735 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4736 """TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"""
4737 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4739 #---------------------------------------------------------------------------
4741 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
4742 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
4743 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
4744 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
4745 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
4746 class GenericDirCtrl(_core
.Control
):
4748 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4749 def __init__(self
, *args
, **kwargs
):
4751 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4752 Point pos=DefaultPosition, Size size=DefaultSize,
4753 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4754 String filter=EmptyString,
4755 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4757 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
4758 self
.this
= newobj
.this
4761 self
._setOORInfo
(self
)
4763 def Create(*args
, **kwargs
):
4765 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4766 Point pos=DefaultPosition, Size size=DefaultSize,
4767 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4768 String filter=EmptyString,
4769 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4771 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
4773 def ExpandPath(*args
, **kwargs
):
4774 """ExpandPath(self, String path) -> bool"""
4775 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4777 def GetDefaultPath(*args
, **kwargs
):
4778 """GetDefaultPath(self) -> String"""
4779 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4781 def SetDefaultPath(*args
, **kwargs
):
4782 """SetDefaultPath(self, String path)"""
4783 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4785 def GetPath(*args
, **kwargs
):
4786 """GetPath(self) -> String"""
4787 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4789 def GetFilePath(*args
, **kwargs
):
4790 """GetFilePath(self) -> String"""
4791 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4793 def SetPath(*args
, **kwargs
):
4794 """SetPath(self, String path)"""
4795 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4797 def ShowHidden(*args
, **kwargs
):
4798 """ShowHidden(self, bool show)"""
4799 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4801 def GetShowHidden(*args
, **kwargs
):
4802 """GetShowHidden(self) -> bool"""
4803 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4805 def GetFilter(*args
, **kwargs
):
4806 """GetFilter(self) -> String"""
4807 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4809 def SetFilter(*args
, **kwargs
):
4810 """SetFilter(self, String filter)"""
4811 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4813 def GetFilterIndex(*args
, **kwargs
):
4814 """GetFilterIndex(self) -> int"""
4815 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4817 def SetFilterIndex(*args
, **kwargs
):
4818 """SetFilterIndex(self, int n)"""
4819 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4821 def GetRootId(*args
, **kwargs
):
4822 """GetRootId(self) -> TreeItemId"""
4823 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4825 def GetTreeCtrl(*args
, **kwargs
):
4826 """GetTreeCtrl(self) -> TreeCtrl"""
4827 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4829 def GetFilterListCtrl(*args
, **kwargs
):
4830 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
4831 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4833 def FindChild(*args
, **kwargs
):
4835 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4837 Find the child that matches the first part of 'path'. E.g. if a child
4838 path is "/usr" and 'path' is "/usr/include" then the child for
4839 /usr is returned. If the path string has been used (we're at the
4840 leaf), done is set to True.
4843 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4845 def DoResize(*args
, **kwargs
):
4846 """DoResize(self)"""
4847 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4849 def ReCreateTree(*args
, **kwargs
):
4850 """ReCreateTree(self)"""
4851 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4854 class GenericDirCtrlPtr(GenericDirCtrl
):
4855 def __init__(self
, this
):
4857 if not hasattr(self
,"thisown"): self
.thisown
= 0
4858 self
.__class
__ = GenericDirCtrl
4859 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4860 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4862 def PreGenericDirCtrl(*args
, **kwargs
):
4863 """PreGenericDirCtrl() -> GenericDirCtrl"""
4864 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
4868 class DirFilterListCtrl(Choice
):
4870 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4871 def __init__(self
, *args
, **kwargs
):
4873 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4874 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4876 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
4877 self
.this
= newobj
.this
4880 self
._setOORInfo
(self
)
4882 def Create(*args
, **kwargs
):
4884 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4885 Size size=DefaultSize, long style=0) -> bool
4887 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
4889 def FillFilterList(*args
, **kwargs
):
4890 """FillFilterList(self, String filter, int defaultFilter)"""
4891 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4894 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4895 def __init__(self
, this
):
4897 if not hasattr(self
,"thisown"): self
.thisown
= 0
4898 self
.__class
__ = DirFilterListCtrl
4899 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4901 def PreDirFilterListCtrl(*args
, **kwargs
):
4902 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4903 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4907 #---------------------------------------------------------------------------
4909 class PyControl(_core
.Control
):
4911 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4912 def __init__(self
, *args
, **kwargs
):
4914 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4915 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
4916 String name=ControlNameStr) -> PyControl
4918 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
4919 self
.this
= newobj
.this
4922 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4924 def _setCallbackInfo(*args
, **kwargs
):
4925 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4926 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
4928 def SetBestSize(*args
, **kwargs
):
4929 """SetBestSize(self, Size size)"""
4930 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
4932 def base_DoMoveWindow(*args
, **kwargs
):
4933 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
4934 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4936 def base_DoSetSize(*args
, **kwargs
):
4937 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4938 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
4940 def base_DoSetClientSize(*args
, **kwargs
):
4941 """base_DoSetClientSize(self, int width, int height)"""
4942 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4944 def base_DoSetVirtualSize(*args
, **kwargs
):
4945 """base_DoSetVirtualSize(self, int x, int y)"""
4946 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4948 def base_DoGetSize(*args
, **kwargs
):
4949 """base_DoGetSize() -> (width, height)"""
4950 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
4952 def base_DoGetClientSize(*args
, **kwargs
):
4953 """base_DoGetClientSize() -> (width, height)"""
4954 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4956 def base_DoGetPosition(*args
, **kwargs
):
4957 """base_DoGetPosition() -> (x,y)"""
4958 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4960 def base_DoGetVirtualSize(*args
, **kwargs
):
4961 """base_DoGetVirtualSize(self) -> Size"""
4962 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4964 def base_DoGetBestSize(*args
, **kwargs
):
4965 """base_DoGetBestSize(self) -> Size"""
4966 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4968 def base_InitDialog(*args
, **kwargs
):
4969 """base_InitDialog(self)"""
4970 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
4972 def base_TransferDataToWindow(*args
, **kwargs
):
4973 """base_TransferDataToWindow(self) -> bool"""
4974 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4976 def base_TransferDataFromWindow(*args
, **kwargs
):
4977 """base_TransferDataFromWindow(self) -> bool"""
4978 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4980 def base_Validate(*args
, **kwargs
):
4981 """base_Validate(self) -> bool"""
4982 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
4984 def base_AcceptsFocus(*args
, **kwargs
):
4985 """base_AcceptsFocus(self) -> bool"""
4986 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4988 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4989 """base_AcceptsFocusFromKeyboard(self) -> bool"""
4990 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4992 def base_GetMaxSize(*args
, **kwargs
):
4993 """base_GetMaxSize(self) -> Size"""
4994 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4996 def base_AddChild(*args
, **kwargs
):
4997 """base_AddChild(self, Window child)"""
4998 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
5000 def base_RemoveChild(*args
, **kwargs
):
5001 """base_RemoveChild(self, Window child)"""
5002 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
5004 def base_ShouldInheritColours(*args
, **kwargs
):
5005 """base_ShouldInheritColours(self) -> bool"""
5006 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
5008 def base_ApplyParentThemeBackground(*args
, **kwargs
):
5009 """base_ApplyParentThemeBackground(self, Colour c)"""
5010 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
5012 def base_GetDefaultAttributes(*args
, **kwargs
):
5013 """base_GetDefaultAttributes(self) -> VisualAttributes"""
5014 return _controls_
.PyControl_base_GetDefaultAttributes(*args
, **kwargs
)
5017 class PyControlPtr(PyControl
):
5018 def __init__(self
, this
):
5020 if not hasattr(self
,"thisown"): self
.thisown
= 0
5021 self
.__class
__ = PyControl
5022 _controls_
.PyControl_swigregister(PyControlPtr
)
5024 def PrePyControl(*args
, **kwargs
):
5025 """PrePyControl() -> PyControl"""
5026 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5030 #---------------------------------------------------------------------------
5032 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5033 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5034 wxEVT_HELP
= _controls_
.wxEVT_HELP
5035 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5036 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5037 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5038 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5039 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5041 class HelpEvent(_core
.CommandEvent
):
5043 A help event is sent when the user has requested context-sensitive
5044 help. This can either be caused by the application requesting
5045 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5046 the system generating a WM_HELP message when the user pressed F1 or
5047 clicked on the query button in a dialog caption.
5049 A help event is sent to the window that the user clicked on, and is
5050 propagated up the window hierarchy until the event is processed or
5051 there are no more event handlers. The application should call
5052 event.GetId to check the identity of the clicked-on window, and then
5053 either show some suitable help or call event.Skip if the identifier is
5054 unrecognised. Calling Skip is important because it allows wxWindows to
5055 generate further events for ancestors of the clicked-on
5056 window. Otherwise it would be impossible to show help for container
5057 windows, since processing would stop after the first window found.
5060 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5061 def __init__(self
, *args
, **kwargs
):
5062 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5063 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
5064 self
.this
= newobj
.this
5067 def GetPosition(*args
, **kwargs
):
5069 GetPosition(self) -> Point
5071 Returns the left-click position of the mouse, in screen
5072 coordinates. This allows the application to position the help
5075 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5077 def SetPosition(*args
, **kwargs
):
5079 SetPosition(self, Point pos)
5081 Sets the left-click position of the mouse, in screen coordinates.
5083 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5085 def GetLink(*args
, **kwargs
):
5087 GetLink(self) -> String
5089 Get an optional link to further help
5091 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5093 def SetLink(*args
, **kwargs
):
5095 SetLink(self, String link)
5097 Set an optional link to further help
5099 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5101 def GetTarget(*args
, **kwargs
):
5103 GetTarget(self) -> String
5105 Get an optional target to display help in. E.g. a window specification
5107 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5109 def SetTarget(*args
, **kwargs
):
5111 SetTarget(self, String target)
5113 Set an optional target to display help in. E.g. a window specification
5115 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5118 class HelpEventPtr(HelpEvent
):
5119 def __init__(self
, this
):
5121 if not hasattr(self
,"thisown"): self
.thisown
= 0
5122 self
.__class
__ = HelpEvent
5123 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
5125 class ContextHelp(_core
.Object
):
5127 This class changes the cursor to a query and puts the application into
5128 a 'context-sensitive help mode'. When the user left-clicks on a window
5129 within the specified window, a ``EVT_HELP`` event is sent to that
5130 control, and the application may respond to it by popping up some
5133 There are a couple of ways to invoke this behaviour implicitly:
5135 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5136 (Windows only). This will put a question mark in the titlebar,
5137 and Windows will put the application into context-sensitive help
5138 mode automatically, with further programming.
5140 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5141 to create a context help object. Normally you will write your
5142 application so that this button is only added to a dialog for
5143 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5146 :see: `wx.ContextHelpButton`
5150 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5151 def __init__(self
, *args
, **kwargs
):
5153 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5155 Constructs a context help object, calling BeginContextHelp if doNow is
5158 If window is None, the top window is used.
5160 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
5161 self
.this
= newobj
.this
5164 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
5167 if self
.thisown
: destroy(self
)
5170 def BeginContextHelp(*args
, **kwargs
):
5172 BeginContextHelp(self, Window window=None) -> bool
5174 Puts the application into context-sensitive help mode. window is the
5175 window which will be used to catch events; if NULL, the top window
5178 Returns true if the application was successfully put into
5179 context-sensitive help mode. This function only returns when the event
5182 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5184 def EndContextHelp(*args
, **kwargs
):
5186 EndContextHelp(self) -> bool
5188 Ends context-sensitive help mode. Not normally called by the
5191 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5194 class ContextHelpPtr(ContextHelp
):
5195 def __init__(self
, this
):
5197 if not hasattr(self
,"thisown"): self
.thisown
= 0
5198 self
.__class
__ = ContextHelp
5199 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
5201 class ContextHelpButton(BitmapButton
):
5203 Instances of this class may be used to add a question mark button that
5204 when pressed, puts the application into context-help mode. It does
5205 this by creating a wx.ContextHelp object which itself generates a
5206 ``EVT_HELP`` event when the user clicks on a window.
5208 On Windows, you may add a question-mark icon to a dialog by use of the
5209 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5210 will have to add a button explicitly, usually next to OK, Cancel or
5213 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5217 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5218 def __init__(self
, *args
, **kwargs
):
5220 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5221 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5223 Constructor, creating and showing a context help button.
5225 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
5226 self
.this
= newobj
.this
5229 self
._setOORInfo
(self
)
5232 class ContextHelpButtonPtr(ContextHelpButton
):
5233 def __init__(self
, this
):
5235 if not hasattr(self
,"thisown"): self
.thisown
= 0
5236 self
.__class
__ = ContextHelpButton
5237 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5239 class HelpProvider(object):
5241 wx.HelpProvider is an abstract class used by a program
5242 implementing context-sensitive help to show the help text for the
5245 The current help provider must be explicitly set by the
5246 application using wx.HelpProvider.Set().
5248 def __init__(self
): raise RuntimeError, "No constructor defined"
5250 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5251 def Set(*args
, **kwargs
):
5253 Set(HelpProvider helpProvider) -> HelpProvider
5255 Sset the current, application-wide help provider. Returns the previous
5256 one. Unlike some other classes, the help provider is not created on
5257 demand. This must be explicitly done by the application.
5259 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5261 Set
= staticmethod(Set
)
5262 def Get(*args
, **kwargs
):
5264 Get() -> HelpProvider
5266 Return the current application-wide help provider.
5268 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5270 Get
= staticmethod(Get
)
5271 def GetHelp(*args
, **kwargs
):
5273 GetHelp(self, Window window) -> String
5275 Gets the help string for this window. Its interpretation is dependent
5276 on the help provider except that empty string always means that no
5277 help is associated with the window.
5279 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5281 def ShowHelp(*args
, **kwargs
):
5283 ShowHelp(self, Window window) -> bool
5285 Shows help for the given window. Uses GetHelp internally if
5286 applicable. Returns True if it was done, or False if no help was
5287 available for this window.
5289 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5291 def AddHelp(*args
, **kwargs
):
5293 AddHelp(self, Window window, String text)
5295 Associates the text with the given window.
5297 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5299 def AddHelpById(*args
, **kwargs
):
5301 AddHelpById(self, int id, String text)
5303 This version associates the given text with all windows with this
5304 id. May be used to set the same help string for all Cancel buttons in
5305 the application, for example.
5307 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5309 def RemoveHelp(*args
, **kwargs
):
5311 RemoveHelp(self, Window window)
5313 Removes the association between the window pointer and the help
5314 text. This is called by the wx.Window destructor. Without this, the
5315 table of help strings will fill up and when window pointers are
5316 reused, the wrong help string will be found.
5318 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5320 def Destroy(*args
, **kwargs
):
5322 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5325 class HelpProviderPtr(HelpProvider
):
5326 def __init__(self
, this
):
5328 if not hasattr(self
,"thisown"): self
.thisown
= 0
5329 self
.__class
__ = HelpProvider
5330 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
5332 def HelpProvider_Set(*args
, **kwargs
):
5334 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5336 Sset the current, application-wide help provider. Returns the previous
5337 one. Unlike some other classes, the help provider is not created on
5338 demand. This must be explicitly done by the application.
5340 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5342 def HelpProvider_Get(*args
, **kwargs
):
5344 HelpProvider_Get() -> HelpProvider
5346 Return the current application-wide help provider.
5348 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5350 class SimpleHelpProvider(HelpProvider
):
5352 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5353 supports only plain text help strings, and shows the string associated
5354 with the control (if any) in a tooltip.
5357 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5358 def __init__(self
, *args
, **kwargs
):
5360 __init__(self) -> SimpleHelpProvider
5362 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5363 supports only plain text help strings, and shows the string associated
5364 with the control (if any) in a tooltip.
5366 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
5367 self
.this
= newobj
.this
5371 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5372 def __init__(self
, this
):
5374 if not hasattr(self
,"thisown"): self
.thisown
= 0
5375 self
.__class
__ = SimpleHelpProvider
5376 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5378 #---------------------------------------------------------------------------
5380 class DragImage(_core
.Object
):
5382 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5383 def __init__(self
, *args
, **kwargs
):
5384 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5385 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
5386 self
.this
= newobj
.this
5389 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
5392 if self
.thisown
: destroy(self
)
5395 def SetBackingBitmap(*args
, **kwargs
):
5396 """SetBackingBitmap(self, Bitmap bitmap)"""
5397 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5399 def BeginDrag(*args
, **kwargs
):
5401 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
5402 Rect rect=None) -> bool
5404 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
5406 def BeginDragBounded(*args
, **kwargs
):
5407 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
5408 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
5410 def EndDrag(*args
, **kwargs
):
5411 """EndDrag(self) -> bool"""
5412 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
5414 def Move(*args
, **kwargs
):
5415 """Move(self, Point pt) -> bool"""
5416 return _controls_
.DragImage_Move(*args
, **kwargs
)
5418 def Show(*args
, **kwargs
):
5419 """Show(self) -> bool"""
5420 return _controls_
.DragImage_Show(*args
, **kwargs
)
5422 def Hide(*args
, **kwargs
):
5423 """Hide(self) -> bool"""
5424 return _controls_
.DragImage_Hide(*args
, **kwargs
)
5426 def GetImageRect(*args
, **kwargs
):
5427 """GetImageRect(self, Point pos) -> Rect"""
5428 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
5430 def DoDrawImage(*args
, **kwargs
):
5431 """DoDrawImage(self, DC dc, Point pos) -> bool"""
5432 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
5434 def UpdateBackingFromWindow(*args
, **kwargs
):
5435 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
5436 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
5438 def RedrawImage(*args
, **kwargs
):
5439 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
5440 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
5443 class DragImagePtr(DragImage
):
5444 def __init__(self
, this
):
5446 if not hasattr(self
,"thisown"): self
.thisown
= 0
5447 self
.__class
__ = DragImage
5448 _controls_
.DragImage_swigregister(DragImagePtr
)
5450 def DragIcon(*args
, **kwargs
):
5451 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
5452 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
5456 def DragString(*args
, **kwargs
):
5457 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
5458 val
= _controls_
.new_DragString(*args
, **kwargs
)
5462 def DragTreeItem(*args
, **kwargs
):
5463 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
5464 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
5468 def DragListItem(*args
, **kwargs
):
5469 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
5470 val
= _controls_
.new_DragListItem(*args
, **kwargs
)