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, String label, Point pos=DefaultPosition,
27 Size size=DefaultSize, long style=0,
28 Validator validator=DefaultValidator, String name=ButtonNameStr) -> Button
30 Create and show a button.
32 newobj
= _controls_
.new_Button(*args
, **kwargs
)
33 self
.this
= newobj
.this
36 self
._setOORInfo
(self
)
38 def Create(*args
, **kwargs
):
40 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
41 Size size=DefaultSize, long style=0,
42 Validator validator=DefaultValidator, String name=ButtonNameStr) -> bool
44 Acutally create the GUI Button for 2-phase creation.
46 return _controls_
.Button_Create(*args
, **kwargs
)
48 def SetDefault(*args
, **kwargs
):
52 This sets the button to be the default item for the panel or dialog box.
54 return _controls_
.Button_SetDefault(*args
, **kwargs
)
56 def GetDefaultSize(*args
, **kwargs
):
58 GetDefaultSize() -> Size
60 Returns the default button size for this platform.
62 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
64 GetDefaultSize
= staticmethod(GetDefaultSize
)
65 def GetClassDefaultAttributes(*args
, **kwargs
):
67 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
69 Get the default attributes for this class. This is useful if you want
70 to use the same font or colour in your own control as in a standard
71 control -- which is a much better idea than hard coding specific
72 colours or fonts which might look completely out of place on the
73 user's system, especially if it uses themes.
75 The variant parameter is only relevant under Mac currently and is
76 ignore under other platforms. Under Mac, it will change the size of
77 the returned font. See `wx.Window.SetWindowVariant` for more about
80 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
82 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
84 class ButtonPtr(Button
):
85 def __init__(self
, this
):
87 if not hasattr(self
,"thisown"): self
.thisown
= 0
88 self
.__class
__ = Button
89 _controls_
.Button_swigregister(ButtonPtr
)
90 cvar
= _controls_
.cvar
91 ButtonNameStr
= cvar
.ButtonNameStr
93 def PreButton(*args
, **kwargs
):
97 Precreate a Button for 2-phase creation.
99 val
= _controls_
.new_PreButton(*args
, **kwargs
)
103 def Button_GetDefaultSize(*args
, **kwargs
):
105 Button_GetDefaultSize() -> Size
107 Returns the default button size for this platform.
109 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
111 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
113 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
115 Get the default attributes for this class. This is useful if you want
116 to use the same font or colour in your own control as in a standard
117 control -- which is a much better idea than hard coding specific
118 colours or fonts which might look completely out of place on the
119 user's system, especially if it uses themes.
121 The variant parameter is only relevant under Mac currently and is
122 ignore under other platforms. Under Mac, it will change the size of
123 the returned font. See `wx.Window.SetWindowVariant` for more about
126 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
128 class BitmapButton(Button
):
130 A Button that contains a bitmap. A bitmap button can be supplied with a
131 single bitmap, and wxWidgets will draw all button states using this bitmap. If
132 the application needs more control, additional bitmaps for the selected state,
133 unpressed focused state, and greyed-out state may be supplied.
136 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
137 def __init__(self
, *args
, **kwargs
):
139 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
140 Size size=DefaultSize, long style=BU_AUTODRAW,
141 Validator validator=DefaultValidator,
142 String name=ButtonNameStr) -> BitmapButton
144 Create and show a button with a bitmap for the label.
146 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
147 self
.this
= newobj
.this
150 self
._setOORInfo
(self
)
152 def Create(*args
, **kwargs
):
154 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
155 Size size=DefaultSize, long style=BU_AUTODRAW,
156 Validator validator=DefaultValidator,
157 String name=ButtonNameStr) -> bool
159 Acutally create the GUI BitmapButton for 2-phase creation.
161 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
163 def GetBitmapLabel(*args
, **kwargs
):
165 GetBitmapLabel(self) -> Bitmap
167 Returns the label bitmap (the one passed to the constructor).
169 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
171 def GetBitmapDisabled(*args
, **kwargs
):
173 GetBitmapDisabled(self) -> Bitmap
175 Returns the bitmap for the disabled state.
177 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
179 def GetBitmapFocus(*args
, **kwargs
):
181 GetBitmapFocus(self) -> Bitmap
183 Returns the bitmap for the focused state.
185 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
187 def GetBitmapSelected(*args
, **kwargs
):
189 GetBitmapSelected(self) -> Bitmap
191 Returns the bitmap for the selected state.
193 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
195 def SetBitmapDisabled(*args
, **kwargs
):
197 SetBitmapDisabled(self, Bitmap bitmap)
199 Sets the bitmap for the disabled button appearance.
201 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
203 def SetBitmapFocus(*args
, **kwargs
):
205 SetBitmapFocus(self, Bitmap bitmap)
207 Sets the bitmap for the button appearance when it has the keyboard focus.
209 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
211 def SetBitmapSelected(*args
, **kwargs
):
213 SetBitmapSelected(self, Bitmap bitmap)
215 Sets the bitmap for the selected (depressed) button appearance.
217 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
219 def SetBitmapLabel(*args
, **kwargs
):
221 SetBitmapLabel(self, Bitmap bitmap)
223 Sets the bitmap label for the button. This is the bitmap used for the
224 unselected state, and for all other states if no other bitmaps are provided.
226 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
228 def SetMargins(*args
, **kwargs
):
229 """SetMargins(self, int x, int y)"""
230 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
232 def GetMarginX(*args
, **kwargs
):
233 """GetMarginX(self) -> int"""
234 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
236 def GetMarginY(*args
, **kwargs
):
237 """GetMarginY(self) -> int"""
238 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
241 class BitmapButtonPtr(BitmapButton
):
242 def __init__(self
, this
):
244 if not hasattr(self
,"thisown"): self
.thisown
= 0
245 self
.__class
__ = BitmapButton
246 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
248 def PreBitmapButton(*args
, **kwargs
):
250 PreBitmapButton() -> BitmapButton
252 Precreate a BitmapButton for 2-phase creation.
254 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
258 #---------------------------------------------------------------------------
260 CHK_2STATE
= _controls_
.CHK_2STATE
261 CHK_3STATE
= _controls_
.CHK_3STATE
262 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
263 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
264 CHK_CHECKED
= _controls_
.CHK_CHECKED
265 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
266 class CheckBox(_core
.Control
):
268 A checkbox is a labelled box which by default is either on (the
269 checkmark is visible) or off (no checkmark). Optionally (When the
270 wx.CHK_3STATE style flag is set) it can have a third state, called the
271 mixed or undetermined state. Often this is used as a "Does Not
275 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
276 def __init__(self
, *args
, **kwargs
):
278 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
279 Size size=DefaultSize, long style=0,
280 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox
282 Creates and shows a CheckBox control
284 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
285 self
.this
= newobj
.this
288 self
._setOORInfo
(self
)
290 def Create(*args
, **kwargs
):
292 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
293 Size size=DefaultSize, long style=0,
294 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool
296 Actually create the GUI CheckBox for 2-phase creation.
298 return _controls_
.CheckBox_Create(*args
, **kwargs
)
300 def GetValue(*args
, **kwargs
):
302 GetValue(self) -> bool
304 Gets the state of a 2-state CheckBox. Returns True if it is checked,
307 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
309 def IsChecked(*args
, **kwargs
):
311 IsChecked(self) -> bool
313 Similar to GetValue, but raises an exception if it is not a 2-state
316 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
318 def SetValue(*args
, **kwargs
):
320 SetValue(self, bool state)
322 Set the state of a 2-state CheckBox. Pass True for checked, False for
325 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
327 def Get3StateValue(*args
, **kwargs
):
329 Get3StateValue(self) -> int
331 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
332 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
333 the undetermined state. Raises an exceptiion when the function is
334 used with a 2-state CheckBox.
336 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
338 def Set3StateValue(*args
, **kwargs
):
340 Set3StateValue(self, int state)
342 Sets the CheckBox to the given state. The state parameter can be one
343 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
344 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
345 exception when the CheckBox is a 2-state checkbox and setting the
346 state to wx.CHK_UNDETERMINED.
348 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
350 def Is3State(*args
, **kwargs
):
352 Is3State(self) -> bool
354 Returns whether or not the CheckBox is a 3-state CheckBox.
356 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
358 def Is3rdStateAllowedForUser(*args
, **kwargs
):
360 Is3rdStateAllowedForUser(self) -> bool
362 Returns whether or not the user can set the CheckBox to the third
365 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
367 def GetClassDefaultAttributes(*args
, **kwargs
):
369 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
371 Get the default attributes for this class. This is useful if you want
372 to use the same font or colour in your own control as in a standard
373 control -- which is a much better idea than hard coding specific
374 colours or fonts which might look completely out of place on the
375 user's system, especially if it uses themes.
377 The variant parameter is only relevant under Mac currently and is
378 ignore under other platforms. Under Mac, it will change the size of
379 the returned font. See `wx.Window.SetWindowVariant` for more about
382 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
384 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
386 class CheckBoxPtr(CheckBox
):
387 def __init__(self
, this
):
389 if not hasattr(self
,"thisown"): self
.thisown
= 0
390 self
.__class
__ = CheckBox
391 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
392 CheckBoxNameStr
= cvar
.CheckBoxNameStr
394 def PreCheckBox(*args
, **kwargs
):
396 PreCheckBox() -> CheckBox
398 Precreate a CheckBox for 2-phase creation.
400 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
404 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
406 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
408 Get the default attributes for this class. This is useful if you want
409 to use the same font or colour in your own control as in a standard
410 control -- which is a much better idea than hard coding specific
411 colours or fonts which might look completely out of place on the
412 user's system, especially if it uses themes.
414 The variant parameter is only relevant under Mac currently and is
415 ignore under other platforms. Under Mac, it will change the size of
416 the returned font. See `wx.Window.SetWindowVariant` for more about
419 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
421 #---------------------------------------------------------------------------
423 class Choice(_core
.ControlWithItems
):
425 A Choice control is used to select one of a list of strings.
426 Unlike a `wx.ListBox`, only the selection is visible until the
427 user pulls down the menu of choices.
430 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
431 def __init__(self
, *args
, **kwargs
):
433 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
434 List choices=[], long style=0, Validator validator=DefaultValidator,
435 String name=ChoiceNameStr) -> Choice
437 Create and show a Choice control
439 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
440 self
.this
= newobj
.this
443 self
._setOORInfo
(self
)
445 def Create(*args
, **kwargs
):
447 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
448 List choices=[], long style=0, Validator validator=DefaultValidator,
449 String name=ChoiceNameStr) -> bool
451 return _controls_
.Choice_Create(*args
, **kwargs
)
453 def SetSelection(*args
, **kwargs
):
455 SetSelection(self, int n)
457 Select the n'th item (zero based) in the list.
459 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
461 def SetStringSelection(*args
, **kwargs
):
463 SetStringSelection(self, String string) -> bool
465 Select the item with the specifed string
467 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
469 def SetString(*args
, **kwargs
):
471 SetString(self, int n, String string)
473 Set the label for the n'th item (zero based) in the list.
475 return _controls_
.Choice_SetString(*args
, **kwargs
)
477 Select
= SetSelection
478 def GetClassDefaultAttributes(*args
, **kwargs
):
480 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
482 Get the default attributes for this class. This is useful if you want
483 to use the same font or colour in your own control as in a standard
484 control -- which is a much better idea than hard coding specific
485 colours or fonts which might look completely out of place on the
486 user's system, especially if it uses themes.
488 The variant parameter is only relevant under Mac currently and is
489 ignore under other platforms. Under Mac, it will change the size of
490 the returned font. See `wx.Window.SetWindowVariant` for more about
493 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
495 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
497 class ChoicePtr(Choice
):
498 def __init__(self
, this
):
500 if not hasattr(self
,"thisown"): self
.thisown
= 0
501 self
.__class
__ = Choice
502 _controls_
.Choice_swigregister(ChoicePtr
)
503 ChoiceNameStr
= cvar
.ChoiceNameStr
505 def PreChoice(*args
, **kwargs
):
507 PreChoice() -> Choice
509 Precreate a Choice control for 2-phase creation.
511 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
515 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
517 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
519 Get the default attributes for this class. This is useful if you want
520 to use the same font or colour in your own control as in a standard
521 control -- which is a much better idea than hard coding specific
522 colours or fonts which might look completely out of place on the
523 user's system, especially if it uses themes.
525 The variant parameter is only relevant under Mac currently and is
526 ignore under other platforms. Under Mac, it will change the size of
527 the returned font. See `wx.Window.SetWindowVariant` for more about
530 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
532 #---------------------------------------------------------------------------
534 class ComboBox(_core
.Control
,_core
.ItemContainer
):
536 A combobox is like a combination of an edit control and a
537 listbox. It can be displayed as static list with editable or
538 read-only text field; or a drop-down list with text field.
540 A combobox permits a single selection only. Combobox items are
544 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
545 def __init__(self
, *args
, **kwargs
):
547 __init__(Window parent, int id, String value=EmptyString,
548 Point pos=DefaultPosition, Size size=DefaultSize,
549 List choices=[], long style=0, Validator validator=DefaultValidator,
550 String name=ComboBoxNameStr) -> ComboBox
552 Constructor, creates and shows a ComboBox control.
554 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
555 self
.this
= newobj
.this
558 self
._setOORInfo
(self
)
560 def Create(*args
, **kwargs
):
562 Create(Window parent, int id, String value=EmptyString,
563 Point pos=DefaultPosition, Size size=DefaultSize,
564 List choices=[], long style=0, Validator validator=DefaultValidator,
565 String name=ChoiceNameStr) -> bool
567 return _controls_
.ComboBox_Create(*args
, **kwargs
)
569 def GetValue(*args
, **kwargs
):
571 GetValue(self) -> String
573 Returns the current value in the combobox text field.
575 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
577 def SetValue(*args
, **kwargs
):
578 """SetValue(self, String value)"""
579 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
581 def Copy(*args
, **kwargs
):
585 Copies the selected text to the clipboard.
587 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
589 def Cut(*args
, **kwargs
):
593 Copies the selected text to the clipboard and removes the selection.
595 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
597 def Paste(*args
, **kwargs
):
601 Pastes text from the clipboard to the text field.
603 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
605 def SetInsertionPoint(*args
, **kwargs
):
607 SetInsertionPoint(self, long pos)
609 Sets the insertion point in the combobox text field.
611 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
613 def GetInsertionPoint(*args
, **kwargs
):
615 GetInsertionPoint(self) -> long
617 Returns the insertion point for the combobox's text field.
619 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
621 def GetLastPosition(*args
, **kwargs
):
623 GetLastPosition(self) -> long
625 Returns the last position in the combobox text field.
627 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
629 def Replace(*args
, **kwargs
):
631 Replace(self, long from, long to, String value)
633 Replaces the text between two positions with the given text, in the
636 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
638 def SetSelection(*args
, **kwargs
):
640 SetSelection(self, int n)
642 Sets the item at index 'n' to be the selected item.
644 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
646 def SetMark(*args
, **kwargs
):
648 SetMark(self, long from, long to)
650 Selects the text between the two positions in the combobox text field.
652 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
654 def SetStringSelection(*args
, **kwargs
):
656 SetStringSelection(self, String string) -> bool
658 Select the item with the specifed string
660 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
662 def SetString(*args
, **kwargs
):
664 SetString(self, int n, String string)
666 Set the label for the n'th item (zero based) in the list.
668 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
670 def SetEditable(*args
, **kwargs
):
671 """SetEditable(self, bool editable)"""
672 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
674 def SetInsertionPointEnd(*args
, **kwargs
):
676 SetInsertionPointEnd(self)
678 Sets the insertion point at the end of the combobox text field.
680 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
682 def Remove(*args
, **kwargs
):
684 Remove(self, long from, long to)
686 Removes the text between the two positions in the combobox text field.
688 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
690 def GetClassDefaultAttributes(*args
, **kwargs
):
692 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
694 Get the default attributes for this class. This is useful if you want
695 to use the same font or colour in your own control as in a standard
696 control -- which is a much better idea than hard coding specific
697 colours or fonts which might look completely out of place on the
698 user's system, especially if it uses themes.
700 The variant parameter is only relevant under Mac currently and is
701 ignore under other platforms. Under Mac, it will change the size of
702 the returned font. See `wx.Window.SetWindowVariant` for more about
705 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
707 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
709 class ComboBoxPtr(ComboBox
):
710 def __init__(self
, this
):
712 if not hasattr(self
,"thisown"): self
.thisown
= 0
713 self
.__class
__ = ComboBox
714 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
715 ComboBoxNameStr
= cvar
.ComboBoxNameStr
717 def PreComboBox(*args
, **kwargs
):
719 PreComboBox() -> ComboBox
721 Precreate a ComboBox control for 2-phase creation.
723 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
727 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
729 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
731 Get the default attributes for this class. This is useful if you want
732 to use the same font or colour in your own control as in a standard
733 control -- which is a much better idea than hard coding specific
734 colours or fonts which might look completely out of place on the
735 user's system, especially if it uses themes.
737 The variant parameter is only relevant under Mac currently and is
738 ignore under other platforms. Under Mac, it will change the size of
739 the returned font. See `wx.Window.SetWindowVariant` for more about
742 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
744 #---------------------------------------------------------------------------
746 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
747 GA_VERTICAL
= _controls_
.GA_VERTICAL
748 GA_SMOOTH
= _controls_
.GA_SMOOTH
749 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
750 class Gauge(_core
.Control
):
752 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
753 def __init__(self
, *args
, **kwargs
):
755 __init__(self, Window parent, int id, int range, Point pos=DefaultPosition,
756 Size size=DefaultSize, long style=GA_HORIZONTAL,
757 Validator validator=DefaultValidator,
758 String name=GaugeNameStr) -> Gauge
760 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
761 self
.this
= newobj
.this
764 self
._setOORInfo
(self
)
766 def Create(*args
, **kwargs
):
768 Create(self, Window parent, int id, int range, Point pos=DefaultPosition,
769 Size size=DefaultSize, long style=GA_HORIZONTAL,
770 Validator validator=DefaultValidator,
771 String name=GaugeNameStr) -> bool
773 return _controls_
.Gauge_Create(*args
, **kwargs
)
775 def SetRange(*args
, **kwargs
):
776 """SetRange(self, int range)"""
777 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
779 def GetRange(*args
, **kwargs
):
780 """GetRange(self) -> int"""
781 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
783 def SetValue(*args
, **kwargs
):
784 """SetValue(self, int pos)"""
785 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
787 def GetValue(*args
, **kwargs
):
788 """GetValue(self) -> int"""
789 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
791 def IsVertical(*args
, **kwargs
):
792 """IsVertical(self) -> bool"""
793 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
795 def SetShadowWidth(*args
, **kwargs
):
796 """SetShadowWidth(self, int w)"""
797 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
799 def GetShadowWidth(*args
, **kwargs
):
800 """GetShadowWidth(self) -> int"""
801 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
803 def SetBezelFace(*args
, **kwargs
):
804 """SetBezelFace(self, int w)"""
805 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
807 def GetBezelFace(*args
, **kwargs
):
808 """GetBezelFace(self) -> int"""
809 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
811 def GetClassDefaultAttributes(*args
, **kwargs
):
813 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
815 Get the default attributes for this class. This is useful if you want
816 to use the same font or colour in your own control as in a standard
817 control -- which is a much better idea than hard coding specific
818 colours or fonts which might look completely out of place on the
819 user's system, especially if it uses themes.
821 The variant parameter is only relevant under Mac currently and is
822 ignore under other platforms. Under Mac, it will change the size of
823 the returned font. See `wx.Window.SetWindowVariant` for more about
826 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
828 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
830 class GaugePtr(Gauge
):
831 def __init__(self
, this
):
833 if not hasattr(self
,"thisown"): self
.thisown
= 0
834 self
.__class
__ = Gauge
835 _controls_
.Gauge_swigregister(GaugePtr
)
836 GaugeNameStr
= cvar
.GaugeNameStr
838 def PreGauge(*args
, **kwargs
):
839 """PreGauge() -> Gauge"""
840 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
844 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
846 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
848 Get the default attributes for this class. This is useful if you want
849 to use the same font or colour in your own control as in a standard
850 control -- which is a much better idea than hard coding specific
851 colours or fonts which might look completely out of place on the
852 user's system, especially if it uses themes.
854 The variant parameter is only relevant under Mac currently and is
855 ignore under other platforms. Under Mac, it will change the size of
856 the returned font. See `wx.Window.SetWindowVariant` for more about
859 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
861 #---------------------------------------------------------------------------
863 class StaticBox(_core
.Control
):
865 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
866 def __init__(self
, *args
, **kwargs
):
868 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
869 Size size=DefaultSize, long style=0,
870 String name=StaticBoxNameStr) -> StaticBox
872 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
873 self
.this
= newobj
.this
876 self
._setOORInfo
(self
)
878 def Create(*args
, **kwargs
):
880 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
881 Size size=DefaultSize, long style=0,
882 String name=StaticBoxNameStr) -> bool
884 return _controls_
.StaticBox_Create(*args
, **kwargs
)
886 def GetClassDefaultAttributes(*args
, **kwargs
):
888 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
890 Get the default attributes for this class. This is useful if you want
891 to use the same font or colour in your own control as in a standard
892 control -- which is a much better idea than hard coding specific
893 colours or fonts which might look completely out of place on the
894 user's system, especially if it uses themes.
896 The variant parameter is only relevant under Mac currently and is
897 ignore under other platforms. Under Mac, it will change the size of
898 the returned font. See `wx.Window.SetWindowVariant` for more about
901 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
903 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
905 class StaticBoxPtr(StaticBox
):
906 def __init__(self
, this
):
908 if not hasattr(self
,"thisown"): self
.thisown
= 0
909 self
.__class
__ = StaticBox
910 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
911 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
912 StaticBoxNameStr
= cvar
.StaticBoxNameStr
913 StaticTextNameStr
= cvar
.StaticTextNameStr
915 def PreStaticBox(*args
, **kwargs
):
916 """PreStaticBox() -> StaticBox"""
917 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
921 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
923 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
925 Get the default attributes for this class. This is useful if you want
926 to use the same font or colour in your own control as in a standard
927 control -- which is a much better idea than hard coding specific
928 colours or fonts which might look completely out of place on the
929 user's system, especially if it uses themes.
931 The variant parameter is only relevant under Mac currently and is
932 ignore under other platforms. Under Mac, it will change the size of
933 the returned font. See `wx.Window.SetWindowVariant` for more about
936 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
938 #---------------------------------------------------------------------------
940 class StaticLine(_core
.Control
):
942 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
943 def __init__(self
, *args
, **kwargs
):
945 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
946 long style=LI_HORIZONTAL,
947 String name=StaticTextNameStr) -> StaticLine
949 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
950 self
.this
= newobj
.this
953 self
._setOORInfo
(self
)
955 def Create(*args
, **kwargs
):
957 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
958 long style=LI_HORIZONTAL,
959 String name=StaticTextNameStr) -> bool
961 return _controls_
.StaticLine_Create(*args
, **kwargs
)
963 def IsVertical(*args
, **kwargs
):
964 """IsVertical(self) -> bool"""
965 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
967 def GetDefaultSize(*args
, **kwargs
):
968 """GetDefaultSize() -> int"""
969 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
971 GetDefaultSize
= staticmethod(GetDefaultSize
)
972 def GetClassDefaultAttributes(*args
, **kwargs
):
974 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
976 Get the default attributes for this class. This is useful if you want
977 to use the same font or colour in your own control as in a standard
978 control -- which is a much better idea than hard coding specific
979 colours or fonts which might look completely out of place on the
980 user's system, especially if it uses themes.
982 The variant parameter is only relevant under Mac currently and is
983 ignore under other platforms. Under Mac, it will change the size of
984 the returned font. See `wx.Window.SetWindowVariant` for more about
987 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
989 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
991 class StaticLinePtr(StaticLine
):
992 def __init__(self
, this
):
994 if not hasattr(self
,"thisown"): self
.thisown
= 0
995 self
.__class
__ = StaticLine
996 _controls_
.StaticLine_swigregister(StaticLinePtr
)
998 def PreStaticLine(*args
, **kwargs
):
999 """PreStaticLine() -> StaticLine"""
1000 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1004 def StaticLine_GetDefaultSize(*args
, **kwargs
):
1005 """StaticLine_GetDefaultSize() -> int"""
1006 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1008 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1010 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1012 Get the default attributes for this class. This is useful if you want
1013 to use the same font or colour in your own control as in a standard
1014 control -- which is a much better idea than hard coding specific
1015 colours or fonts which might look completely out of place on the
1016 user's system, especially if it uses themes.
1018 The variant parameter is only relevant under Mac currently and is
1019 ignore under other platforms. Under Mac, it will change the size of
1020 the returned font. See `wx.Window.SetWindowVariant` for more about
1023 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1025 #---------------------------------------------------------------------------
1027 class StaticText(_core
.Control
):
1029 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1030 def __init__(self
, *args
, **kwargs
):
1032 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
1033 Size size=DefaultSize, long style=0,
1034 String name=StaticTextNameStr) -> StaticText
1036 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
1037 self
.this
= newobj
.this
1040 self
._setOORInfo
(self
)
1042 def Create(*args
, **kwargs
):
1044 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
1045 Size size=DefaultSize, long style=0,
1046 String name=StaticTextNameStr) -> bool
1048 return _controls_
.StaticText_Create(*args
, **kwargs
)
1050 def GetClassDefaultAttributes(*args
, **kwargs
):
1052 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1054 Get the default attributes for this class. This is useful if you want
1055 to use the same font or colour in your own control as in a standard
1056 control -- which is a much better idea than hard coding specific
1057 colours or fonts which might look completely out of place on the
1058 user's system, especially if it uses themes.
1060 The variant parameter is only relevant under Mac currently and is
1061 ignore under other platforms. Under Mac, it will change the size of
1062 the returned font. See `wx.Window.SetWindowVariant` for more about
1065 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1067 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1069 class StaticTextPtr(StaticText
):
1070 def __init__(self
, this
):
1072 if not hasattr(self
,"thisown"): self
.thisown
= 0
1073 self
.__class
__ = StaticText
1074 _controls_
.StaticText_swigregister(StaticTextPtr
)
1076 def PreStaticText(*args
, **kwargs
):
1077 """PreStaticText() -> StaticText"""
1078 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1082 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1084 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1086 Get the default attributes for this class. This is useful if you want
1087 to use the same font or colour in your own control as in a standard
1088 control -- which is a much better idea than hard coding specific
1089 colours or fonts which might look completely out of place on the
1090 user's system, especially if it uses themes.
1092 The variant parameter is only relevant under Mac currently and is
1093 ignore under other platforms. Under Mac, it will change the size of
1094 the returned font. See `wx.Window.SetWindowVariant` for more about
1097 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1099 #---------------------------------------------------------------------------
1101 class StaticBitmap(_core
.Control
):
1103 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1104 def __init__(self
, *args
, **kwargs
):
1106 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
1107 Size size=DefaultSize, long style=0,
1108 String name=StaticBitmapNameStr) -> StaticBitmap
1110 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
1111 self
.this
= newobj
.this
1114 self
._setOORInfo
(self
)
1116 def Create(*args
, **kwargs
):
1118 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
1119 Size size=DefaultSize, long style=0,
1120 String name=StaticBitmapNameStr) -> bool
1122 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1124 def GetBitmap(*args
, **kwargs
):
1125 """GetBitmap(self) -> Bitmap"""
1126 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1128 def SetBitmap(*args
, **kwargs
):
1129 """SetBitmap(self, Bitmap bitmap)"""
1130 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1132 def SetIcon(*args
, **kwargs
):
1133 """SetIcon(self, Icon icon)"""
1134 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1136 def GetClassDefaultAttributes(*args
, **kwargs
):
1138 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1140 Get the default attributes for this class. This is useful if you want
1141 to use the same font or colour in your own control as in a standard
1142 control -- which is a much better idea than hard coding specific
1143 colours or fonts which might look completely out of place on the
1144 user's system, especially if it uses themes.
1146 The variant parameter is only relevant under Mac currently and is
1147 ignore under other platforms. Under Mac, it will change the size of
1148 the returned font. See `wx.Window.SetWindowVariant` for more about
1151 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1153 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1155 class StaticBitmapPtr(StaticBitmap
):
1156 def __init__(self
, this
):
1158 if not hasattr(self
,"thisown"): self
.thisown
= 0
1159 self
.__class
__ = StaticBitmap
1160 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
1162 def PreStaticBitmap(*args
, **kwargs
):
1163 """PreStaticBitmap() -> StaticBitmap"""
1164 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1168 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1170 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1172 Get the default attributes for this class. This is useful if you want
1173 to use the same font or colour in your own control as in a standard
1174 control -- which is a much better idea than hard coding specific
1175 colours or fonts which might look completely out of place on the
1176 user's system, especially if it uses themes.
1178 The variant parameter is only relevant under Mac currently and is
1179 ignore under other platforms. Under Mac, it will change the size of
1180 the returned font. See `wx.Window.SetWindowVariant` for more about
1183 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1185 #---------------------------------------------------------------------------
1187 class ListBox(_core
.ControlWithItems
):
1189 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1190 def __init__(self
, *args
, **kwargs
):
1192 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1193 wxArrayString choices=wxPyEmptyStringArray,
1194 long style=0, Validator validator=DefaultValidator,
1195 String name=ListBoxNameStr) -> ListBox
1197 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
1198 self
.this
= newobj
.this
1201 self
._setOORInfo
(self
)
1203 def Create(*args
, **kwargs
):
1205 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1206 wxArrayString choices=wxPyEmptyStringArray,
1207 long style=0, Validator validator=DefaultValidator,
1208 String name=ListBoxNameStr) -> bool
1210 return _controls_
.ListBox_Create(*args
, **kwargs
)
1212 def Insert(*args
, **kwargs
):
1214 Insert(self, String item, int pos, PyObject clientData=None)
1216 Insert an item into the control before the item at the ``pos`` index,
1217 optionally associating some data object with the item.
1219 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1221 def InsertItems(*args
, **kwargs
):
1222 """InsertItems(self, wxArrayString items, int pos)"""
1223 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1225 def Set(*args
, **kwargs
):
1226 """Set(self, wxArrayString items)"""
1227 return _controls_
.ListBox_Set(*args
, **kwargs
)
1229 def IsSelected(*args
, **kwargs
):
1230 """IsSelected(self, int n) -> bool"""
1231 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1233 def SetSelection(*args
, **kwargs
):
1234 """SetSelection(self, int n, bool select=True)"""
1235 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1237 def Select(*args
, **kwargs
):
1241 Sets the item at index 'n' to be the selected item.
1243 return _controls_
.ListBox_Select(*args
, **kwargs
)
1245 def Deselect(*args
, **kwargs
):
1246 """Deselect(self, int n)"""
1247 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1249 def DeselectAll(*args
, **kwargs
):
1250 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1251 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1253 def SetStringSelection(*args
, **kwargs
):
1254 """SetStringSelection(self, String s, bool select=True) -> bool"""
1255 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1257 def GetSelections(*args
, **kwargs
):
1258 """GetSelections(self) -> PyObject"""
1259 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1261 def SetFirstItem(*args
, **kwargs
):
1262 """SetFirstItem(self, int n)"""
1263 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1265 def SetFirstItemStr(*args
, **kwargs
):
1266 """SetFirstItemStr(self, String s)"""
1267 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1269 def EnsureVisible(*args
, **kwargs
):
1270 """EnsureVisible(self, int n)"""
1271 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1273 def AppendAndEnsureVisible(*args
, **kwargs
):
1274 """AppendAndEnsureVisible(self, String s)"""
1275 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1277 def IsSorted(*args
, **kwargs
):
1278 """IsSorted(self) -> bool"""
1279 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1281 def SetItemForegroundColour(*args
, **kwargs
):
1282 """SetItemForegroundColour(self, int item, Colour c)"""
1283 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1285 def SetItemBackgroundColour(*args
, **kwargs
):
1286 """SetItemBackgroundColour(self, int item, Colour c)"""
1287 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1289 def SetItemFont(*args
, **kwargs
):
1290 """SetItemFont(self, int item, Font f)"""
1291 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1293 def GetClassDefaultAttributes(*args
, **kwargs
):
1295 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1297 Get the default attributes for this class. This is useful if you want
1298 to use the same font or colour in your own control as in a standard
1299 control -- which is a much better idea than hard coding specific
1300 colours or fonts which might look completely out of place on the
1301 user's system, especially if it uses themes.
1303 The variant parameter is only relevant under Mac currently and is
1304 ignore under other platforms. Under Mac, it will change the size of
1305 the returned font. See `wx.Window.SetWindowVariant` for more about
1308 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1310 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1312 class ListBoxPtr(ListBox
):
1313 def __init__(self
, this
):
1315 if not hasattr(self
,"thisown"): self
.thisown
= 0
1316 self
.__class
__ = ListBox
1317 _controls_
.ListBox_swigregister(ListBoxPtr
)
1318 ListBoxNameStr
= cvar
.ListBoxNameStr
1320 def PreListBox(*args
, **kwargs
):
1321 """PreListBox() -> ListBox"""
1322 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1326 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1328 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1330 Get the default attributes for this class. This is useful if you want
1331 to use the same font or colour in your own control as in a standard
1332 control -- which is a much better idea than hard coding specific
1333 colours or fonts which might look completely out of place on the
1334 user's system, especially if it uses themes.
1336 The variant parameter is only relevant under Mac currently and is
1337 ignore under other platforms. Under Mac, it will change the size of
1338 the returned font. See `wx.Window.SetWindowVariant` for more about
1341 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1343 #---------------------------------------------------------------------------
1345 class CheckListBox(ListBox
):
1347 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1348 def __init__(self
, *args
, **kwargs
):
1350 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1351 wxArrayString choices=wxPyEmptyStringArray,
1352 long style=0, Validator validator=DefaultValidator,
1353 String name=ListBoxNameStr) -> CheckListBox
1355 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1356 self
.this
= newobj
.this
1359 self
._setOORInfo
(self
)
1361 def Create(*args
, **kwargs
):
1363 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1364 wxArrayString choices=wxPyEmptyStringArray,
1365 long style=0, Validator validator=DefaultValidator,
1366 String name=ListBoxNameStr) -> bool
1368 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1370 def IsChecked(*args
, **kwargs
):
1371 """IsChecked(self, int index) -> bool"""
1372 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1374 def Check(*args
, **kwargs
):
1375 """Check(self, int index, int check=True)"""
1376 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1378 def GetItemHeight(*args
, **kwargs
):
1379 """GetItemHeight(self) -> int"""
1380 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1382 def HitTest(*args
, **kwargs
):
1384 HitTest(self, Point pt) -> int
1386 Test where the given (in client coords) point lies
1388 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1390 def HitTestXY(*args
, **kwargs
):
1392 HitTestXY(self, int x, int y) -> int
1394 Test where the given (in client coords) point lies
1396 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1399 class CheckListBoxPtr(CheckListBox
):
1400 def __init__(self
, this
):
1402 if not hasattr(self
,"thisown"): self
.thisown
= 0
1403 self
.__class
__ = CheckListBox
1404 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1406 def PreCheckListBox(*args
, **kwargs
):
1407 """PreCheckListBox() -> CheckListBox"""
1408 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1412 #---------------------------------------------------------------------------
1414 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1415 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1416 TE_READONLY
= _controls_
.TE_READONLY
1417 TE_MULTILINE
= _controls_
.TE_MULTILINE
1418 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1419 TE_LEFT
= _controls_
.TE_LEFT
1420 TE_CENTER
= _controls_
.TE_CENTER
1421 TE_RIGHT
= _controls_
.TE_RIGHT
1422 TE_CENTRE
= _controls_
.TE_CENTRE
1423 TE_RICH
= _controls_
.TE_RICH
1424 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1425 TE_PASSWORD
= _controls_
.TE_PASSWORD
1426 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1427 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1428 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1429 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1430 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1431 TE_RICH2
= _controls_
.TE_RICH2
1432 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1433 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1434 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1435 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1436 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1437 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1438 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1439 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1440 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1441 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1442 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1443 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1444 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1445 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1446 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1447 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1448 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1449 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1450 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1451 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1452 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1453 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1454 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1455 class TextAttr(object):
1457 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1458 def __init__(self
, *args
):
1460 __init__(self) -> TextAttr
1461 __init__(self, Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1462 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1464 newobj
= _controls_
.new_TextAttr(*args
)
1465 self
.this
= newobj
.this
1468 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1471 if self
.thisown
: destroy(self
)
1474 def Init(*args
, **kwargs
):
1476 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1478 def SetTextColour(*args
, **kwargs
):
1479 """SetTextColour(self, Colour colText)"""
1480 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1482 def SetBackgroundColour(*args
, **kwargs
):
1483 """SetBackgroundColour(self, Colour colBack)"""
1484 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1486 def SetFont(*args
, **kwargs
):
1487 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1488 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1490 def SetAlignment(*args
, **kwargs
):
1491 """SetAlignment(self, int alignment)"""
1492 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1494 def SetTabs(*args
, **kwargs
):
1495 """SetTabs(self, wxArrayInt tabs)"""
1496 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1498 def SetLeftIndent(*args
, **kwargs
):
1499 """SetLeftIndent(self, int indent, int subIndent=0)"""
1500 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1502 def SetRightIndent(*args
, **kwargs
):
1503 """SetRightIndent(self, int indent)"""
1504 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1506 def SetFlags(*args
, **kwargs
):
1507 """SetFlags(self, long flags)"""
1508 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1510 def HasTextColour(*args
, **kwargs
):
1511 """HasTextColour(self) -> bool"""
1512 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1514 def HasBackgroundColour(*args
, **kwargs
):
1515 """HasBackgroundColour(self) -> bool"""
1516 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1518 def HasFont(*args
, **kwargs
):
1519 """HasFont(self) -> bool"""
1520 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1522 def HasAlignment(*args
, **kwargs
):
1523 """HasAlignment(self) -> bool"""
1524 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1526 def HasTabs(*args
, **kwargs
):
1527 """HasTabs(self) -> bool"""
1528 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1530 def HasLeftIndent(*args
, **kwargs
):
1531 """HasLeftIndent(self) -> bool"""
1532 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1534 def HasRightIndent(*args
, **kwargs
):
1535 """HasRightIndent(self) -> bool"""
1536 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1538 def HasFlag(*args
, **kwargs
):
1539 """HasFlag(self, long flag) -> bool"""
1540 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1542 def GetTextColour(*args
, **kwargs
):
1543 """GetTextColour(self) -> Colour"""
1544 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1546 def GetBackgroundColour(*args
, **kwargs
):
1547 """GetBackgroundColour(self) -> Colour"""
1548 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1550 def GetFont(*args
, **kwargs
):
1551 """GetFont(self) -> Font"""
1552 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1554 def GetAlignment(*args
, **kwargs
):
1555 """GetAlignment(self) -> int"""
1556 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1558 def GetTabs(*args
, **kwargs
):
1559 """GetTabs(self) -> wxArrayInt"""
1560 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1562 def GetLeftIndent(*args
, **kwargs
):
1563 """GetLeftIndent(self) -> long"""
1564 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1566 def GetLeftSubIndent(*args
, **kwargs
):
1567 """GetLeftSubIndent(self) -> long"""
1568 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1570 def GetRightIndent(*args
, **kwargs
):
1571 """GetRightIndent(self) -> long"""
1572 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1574 def GetFlags(*args
, **kwargs
):
1575 """GetFlags(self) -> long"""
1576 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1578 def IsDefault(*args
, **kwargs
):
1579 """IsDefault(self) -> bool"""
1580 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1582 def Combine(*args
, **kwargs
):
1583 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1584 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1586 Combine
= staticmethod(Combine
)
1588 class TextAttrPtr(TextAttr
):
1589 def __init__(self
, this
):
1591 if not hasattr(self
,"thisown"): self
.thisown
= 0
1592 self
.__class
__ = TextAttr
1593 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1594 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1596 def TextAttr_Combine(*args
, **kwargs
):
1597 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1598 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1600 class TextCtrl(_core
.Control
):
1602 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1603 def __init__(self
, *args
, **kwargs
):
1605 __init__(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1606 Size size=DefaultSize,
1607 long style=0, Validator validator=DefaultValidator,
1608 String name=TextCtrlNameStr) -> TextCtrl
1610 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1611 self
.this
= newobj
.this
1614 self
._setOORInfo
(self
)
1616 def Create(*args
, **kwargs
):
1618 Create(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1619 Size size=DefaultSize,
1620 long style=0, Validator validator=DefaultValidator,
1621 String name=TextCtrlNameStr) -> bool
1623 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1625 def GetValue(*args
, **kwargs
):
1626 """GetValue(self) -> String"""
1627 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1629 def SetValue(*args
, **kwargs
):
1630 """SetValue(self, String value)"""
1631 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1633 def GetRange(*args
, **kwargs
):
1634 """GetRange(self, long from, long to) -> String"""
1635 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1637 def GetLineLength(*args
, **kwargs
):
1638 """GetLineLength(self, long lineNo) -> int"""
1639 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1641 def GetLineText(*args
, **kwargs
):
1642 """GetLineText(self, long lineNo) -> String"""
1643 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1645 def GetNumberOfLines(*args
, **kwargs
):
1646 """GetNumberOfLines(self) -> int"""
1647 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1649 def IsModified(*args
, **kwargs
):
1650 """IsModified(self) -> bool"""
1651 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1653 def IsEditable(*args
, **kwargs
):
1654 """IsEditable(self) -> bool"""
1655 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1657 def IsSingleLine(*args
, **kwargs
):
1658 """IsSingleLine(self) -> bool"""
1659 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1661 def IsMultiLine(*args
, **kwargs
):
1662 """IsMultiLine(self) -> bool"""
1663 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1665 def GetSelection(*args
, **kwargs
):
1666 """GetSelection() -> (from, to)"""
1667 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1669 def GetStringSelection(*args
, **kwargs
):
1670 """GetStringSelection(self) -> String"""
1671 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1673 def Clear(*args
, **kwargs
):
1675 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1677 def Replace(*args
, **kwargs
):
1678 """Replace(self, long from, long to, String value)"""
1679 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1681 def Remove(*args
, **kwargs
):
1682 """Remove(self, long from, long to)"""
1683 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1685 def LoadFile(*args
, **kwargs
):
1686 """LoadFile(self, String file) -> bool"""
1687 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1689 def SaveFile(*args
, **kwargs
):
1690 """SaveFile(self, String file=EmptyString) -> bool"""
1691 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1693 def MarkDirty(*args
, **kwargs
):
1694 """MarkDirty(self)"""
1695 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1697 def DiscardEdits(*args
, **kwargs
):
1698 """DiscardEdits(self)"""
1699 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1701 def SetMaxLength(*args
, **kwargs
):
1702 """SetMaxLength(self, unsigned long len)"""
1703 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1705 def WriteText(*args
, **kwargs
):
1706 """WriteText(self, String text)"""
1707 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1709 def AppendText(*args
, **kwargs
):
1710 """AppendText(self, String text)"""
1711 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1713 def EmulateKeyPress(*args
, **kwargs
):
1714 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1715 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1717 def SetStyle(*args
, **kwargs
):
1718 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1719 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1721 def GetStyle(*args
, **kwargs
):
1722 """GetStyle(self, long position, TextAttr style) -> bool"""
1723 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1725 def SetDefaultStyle(*args
, **kwargs
):
1726 """SetDefaultStyle(self, TextAttr style) -> bool"""
1727 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1729 def GetDefaultStyle(*args
, **kwargs
):
1730 """GetDefaultStyle(self) -> TextAttr"""
1731 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1733 def XYToPosition(*args
, **kwargs
):
1734 """XYToPosition(self, long x, long y) -> long"""
1735 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1737 def PositionToXY(*args
, **kwargs
):
1738 """PositionToXY(long pos) -> (x, y)"""
1739 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1741 def ShowPosition(*args
, **kwargs
):
1742 """ShowPosition(self, long pos)"""
1743 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1745 def HitTest(*args
, **kwargs
):
1746 """HitTest(Point pt) -> (result, row, col)"""
1747 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1749 def Copy(*args
, **kwargs
):
1751 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1753 def Cut(*args
, **kwargs
):
1755 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1757 def Paste(*args
, **kwargs
):
1759 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1761 def CanCopy(*args
, **kwargs
):
1762 """CanCopy(self) -> bool"""
1763 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1765 def CanCut(*args
, **kwargs
):
1766 """CanCut(self) -> bool"""
1767 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1769 def CanPaste(*args
, **kwargs
):
1770 """CanPaste(self) -> bool"""
1771 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1773 def Undo(*args
, **kwargs
):
1775 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1777 def Redo(*args
, **kwargs
):
1779 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1781 def CanUndo(*args
, **kwargs
):
1782 """CanUndo(self) -> bool"""
1783 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1785 def CanRedo(*args
, **kwargs
):
1786 """CanRedo(self) -> bool"""
1787 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1789 def SetInsertionPoint(*args
, **kwargs
):
1790 """SetInsertionPoint(self, long pos)"""
1791 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1793 def SetInsertionPointEnd(*args
, **kwargs
):
1794 """SetInsertionPointEnd(self)"""
1795 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1797 def GetInsertionPoint(*args
, **kwargs
):
1798 """GetInsertionPoint(self) -> long"""
1799 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1801 def GetLastPosition(*args
, **kwargs
):
1802 """GetLastPosition(self) -> long"""
1803 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1805 def SetSelection(*args
, **kwargs
):
1806 """SetSelection(self, long from, long to)"""
1807 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1809 def SelectAll(*args
, **kwargs
):
1810 """SelectAll(self)"""
1811 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1813 def SetEditable(*args
, **kwargs
):
1814 """SetEditable(self, bool editable)"""
1815 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1817 def write(*args
, **kwargs
):
1818 """write(self, String text)"""
1819 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1821 def GetString(*args
, **kwargs
):
1822 """GetString(self, long from, long to) -> String"""
1823 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1825 def GetClassDefaultAttributes(*args
, **kwargs
):
1827 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1829 Get the default attributes for this class. This is useful if you want
1830 to use the same font or colour in your own control as in a standard
1831 control -- which is a much better idea than hard coding specific
1832 colours or fonts which might look completely out of place on the
1833 user's system, especially if it uses themes.
1835 The variant parameter is only relevant under Mac currently and is
1836 ignore under other platforms. Under Mac, it will change the size of
1837 the returned font. See `wx.Window.SetWindowVariant` for more about
1840 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1842 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1844 class TextCtrlPtr(TextCtrl
):
1845 def __init__(self
, this
):
1847 if not hasattr(self
,"thisown"): self
.thisown
= 0
1848 self
.__class
__ = TextCtrl
1849 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
1851 def PreTextCtrl(*args
, **kwargs
):
1852 """PreTextCtrl() -> TextCtrl"""
1853 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1857 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1859 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1861 Get the default attributes for this class. This is useful if you want
1862 to use the same font or colour in your own control as in a standard
1863 control -- which is a much better idea than hard coding specific
1864 colours or fonts which might look completely out of place on the
1865 user's system, especially if it uses themes.
1867 The variant parameter is only relevant under Mac currently and is
1868 ignore under other platforms. Under Mac, it will change the size of
1869 the returned font. See `wx.Window.SetWindowVariant` for more about
1872 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1874 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1875 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1876 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1877 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1878 class TextUrlEvent(_core
.CommandEvent
):
1880 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1881 def __init__(self
, *args
, **kwargs
):
1882 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1883 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
1884 self
.this
= newobj
.this
1887 def GetMouseEvent(*args
, **kwargs
):
1888 """GetMouseEvent(self) -> MouseEvent"""
1889 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1891 def GetURLStart(*args
, **kwargs
):
1892 """GetURLStart(self) -> long"""
1893 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1895 def GetURLEnd(*args
, **kwargs
):
1896 """GetURLEnd(self) -> long"""
1897 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1900 class TextUrlEventPtr(TextUrlEvent
):
1901 def __init__(self
, this
):
1903 if not hasattr(self
,"thisown"): self
.thisown
= 0
1904 self
.__class
__ = TextUrlEvent
1905 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1907 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1908 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1909 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1910 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1912 #---------------------------------------------------------------------------
1914 class ScrollBar(_core
.Control
):
1916 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1917 def __init__(self
, *args
, **kwargs
):
1919 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1920 Size size=DefaultSize, long style=SB_HORIZONTAL,
1921 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1923 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
1924 self
.this
= newobj
.this
1927 self
._setOORInfo
(self
)
1929 def Create(*args
, **kwargs
):
1931 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1932 Size size=DefaultSize, long style=SB_HORIZONTAL,
1933 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1935 Do the 2nd phase and create the GUI control.
1937 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1939 def GetThumbPosition(*args
, **kwargs
):
1940 """GetThumbPosition(self) -> int"""
1941 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1943 def GetThumbSize(*args
, **kwargs
):
1944 """GetThumbSize(self) -> int"""
1945 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1947 GetThumbLength
= GetThumbSize
1948 def GetPageSize(*args
, **kwargs
):
1949 """GetPageSize(self) -> int"""
1950 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
1952 def GetRange(*args
, **kwargs
):
1953 """GetRange(self) -> int"""
1954 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
1956 def IsVertical(*args
, **kwargs
):
1957 """IsVertical(self) -> bool"""
1958 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
1960 def SetThumbPosition(*args
, **kwargs
):
1961 """SetThumbPosition(self, int viewStart)"""
1962 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1964 def SetScrollbar(*args
, **kwargs
):
1966 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
1969 Sets the scrollbar properties of a built-in scrollbar.
1971 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1973 def GetClassDefaultAttributes(*args
, **kwargs
):
1975 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1977 Get the default attributes for this class. This is useful if you want
1978 to use the same font or colour in your own control as in a standard
1979 control -- which is a much better idea than hard coding specific
1980 colours or fonts which might look completely out of place on the
1981 user's system, especially if it uses themes.
1983 The variant parameter is only relevant under Mac currently and is
1984 ignore under other platforms. Under Mac, it will change the size of
1985 the returned font. See `wx.Window.SetWindowVariant` for more about
1988 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
1990 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1992 class ScrollBarPtr(ScrollBar
):
1993 def __init__(self
, this
):
1995 if not hasattr(self
,"thisown"): self
.thisown
= 0
1996 self
.__class
__ = ScrollBar
1997 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
1998 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2000 def PreScrollBar(*args
, **kwargs
):
2001 """PreScrollBar() -> ScrollBar"""
2002 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2006 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2008 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2010 Get the default attributes for this class. This is useful if you want
2011 to use the same font or colour in your own control as in a standard
2012 control -- which is a much better idea than hard coding specific
2013 colours or fonts which might look completely out of place on the
2014 user's system, especially if it uses themes.
2016 The variant parameter is only relevant under Mac currently and is
2017 ignore under other platforms. Under Mac, it will change the size of
2018 the returned font. See `wx.Window.SetWindowVariant` for more about
2021 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2023 #---------------------------------------------------------------------------
2025 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2026 SP_VERTICAL
= _controls_
.SP_VERTICAL
2027 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2028 SP_WRAP
= _controls_
.SP_WRAP
2029 class SpinButton(_core
.Control
):
2031 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2032 def __init__(self
, *args
, **kwargs
):
2034 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2035 Size size=DefaultSize, long style=SP_HORIZONTAL,
2036 String name=SPIN_BUTTON_NAME) -> SpinButton
2038 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
2039 self
.this
= newobj
.this
2042 self
._setOORInfo
(self
)
2044 def Create(*args
, **kwargs
):
2046 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2047 Size size=DefaultSize, long style=SP_HORIZONTAL,
2048 String name=SPIN_BUTTON_NAME) -> bool
2050 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2052 def GetValue(*args
, **kwargs
):
2053 """GetValue(self) -> int"""
2054 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2056 def GetMin(*args
, **kwargs
):
2057 """GetMin(self) -> int"""
2058 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2060 def GetMax(*args
, **kwargs
):
2061 """GetMax(self) -> int"""
2062 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2064 def SetValue(*args
, **kwargs
):
2065 """SetValue(self, int val)"""
2066 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2068 def SetMin(*args
, **kwargs
):
2069 """SetMin(self, int minVal)"""
2070 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2072 def SetMax(*args
, **kwargs
):
2073 """SetMax(self, int maxVal)"""
2074 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2076 def SetRange(*args
, **kwargs
):
2077 """SetRange(self, int minVal, int maxVal)"""
2078 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2080 def IsVertical(*args
, **kwargs
):
2081 """IsVertical(self) -> bool"""
2082 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2084 def GetClassDefaultAttributes(*args
, **kwargs
):
2086 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2088 Get the default attributes for this class. This is useful if you want
2089 to use the same font or colour in your own control as in a standard
2090 control -- which is a much better idea than hard coding specific
2091 colours or fonts which might look completely out of place on the
2092 user's system, especially if it uses themes.
2094 The variant parameter is only relevant under Mac currently and is
2095 ignore under other platforms. Under Mac, it will change the size of
2096 the returned font. See `wx.Window.SetWindowVariant` for more about
2099 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2101 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2103 class SpinButtonPtr(SpinButton
):
2104 def __init__(self
, this
):
2106 if not hasattr(self
,"thisown"): self
.thisown
= 0
2107 self
.__class
__ = SpinButton
2108 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
2109 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2110 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2112 def PreSpinButton(*args
, **kwargs
):
2113 """PreSpinButton() -> SpinButton"""
2114 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2118 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2120 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2122 Get the default attributes for this class. This is useful if you want
2123 to use the same font or colour in your own control as in a standard
2124 control -- which is a much better idea than hard coding specific
2125 colours or fonts which might look completely out of place on the
2126 user's system, especially if it uses themes.
2128 The variant parameter is only relevant under Mac currently and is
2129 ignore under other platforms. Under Mac, it will change the size of
2130 the returned font. See `wx.Window.SetWindowVariant` for more about
2133 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2135 class SpinCtrl(_core
.Control
):
2137 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2138 def __init__(self
, *args
, **kwargs
):
2140 __init__(self, Window parent, int id=-1, String value=EmptyString,
2141 Point pos=DefaultPosition, Size size=DefaultSize,
2142 long style=SP_ARROW_KEYS, int min=0, int max=100,
2143 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2145 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
2146 self
.this
= newobj
.this
2149 self
._setOORInfo
(self
)
2151 def Create(*args
, **kwargs
):
2153 Create(self, Window parent, int id=-1, String value=EmptyString,
2154 Point pos=DefaultPosition, Size size=DefaultSize,
2155 long style=SP_ARROW_KEYS, int min=0, int max=100,
2156 int initial=0, String name=SpinCtrlNameStr) -> bool
2158 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2160 def GetValue(*args
, **kwargs
):
2161 """GetValue(self) -> int"""
2162 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2164 def SetValue(*args
, **kwargs
):
2165 """SetValue(self, int value)"""
2166 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2168 def SetValueString(*args
, **kwargs
):
2169 """SetValueString(self, String text)"""
2170 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2172 def SetRange(*args
, **kwargs
):
2173 """SetRange(self, int minVal, int maxVal)"""
2174 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2176 def GetMin(*args
, **kwargs
):
2177 """GetMin(self) -> int"""
2178 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2180 def GetMax(*args
, **kwargs
):
2181 """GetMax(self) -> int"""
2182 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2184 def SetSelection(*args
, **kwargs
):
2185 """SetSelection(self, long from, long to)"""
2186 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2188 def GetClassDefaultAttributes(*args
, **kwargs
):
2190 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2192 Get the default attributes for this class. This is useful if you want
2193 to use the same font or colour in your own control as in a standard
2194 control -- which is a much better idea than hard coding specific
2195 colours or fonts which might look completely out of place on the
2196 user's system, especially if it uses themes.
2198 The variant parameter is only relevant under Mac currently and is
2199 ignore under other platforms. Under Mac, it will change the size of
2200 the returned font. See `wx.Window.SetWindowVariant` for more about
2203 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2205 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2207 class SpinCtrlPtr(SpinCtrl
):
2208 def __init__(self
, this
):
2210 if not hasattr(self
,"thisown"): self
.thisown
= 0
2211 self
.__class
__ = SpinCtrl
2212 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
2214 def PreSpinCtrl(*args
, **kwargs
):
2215 """PreSpinCtrl() -> SpinCtrl"""
2216 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2220 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2222 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2224 Get the default attributes for this class. This is useful if you want
2225 to use the same font or colour in your own control as in a standard
2226 control -- which is a much better idea than hard coding specific
2227 colours or fonts which might look completely out of place on the
2228 user's system, especially if it uses themes.
2230 The variant parameter is only relevant under Mac currently and is
2231 ignore under other platforms. Under Mac, it will change the size of
2232 the returned font. See `wx.Window.SetWindowVariant` for more about
2235 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2237 class SpinEvent(_core
.NotifyEvent
):
2239 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2240 def __init__(self
, *args
, **kwargs
):
2241 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2242 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
2243 self
.this
= newobj
.this
2246 def GetPosition(*args
, **kwargs
):
2247 """GetPosition(self) -> int"""
2248 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2250 def SetPosition(*args
, **kwargs
):
2251 """SetPosition(self, int pos)"""
2252 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2255 class SpinEventPtr(SpinEvent
):
2256 def __init__(self
, this
):
2258 if not hasattr(self
,"thisown"): self
.thisown
= 0
2259 self
.__class
__ = SpinEvent
2260 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
2262 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2263 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2264 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2265 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2266 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2268 #---------------------------------------------------------------------------
2270 class RadioBox(_core
.Control
):
2272 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2273 def __init__(self
, *args
, **kwargs
):
2275 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2276 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
2277 int majorDimension=0,
2278 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
2279 String name=RadioBoxNameStr) -> RadioBox
2281 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2282 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
2283 self
.this
= newobj
.this
2286 self
._setOORInfo
(self
)
2288 def Create(*args
, **kwargs
):
2290 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2291 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
2292 int majorDimension=0,
2293 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
2294 String name=RadioBoxNameStr) -> bool
2296 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2298 def SetSelection(*args
, **kwargs
):
2299 """SetSelection(self, int n)"""
2300 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2302 def GetSelection(*args
, **kwargs
):
2303 """GetSelection(self) -> int"""
2304 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2306 def GetStringSelection(*args
, **kwargs
):
2307 """GetStringSelection(self) -> String"""
2308 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2310 def SetStringSelection(*args
, **kwargs
):
2311 """SetStringSelection(self, String s) -> bool"""
2312 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2314 def GetCount(*args
, **kwargs
):
2315 """GetCount(self) -> int"""
2316 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2318 def FindString(*args
, **kwargs
):
2319 """FindString(self, String s) -> int"""
2320 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2322 def GetString(*args
, **kwargs
):
2323 """GetString(self, int n) -> String"""
2324 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2326 def SetString(*args
, **kwargs
):
2327 """SetString(self, int n, String label)"""
2328 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2330 GetItemLabel
= GetString
2331 SetItemLabel
= SetString
2332 def EnableItem(*args
, **kwargs
):
2333 """EnableItem(self, int n, bool enable=True)"""
2334 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2336 def ShowItem(*args
, **kwargs
):
2337 """ShowItem(self, int n, bool show=True)"""
2338 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2340 def GetColumnCount(*args
, **kwargs
):
2341 """GetColumnCount(self) -> int"""
2342 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2344 def GetRowCount(*args
, **kwargs
):
2345 """GetRowCount(self) -> int"""
2346 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2348 def GetNextItem(*args
, **kwargs
):
2349 """GetNextItem(self, int item, int dir, long style) -> int"""
2350 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2352 def GetClassDefaultAttributes(*args
, **kwargs
):
2354 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2356 Get the default attributes for this class. This is useful if you want
2357 to use the same font or colour in your own control as in a standard
2358 control -- which is a much better idea than hard coding specific
2359 colours or fonts which might look completely out of place on the
2360 user's system, especially if it uses themes.
2362 The variant parameter is only relevant under Mac currently and is
2363 ignore under other platforms. Under Mac, it will change the size of
2364 the returned font. See `wx.Window.SetWindowVariant` for more about
2367 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2369 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2371 class RadioBoxPtr(RadioBox
):
2372 def __init__(self
, this
):
2374 if not hasattr(self
,"thisown"): self
.thisown
= 0
2375 self
.__class
__ = RadioBox
2376 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2377 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2378 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2380 def PreRadioBox(*args
, **kwargs
):
2381 """PreRadioBox() -> RadioBox"""
2382 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2386 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2388 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2390 Get the default attributes for this class. This is useful if you want
2391 to use the same font or colour in your own control as in a standard
2392 control -- which is a much better idea than hard coding specific
2393 colours or fonts which might look completely out of place on the
2394 user's system, especially if it uses themes.
2396 The variant parameter is only relevant under Mac currently and is
2397 ignore under other platforms. Under Mac, it will change the size of
2398 the returned font. See `wx.Window.SetWindowVariant` for more about
2401 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2403 #---------------------------------------------------------------------------
2405 class RadioButton(_core
.Control
):
2407 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2408 def __init__(self
, *args
, **kwargs
):
2410 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2411 Size size=DefaultSize, long style=0,
2412 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
2414 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2415 self
.this
= newobj
.this
2418 self
._setOORInfo
(self
)
2420 def Create(*args
, **kwargs
):
2422 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2423 Size size=DefaultSize, long style=0,
2424 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
2426 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2428 def GetValue(*args
, **kwargs
):
2429 """GetValue(self) -> bool"""
2430 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2432 def SetValue(*args
, **kwargs
):
2433 """SetValue(self, bool value)"""
2434 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2436 def GetClassDefaultAttributes(*args
, **kwargs
):
2438 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2440 Get the default attributes for this class. This is useful if you want
2441 to use the same font or colour in your own control as in a standard
2442 control -- which is a much better idea than hard coding specific
2443 colours or fonts which might look completely out of place on the
2444 user's system, especially if it uses themes.
2446 The variant parameter is only relevant under Mac currently and is
2447 ignore under other platforms. Under Mac, it will change the size of
2448 the returned font. See `wx.Window.SetWindowVariant` for more about
2451 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2453 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2455 class RadioButtonPtr(RadioButton
):
2456 def __init__(self
, this
):
2458 if not hasattr(self
,"thisown"): self
.thisown
= 0
2459 self
.__class
__ = RadioButton
2460 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2462 def PreRadioButton(*args
, **kwargs
):
2463 """PreRadioButton() -> RadioButton"""
2464 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2468 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2470 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2472 Get the default attributes for this class. This is useful if you want
2473 to use the same font or colour in your own control as in a standard
2474 control -- which is a much better idea than hard coding specific
2475 colours or fonts which might look completely out of place on the
2476 user's system, especially if it uses themes.
2478 The variant parameter is only relevant under Mac currently and is
2479 ignore under other platforms. Under Mac, it will change the size of
2480 the returned font. See `wx.Window.SetWindowVariant` for more about
2483 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2485 #---------------------------------------------------------------------------
2487 class Slider(_core
.Control
):
2489 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2490 def __init__(self
, *args
, **kwargs
):
2492 __init__(self, Window parent, int id, int value, int minValue, int maxValue,
2493 Point pos=DefaultPosition, Size size=DefaultSize,
2494 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
2495 String name=SliderNameStr) -> Slider
2497 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2498 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2499 self
.this
= newobj
.this
2502 self
._setOORInfo
(self
)
2504 def Create(*args
, **kwargs
):
2506 Create(self, Window parent, int id, int value, int minValue, int maxValue,
2507 Point pos=DefaultPosition, Size size=DefaultSize,
2508 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
2509 String name=SliderNameStr) -> bool
2511 return _controls_
.Slider_Create(*args
, **kwargs
)
2513 def GetValue(*args
, **kwargs
):
2514 """GetValue(self) -> int"""
2515 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2517 def SetValue(*args
, **kwargs
):
2518 """SetValue(self, int value)"""
2519 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2521 def SetRange(*args
, **kwargs
):
2522 """SetRange(self, int minValue, int maxValue)"""
2523 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2525 def GetMin(*args
, **kwargs
):
2526 """GetMin(self) -> int"""
2527 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2529 def GetMax(*args
, **kwargs
):
2530 """GetMax(self) -> int"""
2531 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2533 def SetMin(*args
, **kwargs
):
2534 """SetMin(self, int minValue)"""
2535 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2537 def SetMax(*args
, **kwargs
):
2538 """SetMax(self, int maxValue)"""
2539 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2541 def SetLineSize(*args
, **kwargs
):
2542 """SetLineSize(self, int lineSize)"""
2543 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2545 def SetPageSize(*args
, **kwargs
):
2546 """SetPageSize(self, int pageSize)"""
2547 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2549 def GetLineSize(*args
, **kwargs
):
2550 """GetLineSize(self) -> int"""
2551 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2553 def GetPageSize(*args
, **kwargs
):
2554 """GetPageSize(self) -> int"""
2555 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2557 def SetThumbLength(*args
, **kwargs
):
2558 """SetThumbLength(self, int lenPixels)"""
2559 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2561 def GetThumbLength(*args
, **kwargs
):
2562 """GetThumbLength(self) -> int"""
2563 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2565 def SetTickFreq(*args
, **kwargs
):
2566 """SetTickFreq(self, int n, int pos=1)"""
2567 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2569 def GetTickFreq(*args
, **kwargs
):
2570 """GetTickFreq(self) -> int"""
2571 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2573 def ClearTicks(*args
, **kwargs
):
2574 """ClearTicks(self)"""
2575 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2577 def SetTick(*args
, **kwargs
):
2578 """SetTick(self, int tickPos)"""
2579 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2581 def ClearSel(*args
, **kwargs
):
2582 """ClearSel(self)"""
2583 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2585 def GetSelEnd(*args
, **kwargs
):
2586 """GetSelEnd(self) -> int"""
2587 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2589 def GetSelStart(*args
, **kwargs
):
2590 """GetSelStart(self) -> int"""
2591 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2593 def SetSelection(*args
, **kwargs
):
2594 """SetSelection(self, int min, int max)"""
2595 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2597 def GetClassDefaultAttributes(*args
, **kwargs
):
2599 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2601 Get the default attributes for this class. This is useful if you want
2602 to use the same font or colour in your own control as in a standard
2603 control -- which is a much better idea than hard coding specific
2604 colours or fonts which might look completely out of place on the
2605 user's system, especially if it uses themes.
2607 The variant parameter is only relevant under Mac currently and is
2608 ignore under other platforms. Under Mac, it will change the size of
2609 the returned font. See `wx.Window.SetWindowVariant` for more about
2612 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2614 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2616 class SliderPtr(Slider
):
2617 def __init__(self
, this
):
2619 if not hasattr(self
,"thisown"): self
.thisown
= 0
2620 self
.__class
__ = Slider
2621 _controls_
.Slider_swigregister(SliderPtr
)
2622 SliderNameStr
= cvar
.SliderNameStr
2624 def PreSlider(*args
, **kwargs
):
2625 """PreSlider() -> Slider"""
2626 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2630 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2632 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2634 Get the default attributes for this class. This is useful if you want
2635 to use the same font or colour in your own control as in a standard
2636 control -- which is a much better idea than hard coding specific
2637 colours or fonts which might look completely out of place on the
2638 user's system, especially if it uses themes.
2640 The variant parameter is only relevant under Mac currently and is
2641 ignore under other platforms. Under Mac, it will change the size of
2642 the returned font. See `wx.Window.SetWindowVariant` for more about
2645 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2647 #---------------------------------------------------------------------------
2649 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2650 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2652 class ToggleButton(_core
.Control
):
2654 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2655 def __init__(self
, *args
, **kwargs
):
2657 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2658 Size size=DefaultSize, long style=0,
2659 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2661 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2662 self
.this
= newobj
.this
2665 self
._setOORInfo
(self
)
2667 def Create(*args
, **kwargs
):
2669 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2670 Size size=DefaultSize, long style=0,
2671 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
2673 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2675 def SetValue(*args
, **kwargs
):
2676 """SetValue(self, bool value)"""
2677 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2679 def GetValue(*args
, **kwargs
):
2680 """GetValue(self) -> bool"""
2681 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2683 def SetLabel(*args
, **kwargs
):
2685 SetLabel(self, String label)
2687 Sets the item's text.
2689 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2691 def GetClassDefaultAttributes(*args
, **kwargs
):
2693 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2695 Get the default attributes for this class. This is useful if you want
2696 to use the same font or colour in your own control as in a standard
2697 control -- which is a much better idea than hard coding specific
2698 colours or fonts which might look completely out of place on the
2699 user's system, especially if it uses themes.
2701 The variant parameter is only relevant under Mac currently and is
2702 ignore under other platforms. Under Mac, it will change the size of
2703 the returned font. See `wx.Window.SetWindowVariant` for more about
2706 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2708 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2710 class ToggleButtonPtr(ToggleButton
):
2711 def __init__(self
, this
):
2713 if not hasattr(self
,"thisown"): self
.thisown
= 0
2714 self
.__class
__ = ToggleButton
2715 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2716 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2718 def PreToggleButton(*args
, **kwargs
):
2719 """PreToggleButton() -> ToggleButton"""
2720 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2724 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2726 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2728 Get the default attributes for this class. This is useful if you want
2729 to use the same font or colour in your own control as in a standard
2730 control -- which is a much better idea than hard coding specific
2731 colours or fonts which might look completely out of place on the
2732 user's system, especially if it uses themes.
2734 The variant parameter is only relevant under Mac currently and is
2735 ignore under other platforms. Under Mac, it will change the size of
2736 the returned font. See `wx.Window.SetWindowVariant` for more about
2739 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2741 #---------------------------------------------------------------------------
2743 class BookCtrl(_core
.Control
):
2744 def __init__(self
): raise RuntimeError, "No constructor defined"
2746 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2747 def GetPageCount(*args
, **kwargs
):
2748 """GetPageCount(self) -> size_t"""
2749 return _controls_
.BookCtrl_GetPageCount(*args
, **kwargs
)
2751 def GetPage(*args
, **kwargs
):
2752 """GetPage(self, size_t n) -> Window"""
2753 return _controls_
.BookCtrl_GetPage(*args
, **kwargs
)
2755 def GetSelection(*args
, **kwargs
):
2756 """GetSelection(self) -> int"""
2757 return _controls_
.BookCtrl_GetSelection(*args
, **kwargs
)
2759 def SetPageText(*args
, **kwargs
):
2760 """SetPageText(self, size_t n, String strText) -> bool"""
2761 return _controls_
.BookCtrl_SetPageText(*args
, **kwargs
)
2763 def GetPageText(*args
, **kwargs
):
2764 """GetPageText(self, size_t n) -> String"""
2765 return _controls_
.BookCtrl_GetPageText(*args
, **kwargs
)
2767 def SetImageList(*args
, **kwargs
):
2768 """SetImageList(self, ImageList imageList)"""
2769 return _controls_
.BookCtrl_SetImageList(*args
, **kwargs
)
2771 def AssignImageList(*args
, **kwargs
):
2772 """AssignImageList(self, ImageList imageList)"""
2773 return _controls_
.BookCtrl_AssignImageList(*args
, **kwargs
)
2775 def GetImageList(*args
, **kwargs
):
2776 """GetImageList(self) -> ImageList"""
2777 return _controls_
.BookCtrl_GetImageList(*args
, **kwargs
)
2779 def GetPageImage(*args
, **kwargs
):
2780 """GetPageImage(self, size_t n) -> int"""
2781 return _controls_
.BookCtrl_GetPageImage(*args
, **kwargs
)
2783 def SetPageImage(*args
, **kwargs
):
2784 """SetPageImage(self, size_t n, int imageId) -> bool"""
2785 return _controls_
.BookCtrl_SetPageImage(*args
, **kwargs
)
2787 def SetPageSize(*args
, **kwargs
):
2788 """SetPageSize(self, Size size)"""
2789 return _controls_
.BookCtrl_SetPageSize(*args
, **kwargs
)
2791 def CalcSizeFromPage(*args
, **kwargs
):
2792 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2793 return _controls_
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2795 def DeletePage(*args
, **kwargs
):
2796 """DeletePage(self, size_t n) -> bool"""
2797 return _controls_
.BookCtrl_DeletePage(*args
, **kwargs
)
2799 def RemovePage(*args
, **kwargs
):
2800 """RemovePage(self, size_t n) -> bool"""
2801 return _controls_
.BookCtrl_RemovePage(*args
, **kwargs
)
2803 def DeleteAllPages(*args
, **kwargs
):
2804 """DeleteAllPages(self) -> bool"""
2805 return _controls_
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2807 def AddPage(*args
, **kwargs
):
2808 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2809 return _controls_
.BookCtrl_AddPage(*args
, **kwargs
)
2811 def InsertPage(*args
, **kwargs
):
2813 InsertPage(self, size_t n, Window page, String text, bool select=False,
2814 int imageId=-1) -> bool
2816 return _controls_
.BookCtrl_InsertPage(*args
, **kwargs
)
2818 def SetSelection(*args
, **kwargs
):
2819 """SetSelection(self, size_t n) -> int"""
2820 return _controls_
.BookCtrl_SetSelection(*args
, **kwargs
)
2822 def AdvanceSelection(*args
, **kwargs
):
2823 """AdvanceSelection(self, bool forward=True)"""
2824 return _controls_
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2826 def GetClassDefaultAttributes(*args
, **kwargs
):
2828 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2830 Get the default attributes for this class. This is useful if you want
2831 to use the same font or colour in your own control as in a standard
2832 control -- which is a much better idea than hard coding specific
2833 colours or fonts which might look completely out of place on the
2834 user's system, especially if it uses themes.
2836 The variant parameter is only relevant under Mac currently and is
2837 ignore under other platforms. Under Mac, it will change the size of
2838 the returned font. See `wx.Window.SetWindowVariant` for more about
2841 return _controls_
.BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2843 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2845 class BookCtrlPtr(BookCtrl
):
2846 def __init__(self
, this
):
2848 if not hasattr(self
,"thisown"): self
.thisown
= 0
2849 self
.__class
__ = BookCtrl
2850 _controls_
.BookCtrl_swigregister(BookCtrlPtr
)
2851 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2853 def BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2855 BookCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2857 Get the default attributes for this class. This is useful if you want
2858 to use the same font or colour in your own control as in a standard
2859 control -- which is a much better idea than hard coding specific
2860 colours or fonts which might look completely out of place on the
2861 user's system, especially if it uses themes.
2863 The variant parameter is only relevant under Mac currently and is
2864 ignore under other platforms. Under Mac, it will change the size of
2865 the returned font. See `wx.Window.SetWindowVariant` for more about
2868 return _controls_
.BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2870 class BookCtrlEvent(_core
.NotifyEvent
):
2872 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2873 def __init__(self
, *args
, **kwargs
):
2875 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2876 int nOldSel=-1) -> BookCtrlEvent
2878 newobj
= _controls_
.new_BookCtrlEvent(*args
, **kwargs
)
2879 self
.this
= newobj
.this
2882 def GetSelection(*args
, **kwargs
):
2883 """GetSelection(self) -> int"""
2884 return _controls_
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2886 def SetSelection(*args
, **kwargs
):
2887 """SetSelection(self, int nSel)"""
2888 return _controls_
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2890 def GetOldSelection(*args
, **kwargs
):
2891 """GetOldSelection(self) -> int"""
2892 return _controls_
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2894 def SetOldSelection(*args
, **kwargs
):
2895 """SetOldSelection(self, int nOldSel)"""
2896 return _controls_
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2899 class BookCtrlEventPtr(BookCtrlEvent
):
2900 def __init__(self
, this
):
2902 if not hasattr(self
,"thisown"): self
.thisown
= 0
2903 self
.__class
__ = BookCtrlEvent
2904 _controls_
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2906 #---------------------------------------------------------------------------
2908 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2909 NB_TOP
= _controls_
.NB_TOP
2910 NB_LEFT
= _controls_
.NB_LEFT
2911 NB_RIGHT
= _controls_
.NB_RIGHT
2912 NB_BOTTOM
= _controls_
.NB_BOTTOM
2913 NB_MULTILINE
= _controls_
.NB_MULTILINE
2914 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2915 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2916 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2917 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2918 class Notebook(BookCtrl
):
2920 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2921 def __init__(self
, *args
, **kwargs
):
2923 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2924 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2926 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
2927 self
.this
= newobj
.this
2930 self
._setOORInfo
(self
)
2932 def Create(*args
, **kwargs
):
2934 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2935 long style=0, String name=NOTEBOOK_NAME) -> bool
2937 return _controls_
.Notebook_Create(*args
, **kwargs
)
2939 def GetRowCount(*args
, **kwargs
):
2940 """GetRowCount(self) -> int"""
2941 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2943 def SetPadding(*args
, **kwargs
):
2944 """SetPadding(self, Size padding)"""
2945 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2947 def SetTabSize(*args
, **kwargs
):
2948 """SetTabSize(self, Size sz)"""
2949 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
2951 def HitTest(*args
, **kwargs
):
2952 """HitTest(Point pt) -> (tab, where)"""
2953 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
2955 def CalcSizeFromPage(*args
, **kwargs
):
2956 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2957 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2959 def GetClassDefaultAttributes(*args
, **kwargs
):
2961 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2963 Get the default attributes for this class. This is useful if you want
2964 to use the same font or colour in your own control as in a standard
2965 control -- which is a much better idea than hard coding specific
2966 colours or fonts which might look completely out of place on the
2967 user's system, especially if it uses themes.
2969 The variant parameter is only relevant under Mac currently and is
2970 ignore under other platforms. Under Mac, it will change the size of
2971 the returned font. See `wx.Window.SetWindowVariant` for more about
2974 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
2976 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2978 class NotebookPtr(Notebook
):
2979 def __init__(self
, this
):
2981 if not hasattr(self
,"thisown"): self
.thisown
= 0
2982 self
.__class
__ = Notebook
2983 _controls_
.Notebook_swigregister(NotebookPtr
)
2985 def PreNotebook(*args
, **kwargs
):
2986 """PreNotebook() -> Notebook"""
2987 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
2991 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
2993 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2995 Get the default attributes for this class. This is useful if you want
2996 to use the same font or colour in your own control as in a standard
2997 control -- which is a much better idea than hard coding specific
2998 colours or fonts which might look completely out of place on the
2999 user's system, especially if it uses themes.
3001 The variant parameter is only relevant under Mac currently and is
3002 ignore under other platforms. Under Mac, it will change the size of
3003 the returned font. See `wx.Window.SetWindowVariant` for more about
3006 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3008 class NotebookEvent(BookCtrlEvent
):
3010 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3011 def __init__(self
, *args
, **kwargs
):
3013 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3014 int nOldSel=-1) -> NotebookEvent
3016 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3017 self
.this
= newobj
.this
3021 class NotebookEventPtr(NotebookEvent
):
3022 def __init__(self
, this
):
3024 if not hasattr(self
,"thisown"): self
.thisown
= 0
3025 self
.__class
__ = NotebookEvent
3026 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3028 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3029 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3031 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3032 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3034 #----------------------------------------------------------------------------
3036 class NotebookPage(wx
.Panel
):
3038 There is an old (and apparently unsolvable) bug when placing a
3039 window with a nonstandard background colour in a wxNotebook on
3040 wxGTK, as the notbooks's background colour would always be used
3041 when the window is refreshed. The solution is to place a panel in
3042 the notbook and the coloured window on the panel, sized to cover
3043 the panel. This simple class does that for you, just put an
3044 instance of this in the notebook and make your regular window a
3045 child of this one and it will handle the resize for you.
3047 def __init__(self
, parent
, id=-1,
3048 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3049 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3050 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3052 EVT_SIZE(self
, self
.OnSize
)
3054 def OnSize(self
, evt
):
3055 if self
.child
is None:
3056 children
= self
.GetChildren()
3058 self
.child
= children
[0]
3060 self
.child
.SetPosition((0,0))
3061 self
.child
.SetSize(self
.GetSize())
3064 #---------------------------------------------------------------------------
3066 LB_DEFAULT
= _controls_
.LB_DEFAULT
3067 LB_TOP
= _controls_
.LB_TOP
3068 LB_BOTTOM
= _controls_
.LB_BOTTOM
3069 LB_LEFT
= _controls_
.LB_LEFT
3070 LB_RIGHT
= _controls_
.LB_RIGHT
3071 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3072 class Listbook(BookCtrl
):
3074 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3075 def __init__(self
, *args
, **kwargs
):
3077 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3078 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3080 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3081 self
.this
= newobj
.this
3084 self
._setOORInfo
(self
)
3086 def Create(*args
, **kwargs
):
3088 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3089 long style=0, String name=EmptyString) -> bool
3091 return _controls_
.Listbook_Create(*args
, **kwargs
)
3093 def IsVertical(*args
, **kwargs
):
3094 """IsVertical(self) -> bool"""
3095 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
3098 class ListbookPtr(Listbook
):
3099 def __init__(self
, this
):
3101 if not hasattr(self
,"thisown"): self
.thisown
= 0
3102 self
.__class
__ = Listbook
3103 _controls_
.Listbook_swigregister(ListbookPtr
)
3105 def PreListbook(*args
, **kwargs
):
3106 """PreListbook() -> Listbook"""
3107 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3111 class ListbookEvent(BookCtrlEvent
):
3113 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3114 def __init__(self
, *args
, **kwargs
):
3116 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3117 int nOldSel=-1) -> ListbookEvent
3119 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3120 self
.this
= newobj
.this
3124 class ListbookEventPtr(ListbookEvent
):
3125 def __init__(self
, this
):
3127 if not hasattr(self
,"thisown"): self
.thisown
= 0
3128 self
.__class
__ = ListbookEvent
3129 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3131 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3132 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3133 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3134 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3136 #---------------------------------------------------------------------------
3138 class BookCtrlSizer(_core
.Sizer
):
3140 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3141 def __init__(self
, *args
, **kwargs
):
3142 """__init__(self, BookCtrl nb) -> BookCtrlSizer"""
3143 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
3144 self
.this
= newobj
.this
3147 self
._setOORInfo
(self
)
3149 def RecalcSizes(*args
, **kwargs
):
3150 """RecalcSizes(self)"""
3151 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
3153 def CalcMin(*args
, **kwargs
):
3154 """CalcMin(self) -> Size"""
3155 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
3157 def GetControl(*args
, **kwargs
):
3158 """GetControl(self) -> BookCtrl"""
3159 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
3162 class BookCtrlSizerPtr(BookCtrlSizer
):
3163 def __init__(self
, this
):
3165 if not hasattr(self
,"thisown"): self
.thisown
= 0
3166 self
.__class
__ = BookCtrlSizer
3167 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
3169 class NotebookSizer(_core
.Sizer
):
3171 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3172 def __init__(self
, *args
, **kwargs
):
3173 """__init__(self, Notebook nb) -> NotebookSizer"""
3174 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
3175 self
.this
= newobj
.this
3178 self
._setOORInfo
(self
)
3180 def RecalcSizes(*args
, **kwargs
):
3181 """RecalcSizes(self)"""
3182 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
3184 def CalcMin(*args
, **kwargs
):
3185 """CalcMin(self) -> Size"""
3186 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
3188 def GetNotebook(*args
, **kwargs
):
3189 """GetNotebook(self) -> Notebook"""
3190 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
3193 class NotebookSizerPtr(NotebookSizer
):
3194 def __init__(self
, this
):
3196 if not hasattr(self
,"thisown"): self
.thisown
= 0
3197 self
.__class
__ = NotebookSizer
3198 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
3200 #---------------------------------------------------------------------------
3202 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3203 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3204 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3205 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3206 TB_VERTICAL
= _controls_
.TB_VERTICAL
3207 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3208 TB_FLAT
= _controls_
.TB_FLAT
3209 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3210 TB_NOICONS
= _controls_
.TB_NOICONS
3211 TB_TEXT
= _controls_
.TB_TEXT
3212 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3213 TB_NOALIGN
= _controls_
.TB_NOALIGN
3214 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3215 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3216 class ToolBarToolBase(_core
.Object
):
3217 def __init__(self
): raise RuntimeError, "No constructor defined"
3219 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3220 def GetId(*args
, **kwargs
):
3221 """GetId(self) -> int"""
3222 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3224 def GetControl(*args
, **kwargs
):
3225 """GetControl(self) -> Control"""
3226 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3228 def GetToolBar(*args
, **kwargs
):
3229 """GetToolBar(self) -> ToolBarBase"""
3230 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3232 def IsButton(*args
, **kwargs
):
3233 """IsButton(self) -> int"""
3234 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3236 def IsControl(*args
, **kwargs
):
3237 """IsControl(self) -> int"""
3238 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3240 def IsSeparator(*args
, **kwargs
):
3241 """IsSeparator(self) -> int"""
3242 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3244 def GetStyle(*args
, **kwargs
):
3245 """GetStyle(self) -> int"""
3246 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3248 def GetKind(*args
, **kwargs
):
3249 """GetKind(self) -> int"""
3250 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3252 def IsEnabled(*args
, **kwargs
):
3253 """IsEnabled(self) -> bool"""
3254 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3256 def IsToggled(*args
, **kwargs
):
3257 """IsToggled(self) -> bool"""
3258 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3260 def CanBeToggled(*args
, **kwargs
):
3261 """CanBeToggled(self) -> bool"""
3262 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3264 def GetNormalBitmap(*args
, **kwargs
):
3265 """GetNormalBitmap(self) -> Bitmap"""
3266 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3268 def GetDisabledBitmap(*args
, **kwargs
):
3269 """GetDisabledBitmap(self) -> Bitmap"""
3270 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3272 def GetBitmap(*args
, **kwargs
):
3273 """GetBitmap(self) -> Bitmap"""
3274 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3276 def GetLabel(*args
, **kwargs
):
3277 """GetLabel(self) -> String"""
3278 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3280 def GetShortHelp(*args
, **kwargs
):
3281 """GetShortHelp(self) -> String"""
3282 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3284 def GetLongHelp(*args
, **kwargs
):
3285 """GetLongHelp(self) -> String"""
3286 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3288 def Enable(*args
, **kwargs
):
3289 """Enable(self, bool enable) -> bool"""
3290 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3292 def Toggle(*args
, **kwargs
):
3294 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3296 def SetToggle(*args
, **kwargs
):
3297 """SetToggle(self, bool toggle) -> bool"""
3298 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3300 def SetShortHelp(*args
, **kwargs
):
3301 """SetShortHelp(self, String help) -> bool"""
3302 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3304 def SetLongHelp(*args
, **kwargs
):
3305 """SetLongHelp(self, String help) -> bool"""
3306 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3308 def SetNormalBitmap(*args
, **kwargs
):
3309 """SetNormalBitmap(self, Bitmap bmp)"""
3310 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3312 def SetDisabledBitmap(*args
, **kwargs
):
3313 """SetDisabledBitmap(self, Bitmap bmp)"""
3314 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3316 def SetLabel(*args
, **kwargs
):
3317 """SetLabel(self, String label)"""
3318 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3320 def Detach(*args
, **kwargs
):
3322 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3324 def Attach(*args
, **kwargs
):
3325 """Attach(self, ToolBarBase tbar)"""
3326 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3328 def GetClientData(*args
, **kwargs
):
3329 """GetClientData(self) -> PyObject"""
3330 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3332 def SetClientData(*args
, **kwargs
):
3333 """SetClientData(self, PyObject clientData)"""
3334 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3336 GetBitmap1
= GetNormalBitmap
3337 GetBitmap2
= GetDisabledBitmap
3338 SetBitmap1
= SetNormalBitmap
3339 SetBitmap2
= SetDisabledBitmap
3342 class ToolBarToolBasePtr(ToolBarToolBase
):
3343 def __init__(self
, this
):
3345 if not hasattr(self
,"thisown"): self
.thisown
= 0
3346 self
.__class
__ = ToolBarToolBase
3347 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3349 class ToolBarBase(_core
.Control
):
3350 def __init__(self
): raise RuntimeError, "No constructor defined"
3352 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3353 def DoAddTool(*args
, **kwargs
):
3355 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3356 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3357 String longHelp=EmptyString,
3358 PyObject clientData=None) -> ToolBarToolBase
3360 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3362 def DoInsertTool(*args
, **kwargs
):
3364 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3365 int kind=ITEM_NORMAL,
3366 String shortHelp=EmptyString, String longHelp=EmptyString,
3367 PyObject clientData=None) -> ToolBarToolBase
3369 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3371 # These match the original Add methods for this class, kept for
3372 # backwards compatibility with versions < 2.3.3.
3375 def AddTool(self
, id, bitmap
,
3376 pushedBitmap
= wx
.NullBitmap
,
3379 shortHelpString
= '',
3380 longHelpString
= '') :
3381 '''Old style method to add a tool to the toolbar.'''
3382 kind
= wx
.ITEM_NORMAL
3383 if isToggle
: kind
= wx
.ITEM_CHECK
3384 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3385 shortHelpString
, longHelpString
, clientData
)
3387 def AddSimpleTool(self
, id, bitmap
,
3388 shortHelpString
= '',
3389 longHelpString
= '',
3391 '''Old style method to add a tool to the toolbar.'''
3392 kind
= wx
.ITEM_NORMAL
3393 if isToggle
: kind
= wx
.ITEM_CHECK
3394 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3395 shortHelpString
, longHelpString
, None)
3397 def InsertTool(self
, pos
, id, bitmap
,
3398 pushedBitmap
= wx
.NullBitmap
,
3401 shortHelpString
= '',
3402 longHelpString
= ''):
3403 '''Old style method to insert a tool in the toolbar.'''
3404 kind
= wx
.ITEM_NORMAL
3405 if isToggle
: kind
= wx
.ITEM_CHECK
3406 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3407 shortHelpString
, longHelpString
, clientData
)
3409 def InsertSimpleTool(self
, pos
, id, bitmap
,
3410 shortHelpString
= '',
3411 longHelpString
= '',
3413 '''Old style method to insert a tool in the toolbar.'''
3414 kind
= wx
.ITEM_NORMAL
3415 if isToggle
: kind
= wx
.ITEM_CHECK
3416 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3417 shortHelpString
, longHelpString
, None)
3420 # The following are the new toolbar Add methods starting with
3421 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3422 # able to keep backwards compatibility with using the above
3423 # methods. Eventually these should migrate to be the methods used
3424 # primarily and lose the 'Label' in the name...
3426 def AddLabelTool(self
, id, label
, bitmap
,
3427 bmpDisabled
= wx
.NullBitmap
,
3428 kind
= wx
.ITEM_NORMAL
,
3429 shortHelp
= '', longHelp
= '',
3432 The full AddTool() function.
3434 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3435 is created and used as the disabled image.
3437 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3438 shortHelp
, longHelp
, clientData
)
3441 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3442 bmpDisabled
= wx
.NullBitmap
,
3443 kind
= wx
.ITEM_NORMAL
,
3444 shortHelp
= '', longHelp
= '',
3447 Insert the new tool at the given position, if pos == GetToolsCount(), it
3448 is equivalent to AddTool()
3450 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3451 shortHelp
, longHelp
, clientData
)
3453 def AddCheckLabelTool(self
, id, label
, bitmap
,
3454 bmpDisabled
= wx
.NullBitmap
,
3455 shortHelp
= '', longHelp
= '',
3457 '''Add a check tool, i.e. a tool which can be toggled'''
3458 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3459 shortHelp
, longHelp
, clientData
)
3461 def AddRadioLabelTool(self
, id, label
, bitmap
,
3462 bmpDisabled
= wx
.NullBitmap
,
3463 shortHelp
= '', longHelp
= '',
3466 Add a radio tool, i.e. a tool which can be toggled and releases any
3467 other toggled radio tools in the same group when it happens
3469 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3470 shortHelp
, longHelp
, clientData
)
3473 # For consistency with the backwards compatible methods above, here are
3474 # some non-'Label' versions of the Check and Radio methods
3475 def AddCheckTool(self
, id, bitmap
,
3476 bmpDisabled
= wx
.NullBitmap
,
3477 shortHelp
= '', longHelp
= '',
3479 '''Add a check tool, i.e. a tool which can be toggled'''
3480 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3481 shortHelp
, longHelp
, clientData
)
3483 def AddRadioTool(self
, id, bitmap
,
3484 bmpDisabled
= wx
.NullBitmap
,
3485 shortHelp
= '', longHelp
= '',
3488 Add a radio tool, i.e. a tool which can be toggled and releases any
3489 other toggled radio tools in the same group when it happens
3491 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3492 shortHelp
, longHelp
, clientData
)
3494 def AddToolItem(*args
, **kwargs
):
3495 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3496 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3498 def InsertToolItem(*args
, **kwargs
):
3499 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3500 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3502 def AddControl(*args
, **kwargs
):
3503 """AddControl(self, Control control) -> ToolBarToolBase"""
3504 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3506 def InsertControl(*args
, **kwargs
):
3507 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3508 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3510 def FindControl(*args
, **kwargs
):
3511 """FindControl(self, int id) -> Control"""
3512 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3514 def AddSeparator(*args
, **kwargs
):
3515 """AddSeparator(self) -> ToolBarToolBase"""
3516 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3518 def InsertSeparator(*args
, **kwargs
):
3519 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3520 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3522 def RemoveTool(*args
, **kwargs
):
3523 """RemoveTool(self, int id) -> ToolBarToolBase"""
3524 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3526 def DeleteToolByPos(*args
, **kwargs
):
3527 """DeleteToolByPos(self, size_t pos) -> bool"""
3528 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3530 def DeleteTool(*args
, **kwargs
):
3531 """DeleteTool(self, int id) -> bool"""
3532 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3534 def ClearTools(*args
, **kwargs
):
3535 """ClearTools(self)"""
3536 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3538 def Realize(*args
, **kwargs
):
3539 """Realize(self) -> bool"""
3540 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3542 def EnableTool(*args
, **kwargs
):
3543 """EnableTool(self, int id, bool enable)"""
3544 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3546 def ToggleTool(*args
, **kwargs
):
3547 """ToggleTool(self, int id, bool toggle)"""
3548 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3550 def SetToggle(*args
, **kwargs
):
3551 """SetToggle(self, int id, bool toggle)"""
3552 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3554 def GetToolClientData(*args
, **kwargs
):
3555 """GetToolClientData(self, int id) -> PyObject"""
3556 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3558 def SetToolClientData(*args
, **kwargs
):
3559 """SetToolClientData(self, int id, PyObject clientData)"""
3560 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3562 def GetToolPos(*args
, **kwargs
):
3563 """GetToolPos(self, int id) -> int"""
3564 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3566 def GetToolState(*args
, **kwargs
):
3567 """GetToolState(self, int id) -> bool"""
3568 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3570 def GetToolEnabled(*args
, **kwargs
):
3571 """GetToolEnabled(self, int id) -> bool"""
3572 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3574 def SetToolShortHelp(*args
, **kwargs
):
3575 """SetToolShortHelp(self, int id, String helpString)"""
3576 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3578 def GetToolShortHelp(*args
, **kwargs
):
3579 """GetToolShortHelp(self, int id) -> String"""
3580 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3582 def SetToolLongHelp(*args
, **kwargs
):
3583 """SetToolLongHelp(self, int id, String helpString)"""
3584 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3586 def GetToolLongHelp(*args
, **kwargs
):
3587 """GetToolLongHelp(self, int id) -> String"""
3588 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3590 def SetMarginsXY(*args
, **kwargs
):
3591 """SetMarginsXY(self, int x, int y)"""
3592 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3594 def SetMargins(*args
, **kwargs
):
3595 """SetMargins(self, Size size)"""
3596 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3598 def SetToolPacking(*args
, **kwargs
):
3599 """SetToolPacking(self, int packing)"""
3600 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3602 def SetToolSeparation(*args
, **kwargs
):
3603 """SetToolSeparation(self, int separation)"""
3604 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3606 def GetToolMargins(*args
, **kwargs
):
3607 """GetToolMargins(self) -> Size"""
3608 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3610 def GetMargins(*args
, **kwargs
):
3611 """GetMargins(self) -> Size"""
3612 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3614 def GetToolPacking(*args
, **kwargs
):
3615 """GetToolPacking(self) -> int"""
3616 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3618 def GetToolSeparation(*args
, **kwargs
):
3619 """GetToolSeparation(self) -> int"""
3620 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3622 def SetRows(*args
, **kwargs
):
3623 """SetRows(self, int nRows)"""
3624 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3626 def SetMaxRowsCols(*args
, **kwargs
):
3627 """SetMaxRowsCols(self, int rows, int cols)"""
3628 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3630 def GetMaxRows(*args
, **kwargs
):
3631 """GetMaxRows(self) -> int"""
3632 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3634 def GetMaxCols(*args
, **kwargs
):
3635 """GetMaxCols(self) -> int"""
3636 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3638 def SetToolBitmapSize(*args
, **kwargs
):
3639 """SetToolBitmapSize(self, Size size)"""
3640 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3642 def GetToolBitmapSize(*args
, **kwargs
):
3643 """GetToolBitmapSize(self) -> Size"""
3644 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3646 def GetToolSize(*args
, **kwargs
):
3647 """GetToolSize(self) -> Size"""
3648 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3650 def FindToolForPosition(*args
, **kwargs
):
3651 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3652 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3654 def FindById(*args
, **kwargs
):
3655 """FindById(self, int toolid) -> ToolBarToolBase"""
3656 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3658 def IsVertical(*args
, **kwargs
):
3659 """IsVertical(self) -> bool"""
3660 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3663 class ToolBarBasePtr(ToolBarBase
):
3664 def __init__(self
, this
):
3666 if not hasattr(self
,"thisown"): self
.thisown
= 0
3667 self
.__class
__ = ToolBarBase
3668 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3670 class ToolBar(ToolBarBase
):
3672 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3673 def __init__(self
, *args
, **kwargs
):
3675 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3676 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3677 String name=wxPyToolBarNameStr) -> ToolBar
3679 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3680 self
.this
= newobj
.this
3683 self
._setOORInfo
(self
)
3685 def Create(*args
, **kwargs
):
3687 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3688 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3689 String name=wxPyToolBarNameStr) -> bool
3691 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3693 def FindToolForPosition(*args
, **kwargs
):
3694 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3695 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3697 def GetClassDefaultAttributes(*args
, **kwargs
):
3699 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3701 Get the default attributes for this class. This is useful if you want
3702 to use the same font or colour in your own control as in a standard
3703 control -- which is a much better idea than hard coding specific
3704 colours or fonts which might look completely out of place on the
3705 user's system, especially if it uses themes.
3707 The variant parameter is only relevant under Mac currently and is
3708 ignore under other platforms. Under Mac, it will change the size of
3709 the returned font. See `wx.Window.SetWindowVariant` for more about
3712 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3714 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3716 class ToolBarPtr(ToolBar
):
3717 def __init__(self
, this
):
3719 if not hasattr(self
,"thisown"): self
.thisown
= 0
3720 self
.__class
__ = ToolBar
3721 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3723 def PreToolBar(*args
, **kwargs
):
3724 """PreToolBar() -> ToolBar"""
3725 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3729 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3731 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3733 Get the default attributes for this class. This is useful if you want
3734 to use the same font or colour in your own control as in a standard
3735 control -- which is a much better idea than hard coding specific
3736 colours or fonts which might look completely out of place on the
3737 user's system, especially if it uses themes.
3739 The variant parameter is only relevant under Mac currently and is
3740 ignore under other platforms. Under Mac, it will change the size of
3741 the returned font. See `wx.Window.SetWindowVariant` for more about
3744 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3746 #---------------------------------------------------------------------------
3748 LC_VRULES
= _controls_
.LC_VRULES
3749 LC_HRULES
= _controls_
.LC_HRULES
3750 LC_ICON
= _controls_
.LC_ICON
3751 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3752 LC_LIST
= _controls_
.LC_LIST
3753 LC_REPORT
= _controls_
.LC_REPORT
3754 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3755 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3756 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3757 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3758 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3759 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3760 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3761 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3762 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3763 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3764 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3765 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3766 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3767 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3768 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3769 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3770 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3771 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3772 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3773 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3774 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3775 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3776 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3777 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3778 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3779 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3780 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3781 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3782 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3783 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3784 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3785 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3786 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3787 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3788 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3789 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3790 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3791 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3792 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3793 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3794 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3795 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3796 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3797 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3798 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3799 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3800 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3801 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3802 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3803 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3804 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3805 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3806 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3807 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3808 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3809 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3810 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3811 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3812 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3813 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3814 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3815 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3816 #---------------------------------------------------------------------------
3818 class ListItemAttr(object):
3820 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3821 def __init__(self
, *args
, **kwargs
):
3823 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3824 Font font=wxNullFont) -> ListItemAttr
3826 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
3827 self
.this
= newobj
.this
3830 def SetTextColour(*args
, **kwargs
):
3831 """SetTextColour(self, Colour colText)"""
3832 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3834 def SetBackgroundColour(*args
, **kwargs
):
3835 """SetBackgroundColour(self, Colour colBack)"""
3836 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3838 def SetFont(*args
, **kwargs
):
3839 """SetFont(self, Font font)"""
3840 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3842 def HasTextColour(*args
, **kwargs
):
3843 """HasTextColour(self) -> bool"""
3844 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3846 def HasBackgroundColour(*args
, **kwargs
):
3847 """HasBackgroundColour(self) -> bool"""
3848 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3850 def HasFont(*args
, **kwargs
):
3851 """HasFont(self) -> bool"""
3852 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3854 def GetTextColour(*args
, **kwargs
):
3855 """GetTextColour(self) -> Colour"""
3856 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3858 def GetBackgroundColour(*args
, **kwargs
):
3859 """GetBackgroundColour(self) -> Colour"""
3860 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3862 def GetFont(*args
, **kwargs
):
3863 """GetFont(self) -> Font"""
3864 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
3866 def Destroy(*args
, **kwargs
):
3868 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
3871 class ListItemAttrPtr(ListItemAttr
):
3872 def __init__(self
, this
):
3874 if not hasattr(self
,"thisown"): self
.thisown
= 0
3875 self
.__class
__ = ListItemAttr
3876 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
3877 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3879 #---------------------------------------------------------------------------
3881 class ListItem(_core
.Object
):
3883 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3884 def __init__(self
, *args
, **kwargs
):
3885 """__init__(self) -> ListItem"""
3886 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
3887 self
.this
= newobj
.this
3890 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
3893 if self
.thisown
: destroy(self
)
3896 def Clear(*args
, **kwargs
):
3898 return _controls_
.ListItem_Clear(*args
, **kwargs
)
3900 def ClearAttributes(*args
, **kwargs
):
3901 """ClearAttributes(self)"""
3902 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
3904 def SetMask(*args
, **kwargs
):
3905 """SetMask(self, long mask)"""
3906 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
3908 def SetId(*args
, **kwargs
):
3909 """SetId(self, long id)"""
3910 return _controls_
.ListItem_SetId(*args
, **kwargs
)
3912 def SetColumn(*args
, **kwargs
):
3913 """SetColumn(self, int col)"""
3914 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
3916 def SetState(*args
, **kwargs
):
3917 """SetState(self, long state)"""
3918 return _controls_
.ListItem_SetState(*args
, **kwargs
)
3920 def SetStateMask(*args
, **kwargs
):
3921 """SetStateMask(self, long stateMask)"""
3922 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
3924 def SetText(*args
, **kwargs
):
3925 """SetText(self, String text)"""
3926 return _controls_
.ListItem_SetText(*args
, **kwargs
)
3928 def SetImage(*args
, **kwargs
):
3929 """SetImage(self, int image)"""
3930 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
3932 def SetData(*args
, **kwargs
):
3933 """SetData(self, long data)"""
3934 return _controls_
.ListItem_SetData(*args
, **kwargs
)
3936 def SetWidth(*args
, **kwargs
):
3937 """SetWidth(self, int width)"""
3938 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
3940 def SetAlign(*args
, **kwargs
):
3941 """SetAlign(self, int align)"""
3942 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
3944 def SetTextColour(*args
, **kwargs
):
3945 """SetTextColour(self, Colour colText)"""
3946 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
3948 def SetBackgroundColour(*args
, **kwargs
):
3949 """SetBackgroundColour(self, Colour colBack)"""
3950 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3952 def SetFont(*args
, **kwargs
):
3953 """SetFont(self, Font font)"""
3954 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
3956 def GetMask(*args
, **kwargs
):
3957 """GetMask(self) -> long"""
3958 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
3960 def GetId(*args
, **kwargs
):
3961 """GetId(self) -> long"""
3962 return _controls_
.ListItem_GetId(*args
, **kwargs
)
3964 def GetColumn(*args
, **kwargs
):
3965 """GetColumn(self) -> int"""
3966 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
3968 def GetState(*args
, **kwargs
):
3969 """GetState(self) -> long"""
3970 return _controls_
.ListItem_GetState(*args
, **kwargs
)
3972 def GetText(*args
, **kwargs
):
3973 """GetText(self) -> String"""
3974 return _controls_
.ListItem_GetText(*args
, **kwargs
)
3976 def GetImage(*args
, **kwargs
):
3977 """GetImage(self) -> int"""
3978 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
3980 def GetData(*args
, **kwargs
):
3981 """GetData(self) -> long"""
3982 return _controls_
.ListItem_GetData(*args
, **kwargs
)
3984 def GetWidth(*args
, **kwargs
):
3985 """GetWidth(self) -> int"""
3986 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
3988 def GetAlign(*args
, **kwargs
):
3989 """GetAlign(self) -> int"""
3990 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
3992 def GetAttributes(*args
, **kwargs
):
3993 """GetAttributes(self) -> ListItemAttr"""
3994 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
3996 def HasAttributes(*args
, **kwargs
):
3997 """HasAttributes(self) -> bool"""
3998 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4000 def GetTextColour(*args
, **kwargs
):
4001 """GetTextColour(self) -> Colour"""
4002 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4004 def GetBackgroundColour(*args
, **kwargs
):
4005 """GetBackgroundColour(self) -> Colour"""
4006 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4008 def GetFont(*args
, **kwargs
):
4009 """GetFont(self) -> Font"""
4010 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4012 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4013 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4014 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4015 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4016 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4017 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4018 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4019 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4020 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4021 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4023 class ListItemPtr(ListItem
):
4024 def __init__(self
, this
):
4026 if not hasattr(self
,"thisown"): self
.thisown
= 0
4027 self
.__class
__ = ListItem
4028 _controls_
.ListItem_swigregister(ListItemPtr
)
4030 #---------------------------------------------------------------------------
4032 class ListEvent(_core
.NotifyEvent
):
4034 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4035 def __init__(self
, *args
, **kwargs
):
4036 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4037 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4038 self
.this
= newobj
.this
4041 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4042 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4043 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4044 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4045 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4046 m_item
= property(_controls_
.ListEvent_m_item_get
)
4047 def GetKeyCode(*args
, **kwargs
):
4048 """GetKeyCode(self) -> int"""
4049 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4051 GetCode
= GetKeyCode
4052 def GetIndex(*args
, **kwargs
):
4053 """GetIndex(self) -> long"""
4054 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4056 def GetColumn(*args
, **kwargs
):
4057 """GetColumn(self) -> int"""
4058 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4060 def GetPoint(*args
, **kwargs
):
4061 """GetPoint(self) -> Point"""
4062 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4064 GetPosition
= GetPoint
4065 def GetLabel(*args
, **kwargs
):
4066 """GetLabel(self) -> String"""
4067 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4069 def GetText(*args
, **kwargs
):
4070 """GetText(self) -> String"""
4071 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4073 def GetImage(*args
, **kwargs
):
4074 """GetImage(self) -> int"""
4075 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4077 def GetData(*args
, **kwargs
):
4078 """GetData(self) -> long"""
4079 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4081 def GetMask(*args
, **kwargs
):
4082 """GetMask(self) -> long"""
4083 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4085 def GetItem(*args
, **kwargs
):
4086 """GetItem(self) -> ListItem"""
4087 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4089 def GetCacheFrom(*args
, **kwargs
):
4090 """GetCacheFrom(self) -> long"""
4091 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4093 def GetCacheTo(*args
, **kwargs
):
4094 """GetCacheTo(self) -> long"""
4095 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4097 def IsEditCancelled(*args
, **kwargs
):
4098 """IsEditCancelled(self) -> bool"""
4099 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4101 def SetEditCanceled(*args
, **kwargs
):
4102 """SetEditCanceled(self, bool editCancelled)"""
4103 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4106 class ListEventPtr(ListEvent
):
4107 def __init__(self
, this
):
4109 if not hasattr(self
,"thisown"): self
.thisown
= 0
4110 self
.__class
__ = ListEvent
4111 _controls_
.ListEvent_swigregister(ListEventPtr
)
4113 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4114 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4115 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4116 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4117 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4118 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4119 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
4120 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
4121 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4122 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4123 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4124 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4125 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4126 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4127 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4128 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4129 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4130 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4131 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4132 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4133 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4134 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4135 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4136 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4137 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4138 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4139 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4140 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4141 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
4142 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
4143 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4144 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4145 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4146 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4147 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4148 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4149 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4150 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4151 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4152 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4153 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4154 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4155 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4156 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4158 #---------------------------------------------------------------------------
4160 class ListCtrl(_core
.Control
):
4162 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4163 def __init__(self
, *args
, **kwargs
):
4165 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4166 Size size=DefaultSize, long style=LC_ICON,
4167 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4169 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4170 self
.this
= newobj
.this
4173 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4175 def Create(*args
, **kwargs
):
4177 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4178 Size size=DefaultSize, long style=LC_ICON,
4179 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4181 Do the 2nd phase and create the GUI control.
4183 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4185 def _setCallbackInfo(*args
, **kwargs
):
4186 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4187 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4189 def SetForegroundColour(*args
, **kwargs
):
4190 """SetForegroundColour(self, Colour col) -> bool"""
4191 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4193 def SetBackgroundColour(*args
, **kwargs
):
4194 """SetBackgroundColour(self, Colour col) -> bool"""
4195 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4197 def GetColumn(*args
, **kwargs
):
4198 """GetColumn(self, int col) -> ListItem"""
4199 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4200 if val
is not None: val
.thisown
= 1
4203 def SetColumn(*args
, **kwargs
):
4204 """SetColumn(self, int col, ListItem item) -> bool"""
4205 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4207 def GetColumnWidth(*args
, **kwargs
):
4208 """GetColumnWidth(self, int col) -> int"""
4209 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4211 def SetColumnWidth(*args
, **kwargs
):
4212 """SetColumnWidth(self, int col, int width) -> bool"""
4213 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4215 def GetCountPerPage(*args
, **kwargs
):
4216 """GetCountPerPage(self) -> int"""
4217 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4219 def GetViewRect(*args
, **kwargs
):
4220 """GetViewRect(self) -> Rect"""
4221 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4223 def GetItem(*args
, **kwargs
):
4224 """GetItem(self, long itemId, int col=0) -> ListItem"""
4225 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4226 if val
is not None: val
.thisown
= 1
4229 def SetItem(*args
, **kwargs
):
4230 """SetItem(self, ListItem info) -> bool"""
4231 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4233 def SetStringItem(*args
, **kwargs
):
4234 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4235 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4237 def GetItemState(*args
, **kwargs
):
4238 """GetItemState(self, long item, long stateMask) -> int"""
4239 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4241 def SetItemState(*args
, **kwargs
):
4242 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4243 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4245 def SetItemImage(*args
, **kwargs
):
4246 """SetItemImage(self, long item, int image, int selImage) -> bool"""
4247 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4249 def GetItemText(*args
, **kwargs
):
4250 """GetItemText(self, long item) -> String"""
4251 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4253 def SetItemText(*args
, **kwargs
):
4254 """SetItemText(self, long item, String str)"""
4255 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4257 def GetItemData(*args
, **kwargs
):
4258 """GetItemData(self, long item) -> long"""
4259 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4261 def SetItemData(*args
, **kwargs
):
4262 """SetItemData(self, long item, long data) -> bool"""
4263 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4265 def GetItemPosition(*args
, **kwargs
):
4266 """GetItemPosition(self, long item) -> Point"""
4267 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4269 def GetItemRect(*args
, **kwargs
):
4270 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4271 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4273 def SetItemPosition(*args
, **kwargs
):
4274 """SetItemPosition(self, long item, Point pos) -> bool"""
4275 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4277 def GetItemCount(*args
, **kwargs
):
4278 """GetItemCount(self) -> int"""
4279 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4281 def GetColumnCount(*args
, **kwargs
):
4282 """GetColumnCount(self) -> int"""
4283 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4285 def GetItemSpacing(*args
, **kwargs
):
4286 """GetItemSpacing(self) -> Size"""
4287 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4289 def SetItemSpacing(*args
, **kwargs
):
4290 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4291 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4293 def GetSelectedItemCount(*args
, **kwargs
):
4294 """GetSelectedItemCount(self) -> int"""
4295 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4297 def GetTextColour(*args
, **kwargs
):
4298 """GetTextColour(self) -> Colour"""
4299 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4301 def SetTextColour(*args
, **kwargs
):
4302 """SetTextColour(self, Colour col)"""
4303 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4305 def GetTopItem(*args
, **kwargs
):
4306 """GetTopItem(self) -> long"""
4307 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4309 def SetSingleStyle(*args
, **kwargs
):
4310 """SetSingleStyle(self, long style, bool add=True)"""
4311 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4313 def SetWindowStyleFlag(*args
, **kwargs
):
4315 SetWindowStyleFlag(self, long style)
4317 Sets the style of the window. Please note that some styles cannot be
4318 changed after the window creation and that Refresh() might need to be
4319 called after changing the others for the change to take place
4322 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4324 def GetNextItem(*args
, **kwargs
):
4325 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4326 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4328 def GetImageList(*args
, **kwargs
):
4329 """GetImageList(self, int which) -> ImageList"""
4330 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4332 def SetImageList(*args
, **kwargs
):
4333 """SetImageList(self, ImageList imageList, int which)"""
4334 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4336 def AssignImageList(*args
, **kwargs
):
4337 """AssignImageList(self, ImageList imageList, int which)"""
4338 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4340 def InReportView(*args
, **kwargs
):
4341 """InReportView(self) -> bool"""
4342 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4344 def IsVirtual(*args
, **kwargs
):
4345 """IsVirtual(self) -> bool"""
4346 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4348 def RefreshItem(*args
, **kwargs
):
4349 """RefreshItem(self, long item)"""
4350 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4352 def RefreshItems(*args
, **kwargs
):
4353 """RefreshItems(self, long itemFrom, long itemTo)"""
4354 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4356 def Arrange(*args
, **kwargs
):
4357 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4358 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4360 def DeleteItem(*args
, **kwargs
):
4361 """DeleteItem(self, long item) -> bool"""
4362 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4364 def DeleteAllItems(*args
, **kwargs
):
4365 """DeleteAllItems(self) -> bool"""
4366 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4368 def DeleteColumn(*args
, **kwargs
):
4369 """DeleteColumn(self, int col) -> bool"""
4370 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4372 def DeleteAllColumns(*args
, **kwargs
):
4373 """DeleteAllColumns(self) -> bool"""
4374 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4376 def ClearAll(*args
, **kwargs
):
4377 """ClearAll(self)"""
4378 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4380 def EditLabel(*args
, **kwargs
):
4381 """EditLabel(self, long item)"""
4382 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4384 def EnsureVisible(*args
, **kwargs
):
4385 """EnsureVisible(self, long item) -> bool"""
4386 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4388 def FindItem(*args
, **kwargs
):
4389 """FindItem(self, long start, String str, bool partial=False) -> long"""
4390 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4392 def FindItemData(*args
, **kwargs
):
4393 """FindItemData(self, long start, long data) -> long"""
4394 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4396 def FindItemAtPos(*args
, **kwargs
):
4397 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4398 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4400 def HitTest(*args
, **kwargs
):
4401 """HitTest(Point point) -> (item, where)"""
4402 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4404 def InsertItem(*args
, **kwargs
):
4405 """InsertItem(self, ListItem info) -> long"""
4406 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4408 def InsertStringItem(*args
, **kwargs
):
4409 """InsertStringItem(self, long index, String label) -> long"""
4410 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4412 def InsertImageItem(*args
, **kwargs
):
4413 """InsertImageItem(self, long index, int imageIndex) -> long"""
4414 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4416 def InsertImageStringItem(*args
, **kwargs
):
4417 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4418 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4420 def InsertColumnInfo(*args
, **kwargs
):
4421 """InsertColumnInfo(self, long col, ListItem info) -> long"""
4422 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
4424 def InsertColumn(*args
, **kwargs
):
4426 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4427 int width=-1) -> long
4429 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4431 def SetItemCount(*args
, **kwargs
):
4432 """SetItemCount(self, long count)"""
4433 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4435 def ScrollList(*args
, **kwargs
):
4436 """ScrollList(self, int dx, int dy) -> bool"""
4437 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4439 def SetItemTextColour(*args
, **kwargs
):
4440 """SetItemTextColour(self, long item, Colour col)"""
4441 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4443 def GetItemTextColour(*args
, **kwargs
):
4444 """GetItemTextColour(self, long item) -> Colour"""
4445 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4447 def SetItemBackgroundColour(*args
, **kwargs
):
4448 """SetItemBackgroundColour(self, long item, Colour col)"""
4449 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4451 def GetItemBackgroundColour(*args
, **kwargs
):
4452 """GetItemBackgroundColour(self, long item) -> Colour"""
4453 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4457 def Select(self
, idx
, on
=1):
4458 '''[de]select an item'''
4459 if on
: state
= wx
.LIST_STATE_SELECTED
4461 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4463 def Focus(self
, idx
):
4464 '''Focus and show the given item'''
4465 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4466 self
.EnsureVisible(idx
)
4468 def GetFocusedItem(self
):
4469 '''get the currently focused item or -1 if none'''
4470 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4472 def GetFirstSelected(self
, *args
):
4473 '''return first selected item, or -1 when none'''
4474 return self
.GetNextSelected(-1)
4476 def GetNextSelected(self
, item
):
4477 '''return subsequent selected items, or -1 when no more'''
4478 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4480 def IsSelected(self
, idx
):
4481 '''return True if the item is selected'''
4482 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
4484 def SetColumnImage(self
, col
, image
):
4485 item
= self
.GetColumn(col
)
4486 # preserve all other attributes too
4487 item
.SetMask( wx
.LIST_MASK_STATE |
4489 wx
.LIST_MASK_IMAGE |
4492 wx
.LIST_MASK_WIDTH |
4493 wx
.LIST_MASK_FORMAT
)
4494 item
.SetImage(image
)
4495 self
.SetColumn(col
, item
)
4497 def ClearColumnImage(self
, col
):
4498 self
.SetColumnImage(col
, -1)
4500 def Append(self
, entry
):
4501 '''Append an item to the list control. The entry parameter should be a
4502 sequence with an item for each column'''
4508 pos
= self
.GetItemCount()
4509 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4510 for i
in range(1, len(entry
)):
4511 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4514 def SortItems(*args
, **kwargs
):
4515 """SortItems(self, PyObject func) -> bool"""
4516 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4518 def GetMainWindow(*args
, **kwargs
):
4519 """GetMainWindow(self) -> Window"""
4520 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4522 def GetClassDefaultAttributes(*args
, **kwargs
):
4524 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4526 Get the default attributes for this class. This is useful if you want
4527 to use the same font or colour in your own control as in a standard
4528 control -- which is a much better idea than hard coding specific
4529 colours or fonts which might look completely out of place on the
4530 user's system, especially if it uses themes.
4532 The variant parameter is only relevant under Mac currently and is
4533 ignore under other platforms. Under Mac, it will change the size of
4534 the returned font. See `wx.Window.SetWindowVariant` for more about
4537 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4539 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4541 class ListCtrlPtr(ListCtrl
):
4542 def __init__(self
, this
):
4544 if not hasattr(self
,"thisown"): self
.thisown
= 0
4545 self
.__class
__ = ListCtrl
4546 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
4548 def PreListCtrl(*args
, **kwargs
):
4549 """PreListCtrl() -> ListCtrl"""
4550 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4554 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4556 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4558 Get the default attributes for this class. This is useful if you want
4559 to use the same font or colour in your own control as in a standard
4560 control -- which is a much better idea than hard coding specific
4561 colours or fonts which might look completely out of place on the
4562 user's system, especially if it uses themes.
4564 The variant parameter is only relevant under Mac currently and is
4565 ignore under other platforms. Under Mac, it will change the size of
4566 the returned font. See `wx.Window.SetWindowVariant` for more about
4569 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4571 #---------------------------------------------------------------------------
4573 class ListView(ListCtrl
):
4575 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4576 def __init__(self
, *args
, **kwargs
):
4578 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4579 Size size=DefaultSize, long style=LC_REPORT,
4580 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4582 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
4583 self
.this
= newobj
.this
4586 self
._setOORInfo
(self
)
4588 def Create(*args
, **kwargs
):
4590 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4591 Size size=DefaultSize, long style=LC_REPORT,
4592 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4594 Do the 2nd phase and create the GUI control.
4596 return _controls_
.ListView_Create(*args
, **kwargs
)
4598 def Select(*args
, **kwargs
):
4599 """Select(self, long n, bool on=True)"""
4600 return _controls_
.ListView_Select(*args
, **kwargs
)
4602 def Focus(*args
, **kwargs
):
4603 """Focus(self, long index)"""
4604 return _controls_
.ListView_Focus(*args
, **kwargs
)
4606 def GetFocusedItem(*args
, **kwargs
):
4607 """GetFocusedItem(self) -> long"""
4608 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4610 def GetNextSelected(*args
, **kwargs
):
4611 """GetNextSelected(self, long item) -> long"""
4612 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4614 def GetFirstSelected(*args
, **kwargs
):
4615 """GetFirstSelected(self) -> long"""
4616 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4618 def IsSelected(*args
, **kwargs
):
4619 """IsSelected(self, long index) -> bool"""
4620 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4622 def SetColumnImage(*args
, **kwargs
):
4623 """SetColumnImage(self, int col, int image)"""
4624 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4626 def ClearColumnImage(*args
, **kwargs
):
4627 """ClearColumnImage(self, int col)"""
4628 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4631 class ListViewPtr(ListView
):
4632 def __init__(self
, this
):
4634 if not hasattr(self
,"thisown"): self
.thisown
= 0
4635 self
.__class
__ = ListView
4636 _controls_
.ListView_swigregister(ListViewPtr
)
4638 def PreListView(*args
, **kwargs
):
4639 """PreListView() -> ListView"""
4640 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4644 #---------------------------------------------------------------------------
4646 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4647 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4648 TR_NO_LINES
= _controls_
.TR_NO_LINES
4649 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4650 TR_SINGLE
= _controls_
.TR_SINGLE
4651 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4652 TR_EXTENDED
= _controls_
.TR_EXTENDED
4653 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4654 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4655 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4656 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4657 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4658 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4659 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4660 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
4661 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
4662 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4663 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4664 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4665 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4666 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4667 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4668 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4669 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4670 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4671 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4672 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4673 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4674 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4675 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4676 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4677 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4678 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4679 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4680 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4681 #---------------------------------------------------------------------------
4683 class TreeItemId(object):
4685 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4686 def __init__(self
, *args
, **kwargs
):
4687 """__init__(self) -> TreeItemId"""
4688 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
4689 self
.this
= newobj
.this
4692 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
4695 if self
.thisown
: destroy(self
)
4698 def IsOk(*args
, **kwargs
):
4699 """IsOk(self) -> bool"""
4700 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4702 def __eq__(*args
, **kwargs
):
4703 """__eq__(self, TreeItemId other) -> bool"""
4704 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4706 def __ne__(*args
, **kwargs
):
4707 """__ne__(self, TreeItemId other) -> bool"""
4708 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4710 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4712 def __nonzero__(self
): return self
.IsOk()
4714 class TreeItemIdPtr(TreeItemId
):
4715 def __init__(self
, this
):
4717 if not hasattr(self
,"thisown"): self
.thisown
= 0
4718 self
.__class
__ = TreeItemId
4719 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
4720 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4722 class TreeItemData(object):
4724 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4725 def __init__(self
, *args
, **kwargs
):
4726 """__init__(self, PyObject obj=None) -> TreeItemData"""
4727 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
4728 self
.this
= newobj
.this
4731 def GetData(*args
, **kwargs
):
4732 """GetData(self) -> PyObject"""
4733 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4735 def SetData(*args
, **kwargs
):
4736 """SetData(self, PyObject obj)"""
4737 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4739 def GetId(*args
, **kwargs
):
4740 """GetId(self) -> TreeItemId"""
4741 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4743 def SetId(*args
, **kwargs
):
4744 """SetId(self, TreeItemId id)"""
4745 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4747 def Destroy(*args
, **kwargs
):
4749 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4752 class TreeItemDataPtr(TreeItemData
):
4753 def __init__(self
, this
):
4755 if not hasattr(self
,"thisown"): self
.thisown
= 0
4756 self
.__class
__ = TreeItemData
4757 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
4759 #---------------------------------------------------------------------------
4761 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4762 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4763 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4764 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4765 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4766 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4767 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4768 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4769 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4770 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4771 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4772 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4773 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4774 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4775 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4776 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4777 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4778 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4779 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4780 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4781 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4782 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4783 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4784 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4785 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4786 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4787 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4788 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4789 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4790 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4791 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4792 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4793 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4794 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4795 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4796 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4797 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4798 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4799 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4800 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4802 class TreeEvent(_core
.NotifyEvent
):
4804 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4805 def __init__(self
, *args
, **kwargs
):
4806 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4807 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
4808 self
.this
= newobj
.this
4811 def GetItem(*args
, **kwargs
):
4812 """GetItem(self) -> TreeItemId"""
4813 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4815 def SetItem(*args
, **kwargs
):
4816 """SetItem(self, TreeItemId item)"""
4817 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4819 def GetOldItem(*args
, **kwargs
):
4820 """GetOldItem(self) -> TreeItemId"""
4821 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4823 def SetOldItem(*args
, **kwargs
):
4824 """SetOldItem(self, TreeItemId item)"""
4825 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4827 def GetPoint(*args
, **kwargs
):
4828 """GetPoint(self) -> Point"""
4829 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4831 def SetPoint(*args
, **kwargs
):
4832 """SetPoint(self, Point pt)"""
4833 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4835 def GetKeyEvent(*args
, **kwargs
):
4836 """GetKeyEvent(self) -> KeyEvent"""
4837 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4839 def GetKeyCode(*args
, **kwargs
):
4840 """GetKeyCode(self) -> int"""
4841 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4843 def SetKeyEvent(*args
, **kwargs
):
4844 """SetKeyEvent(self, KeyEvent evt)"""
4845 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4847 def GetLabel(*args
, **kwargs
):
4848 """GetLabel(self) -> String"""
4849 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4851 def SetLabel(*args
, **kwargs
):
4852 """SetLabel(self, String label)"""
4853 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4855 def IsEditCancelled(*args
, **kwargs
):
4856 """IsEditCancelled(self) -> bool"""
4857 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4859 def SetEditCanceled(*args
, **kwargs
):
4860 """SetEditCanceled(self, bool editCancelled)"""
4861 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4863 def SetToolTip(*args
, **kwargs
):
4864 """SetToolTip(self, String toolTip)"""
4865 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4868 class TreeEventPtr(TreeEvent
):
4869 def __init__(self
, this
):
4871 if not hasattr(self
,"thisown"): self
.thisown
= 0
4872 self
.__class
__ = TreeEvent
4873 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
4875 #---------------------------------------------------------------------------
4877 class TreeCtrl(_core
.Control
):
4879 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4880 def __init__(self
, *args
, **kwargs
):
4882 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4883 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4884 Validator validator=DefaultValidator,
4885 String name=TreeCtrlNameStr) -> TreeCtrl
4887 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
4888 self
.this
= newobj
.this
4891 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4893 def Create(*args
, **kwargs
):
4895 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4896 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4897 Validator validator=DefaultValidator,
4898 String name=TreeCtrlNameStr) -> bool
4900 Do the 2nd phase and create the GUI control.
4902 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
4904 def _setCallbackInfo(*args
, **kwargs
):
4905 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4906 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4908 def GetCount(*args
, **kwargs
):
4909 """GetCount(self) -> size_t"""
4910 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
4912 def GetIndent(*args
, **kwargs
):
4913 """GetIndent(self) -> unsigned int"""
4914 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
4916 def SetIndent(*args
, **kwargs
):
4917 """SetIndent(self, unsigned int indent)"""
4918 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
4920 def GetSpacing(*args
, **kwargs
):
4921 """GetSpacing(self) -> unsigned int"""
4922 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4924 def SetSpacing(*args
, **kwargs
):
4925 """SetSpacing(self, unsigned int spacing)"""
4926 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4928 def GetImageList(*args
, **kwargs
):
4929 """GetImageList(self) -> ImageList"""
4930 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
4932 def GetStateImageList(*args
, **kwargs
):
4933 """GetStateImageList(self) -> ImageList"""
4934 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4936 def SetImageList(*args
, **kwargs
):
4937 """SetImageList(self, ImageList imageList)"""
4938 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
4940 def SetStateImageList(*args
, **kwargs
):
4941 """SetStateImageList(self, ImageList imageList)"""
4942 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4944 def AssignImageList(*args
, **kwargs
):
4945 """AssignImageList(self, ImageList imageList)"""
4946 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4948 def AssignStateImageList(*args
, **kwargs
):
4949 """AssignStateImageList(self, ImageList imageList)"""
4950 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4952 def GetItemText(*args
, **kwargs
):
4953 """GetItemText(self, TreeItemId item) -> String"""
4954 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
4956 def GetItemImage(*args
, **kwargs
):
4957 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4958 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4960 def GetItemData(*args
, **kwargs
):
4961 """GetItemData(self, TreeItemId item) -> TreeItemData"""
4962 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
4964 def GetItemPyData(*args
, **kwargs
):
4965 """GetItemPyData(self, TreeItemId item) -> PyObject"""
4966 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4968 GetPyData
= GetItemPyData
4969 def GetItemTextColour(*args
, **kwargs
):
4970 """GetItemTextColour(self, TreeItemId item) -> Colour"""
4971 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4973 def GetItemBackgroundColour(*args
, **kwargs
):
4974 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
4975 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4977 def GetItemFont(*args
, **kwargs
):
4978 """GetItemFont(self, TreeItemId item) -> Font"""
4979 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4981 def SetItemText(*args
, **kwargs
):
4982 """SetItemText(self, TreeItemId item, String text)"""
4983 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
4985 def SetItemImage(*args
, **kwargs
):
4986 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4987 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4989 def SetItemData(*args
, **kwargs
):
4990 """SetItemData(self, TreeItemId item, TreeItemData data)"""
4991 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
4993 def SetItemPyData(*args
, **kwargs
):
4994 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
4995 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4997 SetPyData
= SetItemPyData
4998 def SetItemHasChildren(*args
, **kwargs
):
4999 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5000 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5002 def SetItemBold(*args
, **kwargs
):
5003 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5004 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5006 def SetItemTextColour(*args
, **kwargs
):
5007 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5008 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5010 def SetItemBackgroundColour(*args
, **kwargs
):
5011 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5012 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5014 def SetItemFont(*args
, **kwargs
):
5015 """SetItemFont(self, TreeItemId item, Font font)"""
5016 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5018 def IsVisible(*args
, **kwargs
):
5019 """IsVisible(self, TreeItemId item) -> bool"""
5020 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5022 def ItemHasChildren(*args
, **kwargs
):
5023 """ItemHasChildren(self, TreeItemId item) -> bool"""
5024 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5026 def IsExpanded(*args
, **kwargs
):
5027 """IsExpanded(self, TreeItemId item) -> bool"""
5028 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5030 def IsSelected(*args
, **kwargs
):
5031 """IsSelected(self, TreeItemId item) -> bool"""
5032 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5034 def IsBold(*args
, **kwargs
):
5035 """IsBold(self, TreeItemId item) -> bool"""
5036 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5038 def GetChildrenCount(*args
, **kwargs
):
5039 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5040 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5042 def GetRootItem(*args
, **kwargs
):
5043 """GetRootItem(self) -> TreeItemId"""
5044 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5046 def GetSelection(*args
, **kwargs
):
5047 """GetSelection(self) -> TreeItemId"""
5048 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5050 def GetSelections(*args
, **kwargs
):
5051 """GetSelections(self) -> PyObject"""
5052 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5054 def GetItemParent(*args
, **kwargs
):
5055 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5056 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5058 def GetFirstChild(*args
, **kwargs
):
5059 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5060 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5062 def GetNextChild(*args
, **kwargs
):
5063 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5064 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5066 def GetLastChild(*args
, **kwargs
):
5067 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5068 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5070 def GetNextSibling(*args
, **kwargs
):
5071 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5072 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5074 def GetPrevSibling(*args
, **kwargs
):
5075 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5076 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5078 def GetFirstVisibleItem(*args
, **kwargs
):
5079 """GetFirstVisibleItem(self) -> TreeItemId"""
5080 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5082 def GetNextVisible(*args
, **kwargs
):
5083 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5084 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5086 def GetPrevVisible(*args
, **kwargs
):
5087 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5088 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5090 def AddRoot(*args
, **kwargs
):
5091 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5092 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5094 def PrependItem(*args
, **kwargs
):
5096 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5097 TreeItemData data=None) -> TreeItemId
5099 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5101 def InsertItem(*args
, **kwargs
):
5103 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5104 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5106 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5108 def InsertItemBefore(*args
, **kwargs
):
5110 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5111 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5113 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5115 def AppendItem(*args
, **kwargs
):
5117 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5118 TreeItemData data=None) -> TreeItemId
5120 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5122 def Delete(*args
, **kwargs
):
5123 """Delete(self, TreeItemId item)"""
5124 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5126 def DeleteChildren(*args
, **kwargs
):
5127 """DeleteChildren(self, TreeItemId item)"""
5128 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5130 def DeleteAllItems(*args
, **kwargs
):
5131 """DeleteAllItems(self)"""
5132 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5134 def Expand(*args
, **kwargs
):
5135 """Expand(self, TreeItemId item)"""
5136 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5138 def Collapse(*args
, **kwargs
):
5139 """Collapse(self, TreeItemId item)"""
5140 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5142 def CollapseAndReset(*args
, **kwargs
):
5143 """CollapseAndReset(self, TreeItemId item)"""
5144 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5146 def Toggle(*args
, **kwargs
):
5147 """Toggle(self, TreeItemId item)"""
5148 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5150 def Unselect(*args
, **kwargs
):
5151 """Unselect(self)"""
5152 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5154 def UnselectItem(*args
, **kwargs
):
5155 """UnselectItem(self, TreeItemId item)"""
5156 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5158 def UnselectAll(*args
, **kwargs
):
5159 """UnselectAll(self)"""
5160 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5162 def SelectItem(*args
, **kwargs
):
5163 """SelectItem(self, TreeItemId item, bool select=True)"""
5164 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5166 def ToggleItemSelection(*args
, **kwargs
):
5167 """ToggleItemSelection(self, TreeItemId item)"""
5168 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5170 def EnsureVisible(*args
, **kwargs
):
5171 """EnsureVisible(self, TreeItemId item)"""
5172 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5174 def ScrollTo(*args
, **kwargs
):
5175 """ScrollTo(self, TreeItemId item)"""
5176 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5178 def EditLabel(*args
, **kwargs
):
5179 """EditLabel(self, TreeItemId item)"""
5180 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5182 def GetEditControl(*args
, **kwargs
):
5183 """GetEditControl(self) -> TextCtrl"""
5184 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5186 def SortChildren(*args
, **kwargs
):
5187 """SortChildren(self, TreeItemId item)"""
5188 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5190 def HitTest(*args
, **kwargs
):
5191 """HitTest(Point point) -> (item, where)"""
5192 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5194 def GetBoundingRect(*args
, **kwargs
):
5195 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5196 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5198 def GetClassDefaultAttributes(*args
, **kwargs
):
5200 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5202 Get the default attributes for this class. This is useful if you want
5203 to use the same font or colour in your own control as in a standard
5204 control -- which is a much better idea than hard coding specific
5205 colours or fonts which might look completely out of place on the
5206 user's system, especially if it uses themes.
5208 The variant parameter is only relevant under Mac currently and is
5209 ignore under other platforms. Under Mac, it will change the size of
5210 the returned font. See `wx.Window.SetWindowVariant` for more about
5213 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5215 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5217 class TreeCtrlPtr(TreeCtrl
):
5218 def __init__(self
, this
):
5220 if not hasattr(self
,"thisown"): self
.thisown
= 0
5221 self
.__class
__ = TreeCtrl
5222 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5224 def PreTreeCtrl(*args
, **kwargs
):
5225 """PreTreeCtrl() -> TreeCtrl"""
5226 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5230 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5232 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5234 Get the default attributes for this class. This is useful if you want
5235 to use the same font or colour in your own control as in a standard
5236 control -- which is a much better idea than hard coding specific
5237 colours or fonts which might look completely out of place on the
5238 user's system, especially if it uses themes.
5240 The variant parameter is only relevant under Mac currently and is
5241 ignore under other platforms. Under Mac, it will change the size of
5242 the returned font. See `wx.Window.SetWindowVariant` for more about
5245 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5247 #---------------------------------------------------------------------------
5249 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5250 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5251 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5252 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5253 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5254 class GenericDirCtrl(_core
.Control
):
5256 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5257 def __init__(self
, *args
, **kwargs
):
5259 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5260 Point pos=DefaultPosition, Size size=DefaultSize,
5261 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5262 String filter=EmptyString,
5263 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5265 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5266 self
.this
= newobj
.this
5269 self
._setOORInfo
(self
)
5271 def Create(*args
, **kwargs
):
5273 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5274 Point pos=DefaultPosition, Size size=DefaultSize,
5275 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5276 String filter=EmptyString,
5277 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5279 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5281 def ExpandPath(*args
, **kwargs
):
5282 """ExpandPath(self, String path) -> bool"""
5283 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5285 def GetDefaultPath(*args
, **kwargs
):
5286 """GetDefaultPath(self) -> String"""
5287 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5289 def SetDefaultPath(*args
, **kwargs
):
5290 """SetDefaultPath(self, String path)"""
5291 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5293 def GetPath(*args
, **kwargs
):
5294 """GetPath(self) -> String"""
5295 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5297 def GetFilePath(*args
, **kwargs
):
5298 """GetFilePath(self) -> String"""
5299 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5301 def SetPath(*args
, **kwargs
):
5302 """SetPath(self, String path)"""
5303 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5305 def ShowHidden(*args
, **kwargs
):
5306 """ShowHidden(self, bool show)"""
5307 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5309 def GetShowHidden(*args
, **kwargs
):
5310 """GetShowHidden(self) -> bool"""
5311 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5313 def GetFilter(*args
, **kwargs
):
5314 """GetFilter(self) -> String"""
5315 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5317 def SetFilter(*args
, **kwargs
):
5318 """SetFilter(self, String filter)"""
5319 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5321 def GetFilterIndex(*args
, **kwargs
):
5322 """GetFilterIndex(self) -> int"""
5323 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5325 def SetFilterIndex(*args
, **kwargs
):
5326 """SetFilterIndex(self, int n)"""
5327 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5329 def GetRootId(*args
, **kwargs
):
5330 """GetRootId(self) -> TreeItemId"""
5331 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5333 def GetTreeCtrl(*args
, **kwargs
):
5334 """GetTreeCtrl(self) -> TreeCtrl"""
5335 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5337 def GetFilterListCtrl(*args
, **kwargs
):
5338 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5339 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5341 def FindChild(*args
, **kwargs
):
5342 """FindChild(wxTreeItemId parentId, wxString path) -> (item, done)"""
5343 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5345 def DoResize(*args
, **kwargs
):
5346 """DoResize(self)"""
5347 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5349 def ReCreateTree(*args
, **kwargs
):
5350 """ReCreateTree(self)"""
5351 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5354 class GenericDirCtrlPtr(GenericDirCtrl
):
5355 def __init__(self
, this
):
5357 if not hasattr(self
,"thisown"): self
.thisown
= 0
5358 self
.__class
__ = GenericDirCtrl
5359 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5360 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5362 def PreGenericDirCtrl(*args
, **kwargs
):
5363 """PreGenericDirCtrl() -> GenericDirCtrl"""
5364 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5368 class DirFilterListCtrl(Choice
):
5370 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5371 def __init__(self
, *args
, **kwargs
):
5373 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5374 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5376 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5377 self
.this
= newobj
.this
5380 self
._setOORInfo
(self
)
5382 def Create(*args
, **kwargs
):
5384 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5385 Size size=DefaultSize, long style=0) -> bool
5387 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5389 def FillFilterList(*args
, **kwargs
):
5390 """FillFilterList(self, String filter, int defaultFilter)"""
5391 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5394 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5395 def __init__(self
, this
):
5397 if not hasattr(self
,"thisown"): self
.thisown
= 0
5398 self
.__class
__ = DirFilterListCtrl
5399 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5401 def PreDirFilterListCtrl(*args
, **kwargs
):
5402 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5403 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5407 #---------------------------------------------------------------------------
5409 class PyControl(_core
.Control
):
5411 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5412 def __init__(self
, *args
, **kwargs
):
5414 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
5415 long style=0, Validator validator=DefaultValidator,
5416 String name=ControlNameStr) -> PyControl
5418 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5419 self
.this
= newobj
.this
5422 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5424 def _setCallbackInfo(*args
, **kwargs
):
5425 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5426 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5428 def SetBestSize(*args
, **kwargs
):
5429 """SetBestSize(self, Size size)"""
5430 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5432 def base_DoMoveWindow(*args
, **kwargs
):
5433 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
5434 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
5436 def base_DoSetSize(*args
, **kwargs
):
5437 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5438 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
5440 def base_DoSetClientSize(*args
, **kwargs
):
5441 """base_DoSetClientSize(self, int width, int height)"""
5442 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
5444 def base_DoSetVirtualSize(*args
, **kwargs
):
5445 """base_DoSetVirtualSize(self, int x, int y)"""
5446 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
5448 def base_DoGetSize(*args
, **kwargs
):
5449 """base_DoGetSize() -> (width, height)"""
5450 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
5452 def base_DoGetClientSize(*args
, **kwargs
):
5453 """base_DoGetClientSize() -> (width, height)"""
5454 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
5456 def base_DoGetPosition(*args
, **kwargs
):
5457 """base_DoGetPosition() -> (x,y)"""
5458 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
5460 def base_DoGetVirtualSize(*args
, **kwargs
):
5461 """base_DoGetVirtualSize(self) -> Size"""
5462 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
5464 def base_DoGetBestSize(*args
, **kwargs
):
5465 """base_DoGetBestSize(self) -> Size"""
5466 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
5468 def base_InitDialog(*args
, **kwargs
):
5469 """base_InitDialog(self)"""
5470 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
5472 def base_TransferDataToWindow(*args
, **kwargs
):
5473 """base_TransferDataToWindow(self) -> bool"""
5474 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
5476 def base_TransferDataFromWindow(*args
, **kwargs
):
5477 """base_TransferDataFromWindow(self) -> bool"""
5478 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
5480 def base_Validate(*args
, **kwargs
):
5481 """base_Validate(self) -> bool"""
5482 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
5484 def base_AcceptsFocus(*args
, **kwargs
):
5485 """base_AcceptsFocus(self) -> bool"""
5486 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
5488 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
5489 """base_AcceptsFocusFromKeyboard(self) -> bool"""
5490 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
5492 def base_GetMaxSize(*args
, **kwargs
):
5493 """base_GetMaxSize(self) -> Size"""
5494 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
5496 def base_AddChild(*args
, **kwargs
):
5497 """base_AddChild(self, Window child)"""
5498 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
5500 def base_RemoveChild(*args
, **kwargs
):
5501 """base_RemoveChild(self, Window child)"""
5502 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
5504 def base_ShouldInheritColours(*args
, **kwargs
):
5505 """base_ShouldInheritColours(self) -> bool"""
5506 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
5508 def base_ApplyParentThemeBackground(*args
, **kwargs
):
5509 """base_ApplyParentThemeBackground(self, Colour c)"""
5510 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
5512 def base_GetDefaultAttributes(*args
, **kwargs
):
5513 """base_GetDefaultAttributes(self) -> VisualAttributes"""
5514 return _controls_
.PyControl_base_GetDefaultAttributes(*args
, **kwargs
)
5517 class PyControlPtr(PyControl
):
5518 def __init__(self
, this
):
5520 if not hasattr(self
,"thisown"): self
.thisown
= 0
5521 self
.__class
__ = PyControl
5522 _controls_
.PyControl_swigregister(PyControlPtr
)
5524 def PrePyControl(*args
, **kwargs
):
5525 """PrePyControl() -> PyControl"""
5526 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5530 #---------------------------------------------------------------------------
5532 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5533 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5534 wxEVT_HELP
= _controls_
.wxEVT_HELP
5535 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5536 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5537 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5538 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5539 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5541 class HelpEvent(_core
.CommandEvent
):
5543 A help event is sent when the user has requested context-sensitive
5544 help. This can either be caused by the application requesting
5545 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5546 the system generating a WM_HELP message when the user pressed F1 or
5547 clicked on the query button in a dialog caption.
5549 A help event is sent to the window that the user clicked on, and is
5550 propagated up the window hierarchy until the event is processed or
5551 there are no more event handlers. The application should call
5552 event.GetId to check the identity of the clicked-on window, and then
5553 either show some suitable help or call event.Skip if the identifier is
5554 unrecognised. Calling Skip is important because it allows wxWindows to
5555 generate further events for ancestors of the clicked-on
5556 window. Otherwise it would be impossible to show help for container
5557 windows, since processing would stop after the first window found.
5560 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5561 def __init__(self
, *args
, **kwargs
):
5562 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5563 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
5564 self
.this
= newobj
.this
5567 def GetPosition(*args
, **kwargs
):
5569 GetPosition(self) -> Point
5571 Returns the left-click position of the mouse, in screen
5572 coordinates. This allows the application to position the help
5575 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5577 def SetPosition(*args
, **kwargs
):
5579 SetPosition(self, Point pos)
5581 Sets the left-click position of the mouse, in screen coordinates.
5583 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5585 def GetLink(*args
, **kwargs
):
5587 GetLink(self) -> String
5589 Get an optional link to further help
5591 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5593 def SetLink(*args
, **kwargs
):
5595 SetLink(self, String link)
5597 Set an optional link to further help
5599 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5601 def GetTarget(*args
, **kwargs
):
5603 GetTarget(self) -> String
5605 Get an optional target to display help in. E.g. a window specification
5607 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5609 def SetTarget(*args
, **kwargs
):
5611 SetTarget(self, String target)
5613 Set an optional target to display help in. E.g. a window specification
5615 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5618 class HelpEventPtr(HelpEvent
):
5619 def __init__(self
, this
):
5621 if not hasattr(self
,"thisown"): self
.thisown
= 0
5622 self
.__class
__ = HelpEvent
5623 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
5625 class ContextHelp(_core
.Object
):
5627 This class changes the cursor to a query and puts the application into
5628 a 'context-sensitive help mode'. When the user left-clicks on a window
5629 within the specified window, a ``EVT_HELP`` event is sent to that
5630 control, and the application may respond to it by popping up some
5633 There are a couple of ways to invoke this behaviour implicitly:
5635 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5636 (Windows only). This will put a question mark in the titlebar,
5637 and Windows will put the application into context-sensitive help
5638 mode automatically, with further programming.
5640 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5641 to create a context help object. Normally you will write your
5642 application so that this button is only added to a dialog for
5643 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5646 :see: `wx.ContextHelpButton`
5650 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5651 def __init__(self
, *args
, **kwargs
):
5653 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5655 Constructs a context help object, calling BeginContextHelp if doNow is
5658 If window is None, the top window is used.
5660 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
5661 self
.this
= newobj
.this
5664 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
5667 if self
.thisown
: destroy(self
)
5670 def BeginContextHelp(*args
, **kwargs
):
5672 BeginContextHelp(self, Window window=None) -> bool
5674 Puts the application into context-sensitive help mode. window is the
5675 window which will be used to catch events; if NULL, the top window
5678 Returns true if the application was successfully put into
5679 context-sensitive help mode. This function only returns when the event
5682 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5684 def EndContextHelp(*args
, **kwargs
):
5686 EndContextHelp(self) -> bool
5688 Ends context-sensitive help mode. Not normally called by the
5691 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5694 class ContextHelpPtr(ContextHelp
):
5695 def __init__(self
, this
):
5697 if not hasattr(self
,"thisown"): self
.thisown
= 0
5698 self
.__class
__ = ContextHelp
5699 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
5701 class ContextHelpButton(BitmapButton
):
5703 Instances of this class may be used to add a question mark button that
5704 when pressed, puts the application into context-help mode. It does
5705 this by creating a wx.ContextHelp object which itself generates a
5706 ``EVT_HELP`` event when the user clicks on a window.
5708 On Windows, you may add a question-mark icon to a dialog by use of the
5709 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5710 will have to add a button explicitly, usually next to OK, Cancel or
5713 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5717 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5718 def __init__(self
, *args
, **kwargs
):
5720 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5721 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5723 Constructor, creating and showing a context help button.
5725 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
5726 self
.this
= newobj
.this
5729 self
._setOORInfo
(self
)
5732 class ContextHelpButtonPtr(ContextHelpButton
):
5733 def __init__(self
, this
):
5735 if not hasattr(self
,"thisown"): self
.thisown
= 0
5736 self
.__class
__ = ContextHelpButton
5737 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5739 class HelpProvider(object):
5741 wx.HelpProvider is an abstract class used by a program
5742 implementing context-sensitive help to show the help text for the
5745 The current help provider must be explicitly set by the
5746 application using wx.HelpProvider.Set().
5748 def __init__(self
): raise RuntimeError, "No constructor defined"
5750 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5751 def Set(*args
, **kwargs
):
5753 Set(HelpProvider helpProvider) -> HelpProvider
5755 Sset the current, application-wide help provider. Returns the previous
5756 one. Unlike some other classes, the help provider is not created on
5757 demand. This must be explicitly done by the application.
5759 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5761 Set
= staticmethod(Set
)
5762 def Get(*args
, **kwargs
):
5764 Get() -> HelpProvider
5766 Return the current application-wide help provider.
5768 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5770 Get
= staticmethod(Get
)
5771 def GetHelp(*args
, **kwargs
):
5773 GetHelp(self, Window window) -> String
5775 Gets the help string for this window. Its interpretation is dependent
5776 on the help provider except that empty string always means that no
5777 help is associated with the window.
5779 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5781 def ShowHelp(*args
, **kwargs
):
5783 ShowHelp(self, Window window) -> bool
5785 Shows help for the given window. Uses GetHelp internally if
5786 applicable. Returns True if it was done, or False if no help was
5787 available for this window.
5789 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5791 def AddHelp(*args
, **kwargs
):
5793 AddHelp(self, Window window, String text)
5795 Associates the text with the given window.
5797 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5799 def AddHelpById(*args
, **kwargs
):
5801 AddHelpById(self, int id, String text)
5803 This version associates the given text with all windows with this
5804 id. May be used to set the same help string for all Cancel buttons in
5805 the application, for example.
5807 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5809 def RemoveHelp(*args
, **kwargs
):
5811 RemoveHelp(self, Window window)
5813 Removes the association between the window pointer and the help
5814 text. This is called by the wx.Window destructor. Without this, the
5815 table of help strings will fill up and when window pointers are
5816 reused, the wrong help string will be found.
5818 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5820 def Destroy(*args
, **kwargs
):
5822 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5825 class HelpProviderPtr(HelpProvider
):
5826 def __init__(self
, this
):
5828 if not hasattr(self
,"thisown"): self
.thisown
= 0
5829 self
.__class
__ = HelpProvider
5830 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
5832 def HelpProvider_Set(*args
, **kwargs
):
5834 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5836 Sset the current, application-wide help provider. Returns the previous
5837 one. Unlike some other classes, the help provider is not created on
5838 demand. This must be explicitly done by the application.
5840 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5842 def HelpProvider_Get(*args
, **kwargs
):
5844 HelpProvider_Get() -> HelpProvider
5846 Return the current application-wide help provider.
5848 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5850 class SimpleHelpProvider(HelpProvider
):
5852 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5853 supports only plain text help strings, and shows the string associated
5854 with the control (if any) in a tooltip.
5857 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5858 def __init__(self
, *args
, **kwargs
):
5860 __init__(self) -> SimpleHelpProvider
5862 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5863 supports only plain text help strings, and shows the string associated
5864 with the control (if any) in a tooltip.
5866 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
5867 self
.this
= newobj
.this
5871 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5872 def __init__(self
, this
):
5874 if not hasattr(self
,"thisown"): self
.thisown
= 0
5875 self
.__class
__ = SimpleHelpProvider
5876 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5878 #---------------------------------------------------------------------------
5880 class DragImage(_core
.Object
):
5882 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5883 def __init__(self
, *args
, **kwargs
):
5884 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5885 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
5886 self
.this
= newobj
.this
5889 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
5892 if self
.thisown
: destroy(self
)
5895 def SetBackingBitmap(*args
, **kwargs
):
5896 """SetBackingBitmap(self, Bitmap bitmap)"""
5897 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5899 def BeginDrag(*args
, **kwargs
):
5901 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
5902 Rect rect=None) -> bool
5904 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
5906 def BeginDragBounded(*args
, **kwargs
):
5907 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
5908 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
5910 def EndDrag(*args
, **kwargs
):
5911 """EndDrag(self) -> bool"""
5912 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
5914 def Move(*args
, **kwargs
):
5915 """Move(self, Point pt) -> bool"""
5916 return _controls_
.DragImage_Move(*args
, **kwargs
)
5918 def Show(*args
, **kwargs
):
5919 """Show(self) -> bool"""
5920 return _controls_
.DragImage_Show(*args
, **kwargs
)
5922 def Hide(*args
, **kwargs
):
5923 """Hide(self) -> bool"""
5924 return _controls_
.DragImage_Hide(*args
, **kwargs
)
5926 def GetImageRect(*args
, **kwargs
):
5927 """GetImageRect(self, Point pos) -> Rect"""
5928 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
5930 def DoDrawImage(*args
, **kwargs
):
5931 """DoDrawImage(self, DC dc, Point pos) -> bool"""
5932 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
5934 def UpdateBackingFromWindow(*args
, **kwargs
):
5935 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
5936 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
5938 def RedrawImage(*args
, **kwargs
):
5939 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
5940 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
5943 class DragImagePtr(DragImage
):
5944 def __init__(self
, this
):
5946 if not hasattr(self
,"thisown"): self
.thisown
= 0
5947 self
.__class
__ = DragImage
5948 _controls_
.DragImage_swigregister(DragImagePtr
)
5950 def DragIcon(*args
, **kwargs
):
5951 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
5952 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
5956 def DragString(*args
, **kwargs
):
5957 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
5958 val
= _controls_
.new_DragString(*args
, **kwargs
)
5962 def DragTreeItem(*args
, **kwargs
):
5963 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
5964 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
5968 def DragListItem(*args
, **kwargs
):
5969 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
5970 val
= _controls_
.new_DragListItem(*args
, **kwargs
)