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
)
89 class ButtonPtr(Button
):
90 def __init__(self
, this
):
92 if not hasattr(self
,"thisown"): self
.thisown
= 0
93 self
.__class
__ = Button
94 _controls_
.Button_swigregister(ButtonPtr
)
95 cvar
= _controls_
.cvar
96 ButtonNameStr
= cvar
.ButtonNameStr
98 def PreButton(*args
, **kwargs
):
100 PreButton() -> Button
102 Precreate a Button for 2-phase creation.
104 val
= _controls_
.new_PreButton(*args
, **kwargs
)
108 def Button_GetDefaultSize(*args
, **kwargs
):
110 Button_GetDefaultSize() -> Size
112 Returns the default button size for this platform.
114 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
116 class BitmapButton(Button
):
118 A Button that contains a bitmap. A bitmap button can be supplied with a
119 single bitmap, and wxWidgets will draw all button states using this bitmap. If
120 the application needs more control, additional bitmaps for the selected state,
121 unpressed focused state, and greyed-out state may be supplied.
125 ============== =============================================
126 wx.BU_AUTODRAW If this is specified, the button will be drawn
127 automatically using the label bitmap only,
128 providing a 3D-look border. If this style is
129 not specified, the button will be drawn
130 without borders and using all provided
132 wx.BU_LEFT Left-justifies the label. WIN32 only.
133 wx.BU_TOP Aligns the label to the top of the button. WIN32
135 wx.BU_RIGHT Right-justifies the bitmap label. WIN32 only.
136 wx.BU_BOTTOM Aligns the label to the bottom of the
138 wx.BU_EXACTFIT Creates the button as small as possible
139 instead of making it of the standard size
140 (which is the default behaviour.)
141 ============== =============================================
145 =========== ==================================
146 EVT_BUTTON Sent when the button is clicked.
147 =========== ==================================
149 :see: `wx.Button`, `wx.Bitmap`
153 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
154 def __init__(self
, *args
, **kwargs
):
156 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
157 Size size=DefaultSize, long style=BU_AUTODRAW,
158 Validator validator=DefaultValidator,
159 String name=ButtonNameStr) -> BitmapButton
161 Create and show a button with a bitmap for the label.
163 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
164 self
.this
= newobj
.this
167 self
._setOORInfo
(self
)
169 def Create(*args
, **kwargs
):
171 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
172 Size size=DefaultSize, long style=BU_AUTODRAW,
173 Validator validator=DefaultValidator,
174 String name=ButtonNameStr) -> bool
176 Acutally create the GUI BitmapButton for 2-phase creation.
178 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
180 def GetBitmapLabel(*args
, **kwargs
):
182 GetBitmapLabel(self) -> Bitmap
184 Returns the label bitmap (the one passed to the constructor).
186 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
188 def GetBitmapDisabled(*args
, **kwargs
):
190 GetBitmapDisabled(self) -> Bitmap
192 Returns the bitmap for the disabled state.
194 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
196 def GetBitmapFocus(*args
, **kwargs
):
198 GetBitmapFocus(self) -> Bitmap
200 Returns the bitmap for the focused state.
202 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
204 def GetBitmapSelected(*args
, **kwargs
):
206 GetBitmapSelected(self) -> Bitmap
208 Returns the bitmap for the selected state.
210 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
212 def SetBitmapDisabled(*args
, **kwargs
):
214 SetBitmapDisabled(self, Bitmap bitmap)
216 Sets the bitmap for the disabled button appearance.
218 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
220 def SetBitmapFocus(*args
, **kwargs
):
222 SetBitmapFocus(self, Bitmap bitmap)
224 Sets the bitmap for the button appearance when it has the keyboard focus.
226 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
228 def SetBitmapSelected(*args
, **kwargs
):
230 SetBitmapSelected(self, Bitmap bitmap)
232 Sets the bitmap for the selected (depressed) button appearance.
234 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
236 def SetBitmapLabel(*args
, **kwargs
):
238 SetBitmapLabel(self, Bitmap bitmap)
240 Sets the bitmap label for the button. This is the bitmap used for the
241 unselected state, and for all other states if no other bitmaps are provided.
243 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
245 def SetMargins(*args
, **kwargs
):
246 """SetMargins(self, int x, int y)"""
247 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
249 def GetMarginX(*args
, **kwargs
):
250 """GetMarginX(self) -> int"""
251 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
253 def GetMarginY(*args
, **kwargs
):
254 """GetMarginY(self) -> int"""
255 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
258 class BitmapButtonPtr(BitmapButton
):
259 def __init__(self
, this
):
261 if not hasattr(self
,"thisown"): self
.thisown
= 0
262 self
.__class
__ = BitmapButton
263 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
265 def PreBitmapButton(*args
, **kwargs
):
267 PreBitmapButton() -> BitmapButton
269 Precreate a BitmapButton for 2-phase creation.
271 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
275 #---------------------------------------------------------------------------
277 CHK_2STATE
= _controls_
.CHK_2STATE
278 CHK_3STATE
= _controls_
.CHK_3STATE
279 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
280 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
281 CHK_CHECKED
= _controls_
.CHK_CHECKED
282 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
283 class CheckBox(_core
.Control
):
285 A checkbox is a labelled box which by default is either on (the
286 checkmark is visible) or off (no checkmark). Optionally (When the
287 wx.CHK_3STATE style flag is set) it can have a third state, called the
288 mixed or undetermined state. Often this is used as a "Does Not
293 ================================= ===============================
294 wx.CHK_2STATE Create a 2-state checkbox.
296 wx.CHK_3STATE Create a 3-state checkbox.
297 wx.CHK_ALLOW_3RD_STATE_FOR_USER By default a user can't set a
298 3-state checkbox to the
299 third state. It can only be
300 done from code. Using this
301 flags allows the user to set
302 the checkbox to the third
304 wx.ALIGN_RIGHT Makes the
305 text appear on the left of
307 ================================= ===============================
311 =============================== ===============================
312 EVT_CHECKBOX Sent when checkbox is clicked.
313 =============================== ===============================
317 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
318 def __init__(self
, *args
, **kwargs
):
320 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
321 Size size=DefaultSize, long style=0,
322 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox
324 Creates and shows a CheckBox control
326 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
327 self
.this
= newobj
.this
330 self
._setOORInfo
(self
)
332 def Create(*args
, **kwargs
):
334 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
335 Size size=DefaultSize, long style=0,
336 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool
338 Actually create the GUI CheckBox for 2-phase creation.
340 return _controls_
.CheckBox_Create(*args
, **kwargs
)
342 def GetValue(*args
, **kwargs
):
344 GetValue(self) -> bool
346 Gets the state of a 2-state CheckBox. Returns True if it is checked,
349 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
351 def IsChecked(*args
, **kwargs
):
353 IsChecked(self) -> bool
355 Similar to GetValue, but raises an exception if it is not a 2-state
358 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
360 def SetValue(*args
, **kwargs
):
362 SetValue(self, bool state)
364 Set the state of a 2-state CheckBox. Pass True for checked, False for
367 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
369 def Get3StateValue(*args
, **kwargs
):
371 Get3StateValue(self) -> int
373 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
374 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
375 the undetermined state. Raises an exceptiion when the function is
376 used with a 2-state CheckBox.
378 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
380 def Set3StateValue(*args
, **kwargs
):
382 Set3StateValue(self, int state)
384 Sets the CheckBox to the given state. The state parameter can be one
385 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
386 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
387 exception when the CheckBox is a 2-state checkbox and setting the
388 state to wx.CHK_UNDETERMINED.
390 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
392 def Is3State(*args
, **kwargs
):
394 Is3State(self) -> bool
396 Returns whether or not the CheckBox is a 3-state CheckBox.
398 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
400 def Is3rdStateAllowedForUser(*args
, **kwargs
):
402 Is3rdStateAllowedForUser(self) -> bool
404 Returns whether or not the user can set the CheckBox to the third
407 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
410 class CheckBoxPtr(CheckBox
):
411 def __init__(self
, this
):
413 if not hasattr(self
,"thisown"): self
.thisown
= 0
414 self
.__class
__ = CheckBox
415 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
416 CheckBoxNameStr
= cvar
.CheckBoxNameStr
418 def PreCheckBox(*args
, **kwargs
):
420 PreCheckBox() -> CheckBox
422 Precreate a CheckBox for 2-phase creation.
424 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
428 #---------------------------------------------------------------------------
430 class Choice(_core
.ControlWithItems
):
432 A Choice control is used to select one of a list of strings.
433 Unlike a `wx.ListBox`, only the selection is visible until the
434 user pulls down the menu of choices.
438 ================ ==========================================
439 EVT_CHOICE Sent when an item in the list is selected.
440 ================ ==========================================
444 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
445 def __init__(self
, *args
, **kwargs
):
447 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
448 List choices=[], long style=0, Validator validator=DefaultValidator,
449 String name=ChoiceNameStr) -> Choice
451 Create and show a Choice control
453 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
454 self
.this
= newobj
.this
457 self
._setOORInfo
(self
)
459 def Create(*args
, **kwargs
):
461 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
462 List choices=[], long style=0, Validator validator=DefaultValidator,
463 String name=ChoiceNameStr) -> bool
465 Actually create the GUI Choice control for 2-phase creation
467 return _controls_
.Choice_Create(*args
, **kwargs
)
469 def SetSelection(*args
, **kwargs
):
471 SetSelection(self, int n)
473 Select the n'th item (zero based) in the list.
475 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
477 def SetStringSelection(*args
, **kwargs
):
479 SetStringSelection(self, String string) -> bool
481 Select the item with the specifed string
483 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
485 def SetString(*args
, **kwargs
):
487 SetString(self, int n, String string)
489 Set the label for the n'th item (zero based) in the list.
491 return _controls_
.Choice_SetString(*args
, **kwargs
)
493 Select
= SetSelection
495 class ChoicePtr(Choice
):
496 def __init__(self
, this
):
498 if not hasattr(self
,"thisown"): self
.thisown
= 0
499 self
.__class
__ = Choice
500 _controls_
.Choice_swigregister(ChoicePtr
)
501 ChoiceNameStr
= cvar
.ChoiceNameStr
503 def PreChoice(*args
, **kwargs
):
505 PreChoice() -> Choice
507 Precreate a Choice control for 2-phase creation.
509 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
513 #---------------------------------------------------------------------------
515 class ComboBox(_core
.Control
,_core
.ItemContainer
):
517 A combobox is like a combination of an edit control and a listbox. It can be
518 displayed as static list with editable or read-only text field; or a drop-down
519 list with text field.
522 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
523 def __init__(self
, *args
, **kwargs
):
525 __init__(Window parent, int id, String value=EmptyString,
526 Point pos=DefaultPosition, Size size=DefaultSize,
527 List choices=[], long style=0, Validator validator=DefaultValidator,
528 String name=ComboBoxNameStr) -> ComboBox
530 Constructor, creates and shows a ComboBox control.
532 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
533 self
.this
= newobj
.this
536 self
._setOORInfo
(self
)
538 def Create(*args
, **kwargs
):
540 Create(Window parent, int id, String value=EmptyString,
541 Point pos=DefaultPosition, Size size=DefaultSize,
542 List choices=[], long style=0, Validator validator=DefaultValidator,
543 String name=ChoiceNameStr) -> bool
545 Actually create the GUI wxComboBox control for 2-phase creation
547 return _controls_
.ComboBox_Create(*args
, **kwargs
)
549 def GetValue(*args
, **kwargs
):
551 GetValue(self) -> String
553 Returns the current value in the combobox text field.
555 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
557 def SetValue(*args
, **kwargs
):
558 """SetValue(self, String value)"""
559 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
561 def Copy(*args
, **kwargs
):
565 Copies the selected text to the clipboard.
567 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
569 def Cut(*args
, **kwargs
):
573 Copies the selected text to the clipboard and removes the selection.
575 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
577 def Paste(*args
, **kwargs
):
581 Pastes text from the clipboard to the text field.
583 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
585 def SetInsertionPoint(*args
, **kwargs
):
587 SetInsertionPoint(self, long pos)
589 Sets the insertion point in the combobox text field.
591 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
593 def GetInsertionPoint(*args
, **kwargs
):
595 GetInsertionPoint(self) -> long
597 Returns the insertion point for the combobox's text field.
599 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
601 def GetLastPosition(*args
, **kwargs
):
603 GetLastPosition(self) -> long
605 Returns the last position in the combobox text field.
607 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
609 def Replace(*args
, **kwargs
):
611 Replace(self, long from, long to, String value)
613 Replaces the text between two positions with the given text, in the
616 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
618 def SetSelection(*args
, **kwargs
):
620 SetSelection(self, int n)
622 Sets the item at index 'n' to be the selected item.
624 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
626 def SetMark(*args
, **kwargs
):
628 SetMark(self, long from, long to)
630 Selects the text between the two positions in the combobox text field.
632 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
634 def SetStringSelection(*args
, **kwargs
):
636 SetStringSelection(self, String string) -> bool
638 Select the item with the specifed string
640 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
642 def SetString(*args
, **kwargs
):
644 SetString(self, int n, String string)
646 Set the label for the n'th item (zero based) in the list.
648 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
650 def SetEditable(*args
, **kwargs
):
651 """SetEditable(self, bool editable)"""
652 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
654 def SetInsertionPointEnd(*args
, **kwargs
):
656 SetInsertionPointEnd(self)
658 Sets the insertion point at the end of the combobox text field.
660 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
662 def Remove(*args
, **kwargs
):
664 Remove(self, long from, long to)
666 Removes the text between the two positions in the combobox text field.
668 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
671 class ComboBoxPtr(ComboBox
):
672 def __init__(self
, this
):
674 if not hasattr(self
,"thisown"): self
.thisown
= 0
675 self
.__class
__ = ComboBox
676 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
677 ComboBoxNameStr
= cvar
.ComboBoxNameStr
679 def PreComboBox(*args
, **kwargs
):
681 PreComboBox() -> ComboBox
683 Precreate a ComboBox control for 2-phase creation.
685 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
689 #---------------------------------------------------------------------------
691 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
692 GA_VERTICAL
= _controls_
.GA_VERTICAL
693 GA_SMOOTH
= _controls_
.GA_SMOOTH
694 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
695 class Gauge(_core
.Control
):
697 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
698 def __init__(self
, *args
, **kwargs
):
700 __init__(self, Window parent, int id, int range, Point pos=DefaultPosition,
701 Size size=DefaultSize, long style=GA_HORIZONTAL,
702 Validator validator=DefaultValidator,
703 String name=GaugeNameStr) -> Gauge
705 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
706 self
.this
= newobj
.this
709 self
._setOORInfo
(self
)
711 def Create(*args
, **kwargs
):
713 Create(self, Window parent, int id, int range, Point pos=DefaultPosition,
714 Size size=DefaultSize, long style=GA_HORIZONTAL,
715 Validator validator=DefaultValidator,
716 String name=GaugeNameStr) -> bool
718 return _controls_
.Gauge_Create(*args
, **kwargs
)
720 def SetRange(*args
, **kwargs
):
721 """SetRange(self, int range)"""
722 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
724 def GetRange(*args
, **kwargs
):
725 """GetRange(self) -> int"""
726 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
728 def SetValue(*args
, **kwargs
):
729 """SetValue(self, int pos)"""
730 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
732 def GetValue(*args
, **kwargs
):
733 """GetValue(self) -> int"""
734 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
736 def IsVertical(*args
, **kwargs
):
737 """IsVertical(self) -> bool"""
738 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
740 def SetShadowWidth(*args
, **kwargs
):
741 """SetShadowWidth(self, int w)"""
742 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
744 def GetShadowWidth(*args
, **kwargs
):
745 """GetShadowWidth(self) -> int"""
746 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
748 def SetBezelFace(*args
, **kwargs
):
749 """SetBezelFace(self, int w)"""
750 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
752 def GetBezelFace(*args
, **kwargs
):
753 """GetBezelFace(self) -> int"""
754 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
757 class GaugePtr(Gauge
):
758 def __init__(self
, this
):
760 if not hasattr(self
,"thisown"): self
.thisown
= 0
761 self
.__class
__ = Gauge
762 _controls_
.Gauge_swigregister(GaugePtr
)
763 GaugeNameStr
= cvar
.GaugeNameStr
765 def PreGauge(*args
, **kwargs
):
766 """PreGauge() -> Gauge"""
767 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
771 #---------------------------------------------------------------------------
773 class StaticBox(_core
.Control
):
775 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
776 def __init__(self
, *args
, **kwargs
):
778 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
779 Size size=DefaultSize, long style=0,
780 String name=StaticBoxNameStr) -> StaticBox
782 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
783 self
.this
= newobj
.this
786 self
._setOORInfo
(self
)
788 def Create(*args
, **kwargs
):
790 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
791 Size size=DefaultSize, long style=0,
792 String name=StaticBoxNameStr) -> bool
794 return _controls_
.StaticBox_Create(*args
, **kwargs
)
797 class StaticBoxPtr(StaticBox
):
798 def __init__(self
, this
):
800 if not hasattr(self
,"thisown"): self
.thisown
= 0
801 self
.__class
__ = StaticBox
802 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
803 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
804 StaticBoxNameStr
= cvar
.StaticBoxNameStr
805 StaticTextNameStr
= cvar
.StaticTextNameStr
807 def PreStaticBox(*args
, **kwargs
):
808 """PreStaticBox() -> StaticBox"""
809 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
813 #---------------------------------------------------------------------------
815 class StaticLine(_core
.Control
):
817 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
818 def __init__(self
, *args
, **kwargs
):
820 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
821 long style=LI_HORIZONTAL,
822 String name=StaticTextNameStr) -> StaticLine
824 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
825 self
.this
= newobj
.this
828 self
._setOORInfo
(self
)
830 def Create(*args
, **kwargs
):
832 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
833 long style=LI_HORIZONTAL,
834 String name=StaticTextNameStr) -> bool
836 return _controls_
.StaticLine_Create(*args
, **kwargs
)
838 def IsVertical(*args
, **kwargs
):
839 """IsVertical(self) -> bool"""
840 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
842 def GetDefaultSize(*args
, **kwargs
):
843 """GetDefaultSize() -> int"""
844 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
846 GetDefaultSize
= staticmethod(GetDefaultSize
)
848 class StaticLinePtr(StaticLine
):
849 def __init__(self
, this
):
851 if not hasattr(self
,"thisown"): self
.thisown
= 0
852 self
.__class
__ = StaticLine
853 _controls_
.StaticLine_swigregister(StaticLinePtr
)
855 def PreStaticLine(*args
, **kwargs
):
856 """PreStaticLine() -> StaticLine"""
857 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
861 def StaticLine_GetDefaultSize(*args
, **kwargs
):
862 """StaticLine_GetDefaultSize() -> int"""
863 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
865 #---------------------------------------------------------------------------
867 class StaticText(_core
.Control
):
869 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
870 def __init__(self
, *args
, **kwargs
):
872 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
873 Size size=DefaultSize, long style=0,
874 String name=StaticTextNameStr) -> StaticText
876 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
877 self
.this
= newobj
.this
880 self
._setOORInfo
(self
)
882 def Create(*args
, **kwargs
):
884 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
885 Size size=DefaultSize, long style=0,
886 String name=StaticTextNameStr) -> bool
888 return _controls_
.StaticText_Create(*args
, **kwargs
)
891 class StaticTextPtr(StaticText
):
892 def __init__(self
, this
):
894 if not hasattr(self
,"thisown"): self
.thisown
= 0
895 self
.__class
__ = StaticText
896 _controls_
.StaticText_swigregister(StaticTextPtr
)
898 def PreStaticText(*args
, **kwargs
):
899 """PreStaticText() -> StaticText"""
900 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
904 #---------------------------------------------------------------------------
906 class StaticBitmap(_core
.Control
):
908 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
909 def __init__(self
, *args
, **kwargs
):
911 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
912 Size size=DefaultSize, long style=0,
913 String name=StaticBitmapNameStr) -> StaticBitmap
915 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
916 self
.this
= newobj
.this
919 self
._setOORInfo
(self
)
921 def Create(*args
, **kwargs
):
923 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
924 Size size=DefaultSize, long style=0,
925 String name=StaticBitmapNameStr) -> bool
927 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
929 def GetBitmap(*args
, **kwargs
):
930 """GetBitmap(self) -> Bitmap"""
931 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
933 def SetBitmap(*args
, **kwargs
):
934 """SetBitmap(self, Bitmap bitmap)"""
935 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
937 def SetIcon(*args
, **kwargs
):
938 """SetIcon(self, Icon icon)"""
939 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
942 class StaticBitmapPtr(StaticBitmap
):
943 def __init__(self
, this
):
945 if not hasattr(self
,"thisown"): self
.thisown
= 0
946 self
.__class
__ = StaticBitmap
947 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
949 def PreStaticBitmap(*args
, **kwargs
):
950 """PreStaticBitmap() -> StaticBitmap"""
951 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
955 #---------------------------------------------------------------------------
957 class ListBox(_core
.ControlWithItems
):
959 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
960 def __init__(self
, *args
, **kwargs
):
962 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
963 wxArrayString choices=wxPyEmptyStringArray,
964 long style=0, Validator validator=DefaultValidator,
965 String name=ListBoxNameStr) -> ListBox
967 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
968 self
.this
= newobj
.this
971 self
._setOORInfo
(self
)
973 def Create(*args
, **kwargs
):
975 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
976 wxArrayString choices=wxPyEmptyStringArray,
977 long style=0, Validator validator=DefaultValidator,
978 String name=ListBoxNameStr) -> bool
980 return _controls_
.ListBox_Create(*args
, **kwargs
)
982 def Insert(*args
, **kwargs
):
984 Insert(self, String item, int pos, PyObject clientData=None)
986 Insert an item into the control before the item at the pos index,
987 optionally associating some data object with the item.
989 return _controls_
.ListBox_Insert(*args
, **kwargs
)
991 def InsertItems(*args
, **kwargs
):
992 """InsertItems(self, wxArrayString items, int pos)"""
993 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
995 def Set(*args
, **kwargs
):
996 """Set(self, wxArrayString items)"""
997 return _controls_
.ListBox_Set(*args
, **kwargs
)
999 def IsSelected(*args
, **kwargs
):
1000 """IsSelected(self, int n) -> bool"""
1001 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1003 def SetSelection(*args
, **kwargs
):
1004 """SetSelection(self, int n, bool select=True)"""
1005 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1007 def Select(*args
, **kwargs
):
1011 Sets the item at index 'n' to be the selected item.
1013 return _controls_
.ListBox_Select(*args
, **kwargs
)
1015 def Deselect(*args
, **kwargs
):
1016 """Deselect(self, int n)"""
1017 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1019 def DeselectAll(*args
, **kwargs
):
1020 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1021 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1023 def SetStringSelection(*args
, **kwargs
):
1024 """SetStringSelection(self, String s, bool select=True) -> bool"""
1025 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1027 def GetSelections(*args
, **kwargs
):
1028 """GetSelections(self) -> PyObject"""
1029 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1031 def SetFirstItem(*args
, **kwargs
):
1032 """SetFirstItem(self, int n)"""
1033 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1035 def SetFirstItemStr(*args
, **kwargs
):
1036 """SetFirstItemStr(self, String s)"""
1037 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1039 def EnsureVisible(*args
, **kwargs
):
1040 """EnsureVisible(self, int n)"""
1041 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1043 def AppendAndEnsureVisible(*args
, **kwargs
):
1044 """AppendAndEnsureVisible(self, String s)"""
1045 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1047 def IsSorted(*args
, **kwargs
):
1048 """IsSorted(self) -> bool"""
1049 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1051 def SetItemForegroundColour(*args
, **kwargs
):
1052 """SetItemForegroundColour(self, int item, Colour c)"""
1053 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1055 def SetItemBackgroundColour(*args
, **kwargs
):
1056 """SetItemBackgroundColour(self, int item, Colour c)"""
1057 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1059 def SetItemFont(*args
, **kwargs
):
1060 """SetItemFont(self, int item, Font f)"""
1061 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1063 def GetClassDefaultAttributes(*args
, **kwargs
):
1065 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1067 Get the default attributes for this class. This is useful if
1068 you want to use the same font or colour in your own control as
1069 in a standard control -- which is a much better idea than hard
1070 coding specific colours or fonts which might look completely out
1071 of place on the users system, especially if it uses themes.
1073 The variant parameter is only relevant under Mac currently and is
1074 ignore under other platforms. Under Mac, it will change the size of the
1075 returned font. See SetWindowVariant for more about this.
1077 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1079 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1081 class ListBoxPtr(ListBox
):
1082 def __init__(self
, this
):
1084 if not hasattr(self
,"thisown"): self
.thisown
= 0
1085 self
.__class
__ = ListBox
1086 _controls_
.ListBox_swigregister(ListBoxPtr
)
1087 ListBoxNameStr
= cvar
.ListBoxNameStr
1089 def PreListBox(*args
, **kwargs
):
1090 """PreListBox() -> ListBox"""
1091 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1095 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1097 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1099 Get the default attributes for this class. This is useful if
1100 you want to use the same font or colour in your own control as
1101 in a standard control -- which is a much better idea than hard
1102 coding specific colours or fonts which might look completely out
1103 of place on the users system, especially if it uses themes.
1105 The variant parameter is only relevant under Mac currently and is
1106 ignore under other platforms. Under Mac, it will change the size of the
1107 returned font. See SetWindowVariant for more about this.
1109 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1111 #---------------------------------------------------------------------------
1113 class CheckListBox(ListBox
):
1115 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1116 def __init__(self
, *args
, **kwargs
):
1118 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1119 wxArrayString choices=wxPyEmptyStringArray,
1120 long style=0, Validator validator=DefaultValidator,
1121 String name=ListBoxNameStr) -> CheckListBox
1123 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1124 self
.this
= newobj
.this
1127 self
._setOORInfo
(self
)
1129 def Create(*args
, **kwargs
):
1131 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1132 wxArrayString choices=wxPyEmptyStringArray,
1133 long style=0, Validator validator=DefaultValidator,
1134 String name=ListBoxNameStr) -> bool
1136 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1138 def IsChecked(*args
, **kwargs
):
1139 """IsChecked(self, int index) -> bool"""
1140 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1142 def Check(*args
, **kwargs
):
1143 """Check(self, int index, int check=True)"""
1144 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1146 def HitTest(*args
, **kwargs
):
1148 HitTest(self, Point pt) -> int
1150 Test where the given (in client coords) point lies
1152 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1154 def HitTestXY(*args
, **kwargs
):
1156 HitTestXY(self, int x, int y) -> int
1158 Test where the given (in client coords) point lies
1160 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1163 class CheckListBoxPtr(CheckListBox
):
1164 def __init__(self
, this
):
1166 if not hasattr(self
,"thisown"): self
.thisown
= 0
1167 self
.__class
__ = CheckListBox
1168 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1170 def PreCheckListBox(*args
, **kwargs
):
1171 """PreCheckListBox() -> CheckListBox"""
1172 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1176 #---------------------------------------------------------------------------
1178 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1179 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1180 TE_READONLY
= _controls_
.TE_READONLY
1181 TE_MULTILINE
= _controls_
.TE_MULTILINE
1182 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1183 TE_LEFT
= _controls_
.TE_LEFT
1184 TE_CENTER
= _controls_
.TE_CENTER
1185 TE_RIGHT
= _controls_
.TE_RIGHT
1186 TE_CENTRE
= _controls_
.TE_CENTRE
1187 TE_RICH
= _controls_
.TE_RICH
1188 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1189 TE_PASSWORD
= _controls_
.TE_PASSWORD
1190 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1191 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1192 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1193 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1194 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1195 TE_RICH2
= _controls_
.TE_RICH2
1196 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1197 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1198 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1199 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1200 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1201 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1202 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1203 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1204 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1205 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1206 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1207 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1208 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1209 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1210 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1211 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1212 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1213 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1214 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1215 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1216 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1217 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1218 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1219 class TextAttr(object):
1221 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1222 def __init__(self
, *args
):
1224 __init__(self) -> TextAttr
1225 __init__(self, Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1226 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1228 newobj
= _controls_
.new_TextAttr(*args
)
1229 self
.this
= newobj
.this
1232 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1235 if self
.thisown
: destroy(self
)
1238 def Init(*args
, **kwargs
):
1240 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1242 def SetTextColour(*args
, **kwargs
):
1243 """SetTextColour(self, Colour colText)"""
1244 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1246 def SetBackgroundColour(*args
, **kwargs
):
1247 """SetBackgroundColour(self, Colour colBack)"""
1248 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1250 def SetFont(*args
, **kwargs
):
1251 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1252 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1254 def SetAlignment(*args
, **kwargs
):
1255 """SetAlignment(self, int alignment)"""
1256 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1258 def SetTabs(*args
, **kwargs
):
1259 """SetTabs(self, wxArrayInt tabs)"""
1260 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1262 def SetLeftIndent(*args
, **kwargs
):
1263 """SetLeftIndent(self, int indent)"""
1264 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1266 def SetRightIndent(*args
, **kwargs
):
1267 """SetRightIndent(self, int indent)"""
1268 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1270 def SetFlags(*args
, **kwargs
):
1271 """SetFlags(self, long flags)"""
1272 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1274 def HasTextColour(*args
, **kwargs
):
1275 """HasTextColour(self) -> bool"""
1276 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1278 def HasBackgroundColour(*args
, **kwargs
):
1279 """HasBackgroundColour(self) -> bool"""
1280 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1282 def HasFont(*args
, **kwargs
):
1283 """HasFont(self) -> bool"""
1284 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1286 def HasAlignment(*args
, **kwargs
):
1287 """HasAlignment(self) -> bool"""
1288 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1290 def HasTabs(*args
, **kwargs
):
1291 """HasTabs(self) -> bool"""
1292 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1294 def HasLeftIndent(*args
, **kwargs
):
1295 """HasLeftIndent(self) -> bool"""
1296 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1298 def HasRightIndent(*args
, **kwargs
):
1299 """HasRightIndent(self) -> bool"""
1300 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1302 def HasFlag(*args
, **kwargs
):
1303 """HasFlag(self, long flag) -> bool"""
1304 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1306 def GetTextColour(*args
, **kwargs
):
1307 """GetTextColour(self) -> Colour"""
1308 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1310 def GetBackgroundColour(*args
, **kwargs
):
1311 """GetBackgroundColour(self) -> Colour"""
1312 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1314 def GetFont(*args
, **kwargs
):
1315 """GetFont(self) -> Font"""
1316 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1318 def GetAlignment(*args
, **kwargs
):
1319 """GetAlignment(self) -> int"""
1320 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1322 def GetTabs(*args
, **kwargs
):
1323 """GetTabs(self) -> wxArrayInt"""
1324 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1326 def GetLeftIndent(*args
, **kwargs
):
1327 """GetLeftIndent(self) -> long"""
1328 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1330 def GetRightIndent(*args
, **kwargs
):
1331 """GetRightIndent(self) -> long"""
1332 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1334 def GetFlags(*args
, **kwargs
):
1335 """GetFlags(self) -> long"""
1336 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1338 def IsDefault(*args
, **kwargs
):
1339 """IsDefault(self) -> bool"""
1340 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1342 def Combine(*args
, **kwargs
):
1343 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1344 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1346 Combine
= staticmethod(Combine
)
1348 class TextAttrPtr(TextAttr
):
1349 def __init__(self
, this
):
1351 if not hasattr(self
,"thisown"): self
.thisown
= 0
1352 self
.__class
__ = TextAttr
1353 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1354 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1356 def TextAttr_Combine(*args
, **kwargs
):
1357 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1358 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1360 class TextCtrl(_core
.Control
):
1362 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1363 def __init__(self
, *args
, **kwargs
):
1365 __init__(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1366 Size size=DefaultSize,
1367 long style=0, Validator validator=DefaultValidator,
1368 String name=TextCtrlNameStr) -> TextCtrl
1370 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1371 self
.this
= newobj
.this
1374 self
._setOORInfo
(self
)
1376 def Create(*args
, **kwargs
):
1378 Create(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1379 Size size=DefaultSize,
1380 long style=0, Validator validator=DefaultValidator,
1381 String name=TextCtrlNameStr) -> bool
1383 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1385 def GetValue(*args
, **kwargs
):
1386 """GetValue(self) -> String"""
1387 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1389 def SetValue(*args
, **kwargs
):
1390 """SetValue(self, String value)"""
1391 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1393 def GetRange(*args
, **kwargs
):
1394 """GetRange(self, long from, long to) -> String"""
1395 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1397 def GetLineLength(*args
, **kwargs
):
1398 """GetLineLength(self, long lineNo) -> int"""
1399 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1401 def GetLineText(*args
, **kwargs
):
1402 """GetLineText(self, long lineNo) -> String"""
1403 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1405 def GetNumberOfLines(*args
, **kwargs
):
1406 """GetNumberOfLines(self) -> int"""
1407 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1409 def IsModified(*args
, **kwargs
):
1410 """IsModified(self) -> bool"""
1411 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1413 def IsEditable(*args
, **kwargs
):
1414 """IsEditable(self) -> bool"""
1415 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1417 def IsSingleLine(*args
, **kwargs
):
1418 """IsSingleLine(self) -> bool"""
1419 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1421 def IsMultiLine(*args
, **kwargs
):
1422 """IsMultiLine(self) -> bool"""
1423 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1425 def GetSelection(*args
, **kwargs
):
1427 GetSelection() -> (from, to)
1429 If the return values from and to are the same, there is no selection.
1431 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1433 def GetStringSelection(*args
, **kwargs
):
1434 """GetStringSelection(self) -> String"""
1435 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1437 def Clear(*args
, **kwargs
):
1439 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1441 def Replace(*args
, **kwargs
):
1442 """Replace(self, long from, long to, String value)"""
1443 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1445 def Remove(*args
, **kwargs
):
1446 """Remove(self, long from, long to)"""
1447 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1449 def LoadFile(*args
, **kwargs
):
1450 """LoadFile(self, String file) -> bool"""
1451 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1453 def SaveFile(*args
, **kwargs
):
1454 """SaveFile(self, String file=EmptyString) -> bool"""
1455 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1457 def MarkDirty(*args
, **kwargs
):
1458 """MarkDirty(self)"""
1459 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1461 def DiscardEdits(*args
, **kwargs
):
1462 """DiscardEdits(self)"""
1463 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1465 def SetMaxLength(*args
, **kwargs
):
1466 """SetMaxLength(self, unsigned long len)"""
1467 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1469 def WriteText(*args
, **kwargs
):
1470 """WriteText(self, String text)"""
1471 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1473 def AppendText(*args
, **kwargs
):
1474 """AppendText(self, String text)"""
1475 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1477 def EmulateKeyPress(*args
, **kwargs
):
1478 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1479 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1481 def SetStyle(*args
, **kwargs
):
1482 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1483 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1485 def GetStyle(*args
, **kwargs
):
1486 """GetStyle(self, long position, TextAttr style) -> bool"""
1487 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1489 def SetDefaultStyle(*args
, **kwargs
):
1490 """SetDefaultStyle(self, TextAttr style) -> bool"""
1491 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1493 def GetDefaultStyle(*args
, **kwargs
):
1494 """GetDefaultStyle(self) -> TextAttr"""
1495 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1497 def XYToPosition(*args
, **kwargs
):
1498 """XYToPosition(self, long x, long y) -> long"""
1499 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1501 def PositionToXY(*args
, **kwargs
):
1502 """PositionToXY(long pos) -> (x, y)"""
1503 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1505 def ShowPosition(*args
, **kwargs
):
1506 """ShowPosition(self, long pos)"""
1507 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1509 def HitTest(*args
, **kwargs
):
1511 HitTest(Point pt) -> (result, row, col)
1513 Find the character at position given in pixels.
1514 NB: pt is in device coords (not adjusted for the client area
1515 origin nor scrolling)
1517 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1519 def Copy(*args
, **kwargs
):
1521 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1523 def Cut(*args
, **kwargs
):
1525 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1527 def Paste(*args
, **kwargs
):
1529 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1531 def CanCopy(*args
, **kwargs
):
1532 """CanCopy(self) -> bool"""
1533 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1535 def CanCut(*args
, **kwargs
):
1536 """CanCut(self) -> bool"""
1537 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1539 def CanPaste(*args
, **kwargs
):
1540 """CanPaste(self) -> bool"""
1541 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1543 def Undo(*args
, **kwargs
):
1545 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1547 def Redo(*args
, **kwargs
):
1549 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1551 def CanUndo(*args
, **kwargs
):
1552 """CanUndo(self) -> bool"""
1553 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1555 def CanRedo(*args
, **kwargs
):
1556 """CanRedo(self) -> bool"""
1557 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1559 def SetInsertionPoint(*args
, **kwargs
):
1560 """SetInsertionPoint(self, long pos)"""
1561 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1563 def SetInsertionPointEnd(*args
, **kwargs
):
1564 """SetInsertionPointEnd(self)"""
1565 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1567 def GetInsertionPoint(*args
, **kwargs
):
1568 """GetInsertionPoint(self) -> long"""
1569 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1571 def GetLastPosition(*args
, **kwargs
):
1572 """GetLastPosition(self) -> long"""
1573 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1575 def SetSelection(*args
, **kwargs
):
1576 """SetSelection(self, long from, long to)"""
1577 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1579 def SelectAll(*args
, **kwargs
):
1580 """SelectAll(self)"""
1581 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1583 def SetEditable(*args
, **kwargs
):
1584 """SetEditable(self, bool editable)"""
1585 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1587 def write(*args
, **kwargs
):
1588 """write(self, String text)"""
1589 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1591 def GetString(*args
, **kwargs
):
1592 """GetString(self, long from, long to) -> String"""
1593 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1596 class TextCtrlPtr(TextCtrl
):
1597 def __init__(self
, this
):
1599 if not hasattr(self
,"thisown"): self
.thisown
= 0
1600 self
.__class
__ = TextCtrl
1601 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
1603 def PreTextCtrl(*args
, **kwargs
):
1604 """PreTextCtrl() -> TextCtrl"""
1605 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1609 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1610 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1611 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1612 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1613 class TextUrlEvent(_core
.CommandEvent
):
1615 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1616 def __init__(self
, *args
, **kwargs
):
1617 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1618 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
1619 self
.this
= newobj
.this
1622 def GetMouseEvent(*args
, **kwargs
):
1623 """GetMouseEvent(self) -> MouseEvent"""
1624 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1626 def GetURLStart(*args
, **kwargs
):
1627 """GetURLStart(self) -> long"""
1628 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1630 def GetURLEnd(*args
, **kwargs
):
1631 """GetURLEnd(self) -> long"""
1632 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1635 class TextUrlEventPtr(TextUrlEvent
):
1636 def __init__(self
, this
):
1638 if not hasattr(self
,"thisown"): self
.thisown
= 0
1639 self
.__class
__ = TextUrlEvent
1640 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1642 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1643 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1644 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1645 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1647 #---------------------------------------------------------------------------
1649 class ScrollBar(_core
.Control
):
1651 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1652 def __init__(self
, *args
, **kwargs
):
1654 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1655 Size size=DefaultSize, long style=SB_HORIZONTAL,
1656 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1658 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
1659 self
.this
= newobj
.this
1662 self
._setOORInfo
(self
)
1664 def Create(*args
, **kwargs
):
1666 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1667 Size size=DefaultSize, long style=SB_HORIZONTAL,
1668 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1670 Do the 2nd phase and create the GUI control.
1672 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1674 def GetThumbPosition(*args
, **kwargs
):
1675 """GetThumbPosition(self) -> int"""
1676 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1678 def GetThumbSize(*args
, **kwargs
):
1679 """GetThumbSize(self) -> int"""
1680 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1682 GetThumbLength
= GetThumbSize
1683 def GetPageSize(*args
, **kwargs
):
1684 """GetPageSize(self) -> int"""
1685 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
1687 def GetRange(*args
, **kwargs
):
1688 """GetRange(self) -> int"""
1689 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
1691 def IsVertical(*args
, **kwargs
):
1692 """IsVertical(self) -> bool"""
1693 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
1695 def SetThumbPosition(*args
, **kwargs
):
1696 """SetThumbPosition(self, int viewStart)"""
1697 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1699 def SetScrollbar(*args
, **kwargs
):
1701 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
1704 Sets the scrollbar properties of a built-in scrollbar.
1706 orientation: Determines the scrollbar whose page size is to be
1707 set. May be wx.HORIZONTAL or wx.VERTICAL.
1709 position: The position of the scrollbar in scroll units.
1711 thumbSize: The size of the thumb, or visible portion of the
1712 scrollbar, in scroll units.
1714 range: The maximum position of the scrollbar.
1716 refresh: True to redraw the scrollbar, false otherwise.
1718 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1721 class ScrollBarPtr(ScrollBar
):
1722 def __init__(self
, this
):
1724 if not hasattr(self
,"thisown"): self
.thisown
= 0
1725 self
.__class
__ = ScrollBar
1726 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
1727 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1729 def PreScrollBar(*args
, **kwargs
):
1730 """PreScrollBar() -> ScrollBar"""
1731 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
1735 #---------------------------------------------------------------------------
1737 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
1738 SP_VERTICAL
= _controls_
.SP_VERTICAL
1739 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
1740 SP_WRAP
= _controls_
.SP_WRAP
1741 class SpinButton(_core
.Control
):
1743 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1744 def __init__(self
, *args
, **kwargs
):
1746 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1747 Size size=DefaultSize, long style=SP_HORIZONTAL,
1748 String name=SPIN_BUTTON_NAME) -> SpinButton
1750 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
1751 self
.this
= newobj
.this
1754 self
._setOORInfo
(self
)
1756 def Create(*args
, **kwargs
):
1758 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1759 Size size=DefaultSize, long style=SP_HORIZONTAL,
1760 String name=SPIN_BUTTON_NAME) -> bool
1762 return _controls_
.SpinButton_Create(*args
, **kwargs
)
1764 def GetValue(*args
, **kwargs
):
1765 """GetValue(self) -> int"""
1766 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
1768 def GetMin(*args
, **kwargs
):
1769 """GetMin(self) -> int"""
1770 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
1772 def GetMax(*args
, **kwargs
):
1773 """GetMax(self) -> int"""
1774 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
1776 def SetValue(*args
, **kwargs
):
1777 """SetValue(self, int val)"""
1778 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
1780 def SetMin(*args
, **kwargs
):
1781 """SetMin(self, int minVal)"""
1782 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
1784 def SetMax(*args
, **kwargs
):
1785 """SetMax(self, int maxVal)"""
1786 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
1788 def SetRange(*args
, **kwargs
):
1789 """SetRange(self, int minVal, int maxVal)"""
1790 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
1792 def IsVertical(*args
, **kwargs
):
1793 """IsVertical(self) -> bool"""
1794 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
1797 class SpinButtonPtr(SpinButton
):
1798 def __init__(self
, this
):
1800 if not hasattr(self
,"thisown"): self
.thisown
= 0
1801 self
.__class
__ = SpinButton
1802 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
1803 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1804 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1806 def PreSpinButton(*args
, **kwargs
):
1807 """PreSpinButton() -> SpinButton"""
1808 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
1812 class SpinCtrl(_core
.Control
):
1814 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1815 def __init__(self
, *args
, **kwargs
):
1817 __init__(self, Window parent, int id=-1, String value=EmptyString,
1818 Point pos=DefaultPosition, Size size=DefaultSize,
1819 long style=SP_ARROW_KEYS, int min=0, int max=100,
1820 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1822 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
1823 self
.this
= newobj
.this
1826 self
._setOORInfo
(self
)
1828 def Create(*args
, **kwargs
):
1830 Create(self, Window parent, int id=-1, String value=EmptyString,
1831 Point pos=DefaultPosition, Size size=DefaultSize,
1832 long style=SP_ARROW_KEYS, int min=0, int max=100,
1833 int initial=0, String name=SpinCtrlNameStr) -> bool
1835 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
1837 def GetValue(*args
, **kwargs
):
1838 """GetValue(self) -> int"""
1839 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
1841 def SetValue(*args
, **kwargs
):
1842 """SetValue(self, int value)"""
1843 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
1845 def SetValueString(*args
, **kwargs
):
1846 """SetValueString(self, String text)"""
1847 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
1849 def SetRange(*args
, **kwargs
):
1850 """SetRange(self, int minVal, int maxVal)"""
1851 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
1853 def GetMin(*args
, **kwargs
):
1854 """GetMin(self) -> int"""
1855 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
1857 def GetMax(*args
, **kwargs
):
1858 """GetMax(self) -> int"""
1859 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
1861 def SetSelection(*args
, **kwargs
):
1862 """SetSelection(self, long from, long to)"""
1863 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
1866 class SpinCtrlPtr(SpinCtrl
):
1867 def __init__(self
, this
):
1869 if not hasattr(self
,"thisown"): self
.thisown
= 0
1870 self
.__class
__ = SpinCtrl
1871 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
1873 def PreSpinCtrl(*args
, **kwargs
):
1874 """PreSpinCtrl() -> SpinCtrl"""
1875 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
1879 class SpinEvent(_core
.NotifyEvent
):
1881 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1882 def __init__(self
, *args
, **kwargs
):
1883 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1884 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
1885 self
.this
= newobj
.this
1888 def GetPosition(*args
, **kwargs
):
1889 """GetPosition(self) -> int"""
1890 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
1892 def SetPosition(*args
, **kwargs
):
1893 """SetPosition(self, int pos)"""
1894 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
1897 class SpinEventPtr(SpinEvent
):
1898 def __init__(self
, this
):
1900 if not hasattr(self
,"thisown"): self
.thisown
= 0
1901 self
.__class
__ = SpinEvent
1902 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
1904 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
1905 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1906 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1907 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1908 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1910 #---------------------------------------------------------------------------
1912 class RadioBox(_core
.Control
):
1914 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1915 def __init__(self
, *args
, **kwargs
):
1917 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
1918 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1919 int majorDimension=0,
1920 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1921 String name=RadioBoxNameStr) -> RadioBox
1923 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1924 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
1925 self
.this
= newobj
.this
1928 self
._setOORInfo
(self
)
1930 def Create(*args
, **kwargs
):
1932 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
1933 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1934 int majorDimension=0,
1935 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1936 String name=RadioBoxNameStr) -> bool
1938 return _controls_
.RadioBox_Create(*args
, **kwargs
)
1940 def SetSelection(*args
, **kwargs
):
1941 """SetSelection(self, int n)"""
1942 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
1944 def GetSelection(*args
, **kwargs
):
1945 """GetSelection(self) -> int"""
1946 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
1948 def GetStringSelection(*args
, **kwargs
):
1949 """GetStringSelection(self) -> String"""
1950 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
1952 def SetStringSelection(*args
, **kwargs
):
1953 """SetStringSelection(self, String s) -> bool"""
1954 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
1956 def GetCount(*args
, **kwargs
):
1957 """GetCount(self) -> int"""
1958 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
1960 def FindString(*args
, **kwargs
):
1961 """FindString(self, String s) -> int"""
1962 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
1964 def GetString(*args
, **kwargs
):
1965 """GetString(self, int n) -> String"""
1966 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
1968 def SetString(*args
, **kwargs
):
1969 """SetString(self, int n, String label)"""
1970 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
1972 GetItemLabel
= GetString
1973 SetItemLabel
= SetString
1974 def EnableItem(*args
, **kwargs
):
1975 """EnableItem(self, int n, bool enable=True)"""
1976 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
1978 def ShowItem(*args
, **kwargs
):
1979 """ShowItem(self, int n, bool show=True)"""
1980 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
1982 def GetColumnCount(*args
, **kwargs
):
1983 """GetColumnCount(self) -> int"""
1984 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
1986 def GetRowCount(*args
, **kwargs
):
1987 """GetRowCount(self) -> int"""
1988 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
1990 def GetNextItem(*args
, **kwargs
):
1991 """GetNextItem(self, int item, int dir, long style) -> int"""
1992 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
1995 class RadioBoxPtr(RadioBox
):
1996 def __init__(self
, this
):
1998 if not hasattr(self
,"thisown"): self
.thisown
= 0
1999 self
.__class
__ = RadioBox
2000 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2001 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2002 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2004 def PreRadioBox(*args
, **kwargs
):
2005 """PreRadioBox() -> RadioBox"""
2006 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2010 #---------------------------------------------------------------------------
2012 class RadioButton(_core
.Control
):
2014 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2015 def __init__(self
, *args
, **kwargs
):
2017 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2018 Size size=DefaultSize, long style=0,
2019 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
2021 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2022 self
.this
= newobj
.this
2025 self
._setOORInfo
(self
)
2027 def Create(*args
, **kwargs
):
2029 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2030 Size size=DefaultSize, long style=0,
2031 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
2033 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2035 def GetValue(*args
, **kwargs
):
2036 """GetValue(self) -> bool"""
2037 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2039 def SetValue(*args
, **kwargs
):
2040 """SetValue(self, bool value)"""
2041 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2044 class RadioButtonPtr(RadioButton
):
2045 def __init__(self
, this
):
2047 if not hasattr(self
,"thisown"): self
.thisown
= 0
2048 self
.__class
__ = RadioButton
2049 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2051 def PreRadioButton(*args
, **kwargs
):
2052 """PreRadioButton() -> RadioButton"""
2053 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2057 #---------------------------------------------------------------------------
2059 class Slider(_core
.Control
):
2061 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2062 def __init__(self
, *args
, **kwargs
):
2064 __init__(self, Window parent, int id, int value, int minValue, int maxValue,
2065 Point pos=DefaultPosition, Size size=DefaultSize,
2066 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
2067 String name=SliderNameStr) -> Slider
2069 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2070 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2071 self
.this
= newobj
.this
2074 self
._setOORInfo
(self
)
2076 def Create(*args
, **kwargs
):
2078 Create(self, Window parent, int id, int value, int minValue, int maxValue,
2079 Point pos=DefaultPosition, Size size=DefaultSize,
2080 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
2081 String name=SliderNameStr) -> bool
2083 return _controls_
.Slider_Create(*args
, **kwargs
)
2085 def GetValue(*args
, **kwargs
):
2086 """GetValue(self) -> int"""
2087 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2089 def SetValue(*args
, **kwargs
):
2090 """SetValue(self, int value)"""
2091 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2093 def SetRange(*args
, **kwargs
):
2094 """SetRange(self, int minValue, int maxValue)"""
2095 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2097 def GetMin(*args
, **kwargs
):
2098 """GetMin(self) -> int"""
2099 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2101 def GetMax(*args
, **kwargs
):
2102 """GetMax(self) -> int"""
2103 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2105 def SetMin(*args
, **kwargs
):
2106 """SetMin(self, int minValue)"""
2107 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2109 def SetMax(*args
, **kwargs
):
2110 """SetMax(self, int maxValue)"""
2111 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2113 def SetLineSize(*args
, **kwargs
):
2114 """SetLineSize(self, int lineSize)"""
2115 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2117 def SetPageSize(*args
, **kwargs
):
2118 """SetPageSize(self, int pageSize)"""
2119 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2121 def GetLineSize(*args
, **kwargs
):
2122 """GetLineSize(self) -> int"""
2123 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2125 def GetPageSize(*args
, **kwargs
):
2126 """GetPageSize(self) -> int"""
2127 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2129 def SetThumbLength(*args
, **kwargs
):
2130 """SetThumbLength(self, int lenPixels)"""
2131 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2133 def GetThumbLength(*args
, **kwargs
):
2134 """GetThumbLength(self) -> int"""
2135 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2137 def SetTickFreq(*args
, **kwargs
):
2138 """SetTickFreq(self, int n, int pos=1)"""
2139 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2141 def GetTickFreq(*args
, **kwargs
):
2142 """GetTickFreq(self) -> int"""
2143 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2145 def ClearTicks(*args
, **kwargs
):
2146 """ClearTicks(self)"""
2147 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2149 def SetTick(*args
, **kwargs
):
2150 """SetTick(self, int tickPos)"""
2151 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2153 def ClearSel(*args
, **kwargs
):
2154 """ClearSel(self)"""
2155 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2157 def GetSelEnd(*args
, **kwargs
):
2158 """GetSelEnd(self) -> int"""
2159 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2161 def GetSelStart(*args
, **kwargs
):
2162 """GetSelStart(self) -> int"""
2163 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2165 def SetSelection(*args
, **kwargs
):
2166 """SetSelection(self, int min, int max)"""
2167 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2170 class SliderPtr(Slider
):
2171 def __init__(self
, this
):
2173 if not hasattr(self
,"thisown"): self
.thisown
= 0
2174 self
.__class
__ = Slider
2175 _controls_
.Slider_swigregister(SliderPtr
)
2176 SliderNameStr
= cvar
.SliderNameStr
2178 def PreSlider(*args
, **kwargs
):
2179 """PreSlider() -> Slider"""
2180 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2184 #---------------------------------------------------------------------------
2186 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2187 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2189 class ToggleButton(_core
.Control
):
2191 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2192 def __init__(self
, *args
, **kwargs
):
2194 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2195 Size size=DefaultSize, long style=0,
2196 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2198 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2199 self
.this
= newobj
.this
2202 self
._setOORInfo
(self
)
2204 def Create(*args
, **kwargs
):
2206 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2207 Size size=DefaultSize, long style=0,
2208 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
2210 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2212 def SetValue(*args
, **kwargs
):
2213 """SetValue(self, bool value)"""
2214 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2216 def GetValue(*args
, **kwargs
):
2217 """GetValue(self) -> bool"""
2218 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2220 def SetLabel(*args
, **kwargs
):
2222 SetLabel(self, String label)
2224 Sets the item's text.
2226 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2229 class ToggleButtonPtr(ToggleButton
):
2230 def __init__(self
, this
):
2232 if not hasattr(self
,"thisown"): self
.thisown
= 0
2233 self
.__class
__ = ToggleButton
2234 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2235 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2237 def PreToggleButton(*args
, **kwargs
):
2238 """PreToggleButton() -> ToggleButton"""
2239 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2243 #---------------------------------------------------------------------------
2245 class BookCtrl(_core
.Control
):
2246 def __init__(self
): raise RuntimeError, "No constructor defined"
2248 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2249 def GetPageCount(*args
, **kwargs
):
2250 """GetPageCount(self) -> size_t"""
2251 return _controls_
.BookCtrl_GetPageCount(*args
, **kwargs
)
2253 def GetPage(*args
, **kwargs
):
2254 """GetPage(self, size_t n) -> Window"""
2255 return _controls_
.BookCtrl_GetPage(*args
, **kwargs
)
2257 def GetSelection(*args
, **kwargs
):
2258 """GetSelection(self) -> int"""
2259 return _controls_
.BookCtrl_GetSelection(*args
, **kwargs
)
2261 def SetPageText(*args
, **kwargs
):
2262 """SetPageText(self, size_t n, String strText) -> bool"""
2263 return _controls_
.BookCtrl_SetPageText(*args
, **kwargs
)
2265 def GetPageText(*args
, **kwargs
):
2266 """GetPageText(self, size_t n) -> String"""
2267 return _controls_
.BookCtrl_GetPageText(*args
, **kwargs
)
2269 def SetImageList(*args
, **kwargs
):
2270 """SetImageList(self, ImageList imageList)"""
2271 return _controls_
.BookCtrl_SetImageList(*args
, **kwargs
)
2273 def AssignImageList(*args
, **kwargs
):
2274 """AssignImageList(self, ImageList imageList)"""
2275 return _controls_
.BookCtrl_AssignImageList(*args
, **kwargs
)
2277 def GetImageList(*args
, **kwargs
):
2278 """GetImageList(self) -> ImageList"""
2279 return _controls_
.BookCtrl_GetImageList(*args
, **kwargs
)
2281 def GetPageImage(*args
, **kwargs
):
2282 """GetPageImage(self, size_t n) -> int"""
2283 return _controls_
.BookCtrl_GetPageImage(*args
, **kwargs
)
2285 def SetPageImage(*args
, **kwargs
):
2286 """SetPageImage(self, size_t n, int imageId) -> bool"""
2287 return _controls_
.BookCtrl_SetPageImage(*args
, **kwargs
)
2289 def SetPageSize(*args
, **kwargs
):
2290 """SetPageSize(self, Size size)"""
2291 return _controls_
.BookCtrl_SetPageSize(*args
, **kwargs
)
2293 def CalcSizeFromPage(*args
, **kwargs
):
2294 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2295 return _controls_
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2297 def DeletePage(*args
, **kwargs
):
2298 """DeletePage(self, size_t n) -> bool"""
2299 return _controls_
.BookCtrl_DeletePage(*args
, **kwargs
)
2301 def RemovePage(*args
, **kwargs
):
2302 """RemovePage(self, size_t n) -> bool"""
2303 return _controls_
.BookCtrl_RemovePage(*args
, **kwargs
)
2305 def DeleteAllPages(*args
, **kwargs
):
2306 """DeleteAllPages(self) -> bool"""
2307 return _controls_
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2309 def AddPage(*args
, **kwargs
):
2310 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2311 return _controls_
.BookCtrl_AddPage(*args
, **kwargs
)
2313 def InsertPage(*args
, **kwargs
):
2315 InsertPage(self, size_t n, Window page, String text, bool select=False,
2316 int imageId=-1) -> bool
2318 return _controls_
.BookCtrl_InsertPage(*args
, **kwargs
)
2320 def SetSelection(*args
, **kwargs
):
2321 """SetSelection(self, size_t n) -> int"""
2322 return _controls_
.BookCtrl_SetSelection(*args
, **kwargs
)
2324 def AdvanceSelection(*args
, **kwargs
):
2325 """AdvanceSelection(self, bool forward=True)"""
2326 return _controls_
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2329 class BookCtrlPtr(BookCtrl
):
2330 def __init__(self
, this
):
2332 if not hasattr(self
,"thisown"): self
.thisown
= 0
2333 self
.__class
__ = BookCtrl
2334 _controls_
.BookCtrl_swigregister(BookCtrlPtr
)
2335 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2337 class BookCtrlEvent(_core
.NotifyEvent
):
2339 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2340 def __init__(self
, *args
, **kwargs
):
2342 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2343 int nOldSel=-1) -> BookCtrlEvent
2345 newobj
= _controls_
.new_BookCtrlEvent(*args
, **kwargs
)
2346 self
.this
= newobj
.this
2349 def GetSelection(*args
, **kwargs
):
2350 """GetSelection(self) -> int"""
2351 return _controls_
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2353 def SetSelection(*args
, **kwargs
):
2354 """SetSelection(self, int nSel)"""
2355 return _controls_
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2357 def GetOldSelection(*args
, **kwargs
):
2358 """GetOldSelection(self) -> int"""
2359 return _controls_
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2361 def SetOldSelection(*args
, **kwargs
):
2362 """SetOldSelection(self, int nOldSel)"""
2363 return _controls_
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2366 class BookCtrlEventPtr(BookCtrlEvent
):
2367 def __init__(self
, this
):
2369 if not hasattr(self
,"thisown"): self
.thisown
= 0
2370 self
.__class
__ = BookCtrlEvent
2371 _controls_
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2373 #---------------------------------------------------------------------------
2375 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2376 NB_TOP
= _controls_
.NB_TOP
2377 NB_LEFT
= _controls_
.NB_LEFT
2378 NB_RIGHT
= _controls_
.NB_RIGHT
2379 NB_BOTTOM
= _controls_
.NB_BOTTOM
2380 NB_MULTILINE
= _controls_
.NB_MULTILINE
2381 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2382 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2383 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2384 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2385 class Notebook(BookCtrl
):
2387 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2388 def __init__(self
, *args
, **kwargs
):
2390 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2391 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2393 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
2394 self
.this
= newobj
.this
2397 self
._setOORInfo
(self
)
2399 def Create(*args
, **kwargs
):
2401 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2402 long style=0, String name=NOTEBOOK_NAME) -> bool
2404 return _controls_
.Notebook_Create(*args
, **kwargs
)
2406 def GetRowCount(*args
, **kwargs
):
2407 """GetRowCount(self) -> int"""
2408 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2410 def SetPadding(*args
, **kwargs
):
2411 """SetPadding(self, Size padding)"""
2412 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2414 def SetTabSize(*args
, **kwargs
):
2415 """SetTabSize(self, Size sz)"""
2416 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
2418 def HitTest(*args
, **kwargs
):
2420 HitTest(Point pt) -> (tab, where)
2422 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2424 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
2426 def CalcSizeFromPage(*args
, **kwargs
):
2427 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2428 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2431 class NotebookPtr(Notebook
):
2432 def __init__(self
, this
):
2434 if not hasattr(self
,"thisown"): self
.thisown
= 0
2435 self
.__class
__ = Notebook
2436 _controls_
.Notebook_swigregister(NotebookPtr
)
2438 def PreNotebook(*args
, **kwargs
):
2439 """PreNotebook() -> Notebook"""
2440 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
2444 class NotebookEvent(BookCtrlEvent
):
2446 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2447 def __init__(self
, *args
, **kwargs
):
2449 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2450 int nOldSel=-1) -> NotebookEvent
2452 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
2453 self
.this
= newobj
.this
2457 class NotebookEventPtr(NotebookEvent
):
2458 def __init__(self
, this
):
2460 if not hasattr(self
,"thisown"): self
.thisown
= 0
2461 self
.__class
__ = NotebookEvent
2462 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
2464 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2465 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2467 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2468 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2470 #----------------------------------------------------------------------------
2472 class NotebookPage(wx
.Panel
):
2474 There is an old (and apparently unsolvable) bug when placing a
2475 window with a nonstandard background colour in a wxNotebook on
2476 wxGTK, as the notbooks's background colour would always be used
2477 when the window is refreshed. The solution is to place a panel in
2478 the notbook and the coloured window on the panel, sized to cover
2479 the panel. This simple class does that for you, just put an
2480 instance of this in the notebook and make your regular window a
2481 child of this one and it will handle the resize for you.
2483 def __init__(self
, parent
, id=-1,
2484 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2485 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2486 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2488 EVT_SIZE(self
, self
.OnSize
)
2490 def OnSize(self
, evt
):
2491 if self
.child
is None:
2492 children
= self
.GetChildren()
2494 self
.child
= children
[0]
2496 self
.child
.SetPosition((0,0))
2497 self
.child
.SetSize(self
.GetSize())
2500 #---------------------------------------------------------------------------
2502 LB_DEFAULT
= _controls_
.LB_DEFAULT
2503 LB_TOP
= _controls_
.LB_TOP
2504 LB_BOTTOM
= _controls_
.LB_BOTTOM
2505 LB_LEFT
= _controls_
.LB_LEFT
2506 LB_RIGHT
= _controls_
.LB_RIGHT
2507 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
2508 class Listbook(BookCtrl
):
2510 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2511 def __init__(self
, *args
, **kwargs
):
2513 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2514 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
2516 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
2517 self
.this
= newobj
.this
2520 self
._setOORInfo
(self
)
2522 def Create(*args
, **kwargs
):
2524 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2525 long style=0, String name=EmptyString) -> bool
2527 return _controls_
.Listbook_Create(*args
, **kwargs
)
2529 def IsVertical(*args
, **kwargs
):
2530 """IsVertical(self) -> bool"""
2531 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
2534 class ListbookPtr(Listbook
):
2535 def __init__(self
, this
):
2537 if not hasattr(self
,"thisown"): self
.thisown
= 0
2538 self
.__class
__ = Listbook
2539 _controls_
.Listbook_swigregister(ListbookPtr
)
2541 def PreListbook(*args
, **kwargs
):
2542 """PreListbook() -> Listbook"""
2543 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
2547 class ListbookEvent(BookCtrlEvent
):
2549 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2550 def __init__(self
, *args
, **kwargs
):
2552 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2553 int nOldSel=-1) -> ListbookEvent
2555 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
2556 self
.this
= newobj
.this
2560 class ListbookEventPtr(ListbookEvent
):
2561 def __init__(self
, this
):
2563 if not hasattr(self
,"thisown"): self
.thisown
= 0
2564 self
.__class
__ = ListbookEvent
2565 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
2567 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2568 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2569 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2570 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2572 #---------------------------------------------------------------------------
2574 class BookCtrlSizer(_core
.Sizer
):
2576 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2577 def __init__(self
, *args
, **kwargs
):
2578 """__init__(self, BookCtrl nb) -> BookCtrlSizer"""
2579 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
2580 self
.this
= newobj
.this
2583 self
._setOORInfo
(self
)
2585 def RecalcSizes(*args
, **kwargs
):
2586 """RecalcSizes(self)"""
2587 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2589 def CalcMin(*args
, **kwargs
):
2590 """CalcMin(self) -> Size"""
2591 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2593 def GetControl(*args
, **kwargs
):
2594 """GetControl(self) -> BookCtrl"""
2595 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2598 class BookCtrlSizerPtr(BookCtrlSizer
):
2599 def __init__(self
, this
):
2601 if not hasattr(self
,"thisown"): self
.thisown
= 0
2602 self
.__class
__ = BookCtrlSizer
2603 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2605 class NotebookSizer(_core
.Sizer
):
2607 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2608 def __init__(self
, *args
, **kwargs
):
2609 """__init__(self, Notebook nb) -> NotebookSizer"""
2610 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
2611 self
.this
= newobj
.this
2614 self
._setOORInfo
(self
)
2616 def RecalcSizes(*args
, **kwargs
):
2617 """RecalcSizes(self)"""
2618 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2620 def CalcMin(*args
, **kwargs
):
2621 """CalcMin(self) -> Size"""
2622 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
2624 def GetNotebook(*args
, **kwargs
):
2625 """GetNotebook(self) -> Notebook"""
2626 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2629 class NotebookSizerPtr(NotebookSizer
):
2630 def __init__(self
, this
):
2632 if not hasattr(self
,"thisown"): self
.thisown
= 0
2633 self
.__class
__ = NotebookSizer
2634 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
2636 #---------------------------------------------------------------------------
2638 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
2639 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
2640 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
2641 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
2642 TB_VERTICAL
= _controls_
.TB_VERTICAL
2643 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
2644 TB_FLAT
= _controls_
.TB_FLAT
2645 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
2646 TB_NOICONS
= _controls_
.TB_NOICONS
2647 TB_TEXT
= _controls_
.TB_TEXT
2648 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
2649 TB_NOALIGN
= _controls_
.TB_NOALIGN
2650 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
2651 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
2652 class ToolBarToolBase(_core
.Object
):
2653 def __init__(self
): raise RuntimeError, "No constructor defined"
2655 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2656 def GetId(*args
, **kwargs
):
2657 """GetId(self) -> int"""
2658 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
2660 def GetControl(*args
, **kwargs
):
2661 """GetControl(self) -> Control"""
2662 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2664 def GetToolBar(*args
, **kwargs
):
2665 """GetToolBar(self) -> ToolBarBase"""
2666 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2668 def IsButton(*args
, **kwargs
):
2669 """IsButton(self) -> int"""
2670 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2672 def IsControl(*args
, **kwargs
):
2673 """IsControl(self) -> int"""
2674 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2676 def IsSeparator(*args
, **kwargs
):
2677 """IsSeparator(self) -> int"""
2678 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2680 def GetStyle(*args
, **kwargs
):
2681 """GetStyle(self) -> int"""
2682 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2684 def GetKind(*args
, **kwargs
):
2685 """GetKind(self) -> int"""
2686 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2688 def IsEnabled(*args
, **kwargs
):
2689 """IsEnabled(self) -> bool"""
2690 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2692 def IsToggled(*args
, **kwargs
):
2693 """IsToggled(self) -> bool"""
2694 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2696 def CanBeToggled(*args
, **kwargs
):
2697 """CanBeToggled(self) -> bool"""
2698 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2700 def GetNormalBitmap(*args
, **kwargs
):
2701 """GetNormalBitmap(self) -> Bitmap"""
2702 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2704 def GetDisabledBitmap(*args
, **kwargs
):
2705 """GetDisabledBitmap(self) -> Bitmap"""
2706 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2708 def GetBitmap(*args
, **kwargs
):
2709 """GetBitmap(self) -> Bitmap"""
2710 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2712 def GetLabel(*args
, **kwargs
):
2713 """GetLabel(self) -> String"""
2714 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2716 def GetShortHelp(*args
, **kwargs
):
2717 """GetShortHelp(self) -> String"""
2718 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2720 def GetLongHelp(*args
, **kwargs
):
2721 """GetLongHelp(self) -> String"""
2722 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2724 def Enable(*args
, **kwargs
):
2725 """Enable(self, bool enable) -> bool"""
2726 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
2728 def Toggle(*args
, **kwargs
):
2730 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2732 def SetToggle(*args
, **kwargs
):
2733 """SetToggle(self, bool toggle) -> bool"""
2734 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2736 def SetShortHelp(*args
, **kwargs
):
2737 """SetShortHelp(self, String help) -> bool"""
2738 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2740 def SetLongHelp(*args
, **kwargs
):
2741 """SetLongHelp(self, String help) -> bool"""
2742 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2744 def SetNormalBitmap(*args
, **kwargs
):
2745 """SetNormalBitmap(self, Bitmap bmp)"""
2746 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2748 def SetDisabledBitmap(*args
, **kwargs
):
2749 """SetDisabledBitmap(self, Bitmap bmp)"""
2750 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2752 def SetLabel(*args
, **kwargs
):
2753 """SetLabel(self, String label)"""
2754 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2756 def Detach(*args
, **kwargs
):
2758 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
2760 def Attach(*args
, **kwargs
):
2761 """Attach(self, ToolBarBase tbar)"""
2762 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
2764 def GetClientData(*args
, **kwargs
):
2765 """GetClientData(self) -> PyObject"""
2766 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2768 def SetClientData(*args
, **kwargs
):
2769 """SetClientData(self, PyObject clientData)"""
2770 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2772 GetBitmap1
= GetNormalBitmap
2773 GetBitmap2
= GetDisabledBitmap
2774 SetBitmap1
= SetNormalBitmap
2775 SetBitmap2
= SetDisabledBitmap
2778 class ToolBarToolBasePtr(ToolBarToolBase
):
2779 def __init__(self
, this
):
2781 if not hasattr(self
,"thisown"): self
.thisown
= 0
2782 self
.__class
__ = ToolBarToolBase
2783 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2785 class ToolBarBase(_core
.Control
):
2786 def __init__(self
): raise RuntimeError, "No constructor defined"
2788 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2789 def DoAddTool(*args
, **kwargs
):
2791 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2792 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2793 String longHelp=EmptyString,
2794 PyObject clientData=None) -> ToolBarToolBase
2796 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2798 def DoInsertTool(*args
, **kwargs
):
2800 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2801 int kind=ITEM_NORMAL,
2802 String shortHelp=EmptyString, String longHelp=EmptyString,
2803 PyObject clientData=None) -> ToolBarToolBase
2805 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2807 # These match the original Add methods for this class, kept for
2808 # backwards compatibility with versions < 2.3.3.
2811 def AddTool(self
, id, bitmap
,
2812 pushedBitmap
= wx
.NullBitmap
,
2815 shortHelpString
= '',
2816 longHelpString
= '') :
2817 '''Old style method to add a tool to the toolbar.'''
2818 kind
= wx
.ITEM_NORMAL
2819 if isToggle
: kind
= wx
.ITEM_CHECK
2820 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2821 shortHelpString
, longHelpString
, clientData
)
2823 def AddSimpleTool(self
, id, bitmap
,
2824 shortHelpString
= '',
2825 longHelpString
= '',
2827 '''Old style method to add a tool to the toolbar.'''
2828 kind
= wx
.ITEM_NORMAL
2829 if isToggle
: kind
= wx
.ITEM_CHECK
2830 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2831 shortHelpString
, longHelpString
, None)
2833 def InsertTool(self
, pos
, id, bitmap
,
2834 pushedBitmap
= wx
.NullBitmap
,
2837 shortHelpString
= '',
2838 longHelpString
= ''):
2839 '''Old style method to insert a tool in the toolbar.'''
2840 kind
= wx
.ITEM_NORMAL
2841 if isToggle
: kind
= wx
.ITEM_CHECK
2842 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2843 shortHelpString
, longHelpString
, clientData
)
2845 def InsertSimpleTool(self
, pos
, id, bitmap
,
2846 shortHelpString
= '',
2847 longHelpString
= '',
2849 '''Old style method to insert a tool in the toolbar.'''
2850 kind
= wx
.ITEM_NORMAL
2851 if isToggle
: kind
= wx
.ITEM_CHECK
2852 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2853 shortHelpString
, longHelpString
, None)
2856 # The following are the new toolbar Add methods starting with
2857 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2858 # able to keep backwards compatibility with using the above
2859 # methods. Eventually these should migrate to be the methods used
2860 # primarily and lose the 'Label' in the name...
2862 def AddLabelTool(self
, id, label
, bitmap
,
2863 bmpDisabled
= wx
.NullBitmap
,
2864 kind
= wx
.ITEM_NORMAL
,
2865 shortHelp
= '', longHelp
= '',
2868 The full AddTool() function.
2870 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2871 is created and used as the disabled image.
2873 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2874 shortHelp
, longHelp
, clientData
)
2877 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2878 bmpDisabled
= wx
.NullBitmap
,
2879 kind
= wx
.ITEM_NORMAL
,
2880 shortHelp
= '', longHelp
= '',
2883 Insert the new tool at the given position, if pos == GetToolsCount(), it
2884 is equivalent to AddTool()
2886 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2887 shortHelp
, longHelp
, clientData
)
2889 def AddCheckLabelTool(self
, id, label
, bitmap
,
2890 bmpDisabled
= wx
.NullBitmap
,
2891 shortHelp
= '', longHelp
= '',
2893 '''Add a check tool, i.e. a tool which can be toggled'''
2894 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2895 shortHelp
, longHelp
, clientData
)
2897 def AddRadioLabelTool(self
, id, label
, bitmap
,
2898 bmpDisabled
= wx
.NullBitmap
,
2899 shortHelp
= '', longHelp
= '',
2902 Add a radio tool, i.e. a tool which can be toggled and releases any
2903 other toggled radio tools in the same group when it happens
2905 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2906 shortHelp
, longHelp
, clientData
)
2909 # For consistency with the backwards compatible methods above, here are
2910 # some non-'Label' versions of the Check and Radio methods
2911 def AddCheckTool(self
, id, bitmap
,
2912 bmpDisabled
= wx
.NullBitmap
,
2913 shortHelp
= '', longHelp
= '',
2915 '''Add a check tool, i.e. a tool which can be toggled'''
2916 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2917 shortHelp
, longHelp
, clientData
)
2919 def AddRadioTool(self
, id, bitmap
,
2920 bmpDisabled
= wx
.NullBitmap
,
2921 shortHelp
= '', longHelp
= '',
2924 Add a radio tool, i.e. a tool which can be toggled and releases any
2925 other toggled radio tools in the same group when it happens
2927 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2928 shortHelp
, longHelp
, clientData
)
2930 def AddToolItem(*args
, **kwargs
):
2931 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
2932 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2934 def InsertToolItem(*args
, **kwargs
):
2935 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2936 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2938 def AddControl(*args
, **kwargs
):
2939 """AddControl(self, Control control) -> ToolBarToolBase"""
2940 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
2942 def InsertControl(*args
, **kwargs
):
2943 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
2944 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
2946 def FindControl(*args
, **kwargs
):
2947 """FindControl(self, int id) -> Control"""
2948 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
2950 def AddSeparator(*args
, **kwargs
):
2951 """AddSeparator(self) -> ToolBarToolBase"""
2952 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2954 def InsertSeparator(*args
, **kwargs
):
2955 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
2956 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2958 def RemoveTool(*args
, **kwargs
):
2959 """RemoveTool(self, int id) -> ToolBarToolBase"""
2960 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2962 def DeleteToolByPos(*args
, **kwargs
):
2963 """DeleteToolByPos(self, size_t pos) -> bool"""
2964 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2966 def DeleteTool(*args
, **kwargs
):
2967 """DeleteTool(self, int id) -> bool"""
2968 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2970 def ClearTools(*args
, **kwargs
):
2971 """ClearTools(self)"""
2972 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
2974 def Realize(*args
, **kwargs
):
2975 """Realize(self) -> bool"""
2976 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
2978 def EnableTool(*args
, **kwargs
):
2979 """EnableTool(self, int id, bool enable)"""
2980 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
2982 def ToggleTool(*args
, **kwargs
):
2983 """ToggleTool(self, int id, bool toggle)"""
2984 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2986 def SetToggle(*args
, **kwargs
):
2987 """SetToggle(self, int id, bool toggle)"""
2988 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
2990 def GetToolClientData(*args
, **kwargs
):
2991 """GetToolClientData(self, int id) -> PyObject"""
2992 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2994 def SetToolClientData(*args
, **kwargs
):
2995 """SetToolClientData(self, int id, PyObject clientData)"""
2996 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2998 def GetToolPos(*args
, **kwargs
):
2999 """GetToolPos(self, int id) -> int"""
3000 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3002 def GetToolState(*args
, **kwargs
):
3003 """GetToolState(self, int id) -> bool"""
3004 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3006 def GetToolEnabled(*args
, **kwargs
):
3007 """GetToolEnabled(self, int id) -> bool"""
3008 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3010 def SetToolShortHelp(*args
, **kwargs
):
3011 """SetToolShortHelp(self, int id, String helpString)"""
3012 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3014 def GetToolShortHelp(*args
, **kwargs
):
3015 """GetToolShortHelp(self, int id) -> String"""
3016 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3018 def SetToolLongHelp(*args
, **kwargs
):
3019 """SetToolLongHelp(self, int id, String helpString)"""
3020 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3022 def GetToolLongHelp(*args
, **kwargs
):
3023 """GetToolLongHelp(self, int id) -> String"""
3024 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3026 def SetMarginsXY(*args
, **kwargs
):
3027 """SetMarginsXY(self, int x, int y)"""
3028 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3030 def SetMargins(*args
, **kwargs
):
3031 """SetMargins(self, Size size)"""
3032 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3034 def SetToolPacking(*args
, **kwargs
):
3035 """SetToolPacking(self, int packing)"""
3036 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3038 def SetToolSeparation(*args
, **kwargs
):
3039 """SetToolSeparation(self, int separation)"""
3040 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3042 def GetToolMargins(*args
, **kwargs
):
3043 """GetToolMargins(self) -> Size"""
3044 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3046 def GetMargins(*args
, **kwargs
):
3047 """GetMargins(self) -> Size"""
3048 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3050 def GetToolPacking(*args
, **kwargs
):
3051 """GetToolPacking(self) -> int"""
3052 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3054 def GetToolSeparation(*args
, **kwargs
):
3055 """GetToolSeparation(self) -> int"""
3056 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3058 def SetRows(*args
, **kwargs
):
3059 """SetRows(self, int nRows)"""
3060 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3062 def SetMaxRowsCols(*args
, **kwargs
):
3063 """SetMaxRowsCols(self, int rows, int cols)"""
3064 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3066 def GetMaxRows(*args
, **kwargs
):
3067 """GetMaxRows(self) -> int"""
3068 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3070 def GetMaxCols(*args
, **kwargs
):
3071 """GetMaxCols(self) -> int"""
3072 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3074 def SetToolBitmapSize(*args
, **kwargs
):
3075 """SetToolBitmapSize(self, Size size)"""
3076 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3078 def GetToolBitmapSize(*args
, **kwargs
):
3079 """GetToolBitmapSize(self) -> Size"""
3080 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3082 def GetToolSize(*args
, **kwargs
):
3083 """GetToolSize(self) -> Size"""
3084 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3086 def FindToolForPosition(*args
, **kwargs
):
3087 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3088 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3090 def FindById(*args
, **kwargs
):
3091 """FindById(self, int toolid) -> ToolBarToolBase"""
3092 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3094 def IsVertical(*args
, **kwargs
):
3095 """IsVertical(self) -> bool"""
3096 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3099 class ToolBarBasePtr(ToolBarBase
):
3100 def __init__(self
, this
):
3102 if not hasattr(self
,"thisown"): self
.thisown
= 0
3103 self
.__class
__ = ToolBarBase
3104 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3106 class ToolBar(ToolBarBase
):
3108 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3109 def __init__(self
, *args
, **kwargs
):
3111 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3112 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3113 String name=wxPyToolBarNameStr) -> ToolBar
3115 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3116 self
.this
= newobj
.this
3119 self
._setOORInfo
(self
)
3121 def Create(*args
, **kwargs
):
3123 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3124 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3125 String name=wxPyToolBarNameStr) -> bool
3127 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3129 def FindToolForPosition(*args
, **kwargs
):
3130 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3131 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3134 class ToolBarPtr(ToolBar
):
3135 def __init__(self
, this
):
3137 if not hasattr(self
,"thisown"): self
.thisown
= 0
3138 self
.__class
__ = ToolBar
3139 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3141 def PreToolBar(*args
, **kwargs
):
3142 """PreToolBar() -> ToolBar"""
3143 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3147 #---------------------------------------------------------------------------
3149 LC_VRULES
= _controls_
.LC_VRULES
3150 LC_HRULES
= _controls_
.LC_HRULES
3151 LC_ICON
= _controls_
.LC_ICON
3152 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3153 LC_LIST
= _controls_
.LC_LIST
3154 LC_REPORT
= _controls_
.LC_REPORT
3155 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3156 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3157 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3158 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3159 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3160 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3161 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3162 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3163 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3164 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3165 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3166 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3167 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3168 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3169 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3170 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3171 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3172 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3173 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3174 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3175 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3176 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3177 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3178 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3179 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3180 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3181 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3182 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3183 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3184 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3185 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3186 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3187 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3188 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3189 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3190 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3191 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3192 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3193 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3194 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3195 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3196 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3197 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3198 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3199 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3200 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3201 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3202 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3203 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3204 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3205 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3206 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3207 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3208 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3209 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3210 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3211 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3212 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3213 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3214 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3215 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3216 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3217 #---------------------------------------------------------------------------
3219 class ListItemAttr(object):
3221 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3222 def __init__(self
, *args
, **kwargs
):
3224 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3225 Font font=wxNullFont) -> ListItemAttr
3227 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
3228 self
.this
= newobj
.this
3231 def SetTextColour(*args
, **kwargs
):
3232 """SetTextColour(self, Colour colText)"""
3233 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3235 def SetBackgroundColour(*args
, **kwargs
):
3236 """SetBackgroundColour(self, Colour colBack)"""
3237 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3239 def SetFont(*args
, **kwargs
):
3240 """SetFont(self, Font font)"""
3241 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3243 def HasTextColour(*args
, **kwargs
):
3244 """HasTextColour(self) -> bool"""
3245 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3247 def HasBackgroundColour(*args
, **kwargs
):
3248 """HasBackgroundColour(self) -> bool"""
3249 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3251 def HasFont(*args
, **kwargs
):
3252 """HasFont(self) -> bool"""
3253 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3255 def GetTextColour(*args
, **kwargs
):
3256 """GetTextColour(self) -> Colour"""
3257 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3259 def GetBackgroundColour(*args
, **kwargs
):
3260 """GetBackgroundColour(self) -> Colour"""
3261 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3263 def GetFont(*args
, **kwargs
):
3264 """GetFont(self) -> Font"""
3265 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
3267 def Destroy(*args
, **kwargs
):
3269 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
3272 class ListItemAttrPtr(ListItemAttr
):
3273 def __init__(self
, this
):
3275 if not hasattr(self
,"thisown"): self
.thisown
= 0
3276 self
.__class
__ = ListItemAttr
3277 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
3278 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3280 #---------------------------------------------------------------------------
3282 class ListItem(_core
.Object
):
3284 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3285 def __init__(self
, *args
, **kwargs
):
3286 """__init__(self) -> ListItem"""
3287 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
3288 self
.this
= newobj
.this
3291 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
3294 if self
.thisown
: destroy(self
)
3297 def Clear(*args
, **kwargs
):
3299 return _controls_
.ListItem_Clear(*args
, **kwargs
)
3301 def ClearAttributes(*args
, **kwargs
):
3302 """ClearAttributes(self)"""
3303 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
3305 def SetMask(*args
, **kwargs
):
3306 """SetMask(self, long mask)"""
3307 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
3309 def SetId(*args
, **kwargs
):
3310 """SetId(self, long id)"""
3311 return _controls_
.ListItem_SetId(*args
, **kwargs
)
3313 def SetColumn(*args
, **kwargs
):
3314 """SetColumn(self, int col)"""
3315 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
3317 def SetState(*args
, **kwargs
):
3318 """SetState(self, long state)"""
3319 return _controls_
.ListItem_SetState(*args
, **kwargs
)
3321 def SetStateMask(*args
, **kwargs
):
3322 """SetStateMask(self, long stateMask)"""
3323 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
3325 def SetText(*args
, **kwargs
):
3326 """SetText(self, String text)"""
3327 return _controls_
.ListItem_SetText(*args
, **kwargs
)
3329 def SetImage(*args
, **kwargs
):
3330 """SetImage(self, int image)"""
3331 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
3333 def SetData(*args
, **kwargs
):
3334 """SetData(self, long data)"""
3335 return _controls_
.ListItem_SetData(*args
, **kwargs
)
3337 def SetWidth(*args
, **kwargs
):
3338 """SetWidth(self, int width)"""
3339 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
3341 def SetAlign(*args
, **kwargs
):
3342 """SetAlign(self, int align)"""
3343 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
3345 def SetTextColour(*args
, **kwargs
):
3346 """SetTextColour(self, Colour colText)"""
3347 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
3349 def SetBackgroundColour(*args
, **kwargs
):
3350 """SetBackgroundColour(self, Colour colBack)"""
3351 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3353 def SetFont(*args
, **kwargs
):
3354 """SetFont(self, Font font)"""
3355 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
3357 def GetMask(*args
, **kwargs
):
3358 """GetMask(self) -> long"""
3359 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
3361 def GetId(*args
, **kwargs
):
3362 """GetId(self) -> long"""
3363 return _controls_
.ListItem_GetId(*args
, **kwargs
)
3365 def GetColumn(*args
, **kwargs
):
3366 """GetColumn(self) -> int"""
3367 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
3369 def GetState(*args
, **kwargs
):
3370 """GetState(self) -> long"""
3371 return _controls_
.ListItem_GetState(*args
, **kwargs
)
3373 def GetText(*args
, **kwargs
):
3374 """GetText(self) -> String"""
3375 return _controls_
.ListItem_GetText(*args
, **kwargs
)
3377 def GetImage(*args
, **kwargs
):
3378 """GetImage(self) -> int"""
3379 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
3381 def GetData(*args
, **kwargs
):
3382 """GetData(self) -> long"""
3383 return _controls_
.ListItem_GetData(*args
, **kwargs
)
3385 def GetWidth(*args
, **kwargs
):
3386 """GetWidth(self) -> int"""
3387 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
3389 def GetAlign(*args
, **kwargs
):
3390 """GetAlign(self) -> int"""
3391 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
3393 def GetAttributes(*args
, **kwargs
):
3394 """GetAttributes(self) -> ListItemAttr"""
3395 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
3397 def HasAttributes(*args
, **kwargs
):
3398 """HasAttributes(self) -> bool"""
3399 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
3401 def GetTextColour(*args
, **kwargs
):
3402 """GetTextColour(self) -> Colour"""
3403 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
3405 def GetBackgroundColour(*args
, **kwargs
):
3406 """GetBackgroundColour(self) -> Colour"""
3407 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3409 def GetFont(*args
, **kwargs
):
3410 """GetFont(self) -> Font"""
3411 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
3413 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
3414 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
3415 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
3416 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
3417 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
3418 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
3419 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
3420 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
3421 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
3422 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
3424 class ListItemPtr(ListItem
):
3425 def __init__(self
, this
):
3427 if not hasattr(self
,"thisown"): self
.thisown
= 0
3428 self
.__class
__ = ListItem
3429 _controls_
.ListItem_swigregister(ListItemPtr
)
3431 #---------------------------------------------------------------------------
3433 class ListEvent(_core
.NotifyEvent
):
3435 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3436 def __init__(self
, *args
, **kwargs
):
3437 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3438 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
3439 self
.this
= newobj
.this
3442 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
3443 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
3444 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
3445 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
3446 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
3447 m_item
= property(_controls_
.ListEvent_m_item_get
)
3448 def GetKeyCode(*args
, **kwargs
):
3449 """GetKeyCode(self) -> int"""
3450 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
3452 GetCode
= GetKeyCode
3453 def GetIndex(*args
, **kwargs
):
3454 """GetIndex(self) -> long"""
3455 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
3457 def GetColumn(*args
, **kwargs
):
3458 """GetColumn(self) -> int"""
3459 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
3461 def GetPoint(*args
, **kwargs
):
3462 """GetPoint(self) -> Point"""
3463 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
3465 GetPosition
= GetPoint
3466 def GetLabel(*args
, **kwargs
):
3467 """GetLabel(self) -> String"""
3468 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
3470 def GetText(*args
, **kwargs
):
3471 """GetText(self) -> String"""
3472 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
3474 def GetImage(*args
, **kwargs
):
3475 """GetImage(self) -> int"""
3476 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
3478 def GetData(*args
, **kwargs
):
3479 """GetData(self) -> long"""
3480 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
3482 def GetMask(*args
, **kwargs
):
3483 """GetMask(self) -> long"""
3484 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
3486 def GetItem(*args
, **kwargs
):
3487 """GetItem(self) -> ListItem"""
3488 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
3490 def GetCacheFrom(*args
, **kwargs
):
3491 """GetCacheFrom(self) -> long"""
3492 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3494 def GetCacheTo(*args
, **kwargs
):
3495 """GetCacheTo(self) -> long"""
3496 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
3498 def IsEditCancelled(*args
, **kwargs
):
3499 """IsEditCancelled(self) -> bool"""
3500 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3502 def SetEditCanceled(*args
, **kwargs
):
3503 """SetEditCanceled(self, bool editCancelled)"""
3504 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3507 class ListEventPtr(ListEvent
):
3508 def __init__(self
, this
):
3510 if not hasattr(self
,"thisown"): self
.thisown
= 0
3511 self
.__class
__ = ListEvent
3512 _controls_
.ListEvent_swigregister(ListEventPtr
)
3514 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3515 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3516 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3517 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3518 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
3519 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3520 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
3521 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
3522 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3523 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3524 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
3525 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
3526 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
3527 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3528 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3529 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3530 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
3531 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3532 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3533 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
3534 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
3535 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3536 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3537 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3538 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3539 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3540 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3541 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3542 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3543 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3544 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3545 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3546 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3547 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3548 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3549 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3550 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3551 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3552 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3553 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3554 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3555 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3556 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3557 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3559 #---------------------------------------------------------------------------
3561 class ListCtrl(_core
.Control
):
3563 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3564 def __init__(self
, *args
, **kwargs
):
3566 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3567 Size size=DefaultSize, long style=LC_ICON,
3568 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3570 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
3571 self
.this
= newobj
.this
3574 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3576 def Create(*args
, **kwargs
):
3578 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3579 Size size=DefaultSize, long style=LC_ICON,
3580 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3582 Do the 2nd phase and create the GUI control.
3584 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
3586 def _setCallbackInfo(*args
, **kwargs
):
3587 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3588 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3590 def SetForegroundColour(*args
, **kwargs
):
3591 """SetForegroundColour(self, Colour col) -> bool"""
3592 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3594 def SetBackgroundColour(*args
, **kwargs
):
3595 """SetBackgroundColour(self, Colour col) -> bool"""
3596 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3598 def GetColumn(*args
, **kwargs
):
3599 """GetColumn(self, int col) -> ListItem"""
3600 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
3601 if val
is not None: val
.thisown
= 1
3604 def SetColumn(*args
, **kwargs
):
3605 """SetColumn(self, int col, ListItem item) -> bool"""
3606 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
3608 def GetColumnWidth(*args
, **kwargs
):
3609 """GetColumnWidth(self, int col) -> int"""
3610 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3612 def SetColumnWidth(*args
, **kwargs
):
3613 """SetColumnWidth(self, int col, int width) -> bool"""
3614 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3616 def GetCountPerPage(*args
, **kwargs
):
3617 """GetCountPerPage(self) -> int"""
3618 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3620 def GetViewRect(*args
, **kwargs
):
3621 """GetViewRect(self) -> Rect"""
3622 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
3624 def GetItem(*args
, **kwargs
):
3625 """GetItem(self, long itemId, int col=0) -> ListItem"""
3626 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
3627 if val
is not None: val
.thisown
= 1
3630 def SetItem(*args
, **kwargs
):
3631 """SetItem(self, ListItem info) -> bool"""
3632 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
3634 def SetStringItem(*args
, **kwargs
):
3635 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
3636 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
3638 def GetItemState(*args
, **kwargs
):
3639 """GetItemState(self, long item, long stateMask) -> int"""
3640 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
3642 def SetItemState(*args
, **kwargs
):
3643 """SetItemState(self, long item, long state, long stateMask) -> bool"""
3644 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
3646 def SetItemImage(*args
, **kwargs
):
3647 """SetItemImage(self, long item, int image, int selImage) -> bool"""
3648 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
3650 def GetItemText(*args
, **kwargs
):
3651 """GetItemText(self, long item) -> String"""
3652 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
3654 def SetItemText(*args
, **kwargs
):
3655 """SetItemText(self, long item, String str)"""
3656 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
3658 def GetItemData(*args
, **kwargs
):
3659 """GetItemData(self, long item) -> long"""
3660 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
3662 def SetItemData(*args
, **kwargs
):
3663 """SetItemData(self, long item, long data) -> bool"""
3664 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
3666 def GetItemPosition(*args
, **kwargs
):
3667 """GetItemPosition(self, long item) -> Point"""
3668 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3670 def GetItemRect(*args
, **kwargs
):
3671 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3672 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
3674 def SetItemPosition(*args
, **kwargs
):
3675 """SetItemPosition(self, long item, Point pos) -> bool"""
3676 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3678 def GetItemCount(*args
, **kwargs
):
3679 """GetItemCount(self) -> int"""
3680 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
3682 def GetColumnCount(*args
, **kwargs
):
3683 """GetColumnCount(self) -> int"""
3684 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3686 def GetItemSpacing(*args
, **kwargs
):
3687 """GetItemSpacing(self) -> Size"""
3688 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3690 def SetItemSpacing(*args
, **kwargs
):
3691 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
3692 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3694 def GetSelectedItemCount(*args
, **kwargs
):
3695 """GetSelectedItemCount(self) -> int"""
3696 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3698 def GetTextColour(*args
, **kwargs
):
3699 """GetTextColour(self) -> Colour"""
3700 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
3702 def SetTextColour(*args
, **kwargs
):
3703 """SetTextColour(self, Colour col)"""
3704 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
3706 def GetTopItem(*args
, **kwargs
):
3707 """GetTopItem(self) -> long"""
3708 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
3710 def SetSingleStyle(*args
, **kwargs
):
3711 """SetSingleStyle(self, long style, bool add=True)"""
3712 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3714 def SetWindowStyleFlag(*args
, **kwargs
):
3716 SetWindowStyleFlag(self, long style)
3718 Sets the style of the window. Please note that some styles cannot
3719 be changed after the window creation and that Refresh() might
3720 need to be called after changing the others for the change to
3721 take place immediately.
3723 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3725 def GetNextItem(*args
, **kwargs
):
3726 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3727 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
3729 def GetImageList(*args
, **kwargs
):
3730 """GetImageList(self, int which) -> ImageList"""
3731 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
3733 def SetImageList(*args
, **kwargs
):
3734 """SetImageList(self, ImageList imageList, int which)"""
3735 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
3737 def AssignImageList(*args
, **kwargs
):
3738 """AssignImageList(self, ImageList imageList, int which)"""
3739 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
3741 def InReportView(*args
, **kwargs
):
3742 """InReportView(self) -> bool"""
3743 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
3745 def IsVirtual(*args
, **kwargs
):
3746 """IsVirtual(self) -> bool"""
3747 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
3749 def RefreshItem(*args
, **kwargs
):
3750 """RefreshItem(self, long item)"""
3751 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
3753 def RefreshItems(*args
, **kwargs
):
3754 """RefreshItems(self, long itemFrom, long itemTo)"""
3755 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
3757 def Arrange(*args
, **kwargs
):
3758 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
3759 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
3761 def DeleteItem(*args
, **kwargs
):
3762 """DeleteItem(self, long item) -> bool"""
3763 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
3765 def DeleteAllItems(*args
, **kwargs
):
3766 """DeleteAllItems(self) -> bool"""
3767 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3769 def DeleteColumn(*args
, **kwargs
):
3770 """DeleteColumn(self, int col) -> bool"""
3771 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3773 def DeleteAllColumns(*args
, **kwargs
):
3774 """DeleteAllColumns(self) -> bool"""
3775 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3777 def ClearAll(*args
, **kwargs
):
3778 """ClearAll(self)"""
3779 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
3781 def EditLabel(*args
, **kwargs
):
3782 """EditLabel(self, long item)"""
3783 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
3785 def EnsureVisible(*args
, **kwargs
):
3786 """EnsureVisible(self, long item) -> bool"""
3787 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3789 def FindItem(*args
, **kwargs
):
3790 """FindItem(self, long start, String str, bool partial=False) -> long"""
3791 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
3793 def FindItemData(*args
, **kwargs
):
3794 """FindItemData(self, long start, long data) -> long"""
3795 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
3797 def FindItemAtPos(*args
, **kwargs
):
3798 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
3799 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3801 def HitTest(*args
, **kwargs
):
3803 HitTest(Point point) -> (item, where)
3805 Determines which item (if any) is at the specified point,
3806 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3808 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
3810 def InsertItem(*args
, **kwargs
):
3811 """InsertItem(self, ListItem info) -> long"""
3812 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
3814 def InsertStringItem(*args
, **kwargs
):
3815 """InsertStringItem(self, long index, String label) -> long"""
3816 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3818 def InsertImageItem(*args
, **kwargs
):
3819 """InsertImageItem(self, long index, int imageIndex) -> long"""
3820 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3822 def InsertImageStringItem(*args
, **kwargs
):
3823 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
3824 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3826 def InsertColumnInfo(*args
, **kwargs
):
3827 """InsertColumnInfo(self, long col, ListItem info) -> long"""
3828 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3830 def InsertColumn(*args
, **kwargs
):
3832 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
3833 int width=-1) -> long
3835 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
3837 def SetItemCount(*args
, **kwargs
):
3838 """SetItemCount(self, long count)"""
3839 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
3841 def ScrollList(*args
, **kwargs
):
3842 """ScrollList(self, int dx, int dy) -> bool"""
3843 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
3845 def SetItemTextColour(*args
, **kwargs
):
3846 """SetItemTextColour(self, long item, Colour col)"""
3847 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3849 def GetItemTextColour(*args
, **kwargs
):
3850 """GetItemTextColour(self, long item) -> Colour"""
3851 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3853 def SetItemBackgroundColour(*args
, **kwargs
):
3854 """SetItemBackgroundColour(self, long item, Colour col)"""
3855 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3857 def GetItemBackgroundColour(*args
, **kwargs
):
3858 """GetItemBackgroundColour(self, long item) -> Colour"""
3859 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3863 def Select(self
, idx
, on
=1):
3864 '''[de]select an item'''
3865 if on
: state
= wx
.LIST_STATE_SELECTED
3867 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3869 def Focus(self
, idx
):
3870 '''Focus and show the given item'''
3871 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3872 self
.EnsureVisible(idx
)
3874 def GetFocusedItem(self
):
3875 '''get the currently focused item or -1 if none'''
3876 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3878 def GetFirstSelected(self
, *args
):
3879 '''return first selected item, or -1 when none'''
3880 return self
.GetNextSelected(-1)
3882 def GetNextSelected(self
, item
):
3883 '''return subsequent selected items, or -1 when no more'''
3884 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3886 def IsSelected(self
, idx
):
3887 '''return True if the item is selected'''
3888 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3890 def SetColumnImage(self
, col
, image
):
3891 item
= self
.GetColumn(col
)
3892 # preserve all other attributes too
3893 item
.SetMask( wx
.LIST_MASK_STATE |
3895 wx
.LIST_MASK_IMAGE |
3898 wx
.LIST_MASK_WIDTH |
3899 wx
.LIST_MASK_FORMAT
)
3900 item
.SetImage(image
)
3901 self
.SetColumn(col
, item
)
3903 def ClearColumnImage(self
, col
):
3904 self
.SetColumnImage(col
, -1)
3906 def Append(self
, entry
):
3907 '''Append an item to the list control. The entry parameter should be a
3908 sequence with an item for each column'''
3914 pos
= self
.GetItemCount()
3915 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3916 for i
in range(1, len(entry
)):
3917 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3920 def SortItems(*args
, **kwargs
):
3921 """SortItems(self, PyObject func) -> bool"""
3922 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
3924 def GetMainWindow(*args
, **kwargs
):
3925 """GetMainWindow(self) -> Window"""
3926 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3928 def GetClassDefaultAttributes(*args
, **kwargs
):
3930 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3932 Get the default attributes for this class. This is useful if
3933 you want to use the same font or colour in your own control as
3934 in a standard control -- which is a much better idea than hard
3935 coding specific colours or fonts which might look completely out
3936 of place on the users system, especially if it uses themes.
3938 The variant parameter is only relevant under Mac currently and is
3939 ignore under other platforms. Under Mac, it will change the size of the
3940 returned font. See SetWindowVariant for more about this.
3942 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3944 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3946 class ListCtrlPtr(ListCtrl
):
3947 def __init__(self
, this
):
3949 if not hasattr(self
,"thisown"): self
.thisown
= 0
3950 self
.__class
__ = ListCtrl
3951 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
3953 def PreListCtrl(*args
, **kwargs
):
3954 """PreListCtrl() -> ListCtrl"""
3955 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
3959 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
3961 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3963 Get the default attributes for this class. This is useful if
3964 you want to use the same font or colour in your own control as
3965 in a standard control -- which is a much better idea than hard
3966 coding specific colours or fonts which might look completely out
3967 of place on the users system, especially if it uses themes.
3969 The variant parameter is only relevant under Mac currently and is
3970 ignore under other platforms. Under Mac, it will change the size of the
3971 returned font. See SetWindowVariant for more about this.
3973 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3975 #---------------------------------------------------------------------------
3977 class ListView(ListCtrl
):
3979 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3980 def __init__(self
, *args
, **kwargs
):
3982 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3983 Size size=DefaultSize, long style=LC_REPORT,
3984 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3986 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
3987 self
.this
= newobj
.this
3990 self
._setOORInfo
(self
)
3992 def Create(*args
, **kwargs
):
3994 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3995 Size size=DefaultSize, long style=LC_REPORT,
3996 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3998 Do the 2nd phase and create the GUI control.
4000 return _controls_
.ListView_Create(*args
, **kwargs
)
4002 def Select(*args
, **kwargs
):
4003 """Select(self, long n, bool on=True)"""
4004 return _controls_
.ListView_Select(*args
, **kwargs
)
4006 def Focus(*args
, **kwargs
):
4007 """Focus(self, long index)"""
4008 return _controls_
.ListView_Focus(*args
, **kwargs
)
4010 def GetFocusedItem(*args
, **kwargs
):
4011 """GetFocusedItem(self) -> long"""
4012 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4014 def GetNextSelected(*args
, **kwargs
):
4015 """GetNextSelected(self, long item) -> long"""
4016 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4018 def GetFirstSelected(*args
, **kwargs
):
4019 """GetFirstSelected(self) -> long"""
4020 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4022 def IsSelected(*args
, **kwargs
):
4023 """IsSelected(self, long index) -> bool"""
4024 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4026 def SetColumnImage(*args
, **kwargs
):
4027 """SetColumnImage(self, int col, int image)"""
4028 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4030 def ClearColumnImage(*args
, **kwargs
):
4031 """ClearColumnImage(self, int col)"""
4032 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4035 class ListViewPtr(ListView
):
4036 def __init__(self
, this
):
4038 if not hasattr(self
,"thisown"): self
.thisown
= 0
4039 self
.__class
__ = ListView
4040 _controls_
.ListView_swigregister(ListViewPtr
)
4042 def PreListView(*args
, **kwargs
):
4043 """PreListView() -> ListView"""
4044 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4048 #---------------------------------------------------------------------------
4050 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4051 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4052 TR_NO_LINES
= _controls_
.TR_NO_LINES
4053 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4054 TR_SINGLE
= _controls_
.TR_SINGLE
4055 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4056 TR_EXTENDED
= _controls_
.TR_EXTENDED
4057 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4058 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4059 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4060 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4061 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4062 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4063 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4064 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
4065 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
4066 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4067 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4068 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4069 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4070 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4071 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4072 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4073 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4074 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4075 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4076 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4077 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4078 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4079 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4080 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4081 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4082 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4083 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4084 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4085 #---------------------------------------------------------------------------
4087 class TreeItemId(object):
4089 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4090 def __init__(self
, *args
, **kwargs
):
4091 """__init__(self) -> TreeItemId"""
4092 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
4093 self
.this
= newobj
.this
4096 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
4099 if self
.thisown
: destroy(self
)
4102 def IsOk(*args
, **kwargs
):
4103 """IsOk(self) -> bool"""
4104 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4106 def __eq__(*args
, **kwargs
):
4107 """__eq__(self, TreeItemId other) -> bool"""
4108 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4110 def __ne__(*args
, **kwargs
):
4111 """__ne__(self, TreeItemId other) -> bool"""
4112 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4114 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4116 def __nonzero__(self
): return self
.IsOk()
4118 class TreeItemIdPtr(TreeItemId
):
4119 def __init__(self
, this
):
4121 if not hasattr(self
,"thisown"): self
.thisown
= 0
4122 self
.__class
__ = TreeItemId
4123 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
4124 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4126 class TreeItemData(object):
4128 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4129 def __init__(self
, *args
, **kwargs
):
4130 """__init__(self, PyObject obj=None) -> TreeItemData"""
4131 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
4132 self
.this
= newobj
.this
4135 def GetData(*args
, **kwargs
):
4136 """GetData(self) -> PyObject"""
4137 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4139 def SetData(*args
, **kwargs
):
4140 """SetData(self, PyObject obj)"""
4141 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4143 def GetId(*args
, **kwargs
):
4144 """GetId(self) -> TreeItemId"""
4145 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4147 def SetId(*args
, **kwargs
):
4148 """SetId(self, TreeItemId id)"""
4149 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4151 def Destroy(*args
, **kwargs
):
4153 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4156 class TreeItemDataPtr(TreeItemData
):
4157 def __init__(self
, this
):
4159 if not hasattr(self
,"thisown"): self
.thisown
= 0
4160 self
.__class
__ = TreeItemData
4161 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
4163 #---------------------------------------------------------------------------
4165 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4166 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4167 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4168 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4169 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4170 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4171 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4172 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4173 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4174 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4175 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4176 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4177 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4178 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4179 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4180 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4181 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4182 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4183 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4184 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4185 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4186 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4187 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4188 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4189 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4190 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4191 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4192 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4193 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4194 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4195 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4196 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4197 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4198 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4199 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4200 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4201 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4202 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4203 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4204 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4206 class TreeEvent(_core
.NotifyEvent
):
4208 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4209 def __init__(self
, *args
, **kwargs
):
4210 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4211 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
4212 self
.this
= newobj
.this
4215 def GetItem(*args
, **kwargs
):
4216 """GetItem(self) -> TreeItemId"""
4217 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4219 def SetItem(*args
, **kwargs
):
4220 """SetItem(self, TreeItemId item)"""
4221 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4223 def GetOldItem(*args
, **kwargs
):
4224 """GetOldItem(self) -> TreeItemId"""
4225 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4227 def SetOldItem(*args
, **kwargs
):
4228 """SetOldItem(self, TreeItemId item)"""
4229 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4231 def GetPoint(*args
, **kwargs
):
4232 """GetPoint(self) -> Point"""
4233 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4235 def SetPoint(*args
, **kwargs
):
4236 """SetPoint(self, Point pt)"""
4237 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4239 def GetKeyEvent(*args
, **kwargs
):
4240 """GetKeyEvent(self) -> KeyEvent"""
4241 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4243 def GetKeyCode(*args
, **kwargs
):
4244 """GetKeyCode(self) -> int"""
4245 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4247 def SetKeyEvent(*args
, **kwargs
):
4248 """SetKeyEvent(self, KeyEvent evt)"""
4249 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4251 def GetLabel(*args
, **kwargs
):
4252 """GetLabel(self) -> String"""
4253 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4255 def SetLabel(*args
, **kwargs
):
4256 """SetLabel(self, String label)"""
4257 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4259 def IsEditCancelled(*args
, **kwargs
):
4260 """IsEditCancelled(self) -> bool"""
4261 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4263 def SetEditCanceled(*args
, **kwargs
):
4264 """SetEditCanceled(self, bool editCancelled)"""
4265 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4267 def SetToolTip(*args
, **kwargs
):
4268 """SetToolTip(self, String toolTip)"""
4269 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4272 class TreeEventPtr(TreeEvent
):
4273 def __init__(self
, this
):
4275 if not hasattr(self
,"thisown"): self
.thisown
= 0
4276 self
.__class
__ = TreeEvent
4277 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
4279 #---------------------------------------------------------------------------
4281 class TreeCtrl(_core
.Control
):
4283 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4284 def __init__(self
, *args
, **kwargs
):
4286 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4287 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4288 Validator validator=DefaultValidator,
4289 String name=TreeCtrlNameStr) -> TreeCtrl
4291 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
4292 self
.this
= newobj
.this
4295 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4297 def Create(*args
, **kwargs
):
4299 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4300 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4301 Validator validator=DefaultValidator,
4302 String name=TreeCtrlNameStr) -> bool
4304 Do the 2nd phase and create the GUI control.
4306 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
4308 def _setCallbackInfo(*args
, **kwargs
):
4309 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4310 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4312 def GetCount(*args
, **kwargs
):
4313 """GetCount(self) -> size_t"""
4314 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
4316 def GetIndent(*args
, **kwargs
):
4317 """GetIndent(self) -> unsigned int"""
4318 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
4320 def SetIndent(*args
, **kwargs
):
4321 """SetIndent(self, unsigned int indent)"""
4322 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
4324 def GetSpacing(*args
, **kwargs
):
4325 """GetSpacing(self) -> unsigned int"""
4326 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4328 def SetSpacing(*args
, **kwargs
):
4329 """SetSpacing(self, unsigned int spacing)"""
4330 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4332 def GetImageList(*args
, **kwargs
):
4333 """GetImageList(self) -> ImageList"""
4334 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
4336 def GetStateImageList(*args
, **kwargs
):
4337 """GetStateImageList(self) -> ImageList"""
4338 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4340 def SetImageList(*args
, **kwargs
):
4341 """SetImageList(self, ImageList imageList)"""
4342 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
4344 def SetStateImageList(*args
, **kwargs
):
4345 """SetStateImageList(self, ImageList imageList)"""
4346 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4348 def AssignImageList(*args
, **kwargs
):
4349 """AssignImageList(self, ImageList imageList)"""
4350 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4352 def AssignStateImageList(*args
, **kwargs
):
4353 """AssignStateImageList(self, ImageList imageList)"""
4354 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4356 def GetItemText(*args
, **kwargs
):
4357 """GetItemText(self, TreeItemId item) -> String"""
4358 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
4360 def GetItemImage(*args
, **kwargs
):
4361 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4362 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4364 def GetItemData(*args
, **kwargs
):
4365 """GetItemData(self, TreeItemId item) -> TreeItemData"""
4366 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
4368 def GetItemPyData(*args
, **kwargs
):
4369 """GetItemPyData(self, TreeItemId item) -> PyObject"""
4370 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4372 GetPyData
= GetItemPyData
4373 def GetItemTextColour(*args
, **kwargs
):
4374 """GetItemTextColour(self, TreeItemId item) -> Colour"""
4375 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4377 def GetItemBackgroundColour(*args
, **kwargs
):
4378 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
4379 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4381 def GetItemFont(*args
, **kwargs
):
4382 """GetItemFont(self, TreeItemId item) -> Font"""
4383 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4385 def SetItemText(*args
, **kwargs
):
4386 """SetItemText(self, TreeItemId item, String text)"""
4387 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
4389 def SetItemImage(*args
, **kwargs
):
4390 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4391 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4393 def SetItemData(*args
, **kwargs
):
4394 """SetItemData(self, TreeItemId item, TreeItemData data)"""
4395 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
4397 def SetItemPyData(*args
, **kwargs
):
4398 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
4399 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4401 SetPyData
= SetItemPyData
4402 def SetItemHasChildren(*args
, **kwargs
):
4403 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
4404 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4406 def SetItemBold(*args
, **kwargs
):
4407 """SetItemBold(self, TreeItemId item, bool bold=True)"""
4408 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4410 def SetItemTextColour(*args
, **kwargs
):
4411 """SetItemTextColour(self, TreeItemId item, Colour col)"""
4412 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4414 def SetItemBackgroundColour(*args
, **kwargs
):
4415 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
4416 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4418 def SetItemFont(*args
, **kwargs
):
4419 """SetItemFont(self, TreeItemId item, Font font)"""
4420 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4422 def IsVisible(*args
, **kwargs
):
4423 """IsVisible(self, TreeItemId item) -> bool"""
4424 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
4426 def ItemHasChildren(*args
, **kwargs
):
4427 """ItemHasChildren(self, TreeItemId item) -> bool"""
4428 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4430 def IsExpanded(*args
, **kwargs
):
4431 """IsExpanded(self, TreeItemId item) -> bool"""
4432 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4434 def IsSelected(*args
, **kwargs
):
4435 """IsSelected(self, TreeItemId item) -> bool"""
4436 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
4438 def IsBold(*args
, **kwargs
):
4439 """IsBold(self, TreeItemId item) -> bool"""
4440 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
4442 def GetChildrenCount(*args
, **kwargs
):
4443 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
4444 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4446 def GetRootItem(*args
, **kwargs
):
4447 """GetRootItem(self) -> TreeItemId"""
4448 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4450 def GetSelection(*args
, **kwargs
):
4451 """GetSelection(self) -> TreeItemId"""
4452 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
4454 def GetSelections(*args
, **kwargs
):
4455 """GetSelections(self) -> PyObject"""
4456 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
4458 def GetItemParent(*args
, **kwargs
):
4459 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
4460 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4462 def GetFirstChild(*args
, **kwargs
):
4463 """GetFirstChild(self, TreeItemId item) -> PyObject"""
4464 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4466 def GetNextChild(*args
, **kwargs
):
4467 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
4468 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4470 def GetLastChild(*args
, **kwargs
):
4471 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
4472 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4474 def GetNextSibling(*args
, **kwargs
):
4475 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
4476 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4478 def GetPrevSibling(*args
, **kwargs
):
4479 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
4480 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4482 def GetFirstVisibleItem(*args
, **kwargs
):
4483 """GetFirstVisibleItem(self) -> TreeItemId"""
4484 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4486 def GetNextVisible(*args
, **kwargs
):
4487 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
4488 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4490 def GetPrevVisible(*args
, **kwargs
):
4491 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
4492 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4494 def AddRoot(*args
, **kwargs
):
4495 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4496 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
4498 def PrependItem(*args
, **kwargs
):
4500 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4501 TreeItemData data=None) -> TreeItemId
4503 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
4505 def InsertItem(*args
, **kwargs
):
4507 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
4508 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4510 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
4512 def InsertItemBefore(*args
, **kwargs
):
4514 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
4515 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4517 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4519 def AppendItem(*args
, **kwargs
):
4521 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4522 TreeItemData data=None) -> TreeItemId
4524 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
4526 def Delete(*args
, **kwargs
):
4527 """Delete(self, TreeItemId item)"""
4528 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
4530 def DeleteChildren(*args
, **kwargs
):
4531 """DeleteChildren(self, TreeItemId item)"""
4532 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4534 def DeleteAllItems(*args
, **kwargs
):
4535 """DeleteAllItems(self)"""
4536 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4538 def Expand(*args
, **kwargs
):
4539 """Expand(self, TreeItemId item)"""
4540 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
4542 def Collapse(*args
, **kwargs
):
4543 """Collapse(self, TreeItemId item)"""
4544 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
4546 def CollapseAndReset(*args
, **kwargs
):
4547 """CollapseAndReset(self, TreeItemId item)"""
4548 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4550 def Toggle(*args
, **kwargs
):
4551 """Toggle(self, TreeItemId item)"""
4552 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
4554 def Unselect(*args
, **kwargs
):
4555 """Unselect(self)"""
4556 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
4558 def UnselectItem(*args
, **kwargs
):
4559 """UnselectItem(self, TreeItemId item)"""
4560 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4562 def UnselectAll(*args
, **kwargs
):
4563 """UnselectAll(self)"""
4564 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4566 def SelectItem(*args
, **kwargs
):
4567 """SelectItem(self, TreeItemId item, bool select=True)"""
4568 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
4570 def ToggleItemSelection(*args
, **kwargs
):
4571 """ToggleItemSelection(self, TreeItemId item)"""
4572 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4574 def EnsureVisible(*args
, **kwargs
):
4575 """EnsureVisible(self, TreeItemId item)"""
4576 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4578 def ScrollTo(*args
, **kwargs
):
4579 """ScrollTo(self, TreeItemId item)"""
4580 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4582 def EditLabel(*args
, **kwargs
):
4583 """EditLabel(self, TreeItemId item)"""
4584 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
4586 def GetEditControl(*args
, **kwargs
):
4587 """GetEditControl(self) -> TextCtrl"""
4588 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4590 def SortChildren(*args
, **kwargs
):
4591 """SortChildren(self, TreeItemId item)"""
4592 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
4594 def HitTest(*args
, **kwargs
):
4596 HitTest(Point point) -> (item, where)
4598 Determine which item (if any) belongs the given point. The
4599 coordinates specified are relative to the client area of tree ctrl
4600 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4604 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
4606 def GetBoundingRect(*args
, **kwargs
):
4607 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
4608 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4610 def GetClassDefaultAttributes(*args
, **kwargs
):
4612 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4614 Get the default attributes for this class. This is useful if
4615 you want to use the same font or colour in your own control as
4616 in a standard control -- which is a much better idea than hard
4617 coding specific colours or fonts which might look completely out
4618 of place on the users system, especially if it uses themes.
4620 The variant parameter is only relevant under Mac currently and is
4621 ignore under other platforms. Under Mac, it will change the size of the
4622 returned font. See SetWindowVariant for more about this.
4624 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4626 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4628 class TreeCtrlPtr(TreeCtrl
):
4629 def __init__(self
, this
):
4631 if not hasattr(self
,"thisown"): self
.thisown
= 0
4632 self
.__class
__ = TreeCtrl
4633 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
4635 def PreTreeCtrl(*args
, **kwargs
):
4636 """PreTreeCtrl() -> TreeCtrl"""
4637 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
4641 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4643 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4645 Get the default attributes for this class. This is useful if
4646 you want to use the same font or colour in your own control as
4647 in a standard control -- which is a much better idea than hard
4648 coding specific colours or fonts which might look completely out
4649 of place on the users system, especially if it uses themes.
4651 The variant parameter is only relevant under Mac currently and is
4652 ignore under other platforms. Under Mac, it will change the size of the
4653 returned font. See SetWindowVariant for more about this.
4655 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4657 #---------------------------------------------------------------------------
4659 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
4660 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
4661 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
4662 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
4663 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
4664 class GenericDirCtrl(_core
.Control
):
4666 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4667 def __init__(self
, *args
, **kwargs
):
4669 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4670 Point pos=DefaultPosition, Size size=DefaultSize,
4671 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4672 String filter=EmptyString,
4673 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4675 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
4676 self
.this
= newobj
.this
4679 self
._setOORInfo
(self
)
4681 def Create(*args
, **kwargs
):
4683 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4684 Point pos=DefaultPosition, Size size=DefaultSize,
4685 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4686 String filter=EmptyString,
4687 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4689 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
4691 def ExpandPath(*args
, **kwargs
):
4692 """ExpandPath(self, String path) -> bool"""
4693 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4695 def GetDefaultPath(*args
, **kwargs
):
4696 """GetDefaultPath(self) -> String"""
4697 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4699 def SetDefaultPath(*args
, **kwargs
):
4700 """SetDefaultPath(self, String path)"""
4701 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4703 def GetPath(*args
, **kwargs
):
4704 """GetPath(self) -> String"""
4705 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4707 def GetFilePath(*args
, **kwargs
):
4708 """GetFilePath(self) -> String"""
4709 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4711 def SetPath(*args
, **kwargs
):
4712 """SetPath(self, String path)"""
4713 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4715 def ShowHidden(*args
, **kwargs
):
4716 """ShowHidden(self, bool show)"""
4717 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4719 def GetShowHidden(*args
, **kwargs
):
4720 """GetShowHidden(self) -> bool"""
4721 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4723 def GetFilter(*args
, **kwargs
):
4724 """GetFilter(self) -> String"""
4725 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4727 def SetFilter(*args
, **kwargs
):
4728 """SetFilter(self, String filter)"""
4729 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4731 def GetFilterIndex(*args
, **kwargs
):
4732 """GetFilterIndex(self) -> int"""
4733 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4735 def SetFilterIndex(*args
, **kwargs
):
4736 """SetFilterIndex(self, int n)"""
4737 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4739 def GetRootId(*args
, **kwargs
):
4740 """GetRootId(self) -> TreeItemId"""
4741 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4743 def GetTreeCtrl(*args
, **kwargs
):
4744 """GetTreeCtrl(self) -> TreeCtrl"""
4745 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4747 def GetFilterListCtrl(*args
, **kwargs
):
4748 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
4749 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4751 def FindChild(*args
, **kwargs
):
4753 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4755 Find the child that matches the first part of 'path'. E.g. if a child path is
4756 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4757 If the path string has been used (we're at the leaf), done is set to True
4760 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4762 def DoResize(*args
, **kwargs
):
4763 """DoResize(self)"""
4764 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4766 def ReCreateTree(*args
, **kwargs
):
4767 """ReCreateTree(self)"""
4768 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4771 class GenericDirCtrlPtr(GenericDirCtrl
):
4772 def __init__(self
, this
):
4774 if not hasattr(self
,"thisown"): self
.thisown
= 0
4775 self
.__class
__ = GenericDirCtrl
4776 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4777 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4779 def PreGenericDirCtrl(*args
, **kwargs
):
4780 """PreGenericDirCtrl() -> GenericDirCtrl"""
4781 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
4785 class DirFilterListCtrl(Choice
):
4787 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4788 def __init__(self
, *args
, **kwargs
):
4790 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4791 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4793 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
4794 self
.this
= newobj
.this
4797 self
._setOORInfo
(self
)
4799 def Create(*args
, **kwargs
):
4801 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4802 Size size=DefaultSize, long style=0) -> bool
4804 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
4806 def FillFilterList(*args
, **kwargs
):
4807 """FillFilterList(self, String filter, int defaultFilter)"""
4808 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4811 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4812 def __init__(self
, this
):
4814 if not hasattr(self
,"thisown"): self
.thisown
= 0
4815 self
.__class
__ = DirFilterListCtrl
4816 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4818 def PreDirFilterListCtrl(*args
, **kwargs
):
4819 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4820 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4824 #---------------------------------------------------------------------------
4826 class PyControl(_core
.Control
):
4828 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4829 def __init__(self
, *args
, **kwargs
):
4831 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4832 long style=0, Validator validator=DefaultValidator,
4833 String name=ControlNameStr) -> PyControl
4835 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
4836 self
.this
= newobj
.this
4839 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4841 def _setCallbackInfo(*args
, **kwargs
):
4842 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4843 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
4845 def base_DoMoveWindow(*args
, **kwargs
):
4846 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
4847 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4849 def base_DoSetSize(*args
, **kwargs
):
4850 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4851 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
4853 def base_DoSetClientSize(*args
, **kwargs
):
4854 """base_DoSetClientSize(self, int width, int height)"""
4855 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4857 def base_DoSetVirtualSize(*args
, **kwargs
):
4858 """base_DoSetVirtualSize(self, int x, int y)"""
4859 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4861 def base_DoGetSize(*args
, **kwargs
):
4862 """base_DoGetSize() -> (width, height)"""
4863 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
4865 def base_DoGetClientSize(*args
, **kwargs
):
4866 """base_DoGetClientSize() -> (width, height)"""
4867 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4869 def base_DoGetPosition(*args
, **kwargs
):
4870 """base_DoGetPosition() -> (x,y)"""
4871 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4873 def base_DoGetVirtualSize(*args
, **kwargs
):
4874 """base_DoGetVirtualSize(self) -> Size"""
4875 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4877 def base_DoGetBestSize(*args
, **kwargs
):
4878 """base_DoGetBestSize(self) -> Size"""
4879 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4881 def base_InitDialog(*args
, **kwargs
):
4882 """base_InitDialog(self)"""
4883 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
4885 def base_TransferDataToWindow(*args
, **kwargs
):
4886 """base_TransferDataToWindow(self) -> bool"""
4887 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4889 def base_TransferDataFromWindow(*args
, **kwargs
):
4890 """base_TransferDataFromWindow(self) -> bool"""
4891 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4893 def base_Validate(*args
, **kwargs
):
4894 """base_Validate(self) -> bool"""
4895 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
4897 def base_AcceptsFocus(*args
, **kwargs
):
4898 """base_AcceptsFocus(self) -> bool"""
4899 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4901 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4902 """base_AcceptsFocusFromKeyboard(self) -> bool"""
4903 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4905 def base_GetMaxSize(*args
, **kwargs
):
4906 """base_GetMaxSize(self) -> Size"""
4907 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4909 def base_AddChild(*args
, **kwargs
):
4910 """base_AddChild(self, Window child)"""
4911 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
4913 def base_RemoveChild(*args
, **kwargs
):
4914 """base_RemoveChild(self, Window child)"""
4915 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
4917 def base_ShouldInheritColours(*args
, **kwargs
):
4918 """base_ShouldInheritColours(self) -> bool"""
4919 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
4921 def base_ApplyParentThemeBackground(*args
, **kwargs
):
4922 """base_ApplyParentThemeBackground(self, Colour c)"""
4923 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
4926 class PyControlPtr(PyControl
):
4927 def __init__(self
, this
):
4929 if not hasattr(self
,"thisown"): self
.thisown
= 0
4930 self
.__class
__ = PyControl
4931 _controls_
.PyControl_swigregister(PyControlPtr
)
4933 def PrePyControl(*args
, **kwargs
):
4934 """PrePyControl() -> PyControl"""
4935 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
4939 #---------------------------------------------------------------------------
4941 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
4942 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
4943 wxEVT_HELP
= _controls_
.wxEVT_HELP
4944 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
4945 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4946 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4947 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4948 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4950 class HelpEvent(_core
.CommandEvent
):
4952 A help event is sent when the user has requested
4953 context-sensitive help. This can either be caused by the
4954 application requesting context-sensitive help mode via
4955 wx.ContextHelp, or (on MS Windows) by the system generating a
4956 WM_HELP message when the user pressed F1 or clicked on the query
4957 button in a dialog caption.
4959 A help event is sent to the window that the user clicked on, and
4960 is propagated up the window hierarchy until the event is
4961 processed or there are no more event handlers. The application
4962 should call event.GetId to check the identity of the clicked-on
4963 window, and then either show some suitable help or call
4964 event.Skip if the identifier is unrecognised. Calling Skip is
4965 important because it allows wxWindows to generate further events
4966 for ancestors of the clicked-on window. Otherwise it would be
4967 impossible to show help for container windows, since processing
4968 would stop after the first window found.
4971 EVT_HELP Sent when the user has requested context-
4973 EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs
4977 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4978 def __init__(self
, *args
, **kwargs
):
4979 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4980 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
4981 self
.this
= newobj
.this
4984 def GetPosition(*args
, **kwargs
):
4986 GetPosition(self) -> Point
4988 Returns the left-click position of the mouse, in screen
4989 coordinates. This allows the application to position the help
4992 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
4994 def SetPosition(*args
, **kwargs
):
4996 SetPosition(self, Point pos)
4998 Sets the left-click position of the mouse, in screen coordinates.
5000 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5002 def GetLink(*args
, **kwargs
):
5004 GetLink(self) -> String
5006 Get an optional link to further help
5008 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5010 def SetLink(*args
, **kwargs
):
5012 SetLink(self, String link)
5014 Set an optional link to further help
5016 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5018 def GetTarget(*args
, **kwargs
):
5020 GetTarget(self) -> String
5022 Get an optional target to display help in. E.g. a window specification
5024 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5026 def SetTarget(*args
, **kwargs
):
5028 SetTarget(self, String target)
5030 Set an optional target to display help in. E.g. a window specification
5032 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5035 class HelpEventPtr(HelpEvent
):
5036 def __init__(self
, this
):
5038 if not hasattr(self
,"thisown"): self
.thisown
= 0
5039 self
.__class
__ = HelpEvent
5040 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
5042 class ContextHelp(_core
.Object
):
5044 This class changes the cursor to a query and puts the application
5045 into a 'context-sensitive help mode'. When the user left-clicks
5046 on a window within the specified window, a EVT_HELP event is sent
5047 to that control, and the application may respond to it by popping
5050 There are a couple of ways to invoke this behaviour implicitly:
5052 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a
5053 dialog (Windows only). This will put a question mark in the
5054 titlebar, and Windows will put the application into
5055 context-sensitive help mode automatically, with further
5058 * Create a wx.ContextHelpButton, whose predefined behaviour
5059 is to create a context help object. Normally you will write
5060 your application so that this button is only added to a
5061 dialog for non-Windows platforms (use
5062 wx.DIALOG_EX_CONTEXTHELP on Windows).
5066 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5067 def __init__(self
, *args
, **kwargs
):
5069 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5071 Constructs a context help object, calling BeginContextHelp if
5072 doNow is true (the default).
5074 If window is None, the top window is used.
5076 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
5077 self
.this
= newobj
.this
5080 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
5083 if self
.thisown
: destroy(self
)
5086 def BeginContextHelp(*args
, **kwargs
):
5088 BeginContextHelp(self, Window window=None) -> bool
5090 Puts the application into context-sensitive help mode. window is
5091 the window which will be used to catch events; if NULL, the top
5092 window will be used.
5094 Returns true if the application was successfully put into
5095 context-sensitive help mode. This function only returns when the
5096 event loop has finished.
5098 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5100 def EndContextHelp(*args
, **kwargs
):
5102 EndContextHelp(self) -> bool
5104 Ends context-sensitive help mode. Not normally called by the
5107 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5110 class ContextHelpPtr(ContextHelp
):
5111 def __init__(self
, this
):
5113 if not hasattr(self
,"thisown"): self
.thisown
= 0
5114 self
.__class
__ = ContextHelp
5115 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
5117 class ContextHelpButton(BitmapButton
):
5119 Instances of this class may be used to add a question mark button
5120 that when pressed, puts the application into context-help
5121 mode. It does this by creating a wx.ContextHelp object which
5122 itself generates a EVT_HELP event when the user clicks on a
5125 On Windows, you may add a question-mark icon to a dialog by use
5126 of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other
5127 platforms you will have to add a button explicitly, usually next
5128 to OK, Cancel or similar buttons.
5132 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5133 def __init__(self
, *args
, **kwargs
):
5135 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5136 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5138 Constructor, creating and showing a context help button.
5140 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
5141 self
.this
= newobj
.this
5144 self
._setOORInfo
(self
)
5147 class ContextHelpButtonPtr(ContextHelpButton
):
5148 def __init__(self
, this
):
5150 if not hasattr(self
,"thisown"): self
.thisown
= 0
5151 self
.__class
__ = ContextHelpButton
5152 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5154 class HelpProvider(object):
5156 wx.HelpProvider is an abstract class used by a program
5157 implementing context-sensitive help to show the help text for the
5160 The current help provider must be explicitly set by the
5161 application using wx.HelpProvider.Set().
5163 def __init__(self
): raise RuntimeError, "No constructor defined"
5165 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5166 def Set(*args
, **kwargs
):
5168 Set(HelpProvider helpProvider) -> HelpProvider
5170 Sset the current, application-wide help provider. Returns the
5171 previous one. Unlike some other classes, the help provider is
5172 not created on demand. This must be explicitly done by the
5175 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5177 Set
= staticmethod(Set
)
5178 def Get(*args
, **kwargs
):
5180 Get() -> HelpProvider
5182 Return the current application-wide help provider.
5184 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5186 Get
= staticmethod(Get
)
5187 def GetHelp(*args
, **kwargs
):
5189 GetHelp(self, Window window) -> String
5191 Gets the help string for this window. Its interpretation is
5192 dependent on the help provider except that empty string always
5193 means that no help is associated with the window.
5195 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5197 def ShowHelp(*args
, **kwargs
):
5199 ShowHelp(self, Window window) -> bool
5201 Shows help for the given window. Uses GetHelp internally if
5204 Returns true if it was done, or false if no help was available
5207 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5209 def AddHelp(*args
, **kwargs
):
5211 AddHelp(self, Window window, String text)
5213 Associates the text with the given window.
5215 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5217 def AddHelpById(*args
, **kwargs
):
5219 AddHelpById(self, int id, String text)
5221 This version associates the given text with all windows with this
5222 id. May be used to set the same help string for all Cancel
5223 buttons in the application, for example.
5225 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5227 def RemoveHelp(*args
, **kwargs
):
5229 RemoveHelp(self, Window window)
5231 Removes the association between the window pointer and the help
5232 text. This is called by the wx.Window destructor. Without this,
5233 the table of help strings will fill up and when window pointers
5234 are reused, the wrong help string will be found.
5236 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5238 def Destroy(*args
, **kwargs
):
5240 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5243 class HelpProviderPtr(HelpProvider
):
5244 def __init__(self
, this
):
5246 if not hasattr(self
,"thisown"): self
.thisown
= 0
5247 self
.__class
__ = HelpProvider
5248 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
5250 def HelpProvider_Set(*args
, **kwargs
):
5252 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5254 Sset the current, application-wide help provider. Returns the
5255 previous one. Unlike some other classes, the help provider is
5256 not created on demand. This must be explicitly done by the
5259 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5261 def HelpProvider_Get(*args
, **kwargs
):
5263 HelpProvider_Get() -> HelpProvider
5265 Return the current application-wide help provider.
5267 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5269 class SimpleHelpProvider(HelpProvider
):
5271 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5272 which supports only plain text help strings, and shows the string
5273 associated with the control (if any) in a tooltip.
5276 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5277 def __init__(self
, *args
, **kwargs
):
5279 __init__(self) -> SimpleHelpProvider
5281 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5282 which supports only plain text help strings, and shows the string
5283 associated with the control (if any) in a tooltip.
5285 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
5286 self
.this
= newobj
.this
5290 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5291 def __init__(self
, this
):
5293 if not hasattr(self
,"thisown"): self
.thisown
= 0
5294 self
.__class
__ = SimpleHelpProvider
5295 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5297 #---------------------------------------------------------------------------
5299 class DragImage(_core
.Object
):
5301 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5302 def __init__(self
, *args
, **kwargs
):
5303 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5304 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
5305 self
.this
= newobj
.this
5308 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
5311 if self
.thisown
: destroy(self
)
5314 def SetBackingBitmap(*args
, **kwargs
):
5315 """SetBackingBitmap(self, Bitmap bitmap)"""
5316 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5318 def BeginDrag(*args
, **kwargs
):
5320 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
5321 Rect rect=None) -> bool
5323 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
5325 def BeginDragBounded(*args
, **kwargs
):
5326 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
5327 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
5329 def EndDrag(*args
, **kwargs
):
5330 """EndDrag(self) -> bool"""
5331 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
5333 def Move(*args
, **kwargs
):
5334 """Move(self, Point pt) -> bool"""
5335 return _controls_
.DragImage_Move(*args
, **kwargs
)
5337 def Show(*args
, **kwargs
):
5338 """Show(self) -> bool"""
5339 return _controls_
.DragImage_Show(*args
, **kwargs
)
5341 def Hide(*args
, **kwargs
):
5342 """Hide(self) -> bool"""
5343 return _controls_
.DragImage_Hide(*args
, **kwargs
)
5345 def GetImageRect(*args
, **kwargs
):
5346 """GetImageRect(self, Point pos) -> Rect"""
5347 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
5349 def DoDrawImage(*args
, **kwargs
):
5350 """DoDrawImage(self, DC dc, Point pos) -> bool"""
5351 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
5353 def UpdateBackingFromWindow(*args
, **kwargs
):
5354 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
5355 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
5357 def RedrawImage(*args
, **kwargs
):
5358 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
5359 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
5362 class DragImagePtr(DragImage
):
5363 def __init__(self
, this
):
5365 if not hasattr(self
,"thisown"): self
.thisown
= 0
5366 self
.__class
__ = DragImage
5367 _controls_
.DragImage_swigregister(DragImagePtr
)
5369 def DragIcon(*args
, **kwargs
):
5370 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
5371 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
5375 def DragString(*args
, **kwargs
):
5376 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
5377 val
= _controls_
.new_DragString(*args
, **kwargs
)
5381 def DragTreeItem(*args
, **kwargs
):
5382 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
5383 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
5387 def DragListItem(*args
, **kwargs
):
5388 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
5389 val
= _controls_
.new_DragListItem(*args
, **kwargs
)