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.
24 ============== ==========================================
25 wx.BU_LEFT Left-justifies the label. WIN32 only.
26 wx.BU_TOP Aligns the label to the top of the button.
28 wx.BU_RIGHT Right-justifies the bitmap label. WIN32 only.
29 wx.BU_BOTTOM Aligns the label to the bottom of the button.
31 wx.BU_EXACTFIT Creates the button as small as possible
32 instead of making it of the standard size
33 (which is the default behaviour.)
34 ============== ==========================================
38 ============ ==========================================
39 EVT_BUTTON Sent when the button is clicked.
40 ============ ==========================================
42 :see: `wx.BitmapButton`
46 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
47 def __init__(self
, *args
, **kwargs
):
49 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
50 Size size=DefaultSize, long style=0,
51 Validator validator=DefaultValidator, String name=ButtonNameStr) -> Button
53 Create and show a button.
55 newobj
= _controls_
.new_Button(*args
, **kwargs
)
56 self
.this
= newobj
.this
59 self
._setOORInfo
(self
)
61 def Create(*args
, **kwargs
):
63 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
64 Size size=DefaultSize, long style=0,
65 Validator validator=DefaultValidator, String name=ButtonNameStr) -> bool
67 Acutally create the GUI Button for 2-phase creation.
69 return _controls_
.Button_Create(*args
, **kwargs
)
71 def SetDefault(*args
, **kwargs
):
75 This sets the button to be the default item for the panel or dialog box.
77 return _controls_
.Button_SetDefault(*args
, **kwargs
)
79 def GetDefaultSize(*args
, **kwargs
):
81 GetDefaultSize() -> Size
83 Returns the default button size for this platform.
85 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
87 GetDefaultSize
= staticmethod(GetDefaultSize
)
88 def GetClassDefaultAttributes(*args
, **kwargs
):
90 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
92 Get the default attributes for this class. This is useful if
93 you want to use the same font or colour in your own control as
94 in a standard control -- which is a much better idea than hard
95 coding specific colours or fonts which might look completely out
96 of place on the users system, especially if it uses themes.
98 The variant parameter is only relevant under Mac currently and is
99 ignore under other platforms. Under Mac, it will change the size of the
100 returned font. See SetWindowVariant for more about this.
102 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
104 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
106 class ButtonPtr(Button
):
107 def __init__(self
, this
):
109 if not hasattr(self
,"thisown"): self
.thisown
= 0
110 self
.__class
__ = Button
111 _controls_
.Button_swigregister(ButtonPtr
)
112 cvar
= _controls_
.cvar
113 ButtonNameStr
= cvar
.ButtonNameStr
115 def PreButton(*args
, **kwargs
):
117 PreButton() -> Button
119 Precreate a Button for 2-phase creation.
121 val
= _controls_
.new_PreButton(*args
, **kwargs
)
125 def Button_GetDefaultSize(*args
, **kwargs
):
127 Button_GetDefaultSize() -> Size
129 Returns the default button size for this platform.
131 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
133 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
135 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
137 Get the default attributes for this class. This is useful if
138 you want to use the same font or colour in your own control as
139 in a standard control -- which is a much better idea than hard
140 coding specific colours or fonts which might look completely out
141 of place on the users system, especially if it uses themes.
143 The variant parameter is only relevant under Mac currently and is
144 ignore under other platforms. Under Mac, it will change the size of the
145 returned font. See SetWindowVariant for more about this.
147 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
149 class BitmapButton(Button
):
151 A Button that contains a bitmap. A bitmap button can be supplied with a
152 single bitmap, and wxWidgets will draw all button states using this bitmap. If
153 the application needs more control, additional bitmaps for the selected state,
154 unpressed focused state, and greyed-out state may be supplied.
158 ============== =============================================
159 wx.BU_AUTODRAW If this is specified, the button will be drawn
160 automatically using the label bitmap only,
161 providing a 3D-look border. If this style is
162 not specified, the button will be drawn
163 without borders and using all provided
165 wx.BU_LEFT Left-justifies the label. WIN32 only.
166 wx.BU_TOP Aligns the label to the top of the button. WIN32
168 wx.BU_RIGHT Right-justifies the bitmap label. WIN32 only.
169 wx.BU_BOTTOM Aligns the label to the bottom of the
171 wx.BU_EXACTFIT Creates the button as small as possible
172 instead of making it of the standard size
173 (which is the default behaviour.)
174 ============== =============================================
178 =========== ==================================
179 EVT_BUTTON Sent when the button is clicked.
180 =========== ==================================
182 :see: `wx.Button`, `wx.Bitmap`
186 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
187 def __init__(self
, *args
, **kwargs
):
189 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
190 Size size=DefaultSize, long style=BU_AUTODRAW,
191 Validator validator=DefaultValidator,
192 String name=ButtonNameStr) -> BitmapButton
194 Create and show a button with a bitmap for the label.
196 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
197 self
.this
= newobj
.this
200 self
._setOORInfo
(self
)
202 def Create(*args
, **kwargs
):
204 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
205 Size size=DefaultSize, long style=BU_AUTODRAW,
206 Validator validator=DefaultValidator,
207 String name=ButtonNameStr) -> bool
209 Acutally create the GUI BitmapButton for 2-phase creation.
211 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
213 def GetBitmapLabel(*args
, **kwargs
):
215 GetBitmapLabel(self) -> Bitmap
217 Returns the label bitmap (the one passed to the constructor).
219 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
221 def GetBitmapDisabled(*args
, **kwargs
):
223 GetBitmapDisabled(self) -> Bitmap
225 Returns the bitmap for the disabled state.
227 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
229 def GetBitmapFocus(*args
, **kwargs
):
231 GetBitmapFocus(self) -> Bitmap
233 Returns the bitmap for the focused state.
235 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
237 def GetBitmapSelected(*args
, **kwargs
):
239 GetBitmapSelected(self) -> Bitmap
241 Returns the bitmap for the selected state.
243 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
245 def SetBitmapDisabled(*args
, **kwargs
):
247 SetBitmapDisabled(self, Bitmap bitmap)
249 Sets the bitmap for the disabled button appearance.
251 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
253 def SetBitmapFocus(*args
, **kwargs
):
255 SetBitmapFocus(self, Bitmap bitmap)
257 Sets the bitmap for the button appearance when it has the keyboard focus.
259 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
261 def SetBitmapSelected(*args
, **kwargs
):
263 SetBitmapSelected(self, Bitmap bitmap)
265 Sets the bitmap for the selected (depressed) button appearance.
267 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
269 def SetBitmapLabel(*args
, **kwargs
):
271 SetBitmapLabel(self, Bitmap bitmap)
273 Sets the bitmap label for the button. This is the bitmap used for the
274 unselected state, and for all other states if no other bitmaps are provided.
276 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
278 def SetMargins(*args
, **kwargs
):
279 """SetMargins(self, int x, int y)"""
280 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
282 def GetMarginX(*args
, **kwargs
):
283 """GetMarginX(self) -> int"""
284 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
286 def GetMarginY(*args
, **kwargs
):
287 """GetMarginY(self) -> int"""
288 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
291 class BitmapButtonPtr(BitmapButton
):
292 def __init__(self
, this
):
294 if not hasattr(self
,"thisown"): self
.thisown
= 0
295 self
.__class
__ = BitmapButton
296 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
298 def PreBitmapButton(*args
, **kwargs
):
300 PreBitmapButton() -> BitmapButton
302 Precreate a BitmapButton for 2-phase creation.
304 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
308 #---------------------------------------------------------------------------
310 CHK_2STATE
= _controls_
.CHK_2STATE
311 CHK_3STATE
= _controls_
.CHK_3STATE
312 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
313 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
314 CHK_CHECKED
= _controls_
.CHK_CHECKED
315 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
316 class CheckBox(_core
.Control
):
318 A checkbox is a labelled box which by default is either on (the
319 checkmark is visible) or off (no checkmark). Optionally (When the
320 wx.CHK_3STATE style flag is set) it can have a third state, called the
321 mixed or undetermined state. Often this is used as a "Does Not
326 ================================= ===============================
327 wx.CHK_2STATE Create a 2-state checkbox.
329 wx.CHK_3STATE Create a 3-state checkbox.
330 wx.CHK_ALLOW_3RD_STATE_FOR_USER By default a user can't set a
331 3-state checkbox to the
332 third state. It can only be
333 done from code. Using this
334 flags allows the user to set
335 the checkbox to the third
337 wx.ALIGN_RIGHT Makes the
338 text appear on the left of
340 ================================= ===============================
344 =============================== ===============================
345 EVT_CHECKBOX Sent when checkbox is clicked.
346 =============================== ===============================
350 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
351 def __init__(self
, *args
, **kwargs
):
353 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
354 Size size=DefaultSize, long style=0,
355 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox
357 Creates and shows a CheckBox control
359 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
360 self
.this
= newobj
.this
363 self
._setOORInfo
(self
)
365 def Create(*args
, **kwargs
):
367 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
368 Size size=DefaultSize, long style=0,
369 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool
371 Actually create the GUI CheckBox for 2-phase creation.
373 return _controls_
.CheckBox_Create(*args
, **kwargs
)
375 def GetValue(*args
, **kwargs
):
377 GetValue(self) -> bool
379 Gets the state of a 2-state CheckBox. Returns True if it is checked,
382 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
384 def IsChecked(*args
, **kwargs
):
386 IsChecked(self) -> bool
388 Similar to GetValue, but raises an exception if it is not a 2-state
391 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
393 def SetValue(*args
, **kwargs
):
395 SetValue(self, bool state)
397 Set the state of a 2-state CheckBox. Pass True for checked, False for
400 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
402 def Get3StateValue(*args
, **kwargs
):
404 Get3StateValue(self) -> int
406 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
407 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
408 the undetermined state. Raises an exceptiion when the function is
409 used with a 2-state CheckBox.
411 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
413 def Set3StateValue(*args
, **kwargs
):
415 Set3StateValue(self, int state)
417 Sets the CheckBox to the given state. The state parameter can be one
418 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
419 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
420 exception when the CheckBox is a 2-state checkbox and setting the
421 state to wx.CHK_UNDETERMINED.
423 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
425 def Is3State(*args
, **kwargs
):
427 Is3State(self) -> bool
429 Returns whether or not the CheckBox is a 3-state CheckBox.
431 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
433 def Is3rdStateAllowedForUser(*args
, **kwargs
):
435 Is3rdStateAllowedForUser(self) -> bool
437 Returns whether or not the user can set the CheckBox to the third
440 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
442 def GetClassDefaultAttributes(*args
, **kwargs
):
444 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
446 Get the default attributes for this class. This is useful if
447 you want to use the same font or colour in your own control as
448 in a standard control -- which is a much better idea than hard
449 coding specific colours or fonts which might look completely out
450 of place on the users system, especially if it uses themes.
452 The variant parameter is only relevant under Mac currently and is
453 ignore under other platforms. Under Mac, it will change the size of the
454 returned font. See SetWindowVariant for more about this.
456 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
458 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
460 class CheckBoxPtr(CheckBox
):
461 def __init__(self
, this
):
463 if not hasattr(self
,"thisown"): self
.thisown
= 0
464 self
.__class
__ = CheckBox
465 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
466 CheckBoxNameStr
= cvar
.CheckBoxNameStr
468 def PreCheckBox(*args
, **kwargs
):
470 PreCheckBox() -> CheckBox
472 Precreate a CheckBox for 2-phase creation.
474 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
478 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
480 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
482 Get the default attributes for this class. This is useful if
483 you want to use the same font or colour in your own control as
484 in a standard control -- which is a much better idea than hard
485 coding specific colours or fonts which might look completely out
486 of place on the users 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 the
490 returned font. See SetWindowVariant for more about this.
492 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
494 #---------------------------------------------------------------------------
496 class Choice(_core
.ControlWithItems
):
498 A Choice control is used to select one of a list of strings.
499 Unlike a `wx.ListBox`, only the selection is visible until the
500 user pulls down the menu of choices.
504 ================ ==========================================
505 EVT_CHOICE Sent when an item in the list is selected.
506 ================ ==========================================
510 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
511 def __init__(self
, *args
, **kwargs
):
513 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
514 List choices=[], long style=0, Validator validator=DefaultValidator,
515 String name=ChoiceNameStr) -> Choice
517 Create and show a Choice control
519 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
520 self
.this
= newobj
.this
523 self
._setOORInfo
(self
)
525 def Create(*args
, **kwargs
):
527 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
528 List choices=[], long style=0, Validator validator=DefaultValidator,
529 String name=ChoiceNameStr) -> bool
531 Actually create the GUI Choice control for 2-phase creation
533 return _controls_
.Choice_Create(*args
, **kwargs
)
535 def SetSelection(*args
, **kwargs
):
537 SetSelection(self, int n)
539 Select the n'th item (zero based) in the list.
541 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
543 def SetStringSelection(*args
, **kwargs
):
545 SetStringSelection(self, String string) -> bool
547 Select the item with the specifed string
549 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
551 def SetString(*args
, **kwargs
):
553 SetString(self, int n, String string)
555 Set the label for the n'th item (zero based) in the list.
557 return _controls_
.Choice_SetString(*args
, **kwargs
)
559 Select
= SetSelection
560 def GetClassDefaultAttributes(*args
, **kwargs
):
562 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
564 Get the default attributes for this class. This is useful if
565 you want to use the same font or colour in your own control as
566 in a standard control -- which is a much better idea than hard
567 coding specific colours or fonts which might look completely out
568 of place on the users system, especially if it uses themes.
570 The variant parameter is only relevant under Mac currently and is
571 ignore under other platforms. Under Mac, it will change the size of the
572 returned font. See SetWindowVariant for more about this.
574 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
576 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
578 class ChoicePtr(Choice
):
579 def __init__(self
, this
):
581 if not hasattr(self
,"thisown"): self
.thisown
= 0
582 self
.__class
__ = Choice
583 _controls_
.Choice_swigregister(ChoicePtr
)
584 ChoiceNameStr
= cvar
.ChoiceNameStr
586 def PreChoice(*args
, **kwargs
):
588 PreChoice() -> Choice
590 Precreate a Choice control for 2-phase creation.
592 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
596 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
598 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
600 Get the default attributes for this class. This is useful if
601 you want to use the same font or colour in your own control as
602 in a standard control -- which is a much better idea than hard
603 coding specific colours or fonts which might look completely out
604 of place on the users system, especially if it uses themes.
606 The variant parameter is only relevant under Mac currently and is
607 ignore under other platforms. Under Mac, it will change the size of the
608 returned font. See SetWindowVariant for more about this.
610 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
612 #---------------------------------------------------------------------------
614 class ComboBox(_core
.Control
,_core
.ItemContainer
):
616 A combobox is like a combination of an edit control and a listbox. It can be
617 displayed as static list with editable or read-only text field; or a drop-down
618 list with text field.
621 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
622 def __init__(self
, *args
, **kwargs
):
624 __init__(Window parent, int id, String value=EmptyString,
625 Point pos=DefaultPosition, Size size=DefaultSize,
626 List choices=[], long style=0, Validator validator=DefaultValidator,
627 String name=ComboBoxNameStr) -> ComboBox
629 Constructor, creates and shows a ComboBox control.
631 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
632 self
.this
= newobj
.this
635 self
._setOORInfo
(self
)
637 def Create(*args
, **kwargs
):
639 Create(Window parent, int id, String value=EmptyString,
640 Point pos=DefaultPosition, Size size=DefaultSize,
641 List choices=[], long style=0, Validator validator=DefaultValidator,
642 String name=ChoiceNameStr) -> bool
644 Actually create the GUI wxComboBox control for 2-phase creation
646 return _controls_
.ComboBox_Create(*args
, **kwargs
)
648 def GetValue(*args
, **kwargs
):
650 GetValue(self) -> String
652 Returns the current value in the combobox text field.
654 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
656 def SetValue(*args
, **kwargs
):
657 """SetValue(self, String value)"""
658 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
660 def Copy(*args
, **kwargs
):
664 Copies the selected text to the clipboard.
666 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
668 def Cut(*args
, **kwargs
):
672 Copies the selected text to the clipboard and removes the selection.
674 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
676 def Paste(*args
, **kwargs
):
680 Pastes text from the clipboard to the text field.
682 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
684 def SetInsertionPoint(*args
, **kwargs
):
686 SetInsertionPoint(self, long pos)
688 Sets the insertion point in the combobox text field.
690 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
692 def GetInsertionPoint(*args
, **kwargs
):
694 GetInsertionPoint(self) -> long
696 Returns the insertion point for the combobox's text field.
698 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
700 def GetLastPosition(*args
, **kwargs
):
702 GetLastPosition(self) -> long
704 Returns the last position in the combobox text field.
706 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
708 def Replace(*args
, **kwargs
):
710 Replace(self, long from, long to, String value)
712 Replaces the text between two positions with the given text, in the
715 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
717 def SetSelection(*args
, **kwargs
):
719 SetSelection(self, int n)
721 Sets the item at index 'n' to be the selected item.
723 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
725 def SetMark(*args
, **kwargs
):
727 SetMark(self, long from, long to)
729 Selects the text between the two positions in the combobox text field.
731 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
733 def SetStringSelection(*args
, **kwargs
):
735 SetStringSelection(self, String string) -> bool
737 Select the item with the specifed string
739 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
741 def SetString(*args
, **kwargs
):
743 SetString(self, int n, String string)
745 Set the label for the n'th item (zero based) in the list.
747 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
749 def SetEditable(*args
, **kwargs
):
750 """SetEditable(self, bool editable)"""
751 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
753 def SetInsertionPointEnd(*args
, **kwargs
):
755 SetInsertionPointEnd(self)
757 Sets the insertion point at the end of the combobox text field.
759 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
761 def Remove(*args
, **kwargs
):
763 Remove(self, long from, long to)
765 Removes the text between the two positions in the combobox text field.
767 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
769 def GetClassDefaultAttributes(*args
, **kwargs
):
771 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
773 Get the default attributes for this class. This is useful if
774 you want to use the same font or colour in your own control as
775 in a standard control -- which is a much better idea than hard
776 coding specific colours or fonts which might look completely out
777 of place on the users system, especially if it uses themes.
779 The variant parameter is only relevant under Mac currently and is
780 ignore under other platforms. Under Mac, it will change the size of the
781 returned font. See SetWindowVariant for more about this.
783 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
785 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
787 class ComboBoxPtr(ComboBox
):
788 def __init__(self
, this
):
790 if not hasattr(self
,"thisown"): self
.thisown
= 0
791 self
.__class
__ = ComboBox
792 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
793 ComboBoxNameStr
= cvar
.ComboBoxNameStr
795 def PreComboBox(*args
, **kwargs
):
797 PreComboBox() -> ComboBox
799 Precreate a ComboBox control for 2-phase creation.
801 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
805 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
807 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
809 Get the default attributes for this class. This is useful if
810 you want to use the same font or colour in your own control as
811 in a standard control -- which is a much better idea than hard
812 coding specific colours or fonts which might look completely out
813 of place on the users system, especially if it uses themes.
815 The variant parameter is only relevant under Mac currently and is
816 ignore under other platforms. Under Mac, it will change the size of the
817 returned font. See SetWindowVariant for more about this.
819 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
821 #---------------------------------------------------------------------------
823 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
824 GA_VERTICAL
= _controls_
.GA_VERTICAL
825 GA_SMOOTH
= _controls_
.GA_SMOOTH
826 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
827 class Gauge(_core
.Control
):
829 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
830 def __init__(self
, *args
, **kwargs
):
832 __init__(self, Window parent, int id, int range, Point pos=DefaultPosition,
833 Size size=DefaultSize, long style=GA_HORIZONTAL,
834 Validator validator=DefaultValidator,
835 String name=GaugeNameStr) -> Gauge
837 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
838 self
.this
= newobj
.this
841 self
._setOORInfo
(self
)
843 def Create(*args
, **kwargs
):
845 Create(self, Window parent, int id, int range, Point pos=DefaultPosition,
846 Size size=DefaultSize, long style=GA_HORIZONTAL,
847 Validator validator=DefaultValidator,
848 String name=GaugeNameStr) -> bool
850 return _controls_
.Gauge_Create(*args
, **kwargs
)
852 def SetRange(*args
, **kwargs
):
853 """SetRange(self, int range)"""
854 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
856 def GetRange(*args
, **kwargs
):
857 """GetRange(self) -> int"""
858 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
860 def SetValue(*args
, **kwargs
):
861 """SetValue(self, int pos)"""
862 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
864 def GetValue(*args
, **kwargs
):
865 """GetValue(self) -> int"""
866 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
868 def IsVertical(*args
, **kwargs
):
869 """IsVertical(self) -> bool"""
870 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
872 def SetShadowWidth(*args
, **kwargs
):
873 """SetShadowWidth(self, int w)"""
874 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
876 def GetShadowWidth(*args
, **kwargs
):
877 """GetShadowWidth(self) -> int"""
878 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
880 def SetBezelFace(*args
, **kwargs
):
881 """SetBezelFace(self, int w)"""
882 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
884 def GetBezelFace(*args
, **kwargs
):
885 """GetBezelFace(self) -> int"""
886 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
888 def GetClassDefaultAttributes(*args
, **kwargs
):
890 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
892 Get the default attributes for this class. This is useful if
893 you want to use the same font or colour in your own control as
894 in a standard control -- which is a much better idea than hard
895 coding specific colours or fonts which might look completely out
896 of place on the users system, especially if it uses themes.
898 The variant parameter is only relevant under Mac currently and is
899 ignore under other platforms. Under Mac, it will change the size of the
900 returned font. See SetWindowVariant for more about this.
902 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
904 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
906 class GaugePtr(Gauge
):
907 def __init__(self
, this
):
909 if not hasattr(self
,"thisown"): self
.thisown
= 0
910 self
.__class
__ = Gauge
911 _controls_
.Gauge_swigregister(GaugePtr
)
912 GaugeNameStr
= cvar
.GaugeNameStr
914 def PreGauge(*args
, **kwargs
):
915 """PreGauge() -> Gauge"""
916 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
920 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
922 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
924 Get the default attributes for this class. This is useful if
925 you want to use the same font or colour in your own control as
926 in a standard control -- which is a much better idea than hard
927 coding specific colours or fonts which might look completely out
928 of place on the users system, especially if it uses themes.
930 The variant parameter is only relevant under Mac currently and is
931 ignore under other platforms. Under Mac, it will change the size of the
932 returned font. See SetWindowVariant for more about this.
934 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
936 #---------------------------------------------------------------------------
938 class StaticBox(_core
.Control
):
940 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
941 def __init__(self
, *args
, **kwargs
):
943 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
944 Size size=DefaultSize, long style=0,
945 String name=StaticBoxNameStr) -> StaticBox
947 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
948 self
.this
= newobj
.this
951 self
._setOORInfo
(self
)
953 def Create(*args
, **kwargs
):
955 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
956 Size size=DefaultSize, long style=0,
957 String name=StaticBoxNameStr) -> bool
959 return _controls_
.StaticBox_Create(*args
, **kwargs
)
961 def GetClassDefaultAttributes(*args
, **kwargs
):
963 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
965 Get the default attributes for this class. This is useful if
966 you want to use the same font or colour in your own control as
967 in a standard control -- which is a much better idea than hard
968 coding specific colours or fonts which might look completely out
969 of place on the users system, especially if it uses themes.
971 The variant parameter is only relevant under Mac currently and is
972 ignore under other platforms. Under Mac, it will change the size of the
973 returned font. See SetWindowVariant for more about this.
975 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
977 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
979 class StaticBoxPtr(StaticBox
):
980 def __init__(self
, this
):
982 if not hasattr(self
,"thisown"): self
.thisown
= 0
983 self
.__class
__ = StaticBox
984 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
985 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
986 StaticBoxNameStr
= cvar
.StaticBoxNameStr
987 StaticTextNameStr
= cvar
.StaticTextNameStr
989 def PreStaticBox(*args
, **kwargs
):
990 """PreStaticBox() -> StaticBox"""
991 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
995 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
997 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
999 Get the default attributes for this class. This is useful if
1000 you want to use the same font or colour in your own control as
1001 in a standard control -- which is a much better idea than hard
1002 coding specific colours or fonts which might look completely out
1003 of place on the users system, especially if it uses themes.
1005 The variant parameter is only relevant under Mac currently and is
1006 ignore under other platforms. Under Mac, it will change the size of the
1007 returned font. See SetWindowVariant for more about this.
1009 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1011 #---------------------------------------------------------------------------
1013 class StaticLine(_core
.Control
):
1015 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1016 def __init__(self
, *args
, **kwargs
):
1018 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1019 long style=LI_HORIZONTAL,
1020 String name=StaticTextNameStr) -> StaticLine
1022 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
1023 self
.this
= newobj
.this
1026 self
._setOORInfo
(self
)
1028 def Create(*args
, **kwargs
):
1030 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1031 long style=LI_HORIZONTAL,
1032 String name=StaticTextNameStr) -> bool
1034 return _controls_
.StaticLine_Create(*args
, **kwargs
)
1036 def IsVertical(*args
, **kwargs
):
1037 """IsVertical(self) -> bool"""
1038 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
1040 def GetDefaultSize(*args
, **kwargs
):
1041 """GetDefaultSize() -> int"""
1042 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1044 GetDefaultSize
= staticmethod(GetDefaultSize
)
1045 def GetClassDefaultAttributes(*args
, **kwargs
):
1047 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1049 Get the default attributes for this class. This is useful if
1050 you want to use the same font or colour in your own control as
1051 in a standard control -- which is a much better idea than hard
1052 coding specific colours or fonts which might look completely out
1053 of place on the users system, especially if it uses themes.
1055 The variant parameter is only relevant under Mac currently and is
1056 ignore under other platforms. Under Mac, it will change the size of the
1057 returned font. See SetWindowVariant for more about this.
1059 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1061 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1063 class StaticLinePtr(StaticLine
):
1064 def __init__(self
, this
):
1066 if not hasattr(self
,"thisown"): self
.thisown
= 0
1067 self
.__class
__ = StaticLine
1068 _controls_
.StaticLine_swigregister(StaticLinePtr
)
1070 def PreStaticLine(*args
, **kwargs
):
1071 """PreStaticLine() -> StaticLine"""
1072 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1076 def StaticLine_GetDefaultSize(*args
, **kwargs
):
1077 """StaticLine_GetDefaultSize() -> int"""
1078 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1080 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1082 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1084 Get the default attributes for this class. This is useful if
1085 you want to use the same font or colour in your own control as
1086 in a standard control -- which is a much better idea than hard
1087 coding specific colours or fonts which might look completely out
1088 of place on the users system, especially if it uses themes.
1090 The variant parameter is only relevant under Mac currently and is
1091 ignore under other platforms. Under Mac, it will change the size of the
1092 returned font. See SetWindowVariant for more about this.
1094 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1096 #---------------------------------------------------------------------------
1098 class StaticText(_core
.Control
):
1100 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1101 def __init__(self
, *args
, **kwargs
):
1103 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
1104 Size size=DefaultSize, long style=0,
1105 String name=StaticTextNameStr) -> StaticText
1107 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
1108 self
.this
= newobj
.this
1111 self
._setOORInfo
(self
)
1113 def Create(*args
, **kwargs
):
1115 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
1116 Size size=DefaultSize, long style=0,
1117 String name=StaticTextNameStr) -> bool
1119 return _controls_
.StaticText_Create(*args
, **kwargs
)
1121 def GetClassDefaultAttributes(*args
, **kwargs
):
1123 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1125 Get the default attributes for this class. This is useful if
1126 you want to use the same font or colour in your own control as
1127 in a standard control -- which is a much better idea than hard
1128 coding specific colours or fonts which might look completely out
1129 of place on the users system, especially if it uses themes.
1131 The variant parameter is only relevant under Mac currently and is
1132 ignore under other platforms. Under Mac, it will change the size of the
1133 returned font. See SetWindowVariant for more about this.
1135 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1137 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1139 class StaticTextPtr(StaticText
):
1140 def __init__(self
, this
):
1142 if not hasattr(self
,"thisown"): self
.thisown
= 0
1143 self
.__class
__ = StaticText
1144 _controls_
.StaticText_swigregister(StaticTextPtr
)
1146 def PreStaticText(*args
, **kwargs
):
1147 """PreStaticText() -> StaticText"""
1148 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1152 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1154 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1156 Get the default attributes for this class. This is useful if
1157 you want to use the same font or colour in your own control as
1158 in a standard control -- which is a much better idea than hard
1159 coding specific colours or fonts which might look completely out
1160 of place on the users system, especially if it uses themes.
1162 The variant parameter is only relevant under Mac currently and is
1163 ignore under other platforms. Under Mac, it will change the size of the
1164 returned font. See SetWindowVariant for more about this.
1166 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1168 #---------------------------------------------------------------------------
1170 class StaticBitmap(_core
.Control
):
1172 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1173 def __init__(self
, *args
, **kwargs
):
1175 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
1176 Size size=DefaultSize, long style=0,
1177 String name=StaticBitmapNameStr) -> StaticBitmap
1179 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
1180 self
.this
= newobj
.this
1183 self
._setOORInfo
(self
)
1185 def Create(*args
, **kwargs
):
1187 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
1188 Size size=DefaultSize, long style=0,
1189 String name=StaticBitmapNameStr) -> bool
1191 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1193 def GetBitmap(*args
, **kwargs
):
1194 """GetBitmap(self) -> Bitmap"""
1195 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1197 def SetBitmap(*args
, **kwargs
):
1198 """SetBitmap(self, Bitmap bitmap)"""
1199 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1201 def SetIcon(*args
, **kwargs
):
1202 """SetIcon(self, Icon icon)"""
1203 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1205 def GetClassDefaultAttributes(*args
, **kwargs
):
1207 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1209 Get the default attributes for this class. This is useful if
1210 you want to use the same font or colour in your own control as
1211 in a standard control -- which is a much better idea than hard
1212 coding specific colours or fonts which might look completely out
1213 of place on the users system, especially if it uses themes.
1215 The variant parameter is only relevant under Mac currently and is
1216 ignore under other platforms. Under Mac, it will change the size of the
1217 returned font. See SetWindowVariant for more about this.
1219 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1221 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1223 class StaticBitmapPtr(StaticBitmap
):
1224 def __init__(self
, this
):
1226 if not hasattr(self
,"thisown"): self
.thisown
= 0
1227 self
.__class
__ = StaticBitmap
1228 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
1230 def PreStaticBitmap(*args
, **kwargs
):
1231 """PreStaticBitmap() -> StaticBitmap"""
1232 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1236 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1238 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1240 Get the default attributes for this class. This is useful if
1241 you want to use the same font or colour in your own control as
1242 in a standard control -- which is a much better idea than hard
1243 coding specific colours or fonts which might look completely out
1244 of place on the users system, especially if it uses themes.
1246 The variant parameter is only relevant under Mac currently and is
1247 ignore under other platforms. Under Mac, it will change the size of the
1248 returned font. See SetWindowVariant for more about this.
1250 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1252 #---------------------------------------------------------------------------
1254 class ListBox(_core
.ControlWithItems
):
1256 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1257 def __init__(self
, *args
, **kwargs
):
1259 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1260 wxArrayString choices=wxPyEmptyStringArray,
1261 long style=0, Validator validator=DefaultValidator,
1262 String name=ListBoxNameStr) -> ListBox
1264 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
1265 self
.this
= newobj
.this
1268 self
._setOORInfo
(self
)
1270 def Create(*args
, **kwargs
):
1272 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1273 wxArrayString choices=wxPyEmptyStringArray,
1274 long style=0, Validator validator=DefaultValidator,
1275 String name=ListBoxNameStr) -> bool
1277 return _controls_
.ListBox_Create(*args
, **kwargs
)
1279 def Insert(*args
, **kwargs
):
1281 Insert(self, String item, int pos, PyObject clientData=None)
1283 Insert an item into the control before the item at the pos index,
1284 optionally associating some data object with the item.
1286 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1288 def InsertItems(*args
, **kwargs
):
1289 """InsertItems(self, wxArrayString items, int pos)"""
1290 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1292 def Set(*args
, **kwargs
):
1293 """Set(self, wxArrayString items)"""
1294 return _controls_
.ListBox_Set(*args
, **kwargs
)
1296 def IsSelected(*args
, **kwargs
):
1297 """IsSelected(self, int n) -> bool"""
1298 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1300 def SetSelection(*args
, **kwargs
):
1301 """SetSelection(self, int n, bool select=True)"""
1302 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1304 def Select(*args
, **kwargs
):
1308 Sets the item at index 'n' to be the selected item.
1310 return _controls_
.ListBox_Select(*args
, **kwargs
)
1312 def Deselect(*args
, **kwargs
):
1313 """Deselect(self, int n)"""
1314 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1316 def DeselectAll(*args
, **kwargs
):
1317 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1318 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1320 def SetStringSelection(*args
, **kwargs
):
1321 """SetStringSelection(self, String s, bool select=True) -> bool"""
1322 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1324 def GetSelections(*args
, **kwargs
):
1325 """GetSelections(self) -> PyObject"""
1326 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1328 def SetFirstItem(*args
, **kwargs
):
1329 """SetFirstItem(self, int n)"""
1330 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1332 def SetFirstItemStr(*args
, **kwargs
):
1333 """SetFirstItemStr(self, String s)"""
1334 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1336 def EnsureVisible(*args
, **kwargs
):
1337 """EnsureVisible(self, int n)"""
1338 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1340 def AppendAndEnsureVisible(*args
, **kwargs
):
1341 """AppendAndEnsureVisible(self, String s)"""
1342 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1344 def IsSorted(*args
, **kwargs
):
1345 """IsSorted(self) -> bool"""
1346 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1348 def SetItemForegroundColour(*args
, **kwargs
):
1349 """SetItemForegroundColour(self, int item, Colour c)"""
1350 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1352 def SetItemBackgroundColour(*args
, **kwargs
):
1353 """SetItemBackgroundColour(self, int item, Colour c)"""
1354 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1356 def SetItemFont(*args
, **kwargs
):
1357 """SetItemFont(self, int item, Font f)"""
1358 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1360 def GetClassDefaultAttributes(*args
, **kwargs
):
1362 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1364 Get the default attributes for this class. This is useful if
1365 you want to use the same font or colour in your own control as
1366 in a standard control -- which is a much better idea than hard
1367 coding specific colours or fonts which might look completely out
1368 of place on the users system, especially if it uses themes.
1370 The variant parameter is only relevant under Mac currently and is
1371 ignore under other platforms. Under Mac, it will change the size of the
1372 returned font. See SetWindowVariant for more about this.
1374 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1376 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1378 class ListBoxPtr(ListBox
):
1379 def __init__(self
, this
):
1381 if not hasattr(self
,"thisown"): self
.thisown
= 0
1382 self
.__class
__ = ListBox
1383 _controls_
.ListBox_swigregister(ListBoxPtr
)
1384 ListBoxNameStr
= cvar
.ListBoxNameStr
1386 def PreListBox(*args
, **kwargs
):
1387 """PreListBox() -> ListBox"""
1388 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1392 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1394 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1396 Get the default attributes for this class. This is useful if
1397 you want to use the same font or colour in your own control as
1398 in a standard control -- which is a much better idea than hard
1399 coding specific colours or fonts which might look completely out
1400 of place on the users system, especially if it uses themes.
1402 The variant parameter is only relevant under Mac currently and is
1403 ignore under other platforms. Under Mac, it will change the size of the
1404 returned font. See SetWindowVariant for more about this.
1406 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1408 #---------------------------------------------------------------------------
1410 class CheckListBox(ListBox
):
1412 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1413 def __init__(self
, *args
, **kwargs
):
1415 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1416 wxArrayString choices=wxPyEmptyStringArray,
1417 long style=0, Validator validator=DefaultValidator,
1418 String name=ListBoxNameStr) -> CheckListBox
1420 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1421 self
.this
= newobj
.this
1424 self
._setOORInfo
(self
)
1426 def Create(*args
, **kwargs
):
1428 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1429 wxArrayString choices=wxPyEmptyStringArray,
1430 long style=0, Validator validator=DefaultValidator,
1431 String name=ListBoxNameStr) -> bool
1433 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1435 def IsChecked(*args
, **kwargs
):
1436 """IsChecked(self, int index) -> bool"""
1437 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1439 def Check(*args
, **kwargs
):
1440 """Check(self, int index, int check=True)"""
1441 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1443 def GetItemHeight(*args
, **kwargs
):
1444 """GetItemHeight(self) -> int"""
1445 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1447 def HitTest(*args
, **kwargs
):
1449 HitTest(self, Point pt) -> int
1451 Test where the given (in client coords) point lies
1453 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1455 def HitTestXY(*args
, **kwargs
):
1457 HitTestXY(self, int x, int y) -> int
1459 Test where the given (in client coords) point lies
1461 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1464 class CheckListBoxPtr(CheckListBox
):
1465 def __init__(self
, this
):
1467 if not hasattr(self
,"thisown"): self
.thisown
= 0
1468 self
.__class
__ = CheckListBox
1469 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1471 def PreCheckListBox(*args
, **kwargs
):
1472 """PreCheckListBox() -> CheckListBox"""
1473 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1477 #---------------------------------------------------------------------------
1479 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1480 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1481 TE_READONLY
= _controls_
.TE_READONLY
1482 TE_MULTILINE
= _controls_
.TE_MULTILINE
1483 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1484 TE_LEFT
= _controls_
.TE_LEFT
1485 TE_CENTER
= _controls_
.TE_CENTER
1486 TE_RIGHT
= _controls_
.TE_RIGHT
1487 TE_CENTRE
= _controls_
.TE_CENTRE
1488 TE_RICH
= _controls_
.TE_RICH
1489 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1490 TE_PASSWORD
= _controls_
.TE_PASSWORD
1491 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1492 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1493 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1494 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1495 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1496 TE_RICH2
= _controls_
.TE_RICH2
1497 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1498 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1499 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1500 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1501 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1502 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1503 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1504 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1505 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1506 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1507 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1508 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1509 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1510 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1511 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1512 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1513 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1514 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1515 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1516 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1517 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1518 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1519 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1520 class TextAttr(object):
1522 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1523 def __init__(self
, *args
):
1525 __init__(self) -> TextAttr
1526 __init__(self, Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1527 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1529 newobj
= _controls_
.new_TextAttr(*args
)
1530 self
.this
= newobj
.this
1533 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1536 if self
.thisown
: destroy(self
)
1539 def Init(*args
, **kwargs
):
1541 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1543 def SetTextColour(*args
, **kwargs
):
1544 """SetTextColour(self, Colour colText)"""
1545 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1547 def SetBackgroundColour(*args
, **kwargs
):
1548 """SetBackgroundColour(self, Colour colBack)"""
1549 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1551 def SetFont(*args
, **kwargs
):
1552 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1553 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1555 def SetAlignment(*args
, **kwargs
):
1556 """SetAlignment(self, int alignment)"""
1557 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1559 def SetTabs(*args
, **kwargs
):
1560 """SetTabs(self, wxArrayInt tabs)"""
1561 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1563 def SetLeftIndent(*args
, **kwargs
):
1564 """SetLeftIndent(self, int indent)"""
1565 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1567 def SetRightIndent(*args
, **kwargs
):
1568 """SetRightIndent(self, int indent)"""
1569 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1571 def SetFlags(*args
, **kwargs
):
1572 """SetFlags(self, long flags)"""
1573 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1575 def HasTextColour(*args
, **kwargs
):
1576 """HasTextColour(self) -> bool"""
1577 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1579 def HasBackgroundColour(*args
, **kwargs
):
1580 """HasBackgroundColour(self) -> bool"""
1581 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1583 def HasFont(*args
, **kwargs
):
1584 """HasFont(self) -> bool"""
1585 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1587 def HasAlignment(*args
, **kwargs
):
1588 """HasAlignment(self) -> bool"""
1589 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1591 def HasTabs(*args
, **kwargs
):
1592 """HasTabs(self) -> bool"""
1593 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1595 def HasLeftIndent(*args
, **kwargs
):
1596 """HasLeftIndent(self) -> bool"""
1597 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1599 def HasRightIndent(*args
, **kwargs
):
1600 """HasRightIndent(self) -> bool"""
1601 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1603 def HasFlag(*args
, **kwargs
):
1604 """HasFlag(self, long flag) -> bool"""
1605 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1607 def GetTextColour(*args
, **kwargs
):
1608 """GetTextColour(self) -> Colour"""
1609 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1611 def GetBackgroundColour(*args
, **kwargs
):
1612 """GetBackgroundColour(self) -> Colour"""
1613 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1615 def GetFont(*args
, **kwargs
):
1616 """GetFont(self) -> Font"""
1617 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1619 def GetAlignment(*args
, **kwargs
):
1620 """GetAlignment(self) -> int"""
1621 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1623 def GetTabs(*args
, **kwargs
):
1624 """GetTabs(self) -> wxArrayInt"""
1625 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1627 def GetLeftIndent(*args
, **kwargs
):
1628 """GetLeftIndent(self) -> long"""
1629 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1631 def GetRightIndent(*args
, **kwargs
):
1632 """GetRightIndent(self) -> long"""
1633 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1635 def GetFlags(*args
, **kwargs
):
1636 """GetFlags(self) -> long"""
1637 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1639 def IsDefault(*args
, **kwargs
):
1640 """IsDefault(self) -> bool"""
1641 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1643 def Combine(*args
, **kwargs
):
1644 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1645 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1647 Combine
= staticmethod(Combine
)
1649 class TextAttrPtr(TextAttr
):
1650 def __init__(self
, this
):
1652 if not hasattr(self
,"thisown"): self
.thisown
= 0
1653 self
.__class
__ = TextAttr
1654 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1655 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1657 def TextAttr_Combine(*args
, **kwargs
):
1658 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1659 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1661 class TextCtrl(_core
.Control
):
1663 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1664 def __init__(self
, *args
, **kwargs
):
1666 __init__(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1667 Size size=DefaultSize,
1668 long style=0, Validator validator=DefaultValidator,
1669 String name=TextCtrlNameStr) -> TextCtrl
1671 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1672 self
.this
= newobj
.this
1675 self
._setOORInfo
(self
)
1677 def Create(*args
, **kwargs
):
1679 Create(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1680 Size size=DefaultSize,
1681 long style=0, Validator validator=DefaultValidator,
1682 String name=TextCtrlNameStr) -> bool
1684 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1686 def GetValue(*args
, **kwargs
):
1687 """GetValue(self) -> String"""
1688 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1690 def SetValue(*args
, **kwargs
):
1691 """SetValue(self, String value)"""
1692 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1694 def GetRange(*args
, **kwargs
):
1695 """GetRange(self, long from, long to) -> String"""
1696 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1698 def GetLineLength(*args
, **kwargs
):
1699 """GetLineLength(self, long lineNo) -> int"""
1700 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1702 def GetLineText(*args
, **kwargs
):
1703 """GetLineText(self, long lineNo) -> String"""
1704 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1706 def GetNumberOfLines(*args
, **kwargs
):
1707 """GetNumberOfLines(self) -> int"""
1708 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1710 def IsModified(*args
, **kwargs
):
1711 """IsModified(self) -> bool"""
1712 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1714 def IsEditable(*args
, **kwargs
):
1715 """IsEditable(self) -> bool"""
1716 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1718 def IsSingleLine(*args
, **kwargs
):
1719 """IsSingleLine(self) -> bool"""
1720 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1722 def IsMultiLine(*args
, **kwargs
):
1723 """IsMultiLine(self) -> bool"""
1724 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1726 def GetSelection(*args
, **kwargs
):
1728 GetSelection() -> (from, to)
1730 If the return values from and to are the same, there is no selection.
1732 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1734 def GetStringSelection(*args
, **kwargs
):
1735 """GetStringSelection(self) -> String"""
1736 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1738 def Clear(*args
, **kwargs
):
1740 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1742 def Replace(*args
, **kwargs
):
1743 """Replace(self, long from, long to, String value)"""
1744 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1746 def Remove(*args
, **kwargs
):
1747 """Remove(self, long from, long to)"""
1748 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1750 def LoadFile(*args
, **kwargs
):
1751 """LoadFile(self, String file) -> bool"""
1752 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1754 def SaveFile(*args
, **kwargs
):
1755 """SaveFile(self, String file=EmptyString) -> bool"""
1756 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1758 def MarkDirty(*args
, **kwargs
):
1759 """MarkDirty(self)"""
1760 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1762 def DiscardEdits(*args
, **kwargs
):
1763 """DiscardEdits(self)"""
1764 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1766 def SetMaxLength(*args
, **kwargs
):
1767 """SetMaxLength(self, unsigned long len)"""
1768 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1770 def WriteText(*args
, **kwargs
):
1771 """WriteText(self, String text)"""
1772 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1774 def AppendText(*args
, **kwargs
):
1775 """AppendText(self, String text)"""
1776 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1778 def EmulateKeyPress(*args
, **kwargs
):
1779 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1780 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1782 def SetStyle(*args
, **kwargs
):
1783 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1784 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1786 def GetStyle(*args
, **kwargs
):
1787 """GetStyle(self, long position, TextAttr style) -> bool"""
1788 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1790 def SetDefaultStyle(*args
, **kwargs
):
1791 """SetDefaultStyle(self, TextAttr style) -> bool"""
1792 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1794 def GetDefaultStyle(*args
, **kwargs
):
1795 """GetDefaultStyle(self) -> TextAttr"""
1796 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1798 def XYToPosition(*args
, **kwargs
):
1799 """XYToPosition(self, long x, long y) -> long"""
1800 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1802 def PositionToXY(*args
, **kwargs
):
1803 """PositionToXY(long pos) -> (x, y)"""
1804 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1806 def ShowPosition(*args
, **kwargs
):
1807 """ShowPosition(self, long pos)"""
1808 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1810 def HitTest(*args
, **kwargs
):
1812 HitTest(Point pt) -> (result, row, col)
1814 Find the character at position given in pixels.
1815 NB: pt is in device coords (not adjusted for the client area
1816 origin nor scrolling)
1818 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1820 def Copy(*args
, **kwargs
):
1822 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1824 def Cut(*args
, **kwargs
):
1826 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1828 def Paste(*args
, **kwargs
):
1830 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1832 def CanCopy(*args
, **kwargs
):
1833 """CanCopy(self) -> bool"""
1834 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1836 def CanCut(*args
, **kwargs
):
1837 """CanCut(self) -> bool"""
1838 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1840 def CanPaste(*args
, **kwargs
):
1841 """CanPaste(self) -> bool"""
1842 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1844 def Undo(*args
, **kwargs
):
1846 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1848 def Redo(*args
, **kwargs
):
1850 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1852 def CanUndo(*args
, **kwargs
):
1853 """CanUndo(self) -> bool"""
1854 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1856 def CanRedo(*args
, **kwargs
):
1857 """CanRedo(self) -> bool"""
1858 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1860 def SetInsertionPoint(*args
, **kwargs
):
1861 """SetInsertionPoint(self, long pos)"""
1862 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1864 def SetInsertionPointEnd(*args
, **kwargs
):
1865 """SetInsertionPointEnd(self)"""
1866 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1868 def GetInsertionPoint(*args
, **kwargs
):
1869 """GetInsertionPoint(self) -> long"""
1870 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1872 def GetLastPosition(*args
, **kwargs
):
1873 """GetLastPosition(self) -> long"""
1874 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1876 def SetSelection(*args
, **kwargs
):
1877 """SetSelection(self, long from, long to)"""
1878 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1880 def SelectAll(*args
, **kwargs
):
1881 """SelectAll(self)"""
1882 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1884 def SetEditable(*args
, **kwargs
):
1885 """SetEditable(self, bool editable)"""
1886 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1888 def write(*args
, **kwargs
):
1889 """write(self, String text)"""
1890 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1892 def GetString(*args
, **kwargs
):
1893 """GetString(self, long from, long to) -> String"""
1894 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1896 def GetClassDefaultAttributes(*args
, **kwargs
):
1898 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1900 Get the default attributes for this class. This is useful if
1901 you want to use the same font or colour in your own control as
1902 in a standard control -- which is a much better idea than hard
1903 coding specific colours or fonts which might look completely out
1904 of place on the users system, especially if it uses themes.
1906 The variant parameter is only relevant under Mac currently and is
1907 ignore under other platforms. Under Mac, it will change the size of the
1908 returned font. See SetWindowVariant for more about this.
1910 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1912 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1914 class TextCtrlPtr(TextCtrl
):
1915 def __init__(self
, this
):
1917 if not hasattr(self
,"thisown"): self
.thisown
= 0
1918 self
.__class
__ = TextCtrl
1919 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
1921 def PreTextCtrl(*args
, **kwargs
):
1922 """PreTextCtrl() -> TextCtrl"""
1923 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1927 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1929 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1931 Get the default attributes for this class. This is useful if
1932 you want to use the same font or colour in your own control as
1933 in a standard control -- which is a much better idea than hard
1934 coding specific colours or fonts which might look completely out
1935 of place on the users system, especially if it uses themes.
1937 The variant parameter is only relevant under Mac currently and is
1938 ignore under other platforms. Under Mac, it will change the size of the
1939 returned font. See SetWindowVariant for more about this.
1941 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1943 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1944 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1945 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1946 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1947 class TextUrlEvent(_core
.CommandEvent
):
1949 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1950 def __init__(self
, *args
, **kwargs
):
1951 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1952 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
1953 self
.this
= newobj
.this
1956 def GetMouseEvent(*args
, **kwargs
):
1957 """GetMouseEvent(self) -> MouseEvent"""
1958 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1960 def GetURLStart(*args
, **kwargs
):
1961 """GetURLStart(self) -> long"""
1962 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1964 def GetURLEnd(*args
, **kwargs
):
1965 """GetURLEnd(self) -> long"""
1966 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1969 class TextUrlEventPtr(TextUrlEvent
):
1970 def __init__(self
, this
):
1972 if not hasattr(self
,"thisown"): self
.thisown
= 0
1973 self
.__class
__ = TextUrlEvent
1974 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1976 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1977 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1978 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1979 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1981 #---------------------------------------------------------------------------
1983 class ScrollBar(_core
.Control
):
1985 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1986 def __init__(self
, *args
, **kwargs
):
1988 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1989 Size size=DefaultSize, long style=SB_HORIZONTAL,
1990 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1992 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
1993 self
.this
= newobj
.this
1996 self
._setOORInfo
(self
)
1998 def Create(*args
, **kwargs
):
2000 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2001 Size size=DefaultSize, long style=SB_HORIZONTAL,
2002 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2004 Do the 2nd phase and create the GUI control.
2006 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2008 def GetThumbPosition(*args
, **kwargs
):
2009 """GetThumbPosition(self) -> int"""
2010 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2012 def GetThumbSize(*args
, **kwargs
):
2013 """GetThumbSize(self) -> int"""
2014 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2016 GetThumbLength
= GetThumbSize
2017 def GetPageSize(*args
, **kwargs
):
2018 """GetPageSize(self) -> int"""
2019 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2021 def GetRange(*args
, **kwargs
):
2022 """GetRange(self) -> int"""
2023 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2025 def IsVertical(*args
, **kwargs
):
2026 """IsVertical(self) -> bool"""
2027 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2029 def SetThumbPosition(*args
, **kwargs
):
2030 """SetThumbPosition(self, int viewStart)"""
2031 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2033 def SetScrollbar(*args
, **kwargs
):
2035 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
2038 Sets the scrollbar properties of a built-in scrollbar.
2040 orientation: Determines the scrollbar whose page size is to be
2041 set. May be wx.HORIZONTAL or wx.VERTICAL.
2043 position: The position of the scrollbar in scroll units.
2045 thumbSize: The size of the thumb, or visible portion of the
2046 scrollbar, in scroll units.
2048 range: The maximum position of the scrollbar.
2050 refresh: True to redraw the scrollbar, false otherwise.
2052 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
2054 def GetClassDefaultAttributes(*args
, **kwargs
):
2056 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2058 Get the default attributes for this class. This is useful if
2059 you want to use the same font or colour in your own control as
2060 in a standard control -- which is a much better idea than hard
2061 coding specific colours or fonts which might look completely out
2062 of place on the users system, especially if it uses themes.
2064 The variant parameter is only relevant under Mac currently and is
2065 ignore under other platforms. Under Mac, it will change the size of the
2066 returned font. See SetWindowVariant for more about this.
2068 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2070 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2072 class ScrollBarPtr(ScrollBar
):
2073 def __init__(self
, this
):
2075 if not hasattr(self
,"thisown"): self
.thisown
= 0
2076 self
.__class
__ = ScrollBar
2077 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
2078 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2080 def PreScrollBar(*args
, **kwargs
):
2081 """PreScrollBar() -> ScrollBar"""
2082 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2086 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2088 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2090 Get the default attributes for this class. This is useful if
2091 you want to use the same font or colour in your own control as
2092 in a standard control -- which is a much better idea than hard
2093 coding specific colours or fonts which might look completely out
2094 of place on the users system, especially if it uses themes.
2096 The variant parameter is only relevant under Mac currently and is
2097 ignore under other platforms. Under Mac, it will change the size of the
2098 returned font. See SetWindowVariant for more about this.
2100 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2102 #---------------------------------------------------------------------------
2104 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2105 SP_VERTICAL
= _controls_
.SP_VERTICAL
2106 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2107 SP_WRAP
= _controls_
.SP_WRAP
2108 class SpinButton(_core
.Control
):
2110 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2111 def __init__(self
, *args
, **kwargs
):
2113 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2114 Size size=DefaultSize, long style=SP_HORIZONTAL,
2115 String name=SPIN_BUTTON_NAME) -> SpinButton
2117 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
2118 self
.this
= newobj
.this
2121 self
._setOORInfo
(self
)
2123 def Create(*args
, **kwargs
):
2125 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2126 Size size=DefaultSize, long style=SP_HORIZONTAL,
2127 String name=SPIN_BUTTON_NAME) -> bool
2129 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2131 def GetValue(*args
, **kwargs
):
2132 """GetValue(self) -> int"""
2133 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2135 def GetMin(*args
, **kwargs
):
2136 """GetMin(self) -> int"""
2137 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2139 def GetMax(*args
, **kwargs
):
2140 """GetMax(self) -> int"""
2141 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2143 def SetValue(*args
, **kwargs
):
2144 """SetValue(self, int val)"""
2145 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2147 def SetMin(*args
, **kwargs
):
2148 """SetMin(self, int minVal)"""
2149 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2151 def SetMax(*args
, **kwargs
):
2152 """SetMax(self, int maxVal)"""
2153 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2155 def SetRange(*args
, **kwargs
):
2156 """SetRange(self, int minVal, int maxVal)"""
2157 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2159 def IsVertical(*args
, **kwargs
):
2160 """IsVertical(self) -> bool"""
2161 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2163 def GetClassDefaultAttributes(*args
, **kwargs
):
2165 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2167 Get the default attributes for this class. This is useful if
2168 you want to use the same font or colour in your own control as
2169 in a standard control -- which is a much better idea than hard
2170 coding specific colours or fonts which might look completely out
2171 of place on the users system, especially if it uses themes.
2173 The variant parameter is only relevant under Mac currently and is
2174 ignore under other platforms. Under Mac, it will change the size of the
2175 returned font. See SetWindowVariant for more about this.
2177 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2179 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2181 class SpinButtonPtr(SpinButton
):
2182 def __init__(self
, this
):
2184 if not hasattr(self
,"thisown"): self
.thisown
= 0
2185 self
.__class
__ = SpinButton
2186 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
2187 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2188 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2190 def PreSpinButton(*args
, **kwargs
):
2191 """PreSpinButton() -> SpinButton"""
2192 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2196 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2198 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2200 Get the default attributes for this class. This is useful if
2201 you want to use the same font or colour in your own control as
2202 in a standard control -- which is a much better idea than hard
2203 coding specific colours or fonts which might look completely out
2204 of place on the users system, especially if it uses themes.
2206 The variant parameter is only relevant under Mac currently and is
2207 ignore under other platforms. Under Mac, it will change the size of the
2208 returned font. See SetWindowVariant for more about this.
2210 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2212 class SpinCtrl(_core
.Control
):
2214 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2215 def __init__(self
, *args
, **kwargs
):
2217 __init__(self, Window parent, int id=-1, String value=EmptyString,
2218 Point pos=DefaultPosition, Size size=DefaultSize,
2219 long style=SP_ARROW_KEYS, int min=0, int max=100,
2220 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2222 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
2223 self
.this
= newobj
.this
2226 self
._setOORInfo
(self
)
2228 def Create(*args
, **kwargs
):
2230 Create(self, Window parent, int id=-1, String value=EmptyString,
2231 Point pos=DefaultPosition, Size size=DefaultSize,
2232 long style=SP_ARROW_KEYS, int min=0, int max=100,
2233 int initial=0, String name=SpinCtrlNameStr) -> bool
2235 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2237 def GetValue(*args
, **kwargs
):
2238 """GetValue(self) -> int"""
2239 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2241 def SetValue(*args
, **kwargs
):
2242 """SetValue(self, int value)"""
2243 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2245 def SetValueString(*args
, **kwargs
):
2246 """SetValueString(self, String text)"""
2247 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2249 def SetRange(*args
, **kwargs
):
2250 """SetRange(self, int minVal, int maxVal)"""
2251 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2253 def GetMin(*args
, **kwargs
):
2254 """GetMin(self) -> int"""
2255 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2257 def GetMax(*args
, **kwargs
):
2258 """GetMax(self) -> int"""
2259 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2261 def SetSelection(*args
, **kwargs
):
2262 """SetSelection(self, long from, long to)"""
2263 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2265 def GetClassDefaultAttributes(*args
, **kwargs
):
2267 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2269 Get the default attributes for this class. This is useful if
2270 you want to use the same font or colour in your own control as
2271 in a standard control -- which is a much better idea than hard
2272 coding specific colours or fonts which might look completely out
2273 of place on the users system, especially if it uses themes.
2275 The variant parameter is only relevant under Mac currently and is
2276 ignore under other platforms. Under Mac, it will change the size of the
2277 returned font. See SetWindowVariant for more about this.
2279 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2281 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2283 class SpinCtrlPtr(SpinCtrl
):
2284 def __init__(self
, this
):
2286 if not hasattr(self
,"thisown"): self
.thisown
= 0
2287 self
.__class
__ = SpinCtrl
2288 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
2290 def PreSpinCtrl(*args
, **kwargs
):
2291 """PreSpinCtrl() -> SpinCtrl"""
2292 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2296 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2298 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2300 Get the default attributes for this class. This is useful if
2301 you want to use the same font or colour in your own control as
2302 in a standard control -- which is a much better idea than hard
2303 coding specific colours or fonts which might look completely out
2304 of place on the users system, especially if it uses themes.
2306 The variant parameter is only relevant under Mac currently and is
2307 ignore under other platforms. Under Mac, it will change the size of the
2308 returned font. See SetWindowVariant for more about this.
2310 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2312 class SpinEvent(_core
.NotifyEvent
):
2314 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2315 def __init__(self
, *args
, **kwargs
):
2316 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2317 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
2318 self
.this
= newobj
.this
2321 def GetPosition(*args
, **kwargs
):
2322 """GetPosition(self) -> int"""
2323 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2325 def SetPosition(*args
, **kwargs
):
2326 """SetPosition(self, int pos)"""
2327 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2330 class SpinEventPtr(SpinEvent
):
2331 def __init__(self
, this
):
2333 if not hasattr(self
,"thisown"): self
.thisown
= 0
2334 self
.__class
__ = SpinEvent
2335 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
2337 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2338 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2339 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2340 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2341 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2343 #---------------------------------------------------------------------------
2345 class RadioBox(_core
.Control
):
2347 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2348 def __init__(self
, *args
, **kwargs
):
2350 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2351 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
2352 int majorDimension=0,
2353 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
2354 String name=RadioBoxNameStr) -> RadioBox
2356 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2357 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
2358 self
.this
= newobj
.this
2361 self
._setOORInfo
(self
)
2363 def Create(*args
, **kwargs
):
2365 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2366 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
2367 int majorDimension=0,
2368 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
2369 String name=RadioBoxNameStr) -> bool
2371 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2373 def SetSelection(*args
, **kwargs
):
2374 """SetSelection(self, int n)"""
2375 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2377 def GetSelection(*args
, **kwargs
):
2378 """GetSelection(self) -> int"""
2379 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2381 def GetStringSelection(*args
, **kwargs
):
2382 """GetStringSelection(self) -> String"""
2383 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2385 def SetStringSelection(*args
, **kwargs
):
2386 """SetStringSelection(self, String s) -> bool"""
2387 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2389 def GetCount(*args
, **kwargs
):
2390 """GetCount(self) -> int"""
2391 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2393 def FindString(*args
, **kwargs
):
2394 """FindString(self, String s) -> int"""
2395 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2397 def GetString(*args
, **kwargs
):
2398 """GetString(self, int n) -> String"""
2399 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2401 def SetString(*args
, **kwargs
):
2402 """SetString(self, int n, String label)"""
2403 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2405 GetItemLabel
= GetString
2406 SetItemLabel
= SetString
2407 def EnableItem(*args
, **kwargs
):
2408 """EnableItem(self, int n, bool enable=True)"""
2409 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2411 def ShowItem(*args
, **kwargs
):
2412 """ShowItem(self, int n, bool show=True)"""
2413 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2415 def GetColumnCount(*args
, **kwargs
):
2416 """GetColumnCount(self) -> int"""
2417 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2419 def GetRowCount(*args
, **kwargs
):
2420 """GetRowCount(self) -> int"""
2421 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2423 def GetNextItem(*args
, **kwargs
):
2424 """GetNextItem(self, int item, int dir, long style) -> int"""
2425 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2427 def GetClassDefaultAttributes(*args
, **kwargs
):
2429 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2431 Get the default attributes for this class. This is useful if
2432 you want to use the same font or colour in your own control as
2433 in a standard control -- which is a much better idea than hard
2434 coding specific colours or fonts which might look completely out
2435 of place on the users system, especially if it uses themes.
2437 The variant parameter is only relevant under Mac currently and is
2438 ignore under other platforms. Under Mac, it will change the size of the
2439 returned font. See SetWindowVariant for more about this.
2441 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2443 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2445 class RadioBoxPtr(RadioBox
):
2446 def __init__(self
, this
):
2448 if not hasattr(self
,"thisown"): self
.thisown
= 0
2449 self
.__class
__ = RadioBox
2450 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2451 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2452 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2454 def PreRadioBox(*args
, **kwargs
):
2455 """PreRadioBox() -> RadioBox"""
2456 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2460 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2462 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2464 Get the default attributes for this class. This is useful if
2465 you want to use the same font or colour in your own control as
2466 in a standard control -- which is a much better idea than hard
2467 coding specific colours or fonts which might look completely out
2468 of place on the users system, especially if it uses themes.
2470 The variant parameter is only relevant under Mac currently and is
2471 ignore under other platforms. Under Mac, it will change the size of the
2472 returned font. See SetWindowVariant for more about this.
2474 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2476 #---------------------------------------------------------------------------
2478 class RadioButton(_core
.Control
):
2480 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2481 def __init__(self
, *args
, **kwargs
):
2483 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2484 Size size=DefaultSize, long style=0,
2485 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
2487 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2488 self
.this
= newobj
.this
2491 self
._setOORInfo
(self
)
2493 def Create(*args
, **kwargs
):
2495 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2496 Size size=DefaultSize, long style=0,
2497 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
2499 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2501 def GetValue(*args
, **kwargs
):
2502 """GetValue(self) -> bool"""
2503 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2505 def SetValue(*args
, **kwargs
):
2506 """SetValue(self, bool value)"""
2507 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2509 def GetClassDefaultAttributes(*args
, **kwargs
):
2511 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2513 Get the default attributes for this class. This is useful if
2514 you want to use the same font or colour in your own control as
2515 in a standard control -- which is a much better idea than hard
2516 coding specific colours or fonts which might look completely out
2517 of place on the users system, especially if it uses themes.
2519 The variant parameter is only relevant under Mac currently and is
2520 ignore under other platforms. Under Mac, it will change the size of the
2521 returned font. See SetWindowVariant for more about this.
2523 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2525 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2527 class RadioButtonPtr(RadioButton
):
2528 def __init__(self
, this
):
2530 if not hasattr(self
,"thisown"): self
.thisown
= 0
2531 self
.__class
__ = RadioButton
2532 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2534 def PreRadioButton(*args
, **kwargs
):
2535 """PreRadioButton() -> RadioButton"""
2536 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2540 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2542 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2544 Get the default attributes for this class. This is useful if
2545 you want to use the same font or colour in your own control as
2546 in a standard control -- which is a much better idea than hard
2547 coding specific colours or fonts which might look completely out
2548 of place on the users system, especially if it uses themes.
2550 The variant parameter is only relevant under Mac currently and is
2551 ignore under other platforms. Under Mac, it will change the size of the
2552 returned font. See SetWindowVariant for more about this.
2554 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2556 #---------------------------------------------------------------------------
2558 class Slider(_core
.Control
):
2560 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2561 def __init__(self
, *args
, **kwargs
):
2563 __init__(self, Window parent, int id, int value, int minValue, int maxValue,
2564 Point pos=DefaultPosition, Size size=DefaultSize,
2565 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
2566 String name=SliderNameStr) -> Slider
2568 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2569 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2570 self
.this
= newobj
.this
2573 self
._setOORInfo
(self
)
2575 def Create(*args
, **kwargs
):
2577 Create(self, Window parent, int id, int value, int minValue, int maxValue,
2578 Point pos=DefaultPosition, Size size=DefaultSize,
2579 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
2580 String name=SliderNameStr) -> bool
2582 return _controls_
.Slider_Create(*args
, **kwargs
)
2584 def GetValue(*args
, **kwargs
):
2585 """GetValue(self) -> int"""
2586 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2588 def SetValue(*args
, **kwargs
):
2589 """SetValue(self, int value)"""
2590 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2592 def SetRange(*args
, **kwargs
):
2593 """SetRange(self, int minValue, int maxValue)"""
2594 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2596 def GetMin(*args
, **kwargs
):
2597 """GetMin(self) -> int"""
2598 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2600 def GetMax(*args
, **kwargs
):
2601 """GetMax(self) -> int"""
2602 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2604 def SetMin(*args
, **kwargs
):
2605 """SetMin(self, int minValue)"""
2606 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2608 def SetMax(*args
, **kwargs
):
2609 """SetMax(self, int maxValue)"""
2610 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2612 def SetLineSize(*args
, **kwargs
):
2613 """SetLineSize(self, int lineSize)"""
2614 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2616 def SetPageSize(*args
, **kwargs
):
2617 """SetPageSize(self, int pageSize)"""
2618 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2620 def GetLineSize(*args
, **kwargs
):
2621 """GetLineSize(self) -> int"""
2622 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2624 def GetPageSize(*args
, **kwargs
):
2625 """GetPageSize(self) -> int"""
2626 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2628 def SetThumbLength(*args
, **kwargs
):
2629 """SetThumbLength(self, int lenPixels)"""
2630 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2632 def GetThumbLength(*args
, **kwargs
):
2633 """GetThumbLength(self) -> int"""
2634 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2636 def SetTickFreq(*args
, **kwargs
):
2637 """SetTickFreq(self, int n, int pos=1)"""
2638 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2640 def GetTickFreq(*args
, **kwargs
):
2641 """GetTickFreq(self) -> int"""
2642 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2644 def ClearTicks(*args
, **kwargs
):
2645 """ClearTicks(self)"""
2646 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2648 def SetTick(*args
, **kwargs
):
2649 """SetTick(self, int tickPos)"""
2650 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2652 def ClearSel(*args
, **kwargs
):
2653 """ClearSel(self)"""
2654 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2656 def GetSelEnd(*args
, **kwargs
):
2657 """GetSelEnd(self) -> int"""
2658 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2660 def GetSelStart(*args
, **kwargs
):
2661 """GetSelStart(self) -> int"""
2662 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2664 def SetSelection(*args
, **kwargs
):
2665 """SetSelection(self, int min, int max)"""
2666 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2668 def GetClassDefaultAttributes(*args
, **kwargs
):
2670 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2672 Get the default attributes for this class. This is useful if
2673 you want to use the same font or colour in your own control as
2674 in a standard control -- which is a much better idea than hard
2675 coding specific colours or fonts which might look completely out
2676 of place on the users system, especially if it uses themes.
2678 The variant parameter is only relevant under Mac currently and is
2679 ignore under other platforms. Under Mac, it will change the size of the
2680 returned font. See SetWindowVariant for more about this.
2682 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2684 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2686 class SliderPtr(Slider
):
2687 def __init__(self
, this
):
2689 if not hasattr(self
,"thisown"): self
.thisown
= 0
2690 self
.__class
__ = Slider
2691 _controls_
.Slider_swigregister(SliderPtr
)
2692 SliderNameStr
= cvar
.SliderNameStr
2694 def PreSlider(*args
, **kwargs
):
2695 """PreSlider() -> Slider"""
2696 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2700 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2702 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2704 Get the default attributes for this class. This is useful if
2705 you want to use the same font or colour in your own control as
2706 in a standard control -- which is a much better idea than hard
2707 coding specific colours or fonts which might look completely out
2708 of place on the users system, especially if it uses themes.
2710 The variant parameter is only relevant under Mac currently and is
2711 ignore under other platforms. Under Mac, it will change the size of the
2712 returned font. See SetWindowVariant for more about this.
2714 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2716 #---------------------------------------------------------------------------
2718 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2719 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2721 class ToggleButton(_core
.Control
):
2723 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2724 def __init__(self
, *args
, **kwargs
):
2726 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2727 Size size=DefaultSize, long style=0,
2728 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2730 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2731 self
.this
= newobj
.this
2734 self
._setOORInfo
(self
)
2736 def Create(*args
, **kwargs
):
2738 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2739 Size size=DefaultSize, long style=0,
2740 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
2742 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2744 def SetValue(*args
, **kwargs
):
2745 """SetValue(self, bool value)"""
2746 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2748 def GetValue(*args
, **kwargs
):
2749 """GetValue(self) -> bool"""
2750 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2752 def SetLabel(*args
, **kwargs
):
2754 SetLabel(self, String label)
2756 Sets the item's text.
2758 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2760 def GetClassDefaultAttributes(*args
, **kwargs
):
2762 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2764 Get the default attributes for this class. This is useful if
2765 you want to use the same font or colour in your own control as
2766 in a standard control -- which is a much better idea than hard
2767 coding specific colours or fonts which might look completely out
2768 of place on the users system, especially if it uses themes.
2770 The variant parameter is only relevant under Mac currently and is
2771 ignore under other platforms. Under Mac, it will change the size of the
2772 returned font. See SetWindowVariant for more about this.
2774 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2776 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2778 class ToggleButtonPtr(ToggleButton
):
2779 def __init__(self
, this
):
2781 if not hasattr(self
,"thisown"): self
.thisown
= 0
2782 self
.__class
__ = ToggleButton
2783 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2784 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2786 def PreToggleButton(*args
, **kwargs
):
2787 """PreToggleButton() -> ToggleButton"""
2788 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2792 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2794 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2796 Get the default attributes for this class. This is useful if
2797 you want to use the same font or colour in your own control as
2798 in a standard control -- which is a much better idea than hard
2799 coding specific colours or fonts which might look completely out
2800 of place on the users system, especially if it uses themes.
2802 The variant parameter is only relevant under Mac currently and is
2803 ignore under other platforms. Under Mac, it will change the size of the
2804 returned font. See SetWindowVariant for more about this.
2806 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2808 #---------------------------------------------------------------------------
2810 class BookCtrl(_core
.Control
):
2811 def __init__(self
): raise RuntimeError, "No constructor defined"
2813 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2814 def GetPageCount(*args
, **kwargs
):
2815 """GetPageCount(self) -> size_t"""
2816 return _controls_
.BookCtrl_GetPageCount(*args
, **kwargs
)
2818 def GetPage(*args
, **kwargs
):
2819 """GetPage(self, size_t n) -> Window"""
2820 return _controls_
.BookCtrl_GetPage(*args
, **kwargs
)
2822 def GetSelection(*args
, **kwargs
):
2823 """GetSelection(self) -> int"""
2824 return _controls_
.BookCtrl_GetSelection(*args
, **kwargs
)
2826 def SetPageText(*args
, **kwargs
):
2827 """SetPageText(self, size_t n, String strText) -> bool"""
2828 return _controls_
.BookCtrl_SetPageText(*args
, **kwargs
)
2830 def GetPageText(*args
, **kwargs
):
2831 """GetPageText(self, size_t n) -> String"""
2832 return _controls_
.BookCtrl_GetPageText(*args
, **kwargs
)
2834 def SetImageList(*args
, **kwargs
):
2835 """SetImageList(self, ImageList imageList)"""
2836 return _controls_
.BookCtrl_SetImageList(*args
, **kwargs
)
2838 def AssignImageList(*args
, **kwargs
):
2839 """AssignImageList(self, ImageList imageList)"""
2840 return _controls_
.BookCtrl_AssignImageList(*args
, **kwargs
)
2842 def GetImageList(*args
, **kwargs
):
2843 """GetImageList(self) -> ImageList"""
2844 return _controls_
.BookCtrl_GetImageList(*args
, **kwargs
)
2846 def GetPageImage(*args
, **kwargs
):
2847 """GetPageImage(self, size_t n) -> int"""
2848 return _controls_
.BookCtrl_GetPageImage(*args
, **kwargs
)
2850 def SetPageImage(*args
, **kwargs
):
2851 """SetPageImage(self, size_t n, int imageId) -> bool"""
2852 return _controls_
.BookCtrl_SetPageImage(*args
, **kwargs
)
2854 def SetPageSize(*args
, **kwargs
):
2855 """SetPageSize(self, Size size)"""
2856 return _controls_
.BookCtrl_SetPageSize(*args
, **kwargs
)
2858 def CalcSizeFromPage(*args
, **kwargs
):
2859 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2860 return _controls_
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2862 def DeletePage(*args
, **kwargs
):
2863 """DeletePage(self, size_t n) -> bool"""
2864 return _controls_
.BookCtrl_DeletePage(*args
, **kwargs
)
2866 def RemovePage(*args
, **kwargs
):
2867 """RemovePage(self, size_t n) -> bool"""
2868 return _controls_
.BookCtrl_RemovePage(*args
, **kwargs
)
2870 def DeleteAllPages(*args
, **kwargs
):
2871 """DeleteAllPages(self) -> bool"""
2872 return _controls_
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2874 def AddPage(*args
, **kwargs
):
2875 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2876 return _controls_
.BookCtrl_AddPage(*args
, **kwargs
)
2878 def InsertPage(*args
, **kwargs
):
2880 InsertPage(self, size_t n, Window page, String text, bool select=False,
2881 int imageId=-1) -> bool
2883 return _controls_
.BookCtrl_InsertPage(*args
, **kwargs
)
2885 def SetSelection(*args
, **kwargs
):
2886 """SetSelection(self, size_t n) -> int"""
2887 return _controls_
.BookCtrl_SetSelection(*args
, **kwargs
)
2889 def AdvanceSelection(*args
, **kwargs
):
2890 """AdvanceSelection(self, bool forward=True)"""
2891 return _controls_
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2893 def GetClassDefaultAttributes(*args
, **kwargs
):
2895 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2897 Get the default attributes for this class. This is useful if
2898 you want to use the same font or colour in your own control as
2899 in a standard control -- which is a much better idea than hard
2900 coding specific colours or fonts which might look completely out
2901 of place on the users system, especially if it uses themes.
2903 The variant parameter is only relevant under Mac currently and is
2904 ignore under other platforms. Under Mac, it will change the size of the
2905 returned font. See SetWindowVariant for more about this.
2907 return _controls_
.BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2909 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2911 class BookCtrlPtr(BookCtrl
):
2912 def __init__(self
, this
):
2914 if not hasattr(self
,"thisown"): self
.thisown
= 0
2915 self
.__class
__ = BookCtrl
2916 _controls_
.BookCtrl_swigregister(BookCtrlPtr
)
2917 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2919 def BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2921 BookCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2923 Get the default attributes for this class. This is useful if
2924 you want to use the same font or colour in your own control as
2925 in a standard control -- which is a much better idea than hard
2926 coding specific colours or fonts which might look completely out
2927 of place on the users system, especially if it uses themes.
2929 The variant parameter is only relevant under Mac currently and is
2930 ignore under other platforms. Under Mac, it will change the size of the
2931 returned font. See SetWindowVariant for more about this.
2933 return _controls_
.BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2935 class BookCtrlEvent(_core
.NotifyEvent
):
2937 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2938 def __init__(self
, *args
, **kwargs
):
2940 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2941 int nOldSel=-1) -> BookCtrlEvent
2943 newobj
= _controls_
.new_BookCtrlEvent(*args
, **kwargs
)
2944 self
.this
= newobj
.this
2947 def GetSelection(*args
, **kwargs
):
2948 """GetSelection(self) -> int"""
2949 return _controls_
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2951 def SetSelection(*args
, **kwargs
):
2952 """SetSelection(self, int nSel)"""
2953 return _controls_
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2955 def GetOldSelection(*args
, **kwargs
):
2956 """GetOldSelection(self) -> int"""
2957 return _controls_
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2959 def SetOldSelection(*args
, **kwargs
):
2960 """SetOldSelection(self, int nOldSel)"""
2961 return _controls_
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2964 class BookCtrlEventPtr(BookCtrlEvent
):
2965 def __init__(self
, this
):
2967 if not hasattr(self
,"thisown"): self
.thisown
= 0
2968 self
.__class
__ = BookCtrlEvent
2969 _controls_
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2971 #---------------------------------------------------------------------------
2973 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2974 NB_TOP
= _controls_
.NB_TOP
2975 NB_LEFT
= _controls_
.NB_LEFT
2976 NB_RIGHT
= _controls_
.NB_RIGHT
2977 NB_BOTTOM
= _controls_
.NB_BOTTOM
2978 NB_MULTILINE
= _controls_
.NB_MULTILINE
2979 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2980 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2981 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2982 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2983 class Notebook(BookCtrl
):
2985 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2986 def __init__(self
, *args
, **kwargs
):
2988 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2989 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2991 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
2992 self
.this
= newobj
.this
2995 self
._setOORInfo
(self
)
2997 def Create(*args
, **kwargs
):
2999 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3000 long style=0, String name=NOTEBOOK_NAME) -> bool
3002 return _controls_
.Notebook_Create(*args
, **kwargs
)
3004 def GetRowCount(*args
, **kwargs
):
3005 """GetRowCount(self) -> int"""
3006 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3008 def SetPadding(*args
, **kwargs
):
3009 """SetPadding(self, Size padding)"""
3010 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3012 def SetTabSize(*args
, **kwargs
):
3013 """SetTabSize(self, Size sz)"""
3014 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3016 def HitTest(*args
, **kwargs
):
3018 HitTest(Point pt) -> (tab, where)
3020 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
3022 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3024 def CalcSizeFromPage(*args
, **kwargs
):
3025 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3026 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
3028 def GetClassDefaultAttributes(*args
, **kwargs
):
3030 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3032 Get the default attributes for this class. This is useful if
3033 you want to use the same font or colour in your own control as
3034 in a standard control -- which is a much better idea than hard
3035 coding specific colours or fonts which might look completely out
3036 of place on the users system, especially if it uses themes.
3038 The variant parameter is only relevant under Mac currently and is
3039 ignore under other platforms. Under Mac, it will change the size of the
3040 returned font. See SetWindowVariant for more about this.
3042 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3044 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3046 class NotebookPtr(Notebook
):
3047 def __init__(self
, this
):
3049 if not hasattr(self
,"thisown"): self
.thisown
= 0
3050 self
.__class
__ = Notebook
3051 _controls_
.Notebook_swigregister(NotebookPtr
)
3053 def PreNotebook(*args
, **kwargs
):
3054 """PreNotebook() -> Notebook"""
3055 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3059 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3061 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3063 Get the default attributes for this class. This is useful if
3064 you want to use the same font or colour in your own control as
3065 in a standard control -- which is a much better idea than hard
3066 coding specific colours or fonts which might look completely out
3067 of place on the users system, especially if it uses themes.
3069 The variant parameter is only relevant under Mac currently and is
3070 ignore under other platforms. Under Mac, it will change the size of the
3071 returned font. See SetWindowVariant for more about this.
3073 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3075 class NotebookEvent(BookCtrlEvent
):
3077 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3078 def __init__(self
, *args
, **kwargs
):
3080 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3081 int nOldSel=-1) -> NotebookEvent
3083 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3084 self
.this
= newobj
.this
3088 class NotebookEventPtr(NotebookEvent
):
3089 def __init__(self
, this
):
3091 if not hasattr(self
,"thisown"): self
.thisown
= 0
3092 self
.__class
__ = NotebookEvent
3093 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3095 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3096 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3098 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3099 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3101 #----------------------------------------------------------------------------
3103 class NotebookPage(wx
.Panel
):
3105 There is an old (and apparently unsolvable) bug when placing a
3106 window with a nonstandard background colour in a wxNotebook on
3107 wxGTK, as the notbooks's background colour would always be used
3108 when the window is refreshed. The solution is to place a panel in
3109 the notbook and the coloured window on the panel, sized to cover
3110 the panel. This simple class does that for you, just put an
3111 instance of this in the notebook and make your regular window a
3112 child of this one and it will handle the resize for you.
3114 def __init__(self
, parent
, id=-1,
3115 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3116 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3117 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3119 EVT_SIZE(self
, self
.OnSize
)
3121 def OnSize(self
, evt
):
3122 if self
.child
is None:
3123 children
= self
.GetChildren()
3125 self
.child
= children
[0]
3127 self
.child
.SetPosition((0,0))
3128 self
.child
.SetSize(self
.GetSize())
3131 #---------------------------------------------------------------------------
3133 LB_DEFAULT
= _controls_
.LB_DEFAULT
3134 LB_TOP
= _controls_
.LB_TOP
3135 LB_BOTTOM
= _controls_
.LB_BOTTOM
3136 LB_LEFT
= _controls_
.LB_LEFT
3137 LB_RIGHT
= _controls_
.LB_RIGHT
3138 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3139 class Listbook(BookCtrl
):
3141 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3142 def __init__(self
, *args
, **kwargs
):
3144 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3145 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3147 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3148 self
.this
= newobj
.this
3151 self
._setOORInfo
(self
)
3153 def Create(*args
, **kwargs
):
3155 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3156 long style=0, String name=EmptyString) -> bool
3158 return _controls_
.Listbook_Create(*args
, **kwargs
)
3160 def IsVertical(*args
, **kwargs
):
3161 """IsVertical(self) -> bool"""
3162 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
3165 class ListbookPtr(Listbook
):
3166 def __init__(self
, this
):
3168 if not hasattr(self
,"thisown"): self
.thisown
= 0
3169 self
.__class
__ = Listbook
3170 _controls_
.Listbook_swigregister(ListbookPtr
)
3172 def PreListbook(*args
, **kwargs
):
3173 """PreListbook() -> Listbook"""
3174 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3178 class ListbookEvent(BookCtrlEvent
):
3180 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3181 def __init__(self
, *args
, **kwargs
):
3183 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3184 int nOldSel=-1) -> ListbookEvent
3186 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3187 self
.this
= newobj
.this
3191 class ListbookEventPtr(ListbookEvent
):
3192 def __init__(self
, this
):
3194 if not hasattr(self
,"thisown"): self
.thisown
= 0
3195 self
.__class
__ = ListbookEvent
3196 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3198 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3199 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3200 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3201 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3203 #---------------------------------------------------------------------------
3205 class BookCtrlSizer(_core
.Sizer
):
3207 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3208 def __init__(self
, *args
, **kwargs
):
3209 """__init__(self, BookCtrl nb) -> BookCtrlSizer"""
3210 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
3211 self
.this
= newobj
.this
3214 self
._setOORInfo
(self
)
3216 def RecalcSizes(*args
, **kwargs
):
3217 """RecalcSizes(self)"""
3218 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
3220 def CalcMin(*args
, **kwargs
):
3221 """CalcMin(self) -> Size"""
3222 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
3224 def GetControl(*args
, **kwargs
):
3225 """GetControl(self) -> BookCtrl"""
3226 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
3229 class BookCtrlSizerPtr(BookCtrlSizer
):
3230 def __init__(self
, this
):
3232 if not hasattr(self
,"thisown"): self
.thisown
= 0
3233 self
.__class
__ = BookCtrlSizer
3234 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
3236 class NotebookSizer(_core
.Sizer
):
3238 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3239 def __init__(self
, *args
, **kwargs
):
3240 """__init__(self, Notebook nb) -> NotebookSizer"""
3241 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
3242 self
.this
= newobj
.this
3245 self
._setOORInfo
(self
)
3247 def RecalcSizes(*args
, **kwargs
):
3248 """RecalcSizes(self)"""
3249 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
3251 def CalcMin(*args
, **kwargs
):
3252 """CalcMin(self) -> Size"""
3253 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
3255 def GetNotebook(*args
, **kwargs
):
3256 """GetNotebook(self) -> Notebook"""
3257 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
3260 class NotebookSizerPtr(NotebookSizer
):
3261 def __init__(self
, this
):
3263 if not hasattr(self
,"thisown"): self
.thisown
= 0
3264 self
.__class
__ = NotebookSizer
3265 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
3267 #---------------------------------------------------------------------------
3269 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3270 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3271 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3272 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3273 TB_VERTICAL
= _controls_
.TB_VERTICAL
3274 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3275 TB_FLAT
= _controls_
.TB_FLAT
3276 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3277 TB_NOICONS
= _controls_
.TB_NOICONS
3278 TB_TEXT
= _controls_
.TB_TEXT
3279 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3280 TB_NOALIGN
= _controls_
.TB_NOALIGN
3281 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3282 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3283 class ToolBarToolBase(_core
.Object
):
3284 def __init__(self
): raise RuntimeError, "No constructor defined"
3286 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3287 def GetId(*args
, **kwargs
):
3288 """GetId(self) -> int"""
3289 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3291 def GetControl(*args
, **kwargs
):
3292 """GetControl(self) -> Control"""
3293 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3295 def GetToolBar(*args
, **kwargs
):
3296 """GetToolBar(self) -> ToolBarBase"""
3297 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3299 def IsButton(*args
, **kwargs
):
3300 """IsButton(self) -> int"""
3301 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3303 def IsControl(*args
, **kwargs
):
3304 """IsControl(self) -> int"""
3305 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3307 def IsSeparator(*args
, **kwargs
):
3308 """IsSeparator(self) -> int"""
3309 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3311 def GetStyle(*args
, **kwargs
):
3312 """GetStyle(self) -> int"""
3313 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3315 def GetKind(*args
, **kwargs
):
3316 """GetKind(self) -> int"""
3317 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3319 def IsEnabled(*args
, **kwargs
):
3320 """IsEnabled(self) -> bool"""
3321 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3323 def IsToggled(*args
, **kwargs
):
3324 """IsToggled(self) -> bool"""
3325 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3327 def CanBeToggled(*args
, **kwargs
):
3328 """CanBeToggled(self) -> bool"""
3329 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3331 def GetNormalBitmap(*args
, **kwargs
):
3332 """GetNormalBitmap(self) -> Bitmap"""
3333 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3335 def GetDisabledBitmap(*args
, **kwargs
):
3336 """GetDisabledBitmap(self) -> Bitmap"""
3337 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3339 def GetBitmap(*args
, **kwargs
):
3340 """GetBitmap(self) -> Bitmap"""
3341 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3343 def GetLabel(*args
, **kwargs
):
3344 """GetLabel(self) -> String"""
3345 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3347 def GetShortHelp(*args
, **kwargs
):
3348 """GetShortHelp(self) -> String"""
3349 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3351 def GetLongHelp(*args
, **kwargs
):
3352 """GetLongHelp(self) -> String"""
3353 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3355 def Enable(*args
, **kwargs
):
3356 """Enable(self, bool enable) -> bool"""
3357 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3359 def Toggle(*args
, **kwargs
):
3361 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3363 def SetToggle(*args
, **kwargs
):
3364 """SetToggle(self, bool toggle) -> bool"""
3365 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3367 def SetShortHelp(*args
, **kwargs
):
3368 """SetShortHelp(self, String help) -> bool"""
3369 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3371 def SetLongHelp(*args
, **kwargs
):
3372 """SetLongHelp(self, String help) -> bool"""
3373 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3375 def SetNormalBitmap(*args
, **kwargs
):
3376 """SetNormalBitmap(self, Bitmap bmp)"""
3377 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3379 def SetDisabledBitmap(*args
, **kwargs
):
3380 """SetDisabledBitmap(self, Bitmap bmp)"""
3381 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3383 def SetLabel(*args
, **kwargs
):
3384 """SetLabel(self, String label)"""
3385 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3387 def Detach(*args
, **kwargs
):
3389 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3391 def Attach(*args
, **kwargs
):
3392 """Attach(self, ToolBarBase tbar)"""
3393 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3395 def GetClientData(*args
, **kwargs
):
3396 """GetClientData(self) -> PyObject"""
3397 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3399 def SetClientData(*args
, **kwargs
):
3400 """SetClientData(self, PyObject clientData)"""
3401 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3403 GetBitmap1
= GetNormalBitmap
3404 GetBitmap2
= GetDisabledBitmap
3405 SetBitmap1
= SetNormalBitmap
3406 SetBitmap2
= SetDisabledBitmap
3409 class ToolBarToolBasePtr(ToolBarToolBase
):
3410 def __init__(self
, this
):
3412 if not hasattr(self
,"thisown"): self
.thisown
= 0
3413 self
.__class
__ = ToolBarToolBase
3414 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3416 class ToolBarBase(_core
.Control
):
3417 def __init__(self
): raise RuntimeError, "No constructor defined"
3419 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3420 def DoAddTool(*args
, **kwargs
):
3422 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3423 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3424 String longHelp=EmptyString,
3425 PyObject clientData=None) -> ToolBarToolBase
3427 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3429 def DoInsertTool(*args
, **kwargs
):
3431 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3432 int kind=ITEM_NORMAL,
3433 String shortHelp=EmptyString, String longHelp=EmptyString,
3434 PyObject clientData=None) -> ToolBarToolBase
3436 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3438 # These match the original Add methods for this class, kept for
3439 # backwards compatibility with versions < 2.3.3.
3442 def AddTool(self
, id, bitmap
,
3443 pushedBitmap
= wx
.NullBitmap
,
3446 shortHelpString
= '',
3447 longHelpString
= '') :
3448 '''Old style method to add a tool to the toolbar.'''
3449 kind
= wx
.ITEM_NORMAL
3450 if isToggle
: kind
= wx
.ITEM_CHECK
3451 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3452 shortHelpString
, longHelpString
, clientData
)
3454 def AddSimpleTool(self
, id, bitmap
,
3455 shortHelpString
= '',
3456 longHelpString
= '',
3458 '''Old style method to add a tool to the toolbar.'''
3459 kind
= wx
.ITEM_NORMAL
3460 if isToggle
: kind
= wx
.ITEM_CHECK
3461 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3462 shortHelpString
, longHelpString
, None)
3464 def InsertTool(self
, pos
, id, bitmap
,
3465 pushedBitmap
= wx
.NullBitmap
,
3468 shortHelpString
= '',
3469 longHelpString
= ''):
3470 '''Old style method to insert a tool in the toolbar.'''
3471 kind
= wx
.ITEM_NORMAL
3472 if isToggle
: kind
= wx
.ITEM_CHECK
3473 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3474 shortHelpString
, longHelpString
, clientData
)
3476 def InsertSimpleTool(self
, pos
, id, bitmap
,
3477 shortHelpString
= '',
3478 longHelpString
= '',
3480 '''Old style method to insert a tool in the toolbar.'''
3481 kind
= wx
.ITEM_NORMAL
3482 if isToggle
: kind
= wx
.ITEM_CHECK
3483 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3484 shortHelpString
, longHelpString
, None)
3487 # The following are the new toolbar Add methods starting with
3488 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3489 # able to keep backwards compatibility with using the above
3490 # methods. Eventually these should migrate to be the methods used
3491 # primarily and lose the 'Label' in the name...
3493 def AddLabelTool(self
, id, label
, bitmap
,
3494 bmpDisabled
= wx
.NullBitmap
,
3495 kind
= wx
.ITEM_NORMAL
,
3496 shortHelp
= '', longHelp
= '',
3499 The full AddTool() function.
3501 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3502 is created and used as the disabled image.
3504 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3505 shortHelp
, longHelp
, clientData
)
3508 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3509 bmpDisabled
= wx
.NullBitmap
,
3510 kind
= wx
.ITEM_NORMAL
,
3511 shortHelp
= '', longHelp
= '',
3514 Insert the new tool at the given position, if pos == GetToolsCount(), it
3515 is equivalent to AddTool()
3517 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3518 shortHelp
, longHelp
, clientData
)
3520 def AddCheckLabelTool(self
, id, label
, bitmap
,
3521 bmpDisabled
= wx
.NullBitmap
,
3522 shortHelp
= '', longHelp
= '',
3524 '''Add a check tool, i.e. a tool which can be toggled'''
3525 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3526 shortHelp
, longHelp
, clientData
)
3528 def AddRadioLabelTool(self
, id, label
, bitmap
,
3529 bmpDisabled
= wx
.NullBitmap
,
3530 shortHelp
= '', longHelp
= '',
3533 Add a radio tool, i.e. a tool which can be toggled and releases any
3534 other toggled radio tools in the same group when it happens
3536 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3537 shortHelp
, longHelp
, clientData
)
3540 # For consistency with the backwards compatible methods above, here are
3541 # some non-'Label' versions of the Check and Radio methods
3542 def AddCheckTool(self
, id, bitmap
,
3543 bmpDisabled
= wx
.NullBitmap
,
3544 shortHelp
= '', longHelp
= '',
3546 '''Add a check tool, i.e. a tool which can be toggled'''
3547 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3548 shortHelp
, longHelp
, clientData
)
3550 def AddRadioTool(self
, id, bitmap
,
3551 bmpDisabled
= wx
.NullBitmap
,
3552 shortHelp
= '', longHelp
= '',
3555 Add a radio tool, i.e. a tool which can be toggled and releases any
3556 other toggled radio tools in the same group when it happens
3558 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3559 shortHelp
, longHelp
, clientData
)
3561 def AddToolItem(*args
, **kwargs
):
3562 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3563 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3565 def InsertToolItem(*args
, **kwargs
):
3566 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3567 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3569 def AddControl(*args
, **kwargs
):
3570 """AddControl(self, Control control) -> ToolBarToolBase"""
3571 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3573 def InsertControl(*args
, **kwargs
):
3574 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3575 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3577 def FindControl(*args
, **kwargs
):
3578 """FindControl(self, int id) -> Control"""
3579 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3581 def AddSeparator(*args
, **kwargs
):
3582 """AddSeparator(self) -> ToolBarToolBase"""
3583 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3585 def InsertSeparator(*args
, **kwargs
):
3586 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3587 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3589 def RemoveTool(*args
, **kwargs
):
3590 """RemoveTool(self, int id) -> ToolBarToolBase"""
3591 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3593 def DeleteToolByPos(*args
, **kwargs
):
3594 """DeleteToolByPos(self, size_t pos) -> bool"""
3595 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3597 def DeleteTool(*args
, **kwargs
):
3598 """DeleteTool(self, int id) -> bool"""
3599 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3601 def ClearTools(*args
, **kwargs
):
3602 """ClearTools(self)"""
3603 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3605 def Realize(*args
, **kwargs
):
3606 """Realize(self) -> bool"""
3607 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3609 def EnableTool(*args
, **kwargs
):
3610 """EnableTool(self, int id, bool enable)"""
3611 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3613 def ToggleTool(*args
, **kwargs
):
3614 """ToggleTool(self, int id, bool toggle)"""
3615 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3617 def SetToggle(*args
, **kwargs
):
3618 """SetToggle(self, int id, bool toggle)"""
3619 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3621 def GetToolClientData(*args
, **kwargs
):
3622 """GetToolClientData(self, int id) -> PyObject"""
3623 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3625 def SetToolClientData(*args
, **kwargs
):
3626 """SetToolClientData(self, int id, PyObject clientData)"""
3627 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3629 def GetToolPos(*args
, **kwargs
):
3630 """GetToolPos(self, int id) -> int"""
3631 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3633 def GetToolState(*args
, **kwargs
):
3634 """GetToolState(self, int id) -> bool"""
3635 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3637 def GetToolEnabled(*args
, **kwargs
):
3638 """GetToolEnabled(self, int id) -> bool"""
3639 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3641 def SetToolShortHelp(*args
, **kwargs
):
3642 """SetToolShortHelp(self, int id, String helpString)"""
3643 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3645 def GetToolShortHelp(*args
, **kwargs
):
3646 """GetToolShortHelp(self, int id) -> String"""
3647 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3649 def SetToolLongHelp(*args
, **kwargs
):
3650 """SetToolLongHelp(self, int id, String helpString)"""
3651 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3653 def GetToolLongHelp(*args
, **kwargs
):
3654 """GetToolLongHelp(self, int id) -> String"""
3655 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3657 def SetMarginsXY(*args
, **kwargs
):
3658 """SetMarginsXY(self, int x, int y)"""
3659 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3661 def SetMargins(*args
, **kwargs
):
3662 """SetMargins(self, Size size)"""
3663 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3665 def SetToolPacking(*args
, **kwargs
):
3666 """SetToolPacking(self, int packing)"""
3667 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3669 def SetToolSeparation(*args
, **kwargs
):
3670 """SetToolSeparation(self, int separation)"""
3671 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3673 def GetToolMargins(*args
, **kwargs
):
3674 """GetToolMargins(self) -> Size"""
3675 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3677 def GetMargins(*args
, **kwargs
):
3678 """GetMargins(self) -> Size"""
3679 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3681 def GetToolPacking(*args
, **kwargs
):
3682 """GetToolPacking(self) -> int"""
3683 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3685 def GetToolSeparation(*args
, **kwargs
):
3686 """GetToolSeparation(self) -> int"""
3687 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3689 def SetRows(*args
, **kwargs
):
3690 """SetRows(self, int nRows)"""
3691 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3693 def SetMaxRowsCols(*args
, **kwargs
):
3694 """SetMaxRowsCols(self, int rows, int cols)"""
3695 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3697 def GetMaxRows(*args
, **kwargs
):
3698 """GetMaxRows(self) -> int"""
3699 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3701 def GetMaxCols(*args
, **kwargs
):
3702 """GetMaxCols(self) -> int"""
3703 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3705 def SetToolBitmapSize(*args
, **kwargs
):
3706 """SetToolBitmapSize(self, Size size)"""
3707 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3709 def GetToolBitmapSize(*args
, **kwargs
):
3710 """GetToolBitmapSize(self) -> Size"""
3711 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3713 def GetToolSize(*args
, **kwargs
):
3714 """GetToolSize(self) -> Size"""
3715 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3717 def FindToolForPosition(*args
, **kwargs
):
3718 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3719 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3721 def FindById(*args
, **kwargs
):
3722 """FindById(self, int toolid) -> ToolBarToolBase"""
3723 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3725 def IsVertical(*args
, **kwargs
):
3726 """IsVertical(self) -> bool"""
3727 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3730 class ToolBarBasePtr(ToolBarBase
):
3731 def __init__(self
, this
):
3733 if not hasattr(self
,"thisown"): self
.thisown
= 0
3734 self
.__class
__ = ToolBarBase
3735 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3737 class ToolBar(ToolBarBase
):
3739 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3740 def __init__(self
, *args
, **kwargs
):
3742 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3743 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3744 String name=wxPyToolBarNameStr) -> ToolBar
3746 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3747 self
.this
= newobj
.this
3750 self
._setOORInfo
(self
)
3752 def Create(*args
, **kwargs
):
3754 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3755 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3756 String name=wxPyToolBarNameStr) -> bool
3758 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3760 def FindToolForPosition(*args
, **kwargs
):
3761 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3762 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3764 def GetClassDefaultAttributes(*args
, **kwargs
):
3766 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3768 Get the default attributes for this class. This is useful if
3769 you want to use the same font or colour in your own control as
3770 in a standard control -- which is a much better idea than hard
3771 coding specific colours or fonts which might look completely out
3772 of place on the users system, especially if it uses themes.
3774 The variant parameter is only relevant under Mac currently and is
3775 ignore under other platforms. Under Mac, it will change the size of the
3776 returned font. See SetWindowVariant for more about this.
3778 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3780 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3782 class ToolBarPtr(ToolBar
):
3783 def __init__(self
, this
):
3785 if not hasattr(self
,"thisown"): self
.thisown
= 0
3786 self
.__class
__ = ToolBar
3787 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3789 def PreToolBar(*args
, **kwargs
):
3790 """PreToolBar() -> ToolBar"""
3791 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3795 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3797 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3799 Get the default attributes for this class. This is useful if
3800 you want to use the same font or colour in your own control as
3801 in a standard control -- which is a much better idea than hard
3802 coding specific colours or fonts which might look completely out
3803 of place on the users system, especially if it uses themes.
3805 The variant parameter is only relevant under Mac currently and is
3806 ignore under other platforms. Under Mac, it will change the size of the
3807 returned font. See SetWindowVariant for more about this.
3809 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3811 #---------------------------------------------------------------------------
3813 LC_VRULES
= _controls_
.LC_VRULES
3814 LC_HRULES
= _controls_
.LC_HRULES
3815 LC_ICON
= _controls_
.LC_ICON
3816 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3817 LC_LIST
= _controls_
.LC_LIST
3818 LC_REPORT
= _controls_
.LC_REPORT
3819 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3820 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3821 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3822 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3823 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3824 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3825 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3826 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3827 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3828 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3829 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3830 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3831 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3832 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3833 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3834 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3835 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3836 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3837 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3838 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3839 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3840 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3841 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3842 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3843 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3844 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3845 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3846 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3847 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3848 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3849 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3850 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3851 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3852 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3853 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3854 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3855 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3856 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3857 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3858 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3859 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3860 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3861 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3862 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3863 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3864 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3865 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3866 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3867 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3868 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3869 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3870 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3871 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3872 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3873 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3874 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3875 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3876 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3877 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3878 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3879 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3880 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3881 #---------------------------------------------------------------------------
3883 class ListItemAttr(object):
3885 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3886 def __init__(self
, *args
, **kwargs
):
3888 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3889 Font font=wxNullFont) -> ListItemAttr
3891 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
3892 self
.this
= newobj
.this
3895 def SetTextColour(*args
, **kwargs
):
3896 """SetTextColour(self, Colour colText)"""
3897 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3899 def SetBackgroundColour(*args
, **kwargs
):
3900 """SetBackgroundColour(self, Colour colBack)"""
3901 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3903 def SetFont(*args
, **kwargs
):
3904 """SetFont(self, Font font)"""
3905 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3907 def HasTextColour(*args
, **kwargs
):
3908 """HasTextColour(self) -> bool"""
3909 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3911 def HasBackgroundColour(*args
, **kwargs
):
3912 """HasBackgroundColour(self) -> bool"""
3913 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3915 def HasFont(*args
, **kwargs
):
3916 """HasFont(self) -> bool"""
3917 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3919 def GetTextColour(*args
, **kwargs
):
3920 """GetTextColour(self) -> Colour"""
3921 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3923 def GetBackgroundColour(*args
, **kwargs
):
3924 """GetBackgroundColour(self) -> Colour"""
3925 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3927 def GetFont(*args
, **kwargs
):
3928 """GetFont(self) -> Font"""
3929 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
3931 def Destroy(*args
, **kwargs
):
3933 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
3936 class ListItemAttrPtr(ListItemAttr
):
3937 def __init__(self
, this
):
3939 if not hasattr(self
,"thisown"): self
.thisown
= 0
3940 self
.__class
__ = ListItemAttr
3941 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
3942 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3944 #---------------------------------------------------------------------------
3946 class ListItem(_core
.Object
):
3948 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3949 def __init__(self
, *args
, **kwargs
):
3950 """__init__(self) -> ListItem"""
3951 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
3952 self
.this
= newobj
.this
3955 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
3958 if self
.thisown
: destroy(self
)
3961 def Clear(*args
, **kwargs
):
3963 return _controls_
.ListItem_Clear(*args
, **kwargs
)
3965 def ClearAttributes(*args
, **kwargs
):
3966 """ClearAttributes(self)"""
3967 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
3969 def SetMask(*args
, **kwargs
):
3970 """SetMask(self, long mask)"""
3971 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
3973 def SetId(*args
, **kwargs
):
3974 """SetId(self, long id)"""
3975 return _controls_
.ListItem_SetId(*args
, **kwargs
)
3977 def SetColumn(*args
, **kwargs
):
3978 """SetColumn(self, int col)"""
3979 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
3981 def SetState(*args
, **kwargs
):
3982 """SetState(self, long state)"""
3983 return _controls_
.ListItem_SetState(*args
, **kwargs
)
3985 def SetStateMask(*args
, **kwargs
):
3986 """SetStateMask(self, long stateMask)"""
3987 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
3989 def SetText(*args
, **kwargs
):
3990 """SetText(self, String text)"""
3991 return _controls_
.ListItem_SetText(*args
, **kwargs
)
3993 def SetImage(*args
, **kwargs
):
3994 """SetImage(self, int image)"""
3995 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
3997 def SetData(*args
, **kwargs
):
3998 """SetData(self, long data)"""
3999 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4001 def SetWidth(*args
, **kwargs
):
4002 """SetWidth(self, int width)"""
4003 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4005 def SetAlign(*args
, **kwargs
):
4006 """SetAlign(self, int align)"""
4007 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4009 def SetTextColour(*args
, **kwargs
):
4010 """SetTextColour(self, Colour colText)"""
4011 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4013 def SetBackgroundColour(*args
, **kwargs
):
4014 """SetBackgroundColour(self, Colour colBack)"""
4015 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4017 def SetFont(*args
, **kwargs
):
4018 """SetFont(self, Font font)"""
4019 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4021 def GetMask(*args
, **kwargs
):
4022 """GetMask(self) -> long"""
4023 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4025 def GetId(*args
, **kwargs
):
4026 """GetId(self) -> long"""
4027 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4029 def GetColumn(*args
, **kwargs
):
4030 """GetColumn(self) -> int"""
4031 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4033 def GetState(*args
, **kwargs
):
4034 """GetState(self) -> long"""
4035 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4037 def GetText(*args
, **kwargs
):
4038 """GetText(self) -> String"""
4039 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4041 def GetImage(*args
, **kwargs
):
4042 """GetImage(self) -> int"""
4043 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4045 def GetData(*args
, **kwargs
):
4046 """GetData(self) -> long"""
4047 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4049 def GetWidth(*args
, **kwargs
):
4050 """GetWidth(self) -> int"""
4051 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4053 def GetAlign(*args
, **kwargs
):
4054 """GetAlign(self) -> int"""
4055 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4057 def GetAttributes(*args
, **kwargs
):
4058 """GetAttributes(self) -> ListItemAttr"""
4059 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4061 def HasAttributes(*args
, **kwargs
):
4062 """HasAttributes(self) -> bool"""
4063 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4065 def GetTextColour(*args
, **kwargs
):
4066 """GetTextColour(self) -> Colour"""
4067 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4069 def GetBackgroundColour(*args
, **kwargs
):
4070 """GetBackgroundColour(self) -> Colour"""
4071 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4073 def GetFont(*args
, **kwargs
):
4074 """GetFont(self) -> Font"""
4075 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4077 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4078 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4079 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4080 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4081 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4082 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4083 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4084 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4085 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4086 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4088 class ListItemPtr(ListItem
):
4089 def __init__(self
, this
):
4091 if not hasattr(self
,"thisown"): self
.thisown
= 0
4092 self
.__class
__ = ListItem
4093 _controls_
.ListItem_swigregister(ListItemPtr
)
4095 #---------------------------------------------------------------------------
4097 class ListEvent(_core
.NotifyEvent
):
4099 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4100 def __init__(self
, *args
, **kwargs
):
4101 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4102 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4103 self
.this
= newobj
.this
4106 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4107 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4108 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4109 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4110 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4111 m_item
= property(_controls_
.ListEvent_m_item_get
)
4112 def GetKeyCode(*args
, **kwargs
):
4113 """GetKeyCode(self) -> int"""
4114 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4116 GetCode
= GetKeyCode
4117 def GetIndex(*args
, **kwargs
):
4118 """GetIndex(self) -> long"""
4119 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4121 def GetColumn(*args
, **kwargs
):
4122 """GetColumn(self) -> int"""
4123 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4125 def GetPoint(*args
, **kwargs
):
4126 """GetPoint(self) -> Point"""
4127 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4129 GetPosition
= GetPoint
4130 def GetLabel(*args
, **kwargs
):
4131 """GetLabel(self) -> String"""
4132 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4134 def GetText(*args
, **kwargs
):
4135 """GetText(self) -> String"""
4136 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4138 def GetImage(*args
, **kwargs
):
4139 """GetImage(self) -> int"""
4140 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4142 def GetData(*args
, **kwargs
):
4143 """GetData(self) -> long"""
4144 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4146 def GetMask(*args
, **kwargs
):
4147 """GetMask(self) -> long"""
4148 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4150 def GetItem(*args
, **kwargs
):
4151 """GetItem(self) -> ListItem"""
4152 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4154 def GetCacheFrom(*args
, **kwargs
):
4155 """GetCacheFrom(self) -> long"""
4156 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4158 def GetCacheTo(*args
, **kwargs
):
4159 """GetCacheTo(self) -> long"""
4160 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4162 def IsEditCancelled(*args
, **kwargs
):
4163 """IsEditCancelled(self) -> bool"""
4164 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4166 def SetEditCanceled(*args
, **kwargs
):
4167 """SetEditCanceled(self, bool editCancelled)"""
4168 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4171 class ListEventPtr(ListEvent
):
4172 def __init__(self
, this
):
4174 if not hasattr(self
,"thisown"): self
.thisown
= 0
4175 self
.__class
__ = ListEvent
4176 _controls_
.ListEvent_swigregister(ListEventPtr
)
4178 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4179 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4180 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4181 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4182 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4183 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4184 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
4185 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
4186 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4187 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4188 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4189 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4190 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4191 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4192 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4193 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4194 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4195 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4196 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4197 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4198 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4199 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4200 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4201 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4202 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4203 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4204 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4205 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4206 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
4207 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
4208 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4209 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4210 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4211 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4212 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4213 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4214 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4215 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4216 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4217 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4218 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4219 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4220 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4221 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4223 #---------------------------------------------------------------------------
4225 class ListCtrl(_core
.Control
):
4227 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4228 def __init__(self
, *args
, **kwargs
):
4230 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4231 Size size=DefaultSize, long style=LC_ICON,
4232 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4234 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4235 self
.this
= newobj
.this
4238 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4240 def Create(*args
, **kwargs
):
4242 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4243 Size size=DefaultSize, long style=LC_ICON,
4244 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4246 Do the 2nd phase and create the GUI control.
4248 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4250 def _setCallbackInfo(*args
, **kwargs
):
4251 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4252 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4254 def SetForegroundColour(*args
, **kwargs
):
4255 """SetForegroundColour(self, Colour col) -> bool"""
4256 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4258 def SetBackgroundColour(*args
, **kwargs
):
4259 """SetBackgroundColour(self, Colour col) -> bool"""
4260 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4262 def GetColumn(*args
, **kwargs
):
4263 """GetColumn(self, int col) -> ListItem"""
4264 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4265 if val
is not None: val
.thisown
= 1
4268 def SetColumn(*args
, **kwargs
):
4269 """SetColumn(self, int col, ListItem item) -> bool"""
4270 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4272 def GetColumnWidth(*args
, **kwargs
):
4273 """GetColumnWidth(self, int col) -> int"""
4274 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4276 def SetColumnWidth(*args
, **kwargs
):
4277 """SetColumnWidth(self, int col, int width) -> bool"""
4278 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4280 def GetCountPerPage(*args
, **kwargs
):
4281 """GetCountPerPage(self) -> int"""
4282 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4284 def GetViewRect(*args
, **kwargs
):
4285 """GetViewRect(self) -> Rect"""
4286 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4288 def GetItem(*args
, **kwargs
):
4289 """GetItem(self, long itemId, int col=0) -> ListItem"""
4290 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4291 if val
is not None: val
.thisown
= 1
4294 def SetItem(*args
, **kwargs
):
4295 """SetItem(self, ListItem info) -> bool"""
4296 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4298 def SetStringItem(*args
, **kwargs
):
4299 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4300 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4302 def GetItemState(*args
, **kwargs
):
4303 """GetItemState(self, long item, long stateMask) -> int"""
4304 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4306 def SetItemState(*args
, **kwargs
):
4307 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4308 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4310 def SetItemImage(*args
, **kwargs
):
4311 """SetItemImage(self, long item, int image, int selImage) -> bool"""
4312 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4314 def GetItemText(*args
, **kwargs
):
4315 """GetItemText(self, long item) -> String"""
4316 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4318 def SetItemText(*args
, **kwargs
):
4319 """SetItemText(self, long item, String str)"""
4320 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4322 def GetItemData(*args
, **kwargs
):
4323 """GetItemData(self, long item) -> long"""
4324 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4326 def SetItemData(*args
, **kwargs
):
4327 """SetItemData(self, long item, long data) -> bool"""
4328 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4330 def GetItemPosition(*args
, **kwargs
):
4331 """GetItemPosition(self, long item) -> Point"""
4332 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4334 def GetItemRect(*args
, **kwargs
):
4335 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4336 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4338 def SetItemPosition(*args
, **kwargs
):
4339 """SetItemPosition(self, long item, Point pos) -> bool"""
4340 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4342 def GetItemCount(*args
, **kwargs
):
4343 """GetItemCount(self) -> int"""
4344 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4346 def GetColumnCount(*args
, **kwargs
):
4347 """GetColumnCount(self) -> int"""
4348 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4350 def GetItemSpacing(*args
, **kwargs
):
4351 """GetItemSpacing(self) -> Size"""
4352 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4354 def SetItemSpacing(*args
, **kwargs
):
4355 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4356 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4358 def GetSelectedItemCount(*args
, **kwargs
):
4359 """GetSelectedItemCount(self) -> int"""
4360 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4362 def GetTextColour(*args
, **kwargs
):
4363 """GetTextColour(self) -> Colour"""
4364 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4366 def SetTextColour(*args
, **kwargs
):
4367 """SetTextColour(self, Colour col)"""
4368 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4370 def GetTopItem(*args
, **kwargs
):
4371 """GetTopItem(self) -> long"""
4372 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4374 def SetSingleStyle(*args
, **kwargs
):
4375 """SetSingleStyle(self, long style, bool add=True)"""
4376 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4378 def SetWindowStyleFlag(*args
, **kwargs
):
4380 SetWindowStyleFlag(self, long style)
4382 Sets the style of the window. Please note that some styles cannot
4383 be changed after the window creation and that Refresh() might
4384 need to be called after changing the others for the change to
4385 take place immediately.
4387 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4389 def GetNextItem(*args
, **kwargs
):
4390 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4391 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4393 def GetImageList(*args
, **kwargs
):
4394 """GetImageList(self, int which) -> ImageList"""
4395 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4397 def SetImageList(*args
, **kwargs
):
4398 """SetImageList(self, ImageList imageList, int which)"""
4399 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4401 def AssignImageList(*args
, **kwargs
):
4402 """AssignImageList(self, ImageList imageList, int which)"""
4403 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4405 def InReportView(*args
, **kwargs
):
4406 """InReportView(self) -> bool"""
4407 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4409 def IsVirtual(*args
, **kwargs
):
4410 """IsVirtual(self) -> bool"""
4411 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4413 def RefreshItem(*args
, **kwargs
):
4414 """RefreshItem(self, long item)"""
4415 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4417 def RefreshItems(*args
, **kwargs
):
4418 """RefreshItems(self, long itemFrom, long itemTo)"""
4419 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4421 def Arrange(*args
, **kwargs
):
4422 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4423 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4425 def DeleteItem(*args
, **kwargs
):
4426 """DeleteItem(self, long item) -> bool"""
4427 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4429 def DeleteAllItems(*args
, **kwargs
):
4430 """DeleteAllItems(self) -> bool"""
4431 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4433 def DeleteColumn(*args
, **kwargs
):
4434 """DeleteColumn(self, int col) -> bool"""
4435 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4437 def DeleteAllColumns(*args
, **kwargs
):
4438 """DeleteAllColumns(self) -> bool"""
4439 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4441 def ClearAll(*args
, **kwargs
):
4442 """ClearAll(self)"""
4443 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4445 def EditLabel(*args
, **kwargs
):
4446 """EditLabel(self, long item)"""
4447 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4449 def EnsureVisible(*args
, **kwargs
):
4450 """EnsureVisible(self, long item) -> bool"""
4451 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4453 def FindItem(*args
, **kwargs
):
4454 """FindItem(self, long start, String str, bool partial=False) -> long"""
4455 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4457 def FindItemData(*args
, **kwargs
):
4458 """FindItemData(self, long start, long data) -> long"""
4459 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4461 def FindItemAtPos(*args
, **kwargs
):
4462 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4463 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4465 def HitTest(*args
, **kwargs
):
4467 HitTest(Point point) -> (item, where)
4469 Determines which item (if any) is at the specified point,
4470 giving details in the second return value (see wxLIST_HITTEST_... flags.)
4472 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4474 def InsertItem(*args
, **kwargs
):
4475 """InsertItem(self, ListItem info) -> long"""
4476 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4478 def InsertStringItem(*args
, **kwargs
):
4479 """InsertStringItem(self, long index, String label) -> long"""
4480 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4482 def InsertImageItem(*args
, **kwargs
):
4483 """InsertImageItem(self, long index, int imageIndex) -> long"""
4484 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4486 def InsertImageStringItem(*args
, **kwargs
):
4487 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4488 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4490 def InsertColumnInfo(*args
, **kwargs
):
4491 """InsertColumnInfo(self, long col, ListItem info) -> long"""
4492 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
4494 def InsertColumn(*args
, **kwargs
):
4496 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4497 int width=-1) -> long
4499 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4501 def SetItemCount(*args
, **kwargs
):
4502 """SetItemCount(self, long count)"""
4503 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4505 def ScrollList(*args
, **kwargs
):
4506 """ScrollList(self, int dx, int dy) -> bool"""
4507 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4509 def SetItemTextColour(*args
, **kwargs
):
4510 """SetItemTextColour(self, long item, Colour col)"""
4511 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4513 def GetItemTextColour(*args
, **kwargs
):
4514 """GetItemTextColour(self, long item) -> Colour"""
4515 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4517 def SetItemBackgroundColour(*args
, **kwargs
):
4518 """SetItemBackgroundColour(self, long item, Colour col)"""
4519 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4521 def GetItemBackgroundColour(*args
, **kwargs
):
4522 """GetItemBackgroundColour(self, long item) -> Colour"""
4523 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4527 def Select(self
, idx
, on
=1):
4528 '''[de]select an item'''
4529 if on
: state
= wx
.LIST_STATE_SELECTED
4531 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4533 def Focus(self
, idx
):
4534 '''Focus and show the given item'''
4535 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4536 self
.EnsureVisible(idx
)
4538 def GetFocusedItem(self
):
4539 '''get the currently focused item or -1 if none'''
4540 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4542 def GetFirstSelected(self
, *args
):
4543 '''return first selected item, or -1 when none'''
4544 return self
.GetNextSelected(-1)
4546 def GetNextSelected(self
, item
):
4547 '''return subsequent selected items, or -1 when no more'''
4548 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4550 def IsSelected(self
, idx
):
4551 '''return True if the item is selected'''
4552 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
4554 def SetColumnImage(self
, col
, image
):
4555 item
= self
.GetColumn(col
)
4556 # preserve all other attributes too
4557 item
.SetMask( wx
.LIST_MASK_STATE |
4559 wx
.LIST_MASK_IMAGE |
4562 wx
.LIST_MASK_WIDTH |
4563 wx
.LIST_MASK_FORMAT
)
4564 item
.SetImage(image
)
4565 self
.SetColumn(col
, item
)
4567 def ClearColumnImage(self
, col
):
4568 self
.SetColumnImage(col
, -1)
4570 def Append(self
, entry
):
4571 '''Append an item to the list control. The entry parameter should be a
4572 sequence with an item for each column'''
4578 pos
= self
.GetItemCount()
4579 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4580 for i
in range(1, len(entry
)):
4581 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4584 def SortItems(*args
, **kwargs
):
4585 """SortItems(self, PyObject func) -> bool"""
4586 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4588 def GetMainWindow(*args
, **kwargs
):
4589 """GetMainWindow(self) -> Window"""
4590 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4592 def GetClassDefaultAttributes(*args
, **kwargs
):
4594 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4596 Get the default attributes for this class. This is useful if
4597 you want to use the same font or colour in your own control as
4598 in a standard control -- which is a much better idea than hard
4599 coding specific colours or fonts which might look completely out
4600 of place on the users system, especially if it uses themes.
4602 The variant parameter is only relevant under Mac currently and is
4603 ignore under other platforms. Under Mac, it will change the size of the
4604 returned font. See SetWindowVariant for more about this.
4606 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4608 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4610 class ListCtrlPtr(ListCtrl
):
4611 def __init__(self
, this
):
4613 if not hasattr(self
,"thisown"): self
.thisown
= 0
4614 self
.__class
__ = ListCtrl
4615 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
4617 def PreListCtrl(*args
, **kwargs
):
4618 """PreListCtrl() -> ListCtrl"""
4619 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4623 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4625 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4627 Get the default attributes for this class. This is useful if
4628 you want to use the same font or colour in your own control as
4629 in a standard control -- which is a much better idea than hard
4630 coding specific colours or fonts which might look completely out
4631 of place on the users system, especially if it uses themes.
4633 The variant parameter is only relevant under Mac currently and is
4634 ignore under other platforms. Under Mac, it will change the size of the
4635 returned font. See SetWindowVariant for more about this.
4637 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4639 #---------------------------------------------------------------------------
4641 class ListView(ListCtrl
):
4643 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4644 def __init__(self
, *args
, **kwargs
):
4646 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4647 Size size=DefaultSize, long style=LC_REPORT,
4648 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4650 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
4651 self
.this
= newobj
.this
4654 self
._setOORInfo
(self
)
4656 def Create(*args
, **kwargs
):
4658 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4659 Size size=DefaultSize, long style=LC_REPORT,
4660 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4662 Do the 2nd phase and create the GUI control.
4664 return _controls_
.ListView_Create(*args
, **kwargs
)
4666 def Select(*args
, **kwargs
):
4667 """Select(self, long n, bool on=True)"""
4668 return _controls_
.ListView_Select(*args
, **kwargs
)
4670 def Focus(*args
, **kwargs
):
4671 """Focus(self, long index)"""
4672 return _controls_
.ListView_Focus(*args
, **kwargs
)
4674 def GetFocusedItem(*args
, **kwargs
):
4675 """GetFocusedItem(self) -> long"""
4676 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4678 def GetNextSelected(*args
, **kwargs
):
4679 """GetNextSelected(self, long item) -> long"""
4680 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4682 def GetFirstSelected(*args
, **kwargs
):
4683 """GetFirstSelected(self) -> long"""
4684 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4686 def IsSelected(*args
, **kwargs
):
4687 """IsSelected(self, long index) -> bool"""
4688 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4690 def SetColumnImage(*args
, **kwargs
):
4691 """SetColumnImage(self, int col, int image)"""
4692 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4694 def ClearColumnImage(*args
, **kwargs
):
4695 """ClearColumnImage(self, int col)"""
4696 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4699 class ListViewPtr(ListView
):
4700 def __init__(self
, this
):
4702 if not hasattr(self
,"thisown"): self
.thisown
= 0
4703 self
.__class
__ = ListView
4704 _controls_
.ListView_swigregister(ListViewPtr
)
4706 def PreListView(*args
, **kwargs
):
4707 """PreListView() -> ListView"""
4708 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4712 #---------------------------------------------------------------------------
4714 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4715 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4716 TR_NO_LINES
= _controls_
.TR_NO_LINES
4717 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4718 TR_SINGLE
= _controls_
.TR_SINGLE
4719 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4720 TR_EXTENDED
= _controls_
.TR_EXTENDED
4721 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4722 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4723 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4724 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4725 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4726 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4727 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4728 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
4729 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
4730 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4731 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4732 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4733 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4734 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4735 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4736 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4737 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4738 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4739 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4740 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4741 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4742 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4743 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4744 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4745 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4746 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4747 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4748 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4749 #---------------------------------------------------------------------------
4751 class TreeItemId(object):
4753 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4754 def __init__(self
, *args
, **kwargs
):
4755 """__init__(self) -> TreeItemId"""
4756 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
4757 self
.this
= newobj
.this
4760 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
4763 if self
.thisown
: destroy(self
)
4766 def IsOk(*args
, **kwargs
):
4767 """IsOk(self) -> bool"""
4768 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4770 def __eq__(*args
, **kwargs
):
4771 """__eq__(self, TreeItemId other) -> bool"""
4772 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4774 def __ne__(*args
, **kwargs
):
4775 """__ne__(self, TreeItemId other) -> bool"""
4776 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4778 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4780 def __nonzero__(self
): return self
.IsOk()
4782 class TreeItemIdPtr(TreeItemId
):
4783 def __init__(self
, this
):
4785 if not hasattr(self
,"thisown"): self
.thisown
= 0
4786 self
.__class
__ = TreeItemId
4787 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
4788 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4790 class TreeItemData(object):
4792 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4793 def __init__(self
, *args
, **kwargs
):
4794 """__init__(self, PyObject obj=None) -> TreeItemData"""
4795 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
4796 self
.this
= newobj
.this
4799 def GetData(*args
, **kwargs
):
4800 """GetData(self) -> PyObject"""
4801 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4803 def SetData(*args
, **kwargs
):
4804 """SetData(self, PyObject obj)"""
4805 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4807 def GetId(*args
, **kwargs
):
4808 """GetId(self) -> TreeItemId"""
4809 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4811 def SetId(*args
, **kwargs
):
4812 """SetId(self, TreeItemId id)"""
4813 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4815 def Destroy(*args
, **kwargs
):
4817 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4820 class TreeItemDataPtr(TreeItemData
):
4821 def __init__(self
, this
):
4823 if not hasattr(self
,"thisown"): self
.thisown
= 0
4824 self
.__class
__ = TreeItemData
4825 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
4827 #---------------------------------------------------------------------------
4829 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4830 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4831 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4832 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4833 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4834 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4835 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4836 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4837 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4838 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4839 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4840 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4841 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4842 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4843 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4844 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4845 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4846 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4847 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4848 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4849 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4850 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4851 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4852 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4853 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4854 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4855 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4856 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4857 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4858 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4859 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4860 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4861 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4862 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4863 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4864 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4865 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4866 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4867 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4868 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4870 class TreeEvent(_core
.NotifyEvent
):
4872 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4873 def __init__(self
, *args
, **kwargs
):
4874 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4875 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
4876 self
.this
= newobj
.this
4879 def GetItem(*args
, **kwargs
):
4880 """GetItem(self) -> TreeItemId"""
4881 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4883 def SetItem(*args
, **kwargs
):
4884 """SetItem(self, TreeItemId item)"""
4885 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4887 def GetOldItem(*args
, **kwargs
):
4888 """GetOldItem(self) -> TreeItemId"""
4889 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4891 def SetOldItem(*args
, **kwargs
):
4892 """SetOldItem(self, TreeItemId item)"""
4893 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4895 def GetPoint(*args
, **kwargs
):
4896 """GetPoint(self) -> Point"""
4897 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4899 def SetPoint(*args
, **kwargs
):
4900 """SetPoint(self, Point pt)"""
4901 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4903 def GetKeyEvent(*args
, **kwargs
):
4904 """GetKeyEvent(self) -> KeyEvent"""
4905 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4907 def GetKeyCode(*args
, **kwargs
):
4908 """GetKeyCode(self) -> int"""
4909 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4911 def SetKeyEvent(*args
, **kwargs
):
4912 """SetKeyEvent(self, KeyEvent evt)"""
4913 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4915 def GetLabel(*args
, **kwargs
):
4916 """GetLabel(self) -> String"""
4917 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4919 def SetLabel(*args
, **kwargs
):
4920 """SetLabel(self, String label)"""
4921 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4923 def IsEditCancelled(*args
, **kwargs
):
4924 """IsEditCancelled(self) -> bool"""
4925 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4927 def SetEditCanceled(*args
, **kwargs
):
4928 """SetEditCanceled(self, bool editCancelled)"""
4929 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4931 def SetToolTip(*args
, **kwargs
):
4932 """SetToolTip(self, String toolTip)"""
4933 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4936 class TreeEventPtr(TreeEvent
):
4937 def __init__(self
, this
):
4939 if not hasattr(self
,"thisown"): self
.thisown
= 0
4940 self
.__class
__ = TreeEvent
4941 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
4943 #---------------------------------------------------------------------------
4945 class TreeCtrl(_core
.Control
):
4947 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4948 def __init__(self
, *args
, **kwargs
):
4950 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4951 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4952 Validator validator=DefaultValidator,
4953 String name=TreeCtrlNameStr) -> TreeCtrl
4955 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
4956 self
.this
= newobj
.this
4959 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4961 def Create(*args
, **kwargs
):
4963 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4964 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4965 Validator validator=DefaultValidator,
4966 String name=TreeCtrlNameStr) -> bool
4968 Do the 2nd phase and create the GUI control.
4970 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
4972 def _setCallbackInfo(*args
, **kwargs
):
4973 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4974 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4976 def GetCount(*args
, **kwargs
):
4977 """GetCount(self) -> size_t"""
4978 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
4980 def GetIndent(*args
, **kwargs
):
4981 """GetIndent(self) -> unsigned int"""
4982 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
4984 def SetIndent(*args
, **kwargs
):
4985 """SetIndent(self, unsigned int indent)"""
4986 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
4988 def GetSpacing(*args
, **kwargs
):
4989 """GetSpacing(self) -> unsigned int"""
4990 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4992 def SetSpacing(*args
, **kwargs
):
4993 """SetSpacing(self, unsigned int spacing)"""
4994 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4996 def GetImageList(*args
, **kwargs
):
4997 """GetImageList(self) -> ImageList"""
4998 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5000 def GetStateImageList(*args
, **kwargs
):
5001 """GetStateImageList(self) -> ImageList"""
5002 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5004 def SetImageList(*args
, **kwargs
):
5005 """SetImageList(self, ImageList imageList)"""
5006 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5008 def SetStateImageList(*args
, **kwargs
):
5009 """SetStateImageList(self, ImageList imageList)"""
5010 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5012 def AssignImageList(*args
, **kwargs
):
5013 """AssignImageList(self, ImageList imageList)"""
5014 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5016 def AssignStateImageList(*args
, **kwargs
):
5017 """AssignStateImageList(self, ImageList imageList)"""
5018 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5020 def GetItemText(*args
, **kwargs
):
5021 """GetItemText(self, TreeItemId item) -> String"""
5022 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5024 def GetItemImage(*args
, **kwargs
):
5025 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5026 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5028 def GetItemData(*args
, **kwargs
):
5029 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5030 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5032 def GetItemPyData(*args
, **kwargs
):
5033 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5034 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5036 GetPyData
= GetItemPyData
5037 def GetItemTextColour(*args
, **kwargs
):
5038 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5039 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5041 def GetItemBackgroundColour(*args
, **kwargs
):
5042 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5043 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5045 def GetItemFont(*args
, **kwargs
):
5046 """GetItemFont(self, TreeItemId item) -> Font"""
5047 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5049 def SetItemText(*args
, **kwargs
):
5050 """SetItemText(self, TreeItemId item, String text)"""
5051 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5053 def SetItemImage(*args
, **kwargs
):
5054 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5055 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5057 def SetItemData(*args
, **kwargs
):
5058 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5059 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5061 def SetItemPyData(*args
, **kwargs
):
5062 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5063 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5065 SetPyData
= SetItemPyData
5066 def SetItemHasChildren(*args
, **kwargs
):
5067 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5068 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5070 def SetItemBold(*args
, **kwargs
):
5071 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5072 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5074 def SetItemTextColour(*args
, **kwargs
):
5075 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5076 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5078 def SetItemBackgroundColour(*args
, **kwargs
):
5079 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5080 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5082 def SetItemFont(*args
, **kwargs
):
5083 """SetItemFont(self, TreeItemId item, Font font)"""
5084 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5086 def IsVisible(*args
, **kwargs
):
5087 """IsVisible(self, TreeItemId item) -> bool"""
5088 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5090 def ItemHasChildren(*args
, **kwargs
):
5091 """ItemHasChildren(self, TreeItemId item) -> bool"""
5092 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5094 def IsExpanded(*args
, **kwargs
):
5095 """IsExpanded(self, TreeItemId item) -> bool"""
5096 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5098 def IsSelected(*args
, **kwargs
):
5099 """IsSelected(self, TreeItemId item) -> bool"""
5100 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5102 def IsBold(*args
, **kwargs
):
5103 """IsBold(self, TreeItemId item) -> bool"""
5104 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5106 def GetChildrenCount(*args
, **kwargs
):
5107 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5108 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5110 def GetRootItem(*args
, **kwargs
):
5111 """GetRootItem(self) -> TreeItemId"""
5112 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5114 def GetSelection(*args
, **kwargs
):
5115 """GetSelection(self) -> TreeItemId"""
5116 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5118 def GetSelections(*args
, **kwargs
):
5119 """GetSelections(self) -> PyObject"""
5120 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5122 def GetItemParent(*args
, **kwargs
):
5123 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5124 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5126 def GetFirstChild(*args
, **kwargs
):
5127 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5128 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5130 def GetNextChild(*args
, **kwargs
):
5131 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5132 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5134 def GetLastChild(*args
, **kwargs
):
5135 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5136 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5138 def GetNextSibling(*args
, **kwargs
):
5139 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5140 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5142 def GetPrevSibling(*args
, **kwargs
):
5143 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5144 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5146 def GetFirstVisibleItem(*args
, **kwargs
):
5147 """GetFirstVisibleItem(self) -> TreeItemId"""
5148 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5150 def GetNextVisible(*args
, **kwargs
):
5151 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5152 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5154 def GetPrevVisible(*args
, **kwargs
):
5155 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5156 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5158 def AddRoot(*args
, **kwargs
):
5159 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5160 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5162 def PrependItem(*args
, **kwargs
):
5164 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5165 TreeItemData data=None) -> TreeItemId
5167 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5169 def InsertItem(*args
, **kwargs
):
5171 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5172 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5174 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5176 def InsertItemBefore(*args
, **kwargs
):
5178 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5179 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5181 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5183 def AppendItem(*args
, **kwargs
):
5185 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5186 TreeItemData data=None) -> TreeItemId
5188 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5190 def Delete(*args
, **kwargs
):
5191 """Delete(self, TreeItemId item)"""
5192 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5194 def DeleteChildren(*args
, **kwargs
):
5195 """DeleteChildren(self, TreeItemId item)"""
5196 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5198 def DeleteAllItems(*args
, **kwargs
):
5199 """DeleteAllItems(self)"""
5200 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5202 def Expand(*args
, **kwargs
):
5203 """Expand(self, TreeItemId item)"""
5204 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5206 def Collapse(*args
, **kwargs
):
5207 """Collapse(self, TreeItemId item)"""
5208 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5210 def CollapseAndReset(*args
, **kwargs
):
5211 """CollapseAndReset(self, TreeItemId item)"""
5212 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5214 def Toggle(*args
, **kwargs
):
5215 """Toggle(self, TreeItemId item)"""
5216 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5218 def Unselect(*args
, **kwargs
):
5219 """Unselect(self)"""
5220 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5222 def UnselectItem(*args
, **kwargs
):
5223 """UnselectItem(self, TreeItemId item)"""
5224 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5226 def UnselectAll(*args
, **kwargs
):
5227 """UnselectAll(self)"""
5228 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5230 def SelectItem(*args
, **kwargs
):
5231 """SelectItem(self, TreeItemId item, bool select=True)"""
5232 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5234 def ToggleItemSelection(*args
, **kwargs
):
5235 """ToggleItemSelection(self, TreeItemId item)"""
5236 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5238 def EnsureVisible(*args
, **kwargs
):
5239 """EnsureVisible(self, TreeItemId item)"""
5240 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5242 def ScrollTo(*args
, **kwargs
):
5243 """ScrollTo(self, TreeItemId item)"""
5244 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5246 def EditLabel(*args
, **kwargs
):
5247 """EditLabel(self, TreeItemId item)"""
5248 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5250 def GetEditControl(*args
, **kwargs
):
5251 """GetEditControl(self) -> TextCtrl"""
5252 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5254 def SortChildren(*args
, **kwargs
):
5255 """SortChildren(self, TreeItemId item)"""
5256 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5258 def HitTest(*args
, **kwargs
):
5260 HitTest(Point point) -> (item, where)
5262 Determine which item (if any) belongs the given point. The
5263 coordinates specified are relative to the client area of tree ctrl
5264 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
5268 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5270 def GetBoundingRect(*args
, **kwargs
):
5271 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5272 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5274 def GetClassDefaultAttributes(*args
, **kwargs
):
5276 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5278 Get the default attributes for this class. This is useful if
5279 you want to use the same font or colour in your own control as
5280 in a standard control -- which is a much better idea than hard
5281 coding specific colours or fonts which might look completely out
5282 of place on the users system, especially if it uses themes.
5284 The variant parameter is only relevant under Mac currently and is
5285 ignore under other platforms. Under Mac, it will change the size of the
5286 returned font. See SetWindowVariant for more about this.
5288 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5290 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5292 class TreeCtrlPtr(TreeCtrl
):
5293 def __init__(self
, this
):
5295 if not hasattr(self
,"thisown"): self
.thisown
= 0
5296 self
.__class
__ = TreeCtrl
5297 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5299 def PreTreeCtrl(*args
, **kwargs
):
5300 """PreTreeCtrl() -> TreeCtrl"""
5301 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5305 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5307 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5309 Get the default attributes for this class. This is useful if
5310 you want to use the same font or colour in your own control as
5311 in a standard control -- which is a much better idea than hard
5312 coding specific colours or fonts which might look completely out
5313 of place on the users system, especially if it uses themes.
5315 The variant parameter is only relevant under Mac currently and is
5316 ignore under other platforms. Under Mac, it will change the size of the
5317 returned font. See SetWindowVariant for more about this.
5319 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5321 #---------------------------------------------------------------------------
5323 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5324 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5325 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5326 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5327 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5328 class GenericDirCtrl(_core
.Control
):
5330 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5331 def __init__(self
, *args
, **kwargs
):
5333 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5334 Point pos=DefaultPosition, Size size=DefaultSize,
5335 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5336 String filter=EmptyString,
5337 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5339 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5340 self
.this
= newobj
.this
5343 self
._setOORInfo
(self
)
5345 def Create(*args
, **kwargs
):
5347 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5348 Point pos=DefaultPosition, Size size=DefaultSize,
5349 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5350 String filter=EmptyString,
5351 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5353 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5355 def ExpandPath(*args
, **kwargs
):
5356 """ExpandPath(self, String path) -> bool"""
5357 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5359 def GetDefaultPath(*args
, **kwargs
):
5360 """GetDefaultPath(self) -> String"""
5361 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5363 def SetDefaultPath(*args
, **kwargs
):
5364 """SetDefaultPath(self, String path)"""
5365 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5367 def GetPath(*args
, **kwargs
):
5368 """GetPath(self) -> String"""
5369 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5371 def GetFilePath(*args
, **kwargs
):
5372 """GetFilePath(self) -> String"""
5373 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5375 def SetPath(*args
, **kwargs
):
5376 """SetPath(self, String path)"""
5377 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5379 def ShowHidden(*args
, **kwargs
):
5380 """ShowHidden(self, bool show)"""
5381 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5383 def GetShowHidden(*args
, **kwargs
):
5384 """GetShowHidden(self) -> bool"""
5385 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5387 def GetFilter(*args
, **kwargs
):
5388 """GetFilter(self) -> String"""
5389 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5391 def SetFilter(*args
, **kwargs
):
5392 """SetFilter(self, String filter)"""
5393 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5395 def GetFilterIndex(*args
, **kwargs
):
5396 """GetFilterIndex(self) -> int"""
5397 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5399 def SetFilterIndex(*args
, **kwargs
):
5400 """SetFilterIndex(self, int n)"""
5401 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5403 def GetRootId(*args
, **kwargs
):
5404 """GetRootId(self) -> TreeItemId"""
5405 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5407 def GetTreeCtrl(*args
, **kwargs
):
5408 """GetTreeCtrl(self) -> TreeCtrl"""
5409 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5411 def GetFilterListCtrl(*args
, **kwargs
):
5412 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5413 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5415 def FindChild(*args
, **kwargs
):
5417 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5419 Find the child that matches the first part of 'path'. E.g. if a child path is
5420 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
5421 If the path string has been used (we're at the leaf), done is set to True
5424 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5426 def DoResize(*args
, **kwargs
):
5427 """DoResize(self)"""
5428 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5430 def ReCreateTree(*args
, **kwargs
):
5431 """ReCreateTree(self)"""
5432 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5435 class GenericDirCtrlPtr(GenericDirCtrl
):
5436 def __init__(self
, this
):
5438 if not hasattr(self
,"thisown"): self
.thisown
= 0
5439 self
.__class
__ = GenericDirCtrl
5440 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5441 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5443 def PreGenericDirCtrl(*args
, **kwargs
):
5444 """PreGenericDirCtrl() -> GenericDirCtrl"""
5445 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5449 class DirFilterListCtrl(Choice
):
5451 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5452 def __init__(self
, *args
, **kwargs
):
5454 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5455 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5457 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5458 self
.this
= newobj
.this
5461 self
._setOORInfo
(self
)
5463 def Create(*args
, **kwargs
):
5465 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5466 Size size=DefaultSize, long style=0) -> bool
5468 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5470 def FillFilterList(*args
, **kwargs
):
5471 """FillFilterList(self, String filter, int defaultFilter)"""
5472 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5475 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5476 def __init__(self
, this
):
5478 if not hasattr(self
,"thisown"): self
.thisown
= 0
5479 self
.__class
__ = DirFilterListCtrl
5480 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5482 def PreDirFilterListCtrl(*args
, **kwargs
):
5483 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5484 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5488 #---------------------------------------------------------------------------
5490 class PyControl(_core
.Control
):
5492 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5493 def __init__(self
, *args
, **kwargs
):
5495 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
5496 long style=0, Validator validator=DefaultValidator,
5497 String name=ControlNameStr) -> PyControl
5499 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5500 self
.this
= newobj
.this
5503 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5505 def _setCallbackInfo(*args
, **kwargs
):
5506 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5507 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5509 def base_DoMoveWindow(*args
, **kwargs
):
5510 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
5511 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
5513 def base_DoSetSize(*args
, **kwargs
):
5514 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5515 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
5517 def base_DoSetClientSize(*args
, **kwargs
):
5518 """base_DoSetClientSize(self, int width, int height)"""
5519 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
5521 def base_DoSetVirtualSize(*args
, **kwargs
):
5522 """base_DoSetVirtualSize(self, int x, int y)"""
5523 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
5525 def base_DoGetSize(*args
, **kwargs
):
5526 """base_DoGetSize() -> (width, height)"""
5527 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
5529 def base_DoGetClientSize(*args
, **kwargs
):
5530 """base_DoGetClientSize() -> (width, height)"""
5531 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
5533 def base_DoGetPosition(*args
, **kwargs
):
5534 """base_DoGetPosition() -> (x,y)"""
5535 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
5537 def base_DoGetVirtualSize(*args
, **kwargs
):
5538 """base_DoGetVirtualSize(self) -> Size"""
5539 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
5541 def base_DoGetBestSize(*args
, **kwargs
):
5542 """base_DoGetBestSize(self) -> Size"""
5543 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
5545 def base_InitDialog(*args
, **kwargs
):
5546 """base_InitDialog(self)"""
5547 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
5549 def base_TransferDataToWindow(*args
, **kwargs
):
5550 """base_TransferDataToWindow(self) -> bool"""
5551 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
5553 def base_TransferDataFromWindow(*args
, **kwargs
):
5554 """base_TransferDataFromWindow(self) -> bool"""
5555 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
5557 def base_Validate(*args
, **kwargs
):
5558 """base_Validate(self) -> bool"""
5559 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
5561 def base_AcceptsFocus(*args
, **kwargs
):
5562 """base_AcceptsFocus(self) -> bool"""
5563 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
5565 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
5566 """base_AcceptsFocusFromKeyboard(self) -> bool"""
5567 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
5569 def base_GetMaxSize(*args
, **kwargs
):
5570 """base_GetMaxSize(self) -> Size"""
5571 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
5573 def base_AddChild(*args
, **kwargs
):
5574 """base_AddChild(self, Window child)"""
5575 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
5577 def base_RemoveChild(*args
, **kwargs
):
5578 """base_RemoveChild(self, Window child)"""
5579 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
5581 def base_ShouldInheritColours(*args
, **kwargs
):
5582 """base_ShouldInheritColours(self) -> bool"""
5583 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
5585 def base_ApplyParentThemeBackground(*args
, **kwargs
):
5586 """base_ApplyParentThemeBackground(self, Colour c)"""
5587 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
5590 class PyControlPtr(PyControl
):
5591 def __init__(self
, this
):
5593 if not hasattr(self
,"thisown"): self
.thisown
= 0
5594 self
.__class
__ = PyControl
5595 _controls_
.PyControl_swigregister(PyControlPtr
)
5597 def PrePyControl(*args
, **kwargs
):
5598 """PrePyControl() -> PyControl"""
5599 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5603 #---------------------------------------------------------------------------
5605 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5606 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5607 wxEVT_HELP
= _controls_
.wxEVT_HELP
5608 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5609 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5610 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5611 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5612 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5614 class HelpEvent(_core
.CommandEvent
):
5616 A help event is sent when the user has requested
5617 context-sensitive help. This can either be caused by the
5618 application requesting context-sensitive help mode via
5619 wx.ContextHelp, or (on MS Windows) by the system generating a
5620 WM_HELP message when the user pressed F1 or clicked on the query
5621 button in a dialog caption.
5623 A help event is sent to the window that the user clicked on, and
5624 is propagated up the window hierarchy until the event is
5625 processed or there are no more event handlers. The application
5626 should call event.GetId to check the identity of the clicked-on
5627 window, and then either show some suitable help or call
5628 event.Skip if the identifier is unrecognised. Calling Skip is
5629 important because it allows wxWindows to generate further events
5630 for ancestors of the clicked-on window. Otherwise it would be
5631 impossible to show help for container windows, since processing
5632 would stop after the first window found.
5635 EVT_HELP Sent when the user has requested context-
5637 EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs
5641 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5642 def __init__(self
, *args
, **kwargs
):
5643 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5644 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
5645 self
.this
= newobj
.this
5648 def GetPosition(*args
, **kwargs
):
5650 GetPosition(self) -> Point
5652 Returns the left-click position of the mouse, in screen
5653 coordinates. This allows the application to position the help
5656 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5658 def SetPosition(*args
, **kwargs
):
5660 SetPosition(self, Point pos)
5662 Sets the left-click position of the mouse, in screen coordinates.
5664 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5666 def GetLink(*args
, **kwargs
):
5668 GetLink(self) -> String
5670 Get an optional link to further help
5672 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5674 def SetLink(*args
, **kwargs
):
5676 SetLink(self, String link)
5678 Set an optional link to further help
5680 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5682 def GetTarget(*args
, **kwargs
):
5684 GetTarget(self) -> String
5686 Get an optional target to display help in. E.g. a window specification
5688 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5690 def SetTarget(*args
, **kwargs
):
5692 SetTarget(self, String target)
5694 Set an optional target to display help in. E.g. a window specification
5696 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5699 class HelpEventPtr(HelpEvent
):
5700 def __init__(self
, this
):
5702 if not hasattr(self
,"thisown"): self
.thisown
= 0
5703 self
.__class
__ = HelpEvent
5704 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
5706 class ContextHelp(_core
.Object
):
5708 This class changes the cursor to a query and puts the application
5709 into a 'context-sensitive help mode'. When the user left-clicks
5710 on a window within the specified window, a EVT_HELP event is sent
5711 to that control, and the application may respond to it by popping
5714 There are a couple of ways to invoke this behaviour implicitly:
5716 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a
5717 dialog (Windows only). This will put a question mark in the
5718 titlebar, and Windows will put the application into
5719 context-sensitive help mode automatically, with further
5722 * Create a wx.ContextHelpButton, whose predefined behaviour
5723 is to create a context help object. Normally you will write
5724 your application so that this button is only added to a
5725 dialog for non-Windows platforms (use
5726 wx.DIALOG_EX_CONTEXTHELP on Windows).
5730 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5731 def __init__(self
, *args
, **kwargs
):
5733 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5735 Constructs a context help object, calling BeginContextHelp if
5736 doNow is true (the default).
5738 If window is None, the top window is used.
5740 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
5741 self
.this
= newobj
.this
5744 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
5747 if self
.thisown
: destroy(self
)
5750 def BeginContextHelp(*args
, **kwargs
):
5752 BeginContextHelp(self, Window window=None) -> bool
5754 Puts the application into context-sensitive help mode. window is
5755 the window which will be used to catch events; if NULL, the top
5756 window will be used.
5758 Returns true if the application was successfully put into
5759 context-sensitive help mode. This function only returns when the
5760 event loop has finished.
5762 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5764 def EndContextHelp(*args
, **kwargs
):
5766 EndContextHelp(self) -> bool
5768 Ends context-sensitive help mode. Not normally called by the
5771 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5774 class ContextHelpPtr(ContextHelp
):
5775 def __init__(self
, this
):
5777 if not hasattr(self
,"thisown"): self
.thisown
= 0
5778 self
.__class
__ = ContextHelp
5779 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
5781 class ContextHelpButton(BitmapButton
):
5783 Instances of this class may be used to add a question mark button
5784 that when pressed, puts the application into context-help
5785 mode. It does this by creating a wx.ContextHelp object which
5786 itself generates a EVT_HELP event when the user clicks on a
5789 On Windows, you may add a question-mark icon to a dialog by use
5790 of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other
5791 platforms you will have to add a button explicitly, usually next
5792 to OK, Cancel or similar buttons.
5796 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5797 def __init__(self
, *args
, **kwargs
):
5799 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5800 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5802 Constructor, creating and showing a context help button.
5804 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
5805 self
.this
= newobj
.this
5808 self
._setOORInfo
(self
)
5811 class ContextHelpButtonPtr(ContextHelpButton
):
5812 def __init__(self
, this
):
5814 if not hasattr(self
,"thisown"): self
.thisown
= 0
5815 self
.__class
__ = ContextHelpButton
5816 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5818 class HelpProvider(object):
5820 wx.HelpProvider is an abstract class used by a program
5821 implementing context-sensitive help to show the help text for the
5824 The current help provider must be explicitly set by the
5825 application using wx.HelpProvider.Set().
5827 def __init__(self
): raise RuntimeError, "No constructor defined"
5829 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5830 def Set(*args
, **kwargs
):
5832 Set(HelpProvider helpProvider) -> HelpProvider
5834 Sset the current, application-wide help provider. Returns the
5835 previous one. Unlike some other classes, the help provider is
5836 not created on demand. This must be explicitly done by the
5839 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5841 Set
= staticmethod(Set
)
5842 def Get(*args
, **kwargs
):
5844 Get() -> HelpProvider
5846 Return the current application-wide help provider.
5848 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5850 Get
= staticmethod(Get
)
5851 def GetHelp(*args
, **kwargs
):
5853 GetHelp(self, Window window) -> String
5855 Gets the help string for this window. Its interpretation is
5856 dependent on the help provider except that empty string always
5857 means that no help is associated with the window.
5859 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5861 def ShowHelp(*args
, **kwargs
):
5863 ShowHelp(self, Window window) -> bool
5865 Shows help for the given window. Uses GetHelp internally if
5868 Returns true if it was done, or false if no help was available
5871 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5873 def AddHelp(*args
, **kwargs
):
5875 AddHelp(self, Window window, String text)
5877 Associates the text with the given window.
5879 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5881 def AddHelpById(*args
, **kwargs
):
5883 AddHelpById(self, int id, String text)
5885 This version associates the given text with all windows with this
5886 id. May be used to set the same help string for all Cancel
5887 buttons in the application, for example.
5889 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5891 def RemoveHelp(*args
, **kwargs
):
5893 RemoveHelp(self, Window window)
5895 Removes the association between the window pointer and the help
5896 text. This is called by the wx.Window destructor. Without this,
5897 the table of help strings will fill up and when window pointers
5898 are reused, the wrong help string will be found.
5900 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5902 def Destroy(*args
, **kwargs
):
5904 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5907 class HelpProviderPtr(HelpProvider
):
5908 def __init__(self
, this
):
5910 if not hasattr(self
,"thisown"): self
.thisown
= 0
5911 self
.__class
__ = HelpProvider
5912 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
5914 def HelpProvider_Set(*args
, **kwargs
):
5916 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5918 Sset the current, application-wide help provider. Returns the
5919 previous one. Unlike some other classes, the help provider is
5920 not created on demand. This must be explicitly done by the
5923 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5925 def HelpProvider_Get(*args
, **kwargs
):
5927 HelpProvider_Get() -> HelpProvider
5929 Return the current application-wide help provider.
5931 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5933 class SimpleHelpProvider(HelpProvider
):
5935 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5936 which supports only plain text help strings, and shows the string
5937 associated with the control (if any) in a tooltip.
5940 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5941 def __init__(self
, *args
, **kwargs
):
5943 __init__(self) -> SimpleHelpProvider
5945 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5946 which supports only plain text help strings, and shows the string
5947 associated with the control (if any) in a tooltip.
5949 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
5950 self
.this
= newobj
.this
5954 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5955 def __init__(self
, this
):
5957 if not hasattr(self
,"thisown"): self
.thisown
= 0
5958 self
.__class
__ = SimpleHelpProvider
5959 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5961 #---------------------------------------------------------------------------
5963 class DragImage(_core
.Object
):
5965 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5966 def __init__(self
, *args
, **kwargs
):
5967 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5968 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
5969 self
.this
= newobj
.this
5972 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
5975 if self
.thisown
: destroy(self
)
5978 def SetBackingBitmap(*args
, **kwargs
):
5979 """SetBackingBitmap(self, Bitmap bitmap)"""
5980 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5982 def BeginDrag(*args
, **kwargs
):
5984 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
5985 Rect rect=None) -> bool
5987 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
5989 def BeginDragBounded(*args
, **kwargs
):
5990 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
5991 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
5993 def EndDrag(*args
, **kwargs
):
5994 """EndDrag(self) -> bool"""
5995 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
5997 def Move(*args
, **kwargs
):
5998 """Move(self, Point pt) -> bool"""
5999 return _controls_
.DragImage_Move(*args
, **kwargs
)
6001 def Show(*args
, **kwargs
):
6002 """Show(self) -> bool"""
6003 return _controls_
.DragImage_Show(*args
, **kwargs
)
6005 def Hide(*args
, **kwargs
):
6006 """Hide(self) -> bool"""
6007 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6009 def GetImageRect(*args
, **kwargs
):
6010 """GetImageRect(self, Point pos) -> Rect"""
6011 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6013 def DoDrawImage(*args
, **kwargs
):
6014 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6015 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6017 def UpdateBackingFromWindow(*args
, **kwargs
):
6018 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6019 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6021 def RedrawImage(*args
, **kwargs
):
6022 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6023 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6026 class DragImagePtr(DragImage
):
6027 def __init__(self
, this
):
6029 if not hasattr(self
,"thisown"): self
.thisown
= 0
6030 self
.__class
__ = DragImage
6031 _controls_
.DragImage_swigregister(DragImagePtr
)
6033 def DragIcon(*args
, **kwargs
):
6034 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6035 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6039 def DragString(*args
, **kwargs
):
6040 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6041 val
= _controls_
.new_DragString(*args
, **kwargs
)
6045 def DragTreeItem(*args
, **kwargs
):
6046 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6047 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6051 def DragListItem(*args
, **kwargs
):
6052 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6053 val
= _controls_
.new_DragListItem(*args
, **kwargs
)