1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 __docfilter__
= wx
.__docfilter
__
9 #---------------------------------------------------------------------------
11 BU_LEFT
= _controls_
.BU_LEFT
12 BU_TOP
= _controls_
.BU_TOP
13 BU_RIGHT
= _controls_
.BU_RIGHT
14 BU_BOTTOM
= _controls_
.BU_BOTTOM
15 BU_EXACTFIT
= _controls_
.BU_EXACTFIT
16 BU_AUTODRAW
= _controls_
.BU_AUTODRAW
17 class Button(_core
.Control
):
19 A button is a control that contains a text string, and is one of the most
20 common elements of a GUI. It may be placed on a dialog box or panel, or
21 indeed almost any other window.
24 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
25 def __init__(self
, *args
, **kwargs
):
27 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
28 Size size=DefaultSize, long style=0,
29 Validator validator=DefaultValidator, String name=ButtonNameStr) -> Button
31 Create and show a button.
33 newobj
= _controls_
.new_Button(*args
, **kwargs
)
34 self
.this
= newobj
.this
37 self
._setOORInfo
(self
)
39 def Create(*args
, **kwargs
):
41 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
42 Size size=DefaultSize, long style=0,
43 Validator validator=DefaultValidator, String name=ButtonNameStr) -> bool
45 Acutally create the GUI Button for 2-phase creation.
47 return _controls_
.Button_Create(*args
, **kwargs
)
49 def SetDefault(*args
, **kwargs
):
53 This sets the button to be the default item for the panel or dialog box.
55 return _controls_
.Button_SetDefault(*args
, **kwargs
)
57 def GetDefaultSize(*args
, **kwargs
):
58 """Button.GetDefaultSize() -> Size"""
59 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
61 GetDefaultSize
= staticmethod(GetDefaultSize
)
63 class ButtonPtr(Button
):
64 def __init__(self
, this
):
66 if not hasattr(self
,"thisown"): self
.thisown
= 0
67 self
.__class
__ = Button
68 _controls_
.Button_swigregister(ButtonPtr
)
69 cvar
= _controls_
.cvar
70 ButtonNameStr
= cvar
.ButtonNameStr
72 def PreButton(*args
, **kwargs
):
76 Precreate a Button for 2-phase creation.
78 val
= _controls_
.new_PreButton(*args
, **kwargs
)
82 def Button_GetDefaultSize(*args
, **kwargs
):
83 """Button_GetDefaultSize() -> Size"""
84 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
86 class BitmapButton(Button
):
88 A Button that contains a bitmap. A bitmap button can be supplied with a
89 single bitmap, and wxWindows will draw all button states using this bitmap. If
90 the application needs more control, additional bitmaps for the selected state,
91 unpressed focused state, and greyed-out state may be supplied.
95 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
96 def __init__(self
, *args
, **kwargs
):
98 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
99 Size size=DefaultSize, long style=BU_AUTODRAW,
100 Validator validator=DefaultValidator,
101 String name=ButtonNameStr) -> BitmapButton
103 Create and show a button with a bitmap for the label.
105 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
106 self
.this
= newobj
.this
109 self
._setOORInfo
(self
)
111 def Create(*args
, **kwargs
):
113 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
114 Size size=DefaultSize, long style=BU_AUTODRAW,
115 Validator validator=DefaultValidator,
116 String name=ButtonNameStr) -> bool
118 Acutally create the GUI BitmapButton for 2-phase creation.
120 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
122 def GetBitmapLabel(*args
, **kwargs
):
124 GetBitmapLabel(self) -> Bitmap
126 Returns the label bitmap (the one passed to the constructor).
128 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
130 def GetBitmapDisabled(*args
, **kwargs
):
132 GetBitmapDisabled(self) -> Bitmap
134 Returns the bitmap for the disabled state.
136 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
138 def GetBitmapFocus(*args
, **kwargs
):
140 GetBitmapFocus(self) -> Bitmap
142 Returns the bitmap for the focused state.
144 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
146 def GetBitmapSelected(*args
, **kwargs
):
148 GetBitmapSelected(self) -> Bitmap
150 Returns the bitmap for the selected state.
152 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
154 def SetBitmapDisabled(*args
, **kwargs
):
156 SetBitmapDisabled(self, Bitmap bitmap)
158 Sets the bitmap for the disabled button appearance.
160 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
162 def SetBitmapFocus(*args
, **kwargs
):
164 SetBitmapFocus(self, Bitmap bitmap)
166 Sets the bitmap for the button appearance when it has the keyboard focus.
168 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
170 def SetBitmapSelected(*args
, **kwargs
):
172 SetBitmapSelected(self, Bitmap bitmap)
174 Sets the bitmap for the selected (depressed) button appearance.
176 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
178 def SetBitmapLabel(*args
, **kwargs
):
180 SetBitmapLabel(self, Bitmap bitmap)
182 Sets the bitmap label for the button. This is the bitmap used for the
183 unselected state, and for all other states if no other bitmaps are provided.
185 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
187 def SetMargins(*args
, **kwargs
):
188 """SetMargins(self, int x, int y)"""
189 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
191 def GetMarginX(*args
, **kwargs
):
192 """GetMarginX(self) -> int"""
193 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
195 def GetMarginY(*args
, **kwargs
):
196 """GetMarginY(self) -> int"""
197 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
200 class BitmapButtonPtr(BitmapButton
):
201 def __init__(self
, this
):
203 if not hasattr(self
,"thisown"): self
.thisown
= 0
204 self
.__class
__ = BitmapButton
205 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
207 def PreBitmapButton(*args
, **kwargs
):
209 PreBitmapButton() -> BitmapButton
211 Precreate a BitmapButton for 2-phase creation.
213 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
217 #---------------------------------------------------------------------------
219 CHK_2STATE
= _controls_
.CHK_2STATE
220 CHK_3STATE
= _controls_
.CHK_3STATE
221 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
222 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
223 CHK_CHECKED
= _controls_
.CHK_CHECKED
224 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
225 class CheckBox(_core
.Control
):
227 A checkbox is a labelled box which by default is either on (checkmark is
228 visible) or off (no checkmark). Optionally (When the wxCHK_3STATE style flag
229 is set) it can have a third state, called the mixed or undetermined
230 state. Often this is used as a "Does Not Apply" state.
233 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
234 def __init__(self
, *args
, **kwargs
):
236 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
237 Size size=DefaultSize, long style=0,
238 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox
240 Creates and shows a CheckBox control
242 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
243 self
.this
= newobj
.this
246 self
._setOORInfo
(self
)
248 def Create(*args
, **kwargs
):
250 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
251 Size size=DefaultSize, long style=0,
252 Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool
254 Actually create the GUI CheckBox for 2-phase creation.
256 return _controls_
.CheckBox_Create(*args
, **kwargs
)
258 def GetValue(*args
, **kwargs
):
260 GetValue(self) -> bool
262 Gets the state of a 2-state CheckBox. Returns True if it is checked,
265 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
267 def IsChecked(*args
, **kwargs
):
269 IsChecked(self) -> bool
271 Similar to GetValue, but raises an exception if it is not a 2-state CheckBox.
273 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
275 def SetValue(*args
, **kwargs
):
277 SetValue(self, bool state)
279 Set the state of a 2-state CheckBox. Pass True for checked,
282 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
284 def Get3StateValue(*args
, **kwargs
):
286 Get3StateValue(self) -> int
288 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked, wx.CHK_CHECKED when
289 it is checked and wx.CHK_UNDETERMINED when it's in the undetermined state.
290 Raises an exceptiion when the function is used with a 2-state CheckBox.
292 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
294 def Set3StateValue(*args
, **kwargs
):
296 Set3StateValue(self, int state)
298 Sets the CheckBox to the given state. The state parameter can be
299 one of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED
300 (Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
301 exception when the CheckBox is a 2-state checkbox and setting the state
302 to wx.CHK_UNDETERMINED.
304 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
306 def Is3State(*args
, **kwargs
):
308 Is3State(self) -> bool
310 Returns whether or not the CheckBox is a 3-state CheckBox.
312 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
314 def Is3rdStateAllowedForUser(*args
, **kwargs
):
316 Is3rdStateAllowedForUser(self) -> bool
318 Returns whether or not the user can set the CheckBox to the third state.
320 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
323 class CheckBoxPtr(CheckBox
):
324 def __init__(self
, this
):
326 if not hasattr(self
,"thisown"): self
.thisown
= 0
327 self
.__class
__ = CheckBox
328 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
329 CheckBoxNameStr
= cvar
.CheckBoxNameStr
331 def PreCheckBox(*args
, **kwargs
):
333 PreCheckBox() -> CheckBox
335 Precreate a CheckBox for 2-phase creation.
337 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
341 #---------------------------------------------------------------------------
343 class Choice(_core
.ControlWithItems
):
345 A Choice control is used to select one of a list of strings. Unlike a ListBox,
346 only the selection is visible until the user pulls down the menu of choices.
349 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
350 def __init__(self
, *args
, **kwargs
):
352 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
353 List choices=[], long style=0, Validator validator=DefaultValidator,
354 String name=ChoiceNameStr) -> Choice
356 Create and show a Choice control
358 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
359 self
.this
= newobj
.this
362 self
._setOORInfo
(self
)
364 def Create(*args
, **kwargs
):
366 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
367 List choices=[], long style=0, Validator validator=DefaultValidator,
368 String name=ChoiceNameStr) -> bool
370 Actually create the GUI Choice control for 2-phase creation
372 return _controls_
.Choice_Create(*args
, **kwargs
)
374 def SetSelection(*args
, **kwargs
):
376 SetSelection(self, int n)
378 Select the n'th item (zero based) in the list.
380 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
382 def SetStringSelection(*args
, **kwargs
):
384 SetStringSelection(self, String string) -> bool
386 Select the item with the specifed string
388 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
390 def SetString(*args
, **kwargs
):
392 SetString(self, int n, String string)
394 Set the label for the n'th item (zero based) in the list.
396 return _controls_
.Choice_SetString(*args
, **kwargs
)
398 Select
= SetSelection
400 class ChoicePtr(Choice
):
401 def __init__(self
, this
):
403 if not hasattr(self
,"thisown"): self
.thisown
= 0
404 self
.__class
__ = Choice
405 _controls_
.Choice_swigregister(ChoicePtr
)
406 ChoiceNameStr
= cvar
.ChoiceNameStr
408 def PreChoice(*args
, **kwargs
):
410 PreChoice() -> Choice
412 Precreate a Choice control for 2-phase creation.
414 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
418 #---------------------------------------------------------------------------
420 class ComboBox(_core
.Control
,_core
.ItemContainer
):
422 A combobox is like a combination of an edit control and a listbox. It can be
423 displayed as static list with editable or read-only text field; or a drop-down
424 list with text field.
427 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
428 def __init__(self
, *args
, **kwargs
):
430 __init__(Window parent, int id, String value=EmptyString,
431 Point pos=DefaultPosition, Size size=DefaultSize,
432 List choices=[], long style=0, Validator validator=DefaultValidator,
433 String name=ComboBoxNameStr) -> ComboBox
435 Constructor, creates and shows a ComboBox control.
437 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
438 self
.this
= newobj
.this
441 self
._setOORInfo
(self
)
443 def Create(*args
, **kwargs
):
445 Create(Window parent, int id, String value=EmptyString,
446 Point pos=DefaultPosition, Size size=DefaultSize,
447 List choices=[], long style=0, Validator validator=DefaultValidator,
448 String name=ChoiceNameStr) -> bool
450 Actually create the GUI wxComboBox control for 2-phase creation
452 return _controls_
.ComboBox_Create(*args
, **kwargs
)
454 def GetValue(*args
, **kwargs
):
456 GetValue(self) -> String
458 Returns the current value in the combobox text field.
460 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
462 def SetValue(*args
, **kwargs
):
463 """SetValue(self, String value)"""
464 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
466 def Copy(*args
, **kwargs
):
470 Copies the selected text to the clipboard.
472 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
474 def Cut(*args
, **kwargs
):
478 Copies the selected text to the clipboard and removes the selection.
480 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
482 def Paste(*args
, **kwargs
):
486 Pastes text from the clipboard to the text field.
488 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
490 def SetInsertionPoint(*args
, **kwargs
):
492 SetInsertionPoint(self, long pos)
494 Sets the insertion point in the combobox text field.
496 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
498 def GetInsertionPoint(*args
, **kwargs
):
500 GetInsertionPoint(self) -> long
502 Returns the insertion point for the combobox's text field.
504 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
506 def GetLastPosition(*args
, **kwargs
):
508 GetLastPosition(self) -> long
510 Returns the last position in the combobox text field.
512 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
514 def Replace(*args
, **kwargs
):
516 Replace(self, long from, long to, String value)
518 Replaces the text between two positions with the given text, in the
521 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
523 def SetSelection(*args
, **kwargs
):
525 SetSelection(self, int n)
527 Sets the item at index 'n' to be the selected item.
529 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
531 def SetMark(*args
, **kwargs
):
533 SetMark(self, long from, long to)
535 Selects the text between the two positions in the combobox text field.
537 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
539 def SetStringSelection(*args
, **kwargs
):
541 SetStringSelection(self, String string) -> bool
543 Select the item with the specifed string
545 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
547 def SetString(*args
, **kwargs
):
549 SetString(self, int n, String string)
551 Set the label for the n'th item (zero based) in the list.
553 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
555 def SetEditable(*args
, **kwargs
):
556 """SetEditable(self, bool editable)"""
557 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
559 def SetInsertionPointEnd(*args
, **kwargs
):
561 SetInsertionPointEnd(self)
563 Sets the insertion point at the end of the combobox text field.
565 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
567 def Remove(*args
, **kwargs
):
569 Remove(self, long from, long to)
571 Removes the text between the two positions in the combobox text field.
573 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
576 class ComboBoxPtr(ComboBox
):
577 def __init__(self
, this
):
579 if not hasattr(self
,"thisown"): self
.thisown
= 0
580 self
.__class
__ = ComboBox
581 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
582 ComboBoxNameStr
= cvar
.ComboBoxNameStr
584 def PreComboBox(*args
, **kwargs
):
586 PreComboBox() -> ComboBox
588 Precreate a ComboBox control for 2-phase creation.
590 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
594 #---------------------------------------------------------------------------
596 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
597 GA_VERTICAL
= _controls_
.GA_VERTICAL
598 GA_SMOOTH
= _controls_
.GA_SMOOTH
599 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
600 class Gauge(_core
.Control
):
602 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
603 def __init__(self
, *args
, **kwargs
):
605 __init__(self, Window parent, int id, int range, Point pos=DefaultPosition,
606 Size size=DefaultSize, long style=GA_HORIZONTAL,
607 Validator validator=DefaultValidator,
608 String name=GaugeNameStr) -> Gauge
610 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
611 self
.this
= newobj
.this
614 self
._setOORInfo
(self
)
616 def Create(*args
, **kwargs
):
618 Create(self, Window parent, int id, int range, Point pos=DefaultPosition,
619 Size size=DefaultSize, long style=GA_HORIZONTAL,
620 Validator validator=DefaultValidator,
621 String name=GaugeNameStr) -> bool
623 return _controls_
.Gauge_Create(*args
, **kwargs
)
625 def SetRange(*args
, **kwargs
):
626 """SetRange(self, int range)"""
627 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
629 def GetRange(*args
, **kwargs
):
630 """GetRange(self) -> int"""
631 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
633 def SetValue(*args
, **kwargs
):
634 """SetValue(self, int pos)"""
635 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
637 def GetValue(*args
, **kwargs
):
638 """GetValue(self) -> int"""
639 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
641 def IsVertical(*args
, **kwargs
):
642 """IsVertical(self) -> bool"""
643 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
645 def SetShadowWidth(*args
, **kwargs
):
646 """SetShadowWidth(self, int w)"""
647 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
649 def GetShadowWidth(*args
, **kwargs
):
650 """GetShadowWidth(self) -> int"""
651 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
653 def SetBezelFace(*args
, **kwargs
):
654 """SetBezelFace(self, int w)"""
655 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
657 def GetBezelFace(*args
, **kwargs
):
658 """GetBezelFace(self) -> int"""
659 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
662 class GaugePtr(Gauge
):
663 def __init__(self
, this
):
665 if not hasattr(self
,"thisown"): self
.thisown
= 0
666 self
.__class
__ = Gauge
667 _controls_
.Gauge_swigregister(GaugePtr
)
668 GaugeNameStr
= cvar
.GaugeNameStr
670 def PreGauge(*args
, **kwargs
):
671 """PreGauge() -> Gauge"""
672 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
676 #---------------------------------------------------------------------------
678 class StaticBox(_core
.Control
):
680 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
681 def __init__(self
, *args
, **kwargs
):
683 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
684 Size size=DefaultSize, long style=0,
685 String name=StaticBoxNameStr) -> StaticBox
687 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
688 self
.this
= newobj
.this
691 self
._setOORInfo
(self
)
693 def Create(*args
, **kwargs
):
695 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
696 Size size=DefaultSize, long style=0,
697 String name=StaticBoxNameStr) -> bool
699 return _controls_
.StaticBox_Create(*args
, **kwargs
)
702 class StaticBoxPtr(StaticBox
):
703 def __init__(self
, this
):
705 if not hasattr(self
,"thisown"): self
.thisown
= 0
706 self
.__class
__ = StaticBox
707 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
708 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
709 StaticBoxNameStr
= cvar
.StaticBoxNameStr
710 StaticTextNameStr
= cvar
.StaticTextNameStr
712 def PreStaticBox(*args
, **kwargs
):
713 """PreStaticBox() -> StaticBox"""
714 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
718 #---------------------------------------------------------------------------
720 class StaticLine(_core
.Control
):
722 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
723 def __init__(self
, *args
, **kwargs
):
725 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
726 long style=LI_HORIZONTAL,
727 String name=StaticTextNameStr) -> StaticLine
729 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
730 self
.this
= newobj
.this
733 self
._setOORInfo
(self
)
735 def Create(*args
, **kwargs
):
737 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
738 long style=LI_HORIZONTAL,
739 String name=StaticTextNameStr) -> bool
741 return _controls_
.StaticLine_Create(*args
, **kwargs
)
743 def IsVertical(*args
, **kwargs
):
744 """IsVertical(self) -> bool"""
745 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
747 def GetDefaultSize(*args
, **kwargs
):
748 """StaticLine.GetDefaultSize() -> int"""
749 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
751 GetDefaultSize
= staticmethod(GetDefaultSize
)
753 class StaticLinePtr(StaticLine
):
754 def __init__(self
, this
):
756 if not hasattr(self
,"thisown"): self
.thisown
= 0
757 self
.__class
__ = StaticLine
758 _controls_
.StaticLine_swigregister(StaticLinePtr
)
760 def PreStaticLine(*args
, **kwargs
):
761 """PreStaticLine() -> StaticLine"""
762 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
766 def StaticLine_GetDefaultSize(*args
, **kwargs
):
767 """StaticLine_GetDefaultSize() -> int"""
768 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
770 #---------------------------------------------------------------------------
772 class StaticText(_core
.Control
):
774 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
775 def __init__(self
, *args
, **kwargs
):
777 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
778 Size size=DefaultSize, long style=0,
779 String name=StaticTextNameStr) -> StaticText
781 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
782 self
.this
= newobj
.this
785 self
._setOORInfo
(self
)
787 def Create(*args
, **kwargs
):
789 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
790 Size size=DefaultSize, long style=0,
791 String name=StaticTextNameStr) -> bool
793 return _controls_
.StaticText_Create(*args
, **kwargs
)
796 class StaticTextPtr(StaticText
):
797 def __init__(self
, this
):
799 if not hasattr(self
,"thisown"): self
.thisown
= 0
800 self
.__class
__ = StaticText
801 _controls_
.StaticText_swigregister(StaticTextPtr
)
803 def PreStaticText(*args
, **kwargs
):
804 """PreStaticText() -> StaticText"""
805 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
809 #---------------------------------------------------------------------------
811 class StaticBitmap(_core
.Control
):
813 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
814 def __init__(self
, *args
, **kwargs
):
816 __init__(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
817 Size size=DefaultSize, long style=0,
818 String name=StaticBitmapNameStr) -> StaticBitmap
820 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
821 self
.this
= newobj
.this
824 self
._setOORInfo
(self
)
826 def Create(*args
, **kwargs
):
828 Create(self, Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
829 Size size=DefaultSize, long style=0,
830 String name=StaticBitmapNameStr) -> bool
832 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
834 def GetBitmap(*args
, **kwargs
):
835 """GetBitmap(self) -> Bitmap"""
836 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
838 def SetBitmap(*args
, **kwargs
):
839 """SetBitmap(self, Bitmap bitmap)"""
840 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
842 def SetIcon(*args
, **kwargs
):
843 """SetIcon(self, Icon icon)"""
844 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
847 class StaticBitmapPtr(StaticBitmap
):
848 def __init__(self
, this
):
850 if not hasattr(self
,"thisown"): self
.thisown
= 0
851 self
.__class
__ = StaticBitmap
852 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
854 def PreStaticBitmap(*args
, **kwargs
):
855 """PreStaticBitmap() -> StaticBitmap"""
856 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
860 #---------------------------------------------------------------------------
862 class ListBox(_core
.ControlWithItems
):
864 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
865 def __init__(self
, *args
, **kwargs
):
867 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
868 wxArrayString choices=wxPyEmptyStringArray,
869 long style=0, Validator validator=DefaultValidator,
870 String name=ListBoxNameStr) -> ListBox
872 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
873 self
.this
= newobj
.this
876 self
._setOORInfo
(self
)
878 def Create(*args
, **kwargs
):
880 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
881 wxArrayString choices=wxPyEmptyStringArray,
882 long style=0, Validator validator=DefaultValidator,
883 String name=ListBoxNameStr) -> bool
885 return _controls_
.ListBox_Create(*args
, **kwargs
)
887 def Insert(*args
, **kwargs
):
889 Insert(self, String item, int pos, PyObject clientData=None)
891 Insert an item into the control before the item at the pos index,
892 optionally associating some data object with the item.
894 return _controls_
.ListBox_Insert(*args
, **kwargs
)
896 def InsertItems(*args
, **kwargs
):
897 """InsertItems(self, wxArrayString items, int pos)"""
898 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
900 def Set(*args
, **kwargs
):
901 """Set(self, wxArrayString items)"""
902 return _controls_
.ListBox_Set(*args
, **kwargs
)
904 def IsSelected(*args
, **kwargs
):
905 """IsSelected(self, int n) -> bool"""
906 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
908 def SetSelection(*args
, **kwargs
):
909 """SetSelection(self, int n, bool select=True)"""
910 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
912 def Select(*args
, **kwargs
):
916 Sets the item at index 'n' to be the selected item.
918 return _controls_
.ListBox_Select(*args
, **kwargs
)
920 def Deselect(*args
, **kwargs
):
921 """Deselect(self, int n)"""
922 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
924 def DeselectAll(*args
, **kwargs
):
925 """DeselectAll(self, int itemToLeaveSelected=-1)"""
926 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
928 def SetStringSelection(*args
, **kwargs
):
929 """SetStringSelection(self, String s, bool select=True) -> bool"""
930 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
932 def GetSelections(*args
, **kwargs
):
933 """GetSelections(self) -> PyObject"""
934 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
936 def SetFirstItem(*args
, **kwargs
):
937 """SetFirstItem(self, int n)"""
938 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
940 def SetFirstItemStr(*args
, **kwargs
):
941 """SetFirstItemStr(self, String s)"""
942 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
944 def EnsureVisible(*args
, **kwargs
):
945 """EnsureVisible(self, int n)"""
946 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
948 def AppendAndEnsureVisible(*args
, **kwargs
):
949 """AppendAndEnsureVisible(self, String s)"""
950 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
952 def IsSorted(*args
, **kwargs
):
953 """IsSorted(self) -> bool"""
954 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
956 def SetItemForegroundColour(*args
, **kwargs
):
957 """SetItemForegroundColour(self, int item, Colour c)"""
958 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
960 def SetItemBackgroundColour(*args
, **kwargs
):
961 """SetItemBackgroundColour(self, int item, Colour c)"""
962 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
964 def SetItemFont(*args
, **kwargs
):
965 """SetItemFont(self, int item, Font f)"""
966 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
968 def GetClassDefaultAttributes(*args
, **kwargs
):
970 ListBox.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
972 Get the default attributes for this class. This is useful if
973 you want to use the same font or colour in your own control as
974 in a standard control -- which is a much better idea than hard
975 coding specific colours or fonts which might look completely out
976 of place on the users system, especially if it uses themes.
978 The variant parameter is only relevant under Mac currently and is
979 ignore under other platforms. Under Mac, it will change the size of the
980 returned font. See SetWindowVariant for more about this.
982 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
984 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
986 class ListBoxPtr(ListBox
):
987 def __init__(self
, this
):
989 if not hasattr(self
,"thisown"): self
.thisown
= 0
990 self
.__class
__ = ListBox
991 _controls_
.ListBox_swigregister(ListBoxPtr
)
992 ListBoxNameStr
= cvar
.ListBoxNameStr
994 def PreListBox(*args
, **kwargs
):
995 """PreListBox() -> ListBox"""
996 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1000 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1002 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1004 Get the default attributes for this class. This is useful if
1005 you want to use the same font or colour in your own control as
1006 in a standard control -- which is a much better idea than hard
1007 coding specific colours or fonts which might look completely out
1008 of place on the users system, especially if it uses themes.
1010 The variant parameter is only relevant under Mac currently and is
1011 ignore under other platforms. Under Mac, it will change the size of the
1012 returned font. See SetWindowVariant for more about this.
1014 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1016 #---------------------------------------------------------------------------
1018 class CheckListBox(ListBox
):
1020 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1021 def __init__(self
, *args
, **kwargs
):
1023 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1024 wxArrayString choices=wxPyEmptyStringArray,
1025 long style=0, Validator validator=DefaultValidator,
1026 String name=ListBoxNameStr) -> CheckListBox
1028 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1029 self
.this
= newobj
.this
1032 self
._setOORInfo
(self
)
1034 def Create(*args
, **kwargs
):
1036 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1037 wxArrayString choices=wxPyEmptyStringArray,
1038 long style=0, Validator validator=DefaultValidator,
1039 String name=ListBoxNameStr) -> bool
1041 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1043 def IsChecked(*args
, **kwargs
):
1044 """IsChecked(self, int index) -> bool"""
1045 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1047 def Check(*args
, **kwargs
):
1048 """Check(self, int index, int check=True)"""
1049 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1051 def GetItemHeight(*args
, **kwargs
):
1052 """GetItemHeight(self) -> int"""
1053 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1055 def HitTest(*args
, **kwargs
):
1057 HitTest(self, Point pt) -> int
1059 Test where the given (in client coords) point lies
1061 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1063 def HitTestXY(*args
, **kwargs
):
1065 HitTestXY(self, int x, int y) -> int
1067 Test where the given (in client coords) point lies
1069 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1072 class CheckListBoxPtr(CheckListBox
):
1073 def __init__(self
, this
):
1075 if not hasattr(self
,"thisown"): self
.thisown
= 0
1076 self
.__class
__ = CheckListBox
1077 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1079 def PreCheckListBox(*args
, **kwargs
):
1080 """PreCheckListBox() -> CheckListBox"""
1081 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1085 #---------------------------------------------------------------------------
1087 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1088 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1089 TE_READONLY
= _controls_
.TE_READONLY
1090 TE_MULTILINE
= _controls_
.TE_MULTILINE
1091 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1092 TE_LEFT
= _controls_
.TE_LEFT
1093 TE_CENTER
= _controls_
.TE_CENTER
1094 TE_RIGHT
= _controls_
.TE_RIGHT
1095 TE_CENTRE
= _controls_
.TE_CENTRE
1096 TE_RICH
= _controls_
.TE_RICH
1097 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1098 TE_PASSWORD
= _controls_
.TE_PASSWORD
1099 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1100 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1101 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1102 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1103 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1104 TE_RICH2
= _controls_
.TE_RICH2
1105 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1106 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1107 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1108 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1109 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1110 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1111 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1112 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1113 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1114 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1115 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1116 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1117 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1118 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1119 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1120 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1121 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1122 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1123 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1124 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1125 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1126 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1127 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1128 class TextAttr(object):
1130 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1131 def __init__(self
, *args
):
1133 __init__(self) -> TextAttr
1134 __init__(self, Colour colText, Colour colBack=wxNullColour, Font font=wxNullFont,
1135 int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1137 newobj
= _controls_
.new_TextAttr(*args
)
1138 self
.this
= newobj
.this
1141 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1144 if self
.thisown
: destroy(self
)
1147 def Init(*args
, **kwargs
):
1149 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1151 def SetTextColour(*args
, **kwargs
):
1152 """SetTextColour(self, Colour colText)"""
1153 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1155 def SetBackgroundColour(*args
, **kwargs
):
1156 """SetBackgroundColour(self, Colour colBack)"""
1157 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1159 def SetFont(*args
, **kwargs
):
1160 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1161 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1163 def SetAlignment(*args
, **kwargs
):
1164 """SetAlignment(self, int alignment)"""
1165 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1167 def SetTabs(*args
, **kwargs
):
1168 """SetTabs(self, wxArrayInt tabs)"""
1169 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1171 def SetLeftIndent(*args
, **kwargs
):
1172 """SetLeftIndent(self, int indent)"""
1173 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1175 def SetRightIndent(*args
, **kwargs
):
1176 """SetRightIndent(self, int indent)"""
1177 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1179 def SetFlags(*args
, **kwargs
):
1180 """SetFlags(self, long flags)"""
1181 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1183 def HasTextColour(*args
, **kwargs
):
1184 """HasTextColour(self) -> bool"""
1185 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1187 def HasBackgroundColour(*args
, **kwargs
):
1188 """HasBackgroundColour(self) -> bool"""
1189 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1191 def HasFont(*args
, **kwargs
):
1192 """HasFont(self) -> bool"""
1193 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1195 def HasAlignment(*args
, **kwargs
):
1196 """HasAlignment(self) -> bool"""
1197 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1199 def HasTabs(*args
, **kwargs
):
1200 """HasTabs(self) -> bool"""
1201 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1203 def HasLeftIndent(*args
, **kwargs
):
1204 """HasLeftIndent(self) -> bool"""
1205 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1207 def HasRightIndent(*args
, **kwargs
):
1208 """HasRightIndent(self) -> bool"""
1209 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1211 def HasFlag(*args
, **kwargs
):
1212 """HasFlag(self, long flag) -> bool"""
1213 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1215 def GetTextColour(*args
, **kwargs
):
1216 """GetTextColour(self) -> Colour"""
1217 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1219 def GetBackgroundColour(*args
, **kwargs
):
1220 """GetBackgroundColour(self) -> Colour"""
1221 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1223 def GetFont(*args
, **kwargs
):
1224 """GetFont(self) -> Font"""
1225 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1227 def GetAlignment(*args
, **kwargs
):
1228 """GetAlignment(self) -> int"""
1229 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1231 def GetTabs(*args
, **kwargs
):
1232 """GetTabs(self) -> wxArrayInt"""
1233 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1235 def GetLeftIndent(*args
, **kwargs
):
1236 """GetLeftIndent(self) -> long"""
1237 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1239 def GetRightIndent(*args
, **kwargs
):
1240 """GetRightIndent(self) -> long"""
1241 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1243 def GetFlags(*args
, **kwargs
):
1244 """GetFlags(self) -> long"""
1245 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1247 def IsDefault(*args
, **kwargs
):
1248 """IsDefault(self) -> bool"""
1249 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1251 def Combine(*args
, **kwargs
):
1252 """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1253 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1255 Combine
= staticmethod(Combine
)
1257 class TextAttrPtr(TextAttr
):
1258 def __init__(self
, this
):
1260 if not hasattr(self
,"thisown"): self
.thisown
= 0
1261 self
.__class
__ = TextAttr
1262 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1263 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1265 def TextAttr_Combine(*args
, **kwargs
):
1266 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1267 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1269 class TextCtrl(_core
.Control
):
1271 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1272 def __init__(self
, *args
, **kwargs
):
1274 __init__(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1275 Size size=DefaultSize,
1276 long style=0, Validator validator=DefaultValidator,
1277 String name=TextCtrlNameStr) -> TextCtrl
1279 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1280 self
.this
= newobj
.this
1283 self
._setOORInfo
(self
)
1285 def Create(*args
, **kwargs
):
1287 Create(self, Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
1288 Size size=DefaultSize,
1289 long style=0, Validator validator=DefaultValidator,
1290 String name=TextCtrlNameStr) -> bool
1292 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1294 def GetValue(*args
, **kwargs
):
1295 """GetValue(self) -> String"""
1296 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1298 def SetValue(*args
, **kwargs
):
1299 """SetValue(self, String value)"""
1300 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1302 def GetRange(*args
, **kwargs
):
1303 """GetRange(self, long from, long to) -> String"""
1304 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1306 def GetLineLength(*args
, **kwargs
):
1307 """GetLineLength(self, long lineNo) -> int"""
1308 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1310 def GetLineText(*args
, **kwargs
):
1311 """GetLineText(self, long lineNo) -> String"""
1312 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1314 def GetNumberOfLines(*args
, **kwargs
):
1315 """GetNumberOfLines(self) -> int"""
1316 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1318 def IsModified(*args
, **kwargs
):
1319 """IsModified(self) -> bool"""
1320 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1322 def IsEditable(*args
, **kwargs
):
1323 """IsEditable(self) -> bool"""
1324 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1326 def IsSingleLine(*args
, **kwargs
):
1327 """IsSingleLine(self) -> bool"""
1328 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1330 def IsMultiLine(*args
, **kwargs
):
1331 """IsMultiLine(self) -> bool"""
1332 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1334 def GetSelection(*args
, **kwargs
):
1336 GetSelection() -> (from, to)
1338 If the return values from and to are the same, there is no selection.
1340 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1342 def GetStringSelection(*args
, **kwargs
):
1343 """GetStringSelection(self) -> String"""
1344 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1346 def Clear(*args
, **kwargs
):
1348 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1350 def Replace(*args
, **kwargs
):
1351 """Replace(self, long from, long to, String value)"""
1352 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1354 def Remove(*args
, **kwargs
):
1355 """Remove(self, long from, long to)"""
1356 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1358 def LoadFile(*args
, **kwargs
):
1359 """LoadFile(self, String file) -> bool"""
1360 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1362 def SaveFile(*args
, **kwargs
):
1363 """SaveFile(self, String file=EmptyString) -> bool"""
1364 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1366 def MarkDirty(*args
, **kwargs
):
1367 """MarkDirty(self)"""
1368 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1370 def DiscardEdits(*args
, **kwargs
):
1371 """DiscardEdits(self)"""
1372 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1374 def SetMaxLength(*args
, **kwargs
):
1375 """SetMaxLength(self, unsigned long len)"""
1376 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1378 def WriteText(*args
, **kwargs
):
1379 """WriteText(self, String text)"""
1380 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1382 def AppendText(*args
, **kwargs
):
1383 """AppendText(self, String text)"""
1384 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1386 def EmulateKeyPress(*args
, **kwargs
):
1387 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1388 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1390 def SetStyle(*args
, **kwargs
):
1391 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1392 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1394 def GetStyle(*args
, **kwargs
):
1395 """GetStyle(self, long position, TextAttr style) -> bool"""
1396 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1398 def SetDefaultStyle(*args
, **kwargs
):
1399 """SetDefaultStyle(self, TextAttr style) -> bool"""
1400 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1402 def GetDefaultStyle(*args
, **kwargs
):
1403 """GetDefaultStyle(self) -> TextAttr"""
1404 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1406 def XYToPosition(*args
, **kwargs
):
1407 """XYToPosition(self, long x, long y) -> long"""
1408 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1410 def PositionToXY(*args
, **kwargs
):
1411 """PositionToXY(long pos) -> (x, y)"""
1412 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1414 def ShowPosition(*args
, **kwargs
):
1415 """ShowPosition(self, long pos)"""
1416 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1418 def HitTest(*args
, **kwargs
):
1420 HitTest(Point pt) -> (result, row, col)
1422 Find the character at position given in pixels.
1423 NB: pt is in device coords (not adjusted for the client area
1424 origin nor scrolling)
1426 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1428 def Copy(*args
, **kwargs
):
1430 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1432 def Cut(*args
, **kwargs
):
1434 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1436 def Paste(*args
, **kwargs
):
1438 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1440 def CanCopy(*args
, **kwargs
):
1441 """CanCopy(self) -> bool"""
1442 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1444 def CanCut(*args
, **kwargs
):
1445 """CanCut(self) -> bool"""
1446 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1448 def CanPaste(*args
, **kwargs
):
1449 """CanPaste(self) -> bool"""
1450 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1452 def Undo(*args
, **kwargs
):
1454 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1456 def Redo(*args
, **kwargs
):
1458 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1460 def CanUndo(*args
, **kwargs
):
1461 """CanUndo(self) -> bool"""
1462 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1464 def CanRedo(*args
, **kwargs
):
1465 """CanRedo(self) -> bool"""
1466 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1468 def SetInsertionPoint(*args
, **kwargs
):
1469 """SetInsertionPoint(self, long pos)"""
1470 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1472 def SetInsertionPointEnd(*args
, **kwargs
):
1473 """SetInsertionPointEnd(self)"""
1474 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1476 def GetInsertionPoint(*args
, **kwargs
):
1477 """GetInsertionPoint(self) -> long"""
1478 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1480 def GetLastPosition(*args
, **kwargs
):
1481 """GetLastPosition(self) -> long"""
1482 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1484 def SetSelection(*args
, **kwargs
):
1485 """SetSelection(self, long from, long to)"""
1486 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1488 def SelectAll(*args
, **kwargs
):
1489 """SelectAll(self)"""
1490 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1492 def SetEditable(*args
, **kwargs
):
1493 """SetEditable(self, bool editable)"""
1494 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1496 def write(*args
, **kwargs
):
1497 """write(self, String text)"""
1498 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1500 def GetString(*args
, **kwargs
):
1501 """GetString(self, long from, long to) -> String"""
1502 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1505 class TextCtrlPtr(TextCtrl
):
1506 def __init__(self
, this
):
1508 if not hasattr(self
,"thisown"): self
.thisown
= 0
1509 self
.__class
__ = TextCtrl
1510 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
1512 def PreTextCtrl(*args
, **kwargs
):
1513 """PreTextCtrl() -> TextCtrl"""
1514 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1518 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1519 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1520 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1521 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1522 class TextUrlEvent(_core
.CommandEvent
):
1524 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1525 def __init__(self
, *args
, **kwargs
):
1526 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1527 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
1528 self
.this
= newobj
.this
1531 def GetMouseEvent(*args
, **kwargs
):
1532 """GetMouseEvent(self) -> MouseEvent"""
1533 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1535 def GetURLStart(*args
, **kwargs
):
1536 """GetURLStart(self) -> long"""
1537 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1539 def GetURLEnd(*args
, **kwargs
):
1540 """GetURLEnd(self) -> long"""
1541 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1544 class TextUrlEventPtr(TextUrlEvent
):
1545 def __init__(self
, this
):
1547 if not hasattr(self
,"thisown"): self
.thisown
= 0
1548 self
.__class
__ = TextUrlEvent
1549 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1551 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1552 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1553 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1554 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1556 #---------------------------------------------------------------------------
1558 class ScrollBar(_core
.Control
):
1560 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1561 def __init__(self
, *args
, **kwargs
):
1563 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1564 Size size=DefaultSize, long style=SB_HORIZONTAL,
1565 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1567 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
1568 self
.this
= newobj
.this
1571 self
._setOORInfo
(self
)
1573 def Create(*args
, **kwargs
):
1575 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1576 Size size=DefaultSize, long style=SB_HORIZONTAL,
1577 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1579 Do the 2nd phase and create the GUI control.
1581 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1583 def GetThumbPosition(*args
, **kwargs
):
1584 """GetThumbPosition(self) -> int"""
1585 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1587 def GetThumbSize(*args
, **kwargs
):
1588 """GetThumbSize(self) -> int"""
1589 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1591 GetThumbLength
= GetThumbSize
1592 def GetPageSize(*args
, **kwargs
):
1593 """GetPageSize(self) -> int"""
1594 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
1596 def GetRange(*args
, **kwargs
):
1597 """GetRange(self) -> int"""
1598 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
1600 def IsVertical(*args
, **kwargs
):
1601 """IsVertical(self) -> bool"""
1602 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
1604 def SetThumbPosition(*args
, **kwargs
):
1605 """SetThumbPosition(self, int viewStart)"""
1606 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1608 def SetScrollbar(*args
, **kwargs
):
1610 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
1613 Sets the scrollbar properties of a built-in scrollbar.
1615 orientation: Determines the scrollbar whose page size is to be
1616 set. May be wx.HORIZONTAL or wx.VERTICAL.
1618 position: The position of the scrollbar in scroll units.
1620 thumbSize: The size of the thumb, or visible portion of the
1621 scrollbar, in scroll units.
1623 range: The maximum position of the scrollbar.
1625 refresh: True to redraw the scrollbar, false otherwise.
1627 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
1630 class ScrollBarPtr(ScrollBar
):
1631 def __init__(self
, this
):
1633 if not hasattr(self
,"thisown"): self
.thisown
= 0
1634 self
.__class
__ = ScrollBar
1635 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
1636 ScrollBarNameStr
= cvar
.ScrollBarNameStr
1638 def PreScrollBar(*args
, **kwargs
):
1639 """PreScrollBar() -> ScrollBar"""
1640 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
1644 #---------------------------------------------------------------------------
1646 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
1647 SP_VERTICAL
= _controls_
.SP_VERTICAL
1648 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
1649 SP_WRAP
= _controls_
.SP_WRAP
1650 class SpinButton(_core
.Control
):
1652 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1653 def __init__(self
, *args
, **kwargs
):
1655 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1656 Size size=DefaultSize, long style=SP_HORIZONTAL,
1657 String name=SPIN_BUTTON_NAME) -> SpinButton
1659 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
1660 self
.this
= newobj
.this
1663 self
._setOORInfo
(self
)
1665 def Create(*args
, **kwargs
):
1667 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1668 Size size=DefaultSize, long style=SP_HORIZONTAL,
1669 String name=SPIN_BUTTON_NAME) -> bool
1671 return _controls_
.SpinButton_Create(*args
, **kwargs
)
1673 def GetValue(*args
, **kwargs
):
1674 """GetValue(self) -> int"""
1675 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
1677 def GetMin(*args
, **kwargs
):
1678 """GetMin(self) -> int"""
1679 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
1681 def GetMax(*args
, **kwargs
):
1682 """GetMax(self) -> int"""
1683 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
1685 def SetValue(*args
, **kwargs
):
1686 """SetValue(self, int val)"""
1687 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
1689 def SetMin(*args
, **kwargs
):
1690 """SetMin(self, int minVal)"""
1691 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
1693 def SetMax(*args
, **kwargs
):
1694 """SetMax(self, int maxVal)"""
1695 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
1697 def SetRange(*args
, **kwargs
):
1698 """SetRange(self, int minVal, int maxVal)"""
1699 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
1701 def IsVertical(*args
, **kwargs
):
1702 """IsVertical(self) -> bool"""
1703 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
1706 class SpinButtonPtr(SpinButton
):
1707 def __init__(self
, this
):
1709 if not hasattr(self
,"thisown"): self
.thisown
= 0
1710 self
.__class
__ = SpinButton
1711 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
1712 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
1713 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
1715 def PreSpinButton(*args
, **kwargs
):
1716 """PreSpinButton() -> SpinButton"""
1717 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
1721 class SpinCtrl(_core
.Control
):
1723 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1724 def __init__(self
, *args
, **kwargs
):
1726 __init__(self, Window parent, int id=-1, String value=EmptyString,
1727 Point pos=DefaultPosition, Size size=DefaultSize,
1728 long style=SP_ARROW_KEYS, int min=0, int max=100,
1729 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
1731 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
1732 self
.this
= newobj
.this
1735 self
._setOORInfo
(self
)
1737 def Create(*args
, **kwargs
):
1739 Create(self, Window parent, int id=-1, String value=EmptyString,
1740 Point pos=DefaultPosition, Size size=DefaultSize,
1741 long style=SP_ARROW_KEYS, int min=0, int max=100,
1742 int initial=0, String name=SpinCtrlNameStr) -> bool
1744 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
1746 def GetValue(*args
, **kwargs
):
1747 """GetValue(self) -> int"""
1748 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
1750 def SetValue(*args
, **kwargs
):
1751 """SetValue(self, int value)"""
1752 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
1754 def SetValueString(*args
, **kwargs
):
1755 """SetValueString(self, String text)"""
1756 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
1758 def SetRange(*args
, **kwargs
):
1759 """SetRange(self, int minVal, int maxVal)"""
1760 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
1762 def GetMin(*args
, **kwargs
):
1763 """GetMin(self) -> int"""
1764 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
1766 def GetMax(*args
, **kwargs
):
1767 """GetMax(self) -> int"""
1768 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
1770 def SetSelection(*args
, **kwargs
):
1771 """SetSelection(self, long from, long to)"""
1772 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
1775 class SpinCtrlPtr(SpinCtrl
):
1776 def __init__(self
, this
):
1778 if not hasattr(self
,"thisown"): self
.thisown
= 0
1779 self
.__class
__ = SpinCtrl
1780 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
1782 def PreSpinCtrl(*args
, **kwargs
):
1783 """PreSpinCtrl() -> SpinCtrl"""
1784 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
1788 class SpinEvent(_core
.NotifyEvent
):
1790 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1791 def __init__(self
, *args
, **kwargs
):
1792 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
1793 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
1794 self
.this
= newobj
.this
1797 def GetPosition(*args
, **kwargs
):
1798 """GetPosition(self) -> int"""
1799 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
1801 def SetPosition(*args
, **kwargs
):
1802 """SetPosition(self, int pos)"""
1803 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
1806 class SpinEventPtr(SpinEvent
):
1807 def __init__(self
, this
):
1809 if not hasattr(self
,"thisown"): self
.thisown
= 0
1810 self
.__class
__ = SpinEvent
1811 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
1813 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
1814 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
1815 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
1816 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
1817 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
1819 #---------------------------------------------------------------------------
1821 class RadioBox(_core
.Control
):
1823 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1824 def __init__(self
, *args
, **kwargs
):
1826 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
1827 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1828 int majorDimension=0,
1829 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1830 String name=RadioBoxNameStr) -> RadioBox
1832 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1833 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
1834 self
.this
= newobj
.this
1837 self
._setOORInfo
(self
)
1839 def Create(*args
, **kwargs
):
1841 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
1842 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1843 int majorDimension=0,
1844 long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
1845 String name=RadioBoxNameStr) -> bool
1847 return _controls_
.RadioBox_Create(*args
, **kwargs
)
1849 def SetSelection(*args
, **kwargs
):
1850 """SetSelection(self, int n)"""
1851 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
1853 def GetSelection(*args
, **kwargs
):
1854 """GetSelection(self) -> int"""
1855 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
1857 def GetStringSelection(*args
, **kwargs
):
1858 """GetStringSelection(self) -> String"""
1859 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
1861 def SetStringSelection(*args
, **kwargs
):
1862 """SetStringSelection(self, String s) -> bool"""
1863 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
1865 def GetCount(*args
, **kwargs
):
1866 """GetCount(self) -> int"""
1867 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
1869 def FindString(*args
, **kwargs
):
1870 """FindString(self, String s) -> int"""
1871 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
1873 def GetString(*args
, **kwargs
):
1874 """GetString(self, int n) -> String"""
1875 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
1877 def SetString(*args
, **kwargs
):
1878 """SetString(self, int n, String label)"""
1879 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
1881 GetItemLabel
= GetString
1882 SetItemLabel
= SetString
1883 def EnableItem(*args
, **kwargs
):
1884 """EnableItem(self, int n, bool enable=True)"""
1885 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
1887 def ShowItem(*args
, **kwargs
):
1888 """ShowItem(self, int n, bool show=True)"""
1889 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
1891 def GetColumnCount(*args
, **kwargs
):
1892 """GetColumnCount(self) -> int"""
1893 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
1895 def GetRowCount(*args
, **kwargs
):
1896 """GetRowCount(self) -> int"""
1897 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
1899 def GetNextItem(*args
, **kwargs
):
1900 """GetNextItem(self, int item, int dir, long style) -> int"""
1901 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
1904 class RadioBoxPtr(RadioBox
):
1905 def __init__(self
, this
):
1907 if not hasattr(self
,"thisown"): self
.thisown
= 0
1908 self
.__class
__ = RadioBox
1909 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
1910 RadioBoxNameStr
= cvar
.RadioBoxNameStr
1911 RadioButtonNameStr
= cvar
.RadioButtonNameStr
1913 def PreRadioBox(*args
, **kwargs
):
1914 """PreRadioBox() -> RadioBox"""
1915 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
1919 #---------------------------------------------------------------------------
1921 class RadioButton(_core
.Control
):
1923 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1924 def __init__(self
, *args
, **kwargs
):
1926 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
1927 Size size=DefaultSize, long style=0,
1928 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> RadioButton
1930 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
1931 self
.this
= newobj
.this
1934 self
._setOORInfo
(self
)
1936 def Create(*args
, **kwargs
):
1938 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
1939 Size size=DefaultSize, long style=0,
1940 Validator validator=DefaultValidator, String name=RadioButtonNameStr) -> bool
1942 return _controls_
.RadioButton_Create(*args
, **kwargs
)
1944 def GetValue(*args
, **kwargs
):
1945 """GetValue(self) -> bool"""
1946 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
1948 def SetValue(*args
, **kwargs
):
1949 """SetValue(self, bool value)"""
1950 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
1953 class RadioButtonPtr(RadioButton
):
1954 def __init__(self
, this
):
1956 if not hasattr(self
,"thisown"): self
.thisown
= 0
1957 self
.__class
__ = RadioButton
1958 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
1960 def PreRadioButton(*args
, **kwargs
):
1961 """PreRadioButton() -> RadioButton"""
1962 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
1966 #---------------------------------------------------------------------------
1968 class Slider(_core
.Control
):
1970 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1971 def __init__(self
, *args
, **kwargs
):
1973 __init__(self, Window parent, int id, int value, int minValue, int maxValue,
1974 Point pos=DefaultPosition, Size size=DefaultSize,
1975 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1976 String name=SliderNameStr) -> Slider
1978 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1979 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
1980 self
.this
= newobj
.this
1983 self
._setOORInfo
(self
)
1985 def Create(*args
, **kwargs
):
1987 Create(self, Window parent, int id, int value, int minValue, int maxValue,
1988 Point pos=DefaultPosition, Size size=DefaultSize,
1989 long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
1990 String name=SliderNameStr) -> bool
1992 return _controls_
.Slider_Create(*args
, **kwargs
)
1994 def GetValue(*args
, **kwargs
):
1995 """GetValue(self) -> int"""
1996 return _controls_
.Slider_GetValue(*args
, **kwargs
)
1998 def SetValue(*args
, **kwargs
):
1999 """SetValue(self, int value)"""
2000 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2002 def SetRange(*args
, **kwargs
):
2003 """SetRange(self, int minValue, int maxValue)"""
2004 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2006 def GetMin(*args
, **kwargs
):
2007 """GetMin(self) -> int"""
2008 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2010 def GetMax(*args
, **kwargs
):
2011 """GetMax(self) -> int"""
2012 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2014 def SetMin(*args
, **kwargs
):
2015 """SetMin(self, int minValue)"""
2016 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2018 def SetMax(*args
, **kwargs
):
2019 """SetMax(self, int maxValue)"""
2020 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2022 def SetLineSize(*args
, **kwargs
):
2023 """SetLineSize(self, int lineSize)"""
2024 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2026 def SetPageSize(*args
, **kwargs
):
2027 """SetPageSize(self, int pageSize)"""
2028 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2030 def GetLineSize(*args
, **kwargs
):
2031 """GetLineSize(self) -> int"""
2032 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2034 def GetPageSize(*args
, **kwargs
):
2035 """GetPageSize(self) -> int"""
2036 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2038 def SetThumbLength(*args
, **kwargs
):
2039 """SetThumbLength(self, int lenPixels)"""
2040 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2042 def GetThumbLength(*args
, **kwargs
):
2043 """GetThumbLength(self) -> int"""
2044 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2046 def SetTickFreq(*args
, **kwargs
):
2047 """SetTickFreq(self, int n, int pos=1)"""
2048 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2050 def GetTickFreq(*args
, **kwargs
):
2051 """GetTickFreq(self) -> int"""
2052 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2054 def ClearTicks(*args
, **kwargs
):
2055 """ClearTicks(self)"""
2056 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2058 def SetTick(*args
, **kwargs
):
2059 """SetTick(self, int tickPos)"""
2060 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2062 def ClearSel(*args
, **kwargs
):
2063 """ClearSel(self)"""
2064 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2066 def GetSelEnd(*args
, **kwargs
):
2067 """GetSelEnd(self) -> int"""
2068 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2070 def GetSelStart(*args
, **kwargs
):
2071 """GetSelStart(self) -> int"""
2072 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2074 def SetSelection(*args
, **kwargs
):
2075 """SetSelection(self, int min, int max)"""
2076 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2079 class SliderPtr(Slider
):
2080 def __init__(self
, this
):
2082 if not hasattr(self
,"thisown"): self
.thisown
= 0
2083 self
.__class
__ = Slider
2084 _controls_
.Slider_swigregister(SliderPtr
)
2085 SliderNameStr
= cvar
.SliderNameStr
2087 def PreSlider(*args
, **kwargs
):
2088 """PreSlider() -> Slider"""
2089 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2093 #---------------------------------------------------------------------------
2095 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2096 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2098 class ToggleButton(_core
.Control
):
2100 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2101 def __init__(self
, *args
, **kwargs
):
2103 __init__(self, Window parent, int id, String label, Point pos=DefaultPosition,
2104 Size size=DefaultSize, long style=0,
2105 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> ToggleButton
2107 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2108 self
.this
= newobj
.this
2111 self
._setOORInfo
(self
)
2113 def Create(*args
, **kwargs
):
2115 Create(self, Window parent, int id, String label, Point pos=DefaultPosition,
2116 Size size=DefaultSize, long style=0,
2117 Validator validator=DefaultValidator, String name=ToggleButtonNameStr) -> bool
2119 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2121 def SetValue(*args
, **kwargs
):
2122 """SetValue(self, bool value)"""
2123 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2125 def GetValue(*args
, **kwargs
):
2126 """GetValue(self) -> bool"""
2127 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2129 def SetLabel(*args
, **kwargs
):
2131 SetLabel(self, String label)
2133 Sets the item's text.
2135 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2138 class ToggleButtonPtr(ToggleButton
):
2139 def __init__(self
, this
):
2141 if not hasattr(self
,"thisown"): self
.thisown
= 0
2142 self
.__class
__ = ToggleButton
2143 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2144 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2146 def PreToggleButton(*args
, **kwargs
):
2147 """PreToggleButton() -> ToggleButton"""
2148 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2152 #---------------------------------------------------------------------------
2154 class BookCtrl(_core
.Control
):
2155 def __init__(self
): raise RuntimeError, "No constructor defined"
2157 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2158 def GetPageCount(*args
, **kwargs
):
2159 """GetPageCount(self) -> size_t"""
2160 return _controls_
.BookCtrl_GetPageCount(*args
, **kwargs
)
2162 def GetPage(*args
, **kwargs
):
2163 """GetPage(self, size_t n) -> Window"""
2164 return _controls_
.BookCtrl_GetPage(*args
, **kwargs
)
2166 def GetSelection(*args
, **kwargs
):
2167 """GetSelection(self) -> int"""
2168 return _controls_
.BookCtrl_GetSelection(*args
, **kwargs
)
2170 def SetPageText(*args
, **kwargs
):
2171 """SetPageText(self, size_t n, String strText) -> bool"""
2172 return _controls_
.BookCtrl_SetPageText(*args
, **kwargs
)
2174 def GetPageText(*args
, **kwargs
):
2175 """GetPageText(self, size_t n) -> String"""
2176 return _controls_
.BookCtrl_GetPageText(*args
, **kwargs
)
2178 def SetImageList(*args
, **kwargs
):
2179 """SetImageList(self, ImageList imageList)"""
2180 return _controls_
.BookCtrl_SetImageList(*args
, **kwargs
)
2182 def AssignImageList(*args
, **kwargs
):
2183 """AssignImageList(self, ImageList imageList)"""
2184 return _controls_
.BookCtrl_AssignImageList(*args
, **kwargs
)
2186 def GetImageList(*args
, **kwargs
):
2187 """GetImageList(self) -> ImageList"""
2188 return _controls_
.BookCtrl_GetImageList(*args
, **kwargs
)
2190 def GetPageImage(*args
, **kwargs
):
2191 """GetPageImage(self, size_t n) -> int"""
2192 return _controls_
.BookCtrl_GetPageImage(*args
, **kwargs
)
2194 def SetPageImage(*args
, **kwargs
):
2195 """SetPageImage(self, size_t n, int imageId) -> bool"""
2196 return _controls_
.BookCtrl_SetPageImage(*args
, **kwargs
)
2198 def SetPageSize(*args
, **kwargs
):
2199 """SetPageSize(self, Size size)"""
2200 return _controls_
.BookCtrl_SetPageSize(*args
, **kwargs
)
2202 def CalcSizeFromPage(*args
, **kwargs
):
2203 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2204 return _controls_
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2206 def DeletePage(*args
, **kwargs
):
2207 """DeletePage(self, size_t n) -> bool"""
2208 return _controls_
.BookCtrl_DeletePage(*args
, **kwargs
)
2210 def RemovePage(*args
, **kwargs
):
2211 """RemovePage(self, size_t n) -> bool"""
2212 return _controls_
.BookCtrl_RemovePage(*args
, **kwargs
)
2214 def DeleteAllPages(*args
, **kwargs
):
2215 """DeleteAllPages(self) -> bool"""
2216 return _controls_
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2218 def AddPage(*args
, **kwargs
):
2219 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2220 return _controls_
.BookCtrl_AddPage(*args
, **kwargs
)
2222 def InsertPage(*args
, **kwargs
):
2224 InsertPage(self, size_t n, Window page, String text, bool select=False,
2225 int imageId=-1) -> bool
2227 return _controls_
.BookCtrl_InsertPage(*args
, **kwargs
)
2229 def SetSelection(*args
, **kwargs
):
2230 """SetSelection(self, size_t n) -> int"""
2231 return _controls_
.BookCtrl_SetSelection(*args
, **kwargs
)
2233 def AdvanceSelection(*args
, **kwargs
):
2234 """AdvanceSelection(self, bool forward=True)"""
2235 return _controls_
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2238 class BookCtrlPtr(BookCtrl
):
2239 def __init__(self
, this
):
2241 if not hasattr(self
,"thisown"): self
.thisown
= 0
2242 self
.__class
__ = BookCtrl
2243 _controls_
.BookCtrl_swigregister(BookCtrlPtr
)
2244 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2246 class BookCtrlEvent(_core
.NotifyEvent
):
2248 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2249 def __init__(self
, *args
, **kwargs
):
2251 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2252 int nOldSel=-1) -> BookCtrlEvent
2254 newobj
= _controls_
.new_BookCtrlEvent(*args
, **kwargs
)
2255 self
.this
= newobj
.this
2258 def GetSelection(*args
, **kwargs
):
2259 """GetSelection(self) -> int"""
2260 return _controls_
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2262 def SetSelection(*args
, **kwargs
):
2263 """SetSelection(self, int nSel)"""
2264 return _controls_
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2266 def GetOldSelection(*args
, **kwargs
):
2267 """GetOldSelection(self) -> int"""
2268 return _controls_
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2270 def SetOldSelection(*args
, **kwargs
):
2271 """SetOldSelection(self, int nOldSel)"""
2272 return _controls_
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2275 class BookCtrlEventPtr(BookCtrlEvent
):
2276 def __init__(self
, this
):
2278 if not hasattr(self
,"thisown"): self
.thisown
= 0
2279 self
.__class
__ = BookCtrlEvent
2280 _controls_
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2282 #---------------------------------------------------------------------------
2284 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2285 NB_TOP
= _controls_
.NB_TOP
2286 NB_LEFT
= _controls_
.NB_LEFT
2287 NB_RIGHT
= _controls_
.NB_RIGHT
2288 NB_BOTTOM
= _controls_
.NB_BOTTOM
2289 NB_MULTILINE
= _controls_
.NB_MULTILINE
2290 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2291 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2292 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2293 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2294 class Notebook(BookCtrl
):
2296 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2297 def __init__(self
, *args
, **kwargs
):
2299 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2300 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2302 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
2303 self
.this
= newobj
.this
2306 self
._setOORInfo
(self
)
2308 def Create(*args
, **kwargs
):
2310 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2311 long style=0, String name=NOTEBOOK_NAME) -> bool
2313 return _controls_
.Notebook_Create(*args
, **kwargs
)
2315 def GetRowCount(*args
, **kwargs
):
2316 """GetRowCount(self) -> int"""
2317 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2319 def SetPadding(*args
, **kwargs
):
2320 """SetPadding(self, Size padding)"""
2321 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2323 def SetTabSize(*args
, **kwargs
):
2324 """SetTabSize(self, Size sz)"""
2325 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
2327 def HitTest(*args
, **kwargs
):
2329 HitTest(Point pt) -> (tab, where)
2331 Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
2333 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
2335 def CalcSizeFromPage(*args
, **kwargs
):
2336 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2337 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
2340 class NotebookPtr(Notebook
):
2341 def __init__(self
, this
):
2343 if not hasattr(self
,"thisown"): self
.thisown
= 0
2344 self
.__class
__ = Notebook
2345 _controls_
.Notebook_swigregister(NotebookPtr
)
2347 def PreNotebook(*args
, **kwargs
):
2348 """PreNotebook() -> Notebook"""
2349 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
2353 class NotebookEvent(BookCtrlEvent
):
2355 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2356 def __init__(self
, *args
, **kwargs
):
2358 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2359 int nOldSel=-1) -> NotebookEvent
2361 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
2362 self
.this
= newobj
.this
2366 class NotebookEventPtr(NotebookEvent
):
2367 def __init__(self
, this
):
2369 if not hasattr(self
,"thisown"): self
.thisown
= 0
2370 self
.__class
__ = NotebookEvent
2371 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
2373 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
2374 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
2376 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
2377 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
2379 #----------------------------------------------------------------------------
2381 class NotebookPage(wx
.Panel
):
2383 There is an old (and apparently unsolvable) bug when placing a
2384 window with a nonstandard background colour in a wxNotebook on
2385 wxGTK, as the notbooks's background colour would always be used
2386 when the window is refreshed. The solution is to place a panel in
2387 the notbook and the coloured window on the panel, sized to cover
2388 the panel. This simple class does that for you, just put an
2389 instance of this in the notebook and make your regular window a
2390 child of this one and it will handle the resize for you.
2392 def __init__(self
, parent
, id=-1,
2393 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
2394 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
2395 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
2397 EVT_SIZE(self
, self
.OnSize
)
2399 def OnSize(self
, evt
):
2400 if self
.child
is None:
2401 children
= self
.GetChildren()
2403 self
.child
= children
[0]
2405 self
.child
.SetPosition((0,0))
2406 self
.child
.SetSize(self
.GetSize())
2409 #---------------------------------------------------------------------------
2411 LB_DEFAULT
= _controls_
.LB_DEFAULT
2412 LB_TOP
= _controls_
.LB_TOP
2413 LB_BOTTOM
= _controls_
.LB_BOTTOM
2414 LB_LEFT
= _controls_
.LB_LEFT
2415 LB_RIGHT
= _controls_
.LB_RIGHT
2416 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
2417 class Listbook(BookCtrl
):
2419 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2420 def __init__(self
, *args
, **kwargs
):
2422 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2423 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
2425 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
2426 self
.this
= newobj
.this
2429 self
._setOORInfo
(self
)
2431 def Create(*args
, **kwargs
):
2433 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2434 long style=0, String name=EmptyString) -> bool
2436 return _controls_
.Listbook_Create(*args
, **kwargs
)
2438 def IsVertical(*args
, **kwargs
):
2439 """IsVertical(self) -> bool"""
2440 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
2443 class ListbookPtr(Listbook
):
2444 def __init__(self
, this
):
2446 if not hasattr(self
,"thisown"): self
.thisown
= 0
2447 self
.__class
__ = Listbook
2448 _controls_
.Listbook_swigregister(ListbookPtr
)
2450 def PreListbook(*args
, **kwargs
):
2451 """PreListbook() -> Listbook"""
2452 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
2456 class ListbookEvent(BookCtrlEvent
):
2458 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2459 def __init__(self
, *args
, **kwargs
):
2461 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2462 int nOldSel=-1) -> ListbookEvent
2464 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
2465 self
.this
= newobj
.this
2469 class ListbookEventPtr(ListbookEvent
):
2470 def __init__(self
, this
):
2472 if not hasattr(self
,"thisown"): self
.thisown
= 0
2473 self
.__class
__ = ListbookEvent
2474 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
2476 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
2477 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
2478 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
2479 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
2481 #---------------------------------------------------------------------------
2483 class BookCtrlSizer(_core
.Sizer
):
2485 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2486 def __init__(self
, *args
, **kwargs
):
2487 """__init__(self, BookCtrl nb) -> BookCtrlSizer"""
2488 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
2489 self
.this
= newobj
.this
2492 self
._setOORInfo
(self
)
2494 def RecalcSizes(*args
, **kwargs
):
2495 """RecalcSizes(self)"""
2496 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
2498 def CalcMin(*args
, **kwargs
):
2499 """CalcMin(self) -> Size"""
2500 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
2502 def GetControl(*args
, **kwargs
):
2503 """GetControl(self) -> BookCtrl"""
2504 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
2507 class BookCtrlSizerPtr(BookCtrlSizer
):
2508 def __init__(self
, this
):
2510 if not hasattr(self
,"thisown"): self
.thisown
= 0
2511 self
.__class
__ = BookCtrlSizer
2512 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
2514 class NotebookSizer(_core
.Sizer
):
2516 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2517 def __init__(self
, *args
, **kwargs
):
2518 """__init__(self, Notebook nb) -> NotebookSizer"""
2519 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
2520 self
.this
= newobj
.this
2523 self
._setOORInfo
(self
)
2525 def RecalcSizes(*args
, **kwargs
):
2526 """RecalcSizes(self)"""
2527 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
2529 def CalcMin(*args
, **kwargs
):
2530 """CalcMin(self) -> Size"""
2531 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
2533 def GetNotebook(*args
, **kwargs
):
2534 """GetNotebook(self) -> Notebook"""
2535 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
2538 class NotebookSizerPtr(NotebookSizer
):
2539 def __init__(self
, this
):
2541 if not hasattr(self
,"thisown"): self
.thisown
= 0
2542 self
.__class
__ = NotebookSizer
2543 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
2545 #---------------------------------------------------------------------------
2547 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
2548 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
2549 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
2550 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
2551 TB_VERTICAL
= _controls_
.TB_VERTICAL
2552 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
2553 TB_FLAT
= _controls_
.TB_FLAT
2554 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
2555 TB_NOICONS
= _controls_
.TB_NOICONS
2556 TB_TEXT
= _controls_
.TB_TEXT
2557 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
2558 TB_NOALIGN
= _controls_
.TB_NOALIGN
2559 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
2560 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
2561 class ToolBarToolBase(_core
.Object
):
2562 def __init__(self
): raise RuntimeError, "No constructor defined"
2564 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2565 def GetId(*args
, **kwargs
):
2566 """GetId(self) -> int"""
2567 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
2569 def GetControl(*args
, **kwargs
):
2570 """GetControl(self) -> Control"""
2571 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
2573 def GetToolBar(*args
, **kwargs
):
2574 """GetToolBar(self) -> ToolBarBase"""
2575 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
2577 def IsButton(*args
, **kwargs
):
2578 """IsButton(self) -> int"""
2579 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
2581 def IsControl(*args
, **kwargs
):
2582 """IsControl(self) -> int"""
2583 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
2585 def IsSeparator(*args
, **kwargs
):
2586 """IsSeparator(self) -> int"""
2587 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
2589 def GetStyle(*args
, **kwargs
):
2590 """GetStyle(self) -> int"""
2591 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
2593 def GetKind(*args
, **kwargs
):
2594 """GetKind(self) -> int"""
2595 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
2597 def IsEnabled(*args
, **kwargs
):
2598 """IsEnabled(self) -> bool"""
2599 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
2601 def IsToggled(*args
, **kwargs
):
2602 """IsToggled(self) -> bool"""
2603 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
2605 def CanBeToggled(*args
, **kwargs
):
2606 """CanBeToggled(self) -> bool"""
2607 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
2609 def GetNormalBitmap(*args
, **kwargs
):
2610 """GetNormalBitmap(self) -> Bitmap"""
2611 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
2613 def GetDisabledBitmap(*args
, **kwargs
):
2614 """GetDisabledBitmap(self) -> Bitmap"""
2615 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
2617 def GetBitmap(*args
, **kwargs
):
2618 """GetBitmap(self) -> Bitmap"""
2619 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
2621 def GetLabel(*args
, **kwargs
):
2622 """GetLabel(self) -> String"""
2623 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
2625 def GetShortHelp(*args
, **kwargs
):
2626 """GetShortHelp(self) -> String"""
2627 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
2629 def GetLongHelp(*args
, **kwargs
):
2630 """GetLongHelp(self) -> String"""
2631 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
2633 def Enable(*args
, **kwargs
):
2634 """Enable(self, bool enable) -> bool"""
2635 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
2637 def Toggle(*args
, **kwargs
):
2639 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
2641 def SetToggle(*args
, **kwargs
):
2642 """SetToggle(self, bool toggle) -> bool"""
2643 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
2645 def SetShortHelp(*args
, **kwargs
):
2646 """SetShortHelp(self, String help) -> bool"""
2647 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
2649 def SetLongHelp(*args
, **kwargs
):
2650 """SetLongHelp(self, String help) -> bool"""
2651 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
2653 def SetNormalBitmap(*args
, **kwargs
):
2654 """SetNormalBitmap(self, Bitmap bmp)"""
2655 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
2657 def SetDisabledBitmap(*args
, **kwargs
):
2658 """SetDisabledBitmap(self, Bitmap bmp)"""
2659 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
2661 def SetLabel(*args
, **kwargs
):
2662 """SetLabel(self, String label)"""
2663 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
2665 def Detach(*args
, **kwargs
):
2667 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
2669 def Attach(*args
, **kwargs
):
2670 """Attach(self, ToolBarBase tbar)"""
2671 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
2673 def GetClientData(*args
, **kwargs
):
2674 """GetClientData(self) -> PyObject"""
2675 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
2677 def SetClientData(*args
, **kwargs
):
2678 """SetClientData(self, PyObject clientData)"""
2679 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
2681 GetBitmap1
= GetNormalBitmap
2682 GetBitmap2
= GetDisabledBitmap
2683 SetBitmap1
= SetNormalBitmap
2684 SetBitmap2
= SetDisabledBitmap
2687 class ToolBarToolBasePtr(ToolBarToolBase
):
2688 def __init__(self
, this
):
2690 if not hasattr(self
,"thisown"): self
.thisown
= 0
2691 self
.__class
__ = ToolBarToolBase
2692 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
2694 class ToolBarBase(_core
.Control
):
2695 def __init__(self
): raise RuntimeError, "No constructor defined"
2697 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2698 def DoAddTool(*args
, **kwargs
):
2700 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2701 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
2702 String longHelp=EmptyString,
2703 PyObject clientData=None) -> ToolBarToolBase
2705 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
2707 def DoInsertTool(*args
, **kwargs
):
2709 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
2710 int kind=ITEM_NORMAL,
2711 String shortHelp=EmptyString, String longHelp=EmptyString,
2712 PyObject clientData=None) -> ToolBarToolBase
2714 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
2716 # These match the original Add methods for this class, kept for
2717 # backwards compatibility with versions < 2.3.3.
2720 def AddTool(self
, id, bitmap
,
2721 pushedBitmap
= wx
.NullBitmap
,
2724 shortHelpString
= '',
2725 longHelpString
= '') :
2726 '''Old style method to add a tool to the toolbar.'''
2727 kind
= wx
.ITEM_NORMAL
2728 if isToggle
: kind
= wx
.ITEM_CHECK
2729 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
2730 shortHelpString
, longHelpString
, clientData
)
2732 def AddSimpleTool(self
, id, bitmap
,
2733 shortHelpString
= '',
2734 longHelpString
= '',
2736 '''Old style method to add a tool to the toolbar.'''
2737 kind
= wx
.ITEM_NORMAL
2738 if isToggle
: kind
= wx
.ITEM_CHECK
2739 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
2740 shortHelpString
, longHelpString
, None)
2742 def InsertTool(self
, pos
, id, bitmap
,
2743 pushedBitmap
= wx
.NullBitmap
,
2746 shortHelpString
= '',
2747 longHelpString
= ''):
2748 '''Old style method to insert a tool in the toolbar.'''
2749 kind
= wx
.ITEM_NORMAL
2750 if isToggle
: kind
= wx
.ITEM_CHECK
2751 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
2752 shortHelpString
, longHelpString
, clientData
)
2754 def InsertSimpleTool(self
, pos
, id, bitmap
,
2755 shortHelpString
= '',
2756 longHelpString
= '',
2758 '''Old style method to insert a tool in the toolbar.'''
2759 kind
= wx
.ITEM_NORMAL
2760 if isToggle
: kind
= wx
.ITEM_CHECK
2761 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
2762 shortHelpString
, longHelpString
, None)
2765 # The following are the new toolbar Add methods starting with
2766 # 2.3.3. They are renamed to have 'Label' in the name so as to be
2767 # able to keep backwards compatibility with using the above
2768 # methods. Eventually these should migrate to be the methods used
2769 # primarily and lose the 'Label' in the name...
2771 def AddLabelTool(self
, id, label
, bitmap
,
2772 bmpDisabled
= wx
.NullBitmap
,
2773 kind
= wx
.ITEM_NORMAL
,
2774 shortHelp
= '', longHelp
= '',
2777 The full AddTool() function.
2779 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
2780 is created and used as the disabled image.
2782 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
2783 shortHelp
, longHelp
, clientData
)
2786 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
2787 bmpDisabled
= wx
.NullBitmap
,
2788 kind
= wx
.ITEM_NORMAL
,
2789 shortHelp
= '', longHelp
= '',
2792 Insert the new tool at the given position, if pos == GetToolsCount(), it
2793 is equivalent to AddTool()
2795 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
2796 shortHelp
, longHelp
, clientData
)
2798 def AddCheckLabelTool(self
, id, label
, bitmap
,
2799 bmpDisabled
= wx
.NullBitmap
,
2800 shortHelp
= '', longHelp
= '',
2802 '''Add a check tool, i.e. a tool which can be toggled'''
2803 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2804 shortHelp
, longHelp
, clientData
)
2806 def AddRadioLabelTool(self
, id, label
, bitmap
,
2807 bmpDisabled
= wx
.NullBitmap
,
2808 shortHelp
= '', longHelp
= '',
2811 Add a radio tool, i.e. a tool which can be toggled and releases any
2812 other toggled radio tools in the same group when it happens
2814 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2815 shortHelp
, longHelp
, clientData
)
2818 # For consistency with the backwards compatible methods above, here are
2819 # some non-'Label' versions of the Check and Radio methods
2820 def AddCheckTool(self
, id, bitmap
,
2821 bmpDisabled
= wx
.NullBitmap
,
2822 shortHelp
= '', longHelp
= '',
2824 '''Add a check tool, i.e. a tool which can be toggled'''
2825 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
2826 shortHelp
, longHelp
, clientData
)
2828 def AddRadioTool(self
, id, bitmap
,
2829 bmpDisabled
= wx
.NullBitmap
,
2830 shortHelp
= '', longHelp
= '',
2833 Add a radio tool, i.e. a tool which can be toggled and releases any
2834 other toggled radio tools in the same group when it happens
2836 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
2837 shortHelp
, longHelp
, clientData
)
2839 def AddToolItem(*args
, **kwargs
):
2840 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
2841 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
2843 def InsertToolItem(*args
, **kwargs
):
2844 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
2845 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
2847 def AddControl(*args
, **kwargs
):
2848 """AddControl(self, Control control) -> ToolBarToolBase"""
2849 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
2851 def InsertControl(*args
, **kwargs
):
2852 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
2853 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
2855 def FindControl(*args
, **kwargs
):
2856 """FindControl(self, int id) -> Control"""
2857 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
2859 def AddSeparator(*args
, **kwargs
):
2860 """AddSeparator(self) -> ToolBarToolBase"""
2861 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
2863 def InsertSeparator(*args
, **kwargs
):
2864 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
2865 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
2867 def RemoveTool(*args
, **kwargs
):
2868 """RemoveTool(self, int id) -> ToolBarToolBase"""
2869 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
2871 def DeleteToolByPos(*args
, **kwargs
):
2872 """DeleteToolByPos(self, size_t pos) -> bool"""
2873 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
2875 def DeleteTool(*args
, **kwargs
):
2876 """DeleteTool(self, int id) -> bool"""
2877 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
2879 def ClearTools(*args
, **kwargs
):
2880 """ClearTools(self)"""
2881 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
2883 def Realize(*args
, **kwargs
):
2884 """Realize(self) -> bool"""
2885 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
2887 def EnableTool(*args
, **kwargs
):
2888 """EnableTool(self, int id, bool enable)"""
2889 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
2891 def ToggleTool(*args
, **kwargs
):
2892 """ToggleTool(self, int id, bool toggle)"""
2893 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
2895 def SetToggle(*args
, **kwargs
):
2896 """SetToggle(self, int id, bool toggle)"""
2897 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
2899 def GetToolClientData(*args
, **kwargs
):
2900 """GetToolClientData(self, int id) -> PyObject"""
2901 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
2903 def SetToolClientData(*args
, **kwargs
):
2904 """SetToolClientData(self, int id, PyObject clientData)"""
2905 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
2907 def GetToolPos(*args
, **kwargs
):
2908 """GetToolPos(self, int id) -> int"""
2909 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
2911 def GetToolState(*args
, **kwargs
):
2912 """GetToolState(self, int id) -> bool"""
2913 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
2915 def GetToolEnabled(*args
, **kwargs
):
2916 """GetToolEnabled(self, int id) -> bool"""
2917 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
2919 def SetToolShortHelp(*args
, **kwargs
):
2920 """SetToolShortHelp(self, int id, String helpString)"""
2921 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
2923 def GetToolShortHelp(*args
, **kwargs
):
2924 """GetToolShortHelp(self, int id) -> String"""
2925 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
2927 def SetToolLongHelp(*args
, **kwargs
):
2928 """SetToolLongHelp(self, int id, String helpString)"""
2929 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
2931 def GetToolLongHelp(*args
, **kwargs
):
2932 """GetToolLongHelp(self, int id) -> String"""
2933 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
2935 def SetMarginsXY(*args
, **kwargs
):
2936 """SetMarginsXY(self, int x, int y)"""
2937 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
2939 def SetMargins(*args
, **kwargs
):
2940 """SetMargins(self, Size size)"""
2941 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
2943 def SetToolPacking(*args
, **kwargs
):
2944 """SetToolPacking(self, int packing)"""
2945 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
2947 def SetToolSeparation(*args
, **kwargs
):
2948 """SetToolSeparation(self, int separation)"""
2949 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
2951 def GetToolMargins(*args
, **kwargs
):
2952 """GetToolMargins(self) -> Size"""
2953 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
2955 def GetMargins(*args
, **kwargs
):
2956 """GetMargins(self) -> Size"""
2957 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
2959 def GetToolPacking(*args
, **kwargs
):
2960 """GetToolPacking(self) -> int"""
2961 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
2963 def GetToolSeparation(*args
, **kwargs
):
2964 """GetToolSeparation(self) -> int"""
2965 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
2967 def SetRows(*args
, **kwargs
):
2968 """SetRows(self, int nRows)"""
2969 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
2971 def SetMaxRowsCols(*args
, **kwargs
):
2972 """SetMaxRowsCols(self, int rows, int cols)"""
2973 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
2975 def GetMaxRows(*args
, **kwargs
):
2976 """GetMaxRows(self) -> int"""
2977 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
2979 def GetMaxCols(*args
, **kwargs
):
2980 """GetMaxCols(self) -> int"""
2981 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
2983 def SetToolBitmapSize(*args
, **kwargs
):
2984 """SetToolBitmapSize(self, Size size)"""
2985 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
2987 def GetToolBitmapSize(*args
, **kwargs
):
2988 """GetToolBitmapSize(self) -> Size"""
2989 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
2991 def GetToolSize(*args
, **kwargs
):
2992 """GetToolSize(self) -> Size"""
2993 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
2995 def FindToolForPosition(*args
, **kwargs
):
2996 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
2997 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
2999 def FindById(*args
, **kwargs
):
3000 """FindById(self, int toolid) -> ToolBarToolBase"""
3001 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3003 def IsVertical(*args
, **kwargs
):
3004 """IsVertical(self) -> bool"""
3005 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3008 class ToolBarBasePtr(ToolBarBase
):
3009 def __init__(self
, this
):
3011 if not hasattr(self
,"thisown"): self
.thisown
= 0
3012 self
.__class
__ = ToolBarBase
3013 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3015 class ToolBar(ToolBarBase
):
3017 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3018 def __init__(self
, *args
, **kwargs
):
3020 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3021 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3022 String name=wxPyToolBarNameStr) -> ToolBar
3024 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3025 self
.this
= newobj
.this
3028 self
._setOORInfo
(self
)
3030 def Create(*args
, **kwargs
):
3032 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3033 long style=wxNO_BORDER|wxTB_HORIZONTAL,
3034 String name=wxPyToolBarNameStr) -> bool
3036 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3038 def FindToolForPosition(*args
, **kwargs
):
3039 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3040 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3043 class ToolBarPtr(ToolBar
):
3044 def __init__(self
, this
):
3046 if not hasattr(self
,"thisown"): self
.thisown
= 0
3047 self
.__class
__ = ToolBar
3048 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3050 def PreToolBar(*args
, **kwargs
):
3051 """PreToolBar() -> ToolBar"""
3052 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3056 #---------------------------------------------------------------------------
3058 LC_VRULES
= _controls_
.LC_VRULES
3059 LC_HRULES
= _controls_
.LC_HRULES
3060 LC_ICON
= _controls_
.LC_ICON
3061 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3062 LC_LIST
= _controls_
.LC_LIST
3063 LC_REPORT
= _controls_
.LC_REPORT
3064 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3065 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3066 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3067 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3068 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3069 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3070 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3071 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3072 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3073 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3074 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3075 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3076 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3077 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3078 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3079 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3080 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3081 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3082 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3083 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3084 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3085 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3086 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3087 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3088 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3089 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3090 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3091 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3092 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3093 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3094 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3095 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3096 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3097 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3098 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3099 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3100 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3101 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3102 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3103 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3104 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3105 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3106 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3107 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3108 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3109 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3110 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3111 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3112 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3113 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3114 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3115 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3116 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3117 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3118 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3119 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3120 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3121 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3122 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3123 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3124 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3125 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3126 #---------------------------------------------------------------------------
3128 class ListItemAttr(object):
3130 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3131 def __init__(self
, *args
, **kwargs
):
3133 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3134 Font font=wxNullFont) -> ListItemAttr
3136 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
3137 self
.this
= newobj
.this
3140 def SetTextColour(*args
, **kwargs
):
3141 """SetTextColour(self, Colour colText)"""
3142 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3144 def SetBackgroundColour(*args
, **kwargs
):
3145 """SetBackgroundColour(self, Colour colBack)"""
3146 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3148 def SetFont(*args
, **kwargs
):
3149 """SetFont(self, Font font)"""
3150 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3152 def HasTextColour(*args
, **kwargs
):
3153 """HasTextColour(self) -> bool"""
3154 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3156 def HasBackgroundColour(*args
, **kwargs
):
3157 """HasBackgroundColour(self) -> bool"""
3158 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3160 def HasFont(*args
, **kwargs
):
3161 """HasFont(self) -> bool"""
3162 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3164 def GetTextColour(*args
, **kwargs
):
3165 """GetTextColour(self) -> Colour"""
3166 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3168 def GetBackgroundColour(*args
, **kwargs
):
3169 """GetBackgroundColour(self) -> Colour"""
3170 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3172 def GetFont(*args
, **kwargs
):
3173 """GetFont(self) -> Font"""
3174 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
3176 def Destroy(*args
, **kwargs
):
3178 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
3181 class ListItemAttrPtr(ListItemAttr
):
3182 def __init__(self
, this
):
3184 if not hasattr(self
,"thisown"): self
.thisown
= 0
3185 self
.__class
__ = ListItemAttr
3186 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
3187 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3189 #---------------------------------------------------------------------------
3191 class ListItem(_core
.Object
):
3193 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3194 def __init__(self
, *args
, **kwargs
):
3195 """__init__(self) -> ListItem"""
3196 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
3197 self
.this
= newobj
.this
3200 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
3203 if self
.thisown
: destroy(self
)
3206 def Clear(*args
, **kwargs
):
3208 return _controls_
.ListItem_Clear(*args
, **kwargs
)
3210 def ClearAttributes(*args
, **kwargs
):
3211 """ClearAttributes(self)"""
3212 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
3214 def SetMask(*args
, **kwargs
):
3215 """SetMask(self, long mask)"""
3216 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
3218 def SetId(*args
, **kwargs
):
3219 """SetId(self, long id)"""
3220 return _controls_
.ListItem_SetId(*args
, **kwargs
)
3222 def SetColumn(*args
, **kwargs
):
3223 """SetColumn(self, int col)"""
3224 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
3226 def SetState(*args
, **kwargs
):
3227 """SetState(self, long state)"""
3228 return _controls_
.ListItem_SetState(*args
, **kwargs
)
3230 def SetStateMask(*args
, **kwargs
):
3231 """SetStateMask(self, long stateMask)"""
3232 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
3234 def SetText(*args
, **kwargs
):
3235 """SetText(self, String text)"""
3236 return _controls_
.ListItem_SetText(*args
, **kwargs
)
3238 def SetImage(*args
, **kwargs
):
3239 """SetImage(self, int image)"""
3240 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
3242 def SetData(*args
, **kwargs
):
3243 """SetData(self, long data)"""
3244 return _controls_
.ListItem_SetData(*args
, **kwargs
)
3246 def SetWidth(*args
, **kwargs
):
3247 """SetWidth(self, int width)"""
3248 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
3250 def SetAlign(*args
, **kwargs
):
3251 """SetAlign(self, int align)"""
3252 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
3254 def SetTextColour(*args
, **kwargs
):
3255 """SetTextColour(self, Colour colText)"""
3256 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
3258 def SetBackgroundColour(*args
, **kwargs
):
3259 """SetBackgroundColour(self, Colour colBack)"""
3260 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
3262 def SetFont(*args
, **kwargs
):
3263 """SetFont(self, Font font)"""
3264 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
3266 def GetMask(*args
, **kwargs
):
3267 """GetMask(self) -> long"""
3268 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
3270 def GetId(*args
, **kwargs
):
3271 """GetId(self) -> long"""
3272 return _controls_
.ListItem_GetId(*args
, **kwargs
)
3274 def GetColumn(*args
, **kwargs
):
3275 """GetColumn(self) -> int"""
3276 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
3278 def GetState(*args
, **kwargs
):
3279 """GetState(self) -> long"""
3280 return _controls_
.ListItem_GetState(*args
, **kwargs
)
3282 def GetText(*args
, **kwargs
):
3283 """GetText(self) -> String"""
3284 return _controls_
.ListItem_GetText(*args
, **kwargs
)
3286 def GetImage(*args
, **kwargs
):
3287 """GetImage(self) -> int"""
3288 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
3290 def GetData(*args
, **kwargs
):
3291 """GetData(self) -> long"""
3292 return _controls_
.ListItem_GetData(*args
, **kwargs
)
3294 def GetWidth(*args
, **kwargs
):
3295 """GetWidth(self) -> int"""
3296 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
3298 def GetAlign(*args
, **kwargs
):
3299 """GetAlign(self) -> int"""
3300 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
3302 def GetAttributes(*args
, **kwargs
):
3303 """GetAttributes(self) -> ListItemAttr"""
3304 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
3306 def HasAttributes(*args
, **kwargs
):
3307 """HasAttributes(self) -> bool"""
3308 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
3310 def GetTextColour(*args
, **kwargs
):
3311 """GetTextColour(self) -> Colour"""
3312 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
3314 def GetBackgroundColour(*args
, **kwargs
):
3315 """GetBackgroundColour(self) -> Colour"""
3316 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
3318 def GetFont(*args
, **kwargs
):
3319 """GetFont(self) -> Font"""
3320 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
3322 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
3323 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
3324 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
3325 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
3326 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
3327 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
3328 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
3329 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
3330 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
3331 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
3333 class ListItemPtr(ListItem
):
3334 def __init__(self
, this
):
3336 if not hasattr(self
,"thisown"): self
.thisown
= 0
3337 self
.__class
__ = ListItem
3338 _controls_
.ListItem_swigregister(ListItemPtr
)
3340 #---------------------------------------------------------------------------
3342 class ListEvent(_core
.NotifyEvent
):
3344 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3345 def __init__(self
, *args
, **kwargs
):
3346 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
3347 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
3348 self
.this
= newobj
.this
3351 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
3352 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
3353 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
3354 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
3355 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
3356 m_item
= property(_controls_
.ListEvent_m_item_get
)
3357 def GetKeyCode(*args
, **kwargs
):
3358 """GetKeyCode(self) -> int"""
3359 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
3361 GetCode
= GetKeyCode
3362 def GetIndex(*args
, **kwargs
):
3363 """GetIndex(self) -> long"""
3364 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
3366 def GetColumn(*args
, **kwargs
):
3367 """GetColumn(self) -> int"""
3368 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
3370 def GetPoint(*args
, **kwargs
):
3371 """GetPoint(self) -> Point"""
3372 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
3374 GetPosition
= GetPoint
3375 def GetLabel(*args
, **kwargs
):
3376 """GetLabel(self) -> String"""
3377 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
3379 def GetText(*args
, **kwargs
):
3380 """GetText(self) -> String"""
3381 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
3383 def GetImage(*args
, **kwargs
):
3384 """GetImage(self) -> int"""
3385 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
3387 def GetData(*args
, **kwargs
):
3388 """GetData(self) -> long"""
3389 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
3391 def GetMask(*args
, **kwargs
):
3392 """GetMask(self) -> long"""
3393 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
3395 def GetItem(*args
, **kwargs
):
3396 """GetItem(self) -> ListItem"""
3397 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
3399 def GetCacheFrom(*args
, **kwargs
):
3400 """GetCacheFrom(self) -> long"""
3401 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
3403 def GetCacheTo(*args
, **kwargs
):
3404 """GetCacheTo(self) -> long"""
3405 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
3407 def IsEditCancelled(*args
, **kwargs
):
3408 """IsEditCancelled(self) -> bool"""
3409 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
3411 def SetEditCanceled(*args
, **kwargs
):
3412 """SetEditCanceled(self, bool editCancelled)"""
3413 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
3416 class ListEventPtr(ListEvent
):
3417 def __init__(self
, this
):
3419 if not hasattr(self
,"thisown"): self
.thisown
= 0
3420 self
.__class
__ = ListEvent
3421 _controls_
.ListEvent_swigregister(ListEventPtr
)
3423 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
3424 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
3425 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
3426 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
3427 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
3428 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
3429 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
3430 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
3431 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
3432 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
3433 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
3434 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
3435 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
3436 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
3437 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
3438 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
3439 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
3440 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
3441 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
3442 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
3443 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
3444 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
3445 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
3446 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
3447 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
3448 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
3449 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
3450 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
3451 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
3452 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
3453 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
3454 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
3455 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
3456 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
3457 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
3458 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
3459 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
3460 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
3461 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
3462 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
3463 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
3464 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
3465 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
3466 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
3468 #---------------------------------------------------------------------------
3470 class ListCtrl(_core
.Control
):
3472 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3473 def __init__(self
, *args
, **kwargs
):
3475 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3476 Size size=DefaultSize, long style=LC_ICON,
3477 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
3479 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
3480 self
.this
= newobj
.this
3483 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
3485 def Create(*args
, **kwargs
):
3487 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3488 Size size=DefaultSize, long style=LC_ICON,
3489 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3491 Do the 2nd phase and create the GUI control.
3493 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
3495 def _setCallbackInfo(*args
, **kwargs
):
3496 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3497 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
3499 def SetForegroundColour(*args
, **kwargs
):
3500 """SetForegroundColour(self, Colour col) -> bool"""
3501 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
3503 def SetBackgroundColour(*args
, **kwargs
):
3504 """SetBackgroundColour(self, Colour col) -> bool"""
3505 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
3507 def GetColumn(*args
, **kwargs
):
3508 """GetColumn(self, int col) -> ListItem"""
3509 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
3510 if val
is not None: val
.thisown
= 1
3513 def SetColumn(*args
, **kwargs
):
3514 """SetColumn(self, int col, ListItem item) -> bool"""
3515 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
3517 def GetColumnWidth(*args
, **kwargs
):
3518 """GetColumnWidth(self, int col) -> int"""
3519 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
3521 def SetColumnWidth(*args
, **kwargs
):
3522 """SetColumnWidth(self, int col, int width) -> bool"""
3523 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
3525 def GetCountPerPage(*args
, **kwargs
):
3526 """GetCountPerPage(self) -> int"""
3527 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
3529 def GetViewRect(*args
, **kwargs
):
3530 """GetViewRect(self) -> Rect"""
3531 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
3533 def GetItem(*args
, **kwargs
):
3534 """GetItem(self, long itemId, int col=0) -> ListItem"""
3535 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
3536 if val
is not None: val
.thisown
= 1
3539 def SetItem(*args
, **kwargs
):
3540 """SetItem(self, ListItem info) -> bool"""
3541 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
3543 def SetStringItem(*args
, **kwargs
):
3544 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
3545 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
3547 def GetItemState(*args
, **kwargs
):
3548 """GetItemState(self, long item, long stateMask) -> int"""
3549 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
3551 def SetItemState(*args
, **kwargs
):
3552 """SetItemState(self, long item, long state, long stateMask) -> bool"""
3553 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
3555 def SetItemImage(*args
, **kwargs
):
3556 """SetItemImage(self, long item, int image, int selImage) -> bool"""
3557 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
3559 def GetItemText(*args
, **kwargs
):
3560 """GetItemText(self, long item) -> String"""
3561 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
3563 def SetItemText(*args
, **kwargs
):
3564 """SetItemText(self, long item, String str)"""
3565 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
3567 def GetItemData(*args
, **kwargs
):
3568 """GetItemData(self, long item) -> long"""
3569 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
3571 def SetItemData(*args
, **kwargs
):
3572 """SetItemData(self, long item, long data) -> bool"""
3573 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
3575 def GetItemPosition(*args
, **kwargs
):
3576 """GetItemPosition(self, long item) -> Point"""
3577 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
3579 def GetItemRect(*args
, **kwargs
):
3580 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
3581 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
3583 def SetItemPosition(*args
, **kwargs
):
3584 """SetItemPosition(self, long item, Point pos) -> bool"""
3585 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
3587 def GetItemCount(*args
, **kwargs
):
3588 """GetItemCount(self) -> int"""
3589 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
3591 def GetColumnCount(*args
, **kwargs
):
3592 """GetColumnCount(self) -> int"""
3593 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
3595 def GetItemSpacing(*args
, **kwargs
):
3596 """GetItemSpacing(self) -> Size"""
3597 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
3599 def SetItemSpacing(*args
, **kwargs
):
3600 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
3601 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
3603 def GetSelectedItemCount(*args
, **kwargs
):
3604 """GetSelectedItemCount(self) -> int"""
3605 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
3607 def GetTextColour(*args
, **kwargs
):
3608 """GetTextColour(self) -> Colour"""
3609 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
3611 def SetTextColour(*args
, **kwargs
):
3612 """SetTextColour(self, Colour col)"""
3613 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
3615 def GetTopItem(*args
, **kwargs
):
3616 """GetTopItem(self) -> long"""
3617 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
3619 def SetSingleStyle(*args
, **kwargs
):
3620 """SetSingleStyle(self, long style, bool add=True)"""
3621 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
3623 def SetWindowStyleFlag(*args
, **kwargs
):
3625 SetWindowStyleFlag(self, long style)
3627 Sets the style of the window. Please note that some styles cannot
3628 be changed after the window creation and that Refresh() might
3629 need to be called after changing the others for the change to
3630 take place immediately.
3632 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
3634 def GetNextItem(*args
, **kwargs
):
3635 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
3636 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
3638 def GetImageList(*args
, **kwargs
):
3639 """GetImageList(self, int which) -> ImageList"""
3640 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
3642 def SetImageList(*args
, **kwargs
):
3643 """SetImageList(self, ImageList imageList, int which)"""
3644 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
3646 def AssignImageList(*args
, **kwargs
):
3647 """AssignImageList(self, ImageList imageList, int which)"""
3648 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
3650 def InReportView(*args
, **kwargs
):
3651 """InReportView(self) -> bool"""
3652 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
3654 def IsVirtual(*args
, **kwargs
):
3655 """IsVirtual(self) -> bool"""
3656 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
3658 def RefreshItem(*args
, **kwargs
):
3659 """RefreshItem(self, long item)"""
3660 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
3662 def RefreshItems(*args
, **kwargs
):
3663 """RefreshItems(self, long itemFrom, long itemTo)"""
3664 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
3666 def Arrange(*args
, **kwargs
):
3667 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
3668 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
3670 def DeleteItem(*args
, **kwargs
):
3671 """DeleteItem(self, long item) -> bool"""
3672 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
3674 def DeleteAllItems(*args
, **kwargs
):
3675 """DeleteAllItems(self) -> bool"""
3676 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
3678 def DeleteColumn(*args
, **kwargs
):
3679 """DeleteColumn(self, int col) -> bool"""
3680 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
3682 def DeleteAllColumns(*args
, **kwargs
):
3683 """DeleteAllColumns(self) -> bool"""
3684 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
3686 def ClearAll(*args
, **kwargs
):
3687 """ClearAll(self)"""
3688 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
3690 def EditLabel(*args
, **kwargs
):
3691 """EditLabel(self, long item)"""
3692 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
3694 def EnsureVisible(*args
, **kwargs
):
3695 """EnsureVisible(self, long item) -> bool"""
3696 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
3698 def FindItem(*args
, **kwargs
):
3699 """FindItem(self, long start, String str, bool partial=False) -> long"""
3700 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
3702 def FindItemData(*args
, **kwargs
):
3703 """FindItemData(self, long start, long data) -> long"""
3704 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
3706 def FindItemAtPos(*args
, **kwargs
):
3707 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
3708 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
3710 def HitTest(*args
, **kwargs
):
3712 HitTest(Point point) -> (item, where)
3714 Determines which item (if any) is at the specified point,
3715 giving details in the second return value (see wxLIST_HITTEST_... flags.)
3717 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
3719 def InsertItem(*args
, **kwargs
):
3720 """InsertItem(self, ListItem info) -> long"""
3721 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
3723 def InsertStringItem(*args
, **kwargs
):
3724 """InsertStringItem(self, long index, String label) -> long"""
3725 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
3727 def InsertImageItem(*args
, **kwargs
):
3728 """InsertImageItem(self, long index, int imageIndex) -> long"""
3729 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
3731 def InsertImageStringItem(*args
, **kwargs
):
3732 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
3733 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
3735 def InsertColumnInfo(*args
, **kwargs
):
3736 """InsertColumnInfo(self, long col, ListItem info) -> long"""
3737 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
3739 def InsertColumn(*args
, **kwargs
):
3741 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
3742 int width=-1) -> long
3744 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
3746 def SetItemCount(*args
, **kwargs
):
3747 """SetItemCount(self, long count)"""
3748 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
3750 def ScrollList(*args
, **kwargs
):
3751 """ScrollList(self, int dx, int dy) -> bool"""
3752 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
3754 def SetItemTextColour(*args
, **kwargs
):
3755 """SetItemTextColour(self, long item, Colour col)"""
3756 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
3758 def GetItemTextColour(*args
, **kwargs
):
3759 """GetItemTextColour(self, long item) -> Colour"""
3760 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
3762 def SetItemBackgroundColour(*args
, **kwargs
):
3763 """SetItemBackgroundColour(self, long item, Colour col)"""
3764 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
3766 def GetItemBackgroundColour(*args
, **kwargs
):
3767 """GetItemBackgroundColour(self, long item) -> Colour"""
3768 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
3772 def Select(self
, idx
, on
=1):
3773 '''[de]select an item'''
3774 if on
: state
= wx
.LIST_STATE_SELECTED
3776 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
3778 def Focus(self
, idx
):
3779 '''Focus and show the given item'''
3780 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
3781 self
.EnsureVisible(idx
)
3783 def GetFocusedItem(self
):
3784 '''get the currently focused item or -1 if none'''
3785 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
3787 def GetFirstSelected(self
, *args
):
3788 '''return first selected item, or -1 when none'''
3789 return self
.GetNextSelected(-1)
3791 def GetNextSelected(self
, item
):
3792 '''return subsequent selected items, or -1 when no more'''
3793 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
3795 def IsSelected(self
, idx
):
3796 '''return True if the item is selected'''
3797 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
3799 def SetColumnImage(self
, col
, image
):
3800 item
= self
.GetColumn(col
)
3801 # preserve all other attributes too
3802 item
.SetMask( wx
.LIST_MASK_STATE |
3804 wx
.LIST_MASK_IMAGE |
3807 wx
.LIST_MASK_WIDTH |
3808 wx
.LIST_MASK_FORMAT
)
3809 item
.SetImage(image
)
3810 self
.SetColumn(col
, item
)
3812 def ClearColumnImage(self
, col
):
3813 self
.SetColumnImage(col
, -1)
3815 def Append(self
, entry
):
3816 '''Append an item to the list control. The entry parameter should be a
3817 sequence with an item for each column'''
3823 pos
= self
.GetItemCount()
3824 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
3825 for i
in range(1, len(entry
)):
3826 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
3829 def SortItems(*args
, **kwargs
):
3830 """SortItems(self, PyObject func) -> bool"""
3831 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
3833 def GetMainWindow(*args
, **kwargs
):
3834 """GetMainWindow(self) -> Window"""
3835 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
3837 def GetClassDefaultAttributes(*args
, **kwargs
):
3839 ListCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3841 Get the default attributes for this class. This is useful if
3842 you want to use the same font or colour in your own control as
3843 in a standard control -- which is a much better idea than hard
3844 coding specific colours or fonts which might look completely out
3845 of place on the users system, especially if it uses themes.
3847 The variant parameter is only relevant under Mac currently and is
3848 ignore under other platforms. Under Mac, it will change the size of the
3849 returned font. See SetWindowVariant for more about this.
3851 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3853 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3855 class ListCtrlPtr(ListCtrl
):
3856 def __init__(self
, this
):
3858 if not hasattr(self
,"thisown"): self
.thisown
= 0
3859 self
.__class
__ = ListCtrl
3860 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
3862 def PreListCtrl(*args
, **kwargs
):
3863 """PreListCtrl() -> ListCtrl"""
3864 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
3868 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
3870 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3872 Get the default attributes for this class. This is useful if
3873 you want to use the same font or colour in your own control as
3874 in a standard control -- which is a much better idea than hard
3875 coding specific colours or fonts which might look completely out
3876 of place on the users system, especially if it uses themes.
3878 The variant parameter is only relevant under Mac currently and is
3879 ignore under other platforms. Under Mac, it will change the size of the
3880 returned font. See SetWindowVariant for more about this.
3882 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
3884 #---------------------------------------------------------------------------
3886 class ListView(ListCtrl
):
3888 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3889 def __init__(self
, *args
, **kwargs
):
3891 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3892 Size size=DefaultSize, long style=LC_REPORT,
3893 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
3895 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
3896 self
.this
= newobj
.this
3899 self
._setOORInfo
(self
)
3901 def Create(*args
, **kwargs
):
3903 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3904 Size size=DefaultSize, long style=LC_REPORT,
3905 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
3907 Do the 2nd phase and create the GUI control.
3909 return _controls_
.ListView_Create(*args
, **kwargs
)
3911 def Select(*args
, **kwargs
):
3912 """Select(self, long n, bool on=True)"""
3913 return _controls_
.ListView_Select(*args
, **kwargs
)
3915 def Focus(*args
, **kwargs
):
3916 """Focus(self, long index)"""
3917 return _controls_
.ListView_Focus(*args
, **kwargs
)
3919 def GetFocusedItem(*args
, **kwargs
):
3920 """GetFocusedItem(self) -> long"""
3921 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
3923 def GetNextSelected(*args
, **kwargs
):
3924 """GetNextSelected(self, long item) -> long"""
3925 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
3927 def GetFirstSelected(*args
, **kwargs
):
3928 """GetFirstSelected(self) -> long"""
3929 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
3931 def IsSelected(*args
, **kwargs
):
3932 """IsSelected(self, long index) -> bool"""
3933 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
3935 def SetColumnImage(*args
, **kwargs
):
3936 """SetColumnImage(self, int col, int image)"""
3937 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
3939 def ClearColumnImage(*args
, **kwargs
):
3940 """ClearColumnImage(self, int col)"""
3941 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
3944 class ListViewPtr(ListView
):
3945 def __init__(self
, this
):
3947 if not hasattr(self
,"thisown"): self
.thisown
= 0
3948 self
.__class
__ = ListView
3949 _controls_
.ListView_swigregister(ListViewPtr
)
3951 def PreListView(*args
, **kwargs
):
3952 """PreListView() -> ListView"""
3953 val
= _controls_
.new_PreListView(*args
, **kwargs
)
3957 #---------------------------------------------------------------------------
3959 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
3960 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
3961 TR_NO_LINES
= _controls_
.TR_NO_LINES
3962 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
3963 TR_SINGLE
= _controls_
.TR_SINGLE
3964 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
3965 TR_EXTENDED
= _controls_
.TR_EXTENDED
3966 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
3967 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
3968 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
3969 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
3970 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
3971 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
3972 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
3973 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
3974 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
3975 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
3976 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
3977 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
3978 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
3979 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
3980 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
3981 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
3982 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
3983 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
3984 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
3985 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
3986 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
3987 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
3988 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
3989 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
3990 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
3991 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
3992 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
3993 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
3994 #---------------------------------------------------------------------------
3996 class TreeItemId(object):
3998 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3999 def __init__(self
, *args
, **kwargs
):
4000 """__init__(self) -> TreeItemId"""
4001 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
4002 self
.this
= newobj
.this
4005 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
4008 if self
.thisown
: destroy(self
)
4011 def IsOk(*args
, **kwargs
):
4012 """IsOk(self) -> bool"""
4013 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4015 def __eq__(*args
, **kwargs
):
4016 """__eq__(self, TreeItemId other) -> bool"""
4017 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4019 def __ne__(*args
, **kwargs
):
4020 """__ne__(self, TreeItemId other) -> bool"""
4021 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4023 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4025 def __nonzero__(self
): return self
.IsOk()
4027 class TreeItemIdPtr(TreeItemId
):
4028 def __init__(self
, this
):
4030 if not hasattr(self
,"thisown"): self
.thisown
= 0
4031 self
.__class
__ = TreeItemId
4032 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
4033 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4035 class TreeItemData(object):
4037 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4038 def __init__(self
, *args
, **kwargs
):
4039 """__init__(self, PyObject obj=None) -> TreeItemData"""
4040 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
4041 self
.this
= newobj
.this
4044 def GetData(*args
, **kwargs
):
4045 """GetData(self) -> PyObject"""
4046 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4048 def SetData(*args
, **kwargs
):
4049 """SetData(self, PyObject obj)"""
4050 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4052 def GetId(*args
, **kwargs
):
4053 """GetId(self) -> TreeItemId"""
4054 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4056 def SetId(*args
, **kwargs
):
4057 """SetId(self, TreeItemId id)"""
4058 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4060 def Destroy(*args
, **kwargs
):
4062 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4065 class TreeItemDataPtr(TreeItemData
):
4066 def __init__(self
, this
):
4068 if not hasattr(self
,"thisown"): self
.thisown
= 0
4069 self
.__class
__ = TreeItemData
4070 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
4072 #---------------------------------------------------------------------------
4074 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4075 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4076 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4077 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4078 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4079 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4080 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4081 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4082 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4083 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4084 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4085 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4086 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4087 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4088 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4089 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4090 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4091 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4092 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4093 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4094 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4095 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4096 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4097 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4098 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4099 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4100 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4101 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4102 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4103 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4104 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4105 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4106 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4107 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4108 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4109 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4110 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4111 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4112 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4113 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4115 class TreeEvent(_core
.NotifyEvent
):
4117 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4118 def __init__(self
, *args
, **kwargs
):
4119 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4120 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
4121 self
.this
= newobj
.this
4124 def GetItem(*args
, **kwargs
):
4125 """GetItem(self) -> TreeItemId"""
4126 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4128 def SetItem(*args
, **kwargs
):
4129 """SetItem(self, TreeItemId item)"""
4130 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4132 def GetOldItem(*args
, **kwargs
):
4133 """GetOldItem(self) -> TreeItemId"""
4134 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4136 def SetOldItem(*args
, **kwargs
):
4137 """SetOldItem(self, TreeItemId item)"""
4138 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4140 def GetPoint(*args
, **kwargs
):
4141 """GetPoint(self) -> Point"""
4142 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4144 def SetPoint(*args
, **kwargs
):
4145 """SetPoint(self, Point pt)"""
4146 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4148 def GetKeyEvent(*args
, **kwargs
):
4149 """GetKeyEvent(self) -> KeyEvent"""
4150 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4152 def GetKeyCode(*args
, **kwargs
):
4153 """GetKeyCode(self) -> int"""
4154 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4156 def SetKeyEvent(*args
, **kwargs
):
4157 """SetKeyEvent(self, KeyEvent evt)"""
4158 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4160 def GetLabel(*args
, **kwargs
):
4161 """GetLabel(self) -> String"""
4162 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4164 def SetLabel(*args
, **kwargs
):
4165 """SetLabel(self, String label)"""
4166 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4168 def IsEditCancelled(*args
, **kwargs
):
4169 """IsEditCancelled(self) -> bool"""
4170 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4172 def SetEditCanceled(*args
, **kwargs
):
4173 """SetEditCanceled(self, bool editCancelled)"""
4174 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4176 def SetToolTip(*args
, **kwargs
):
4177 """SetToolTip(self, String toolTip)"""
4178 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4181 class TreeEventPtr(TreeEvent
):
4182 def __init__(self
, this
):
4184 if not hasattr(self
,"thisown"): self
.thisown
= 0
4185 self
.__class
__ = TreeEvent
4186 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
4188 #---------------------------------------------------------------------------
4190 class TreeCtrl(_core
.Control
):
4192 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4193 def __init__(self
, *args
, **kwargs
):
4195 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4196 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4197 Validator validator=DefaultValidator,
4198 String name=TreeCtrlNameStr) -> TreeCtrl
4200 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
4201 self
.this
= newobj
.this
4204 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4206 def Create(*args
, **kwargs
):
4208 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4209 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4210 Validator validator=DefaultValidator,
4211 String name=TreeCtrlNameStr) -> bool
4213 Do the 2nd phase and create the GUI control.
4215 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
4217 def _setCallbackInfo(*args
, **kwargs
):
4218 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4219 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
4221 def GetCount(*args
, **kwargs
):
4222 """GetCount(self) -> size_t"""
4223 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
4225 def GetIndent(*args
, **kwargs
):
4226 """GetIndent(self) -> unsigned int"""
4227 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
4229 def SetIndent(*args
, **kwargs
):
4230 """SetIndent(self, unsigned int indent)"""
4231 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
4233 def GetSpacing(*args
, **kwargs
):
4234 """GetSpacing(self) -> unsigned int"""
4235 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
4237 def SetSpacing(*args
, **kwargs
):
4238 """SetSpacing(self, unsigned int spacing)"""
4239 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
4241 def GetImageList(*args
, **kwargs
):
4242 """GetImageList(self) -> ImageList"""
4243 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
4245 def GetStateImageList(*args
, **kwargs
):
4246 """GetStateImageList(self) -> ImageList"""
4247 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
4249 def SetImageList(*args
, **kwargs
):
4250 """SetImageList(self, ImageList imageList)"""
4251 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
4253 def SetStateImageList(*args
, **kwargs
):
4254 """SetStateImageList(self, ImageList imageList)"""
4255 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
4257 def AssignImageList(*args
, **kwargs
):
4258 """AssignImageList(self, ImageList imageList)"""
4259 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
4261 def AssignStateImageList(*args
, **kwargs
):
4262 """AssignStateImageList(self, ImageList imageList)"""
4263 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
4265 def GetItemText(*args
, **kwargs
):
4266 """GetItemText(self, TreeItemId item) -> String"""
4267 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
4269 def GetItemImage(*args
, **kwargs
):
4270 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
4271 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
4273 def GetItemData(*args
, **kwargs
):
4274 """GetItemData(self, TreeItemId item) -> TreeItemData"""
4275 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
4277 def GetItemPyData(*args
, **kwargs
):
4278 """GetItemPyData(self, TreeItemId item) -> PyObject"""
4279 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
4281 GetPyData
= GetItemPyData
4282 def GetItemTextColour(*args
, **kwargs
):
4283 """GetItemTextColour(self, TreeItemId item) -> Colour"""
4284 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
4286 def GetItemBackgroundColour(*args
, **kwargs
):
4287 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
4288 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4290 def GetItemFont(*args
, **kwargs
):
4291 """GetItemFont(self, TreeItemId item) -> Font"""
4292 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
4294 def SetItemText(*args
, **kwargs
):
4295 """SetItemText(self, TreeItemId item, String text)"""
4296 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
4298 def SetItemImage(*args
, **kwargs
):
4299 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
4300 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
4302 def SetItemData(*args
, **kwargs
):
4303 """SetItemData(self, TreeItemId item, TreeItemData data)"""
4304 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
4306 def SetItemPyData(*args
, **kwargs
):
4307 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
4308 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
4310 SetPyData
= SetItemPyData
4311 def SetItemHasChildren(*args
, **kwargs
):
4312 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
4313 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
4315 def SetItemBold(*args
, **kwargs
):
4316 """SetItemBold(self, TreeItemId item, bool bold=True)"""
4317 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
4319 def SetItemTextColour(*args
, **kwargs
):
4320 """SetItemTextColour(self, TreeItemId item, Colour col)"""
4321 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
4323 def SetItemBackgroundColour(*args
, **kwargs
):
4324 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
4325 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4327 def SetItemFont(*args
, **kwargs
):
4328 """SetItemFont(self, TreeItemId item, Font font)"""
4329 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
4331 def IsVisible(*args
, **kwargs
):
4332 """IsVisible(self, TreeItemId item) -> bool"""
4333 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
4335 def ItemHasChildren(*args
, **kwargs
):
4336 """ItemHasChildren(self, TreeItemId item) -> bool"""
4337 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
4339 def IsExpanded(*args
, **kwargs
):
4340 """IsExpanded(self, TreeItemId item) -> bool"""
4341 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
4343 def IsSelected(*args
, **kwargs
):
4344 """IsSelected(self, TreeItemId item) -> bool"""
4345 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
4347 def IsBold(*args
, **kwargs
):
4348 """IsBold(self, TreeItemId item) -> bool"""
4349 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
4351 def GetChildrenCount(*args
, **kwargs
):
4352 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
4353 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
4355 def GetRootItem(*args
, **kwargs
):
4356 """GetRootItem(self) -> TreeItemId"""
4357 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
4359 def GetSelection(*args
, **kwargs
):
4360 """GetSelection(self) -> TreeItemId"""
4361 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
4363 def GetSelections(*args
, **kwargs
):
4364 """GetSelections(self) -> PyObject"""
4365 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
4367 def GetItemParent(*args
, **kwargs
):
4368 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
4369 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
4371 def GetFirstChild(*args
, **kwargs
):
4372 """GetFirstChild(self, TreeItemId item) -> PyObject"""
4373 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
4375 def GetNextChild(*args
, **kwargs
):
4376 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
4377 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
4379 def GetLastChild(*args
, **kwargs
):
4380 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
4381 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
4383 def GetNextSibling(*args
, **kwargs
):
4384 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
4385 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
4387 def GetPrevSibling(*args
, **kwargs
):
4388 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
4389 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
4391 def GetFirstVisibleItem(*args
, **kwargs
):
4392 """GetFirstVisibleItem(self) -> TreeItemId"""
4393 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
4395 def GetNextVisible(*args
, **kwargs
):
4396 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
4397 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
4399 def GetPrevVisible(*args
, **kwargs
):
4400 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
4401 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
4403 def AddRoot(*args
, **kwargs
):
4404 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
4405 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
4407 def PrependItem(*args
, **kwargs
):
4409 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4410 TreeItemData data=None) -> TreeItemId
4412 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
4414 def InsertItem(*args
, **kwargs
):
4416 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
4417 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4419 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
4421 def InsertItemBefore(*args
, **kwargs
):
4423 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
4424 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
4426 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
4428 def AppendItem(*args
, **kwargs
):
4430 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
4431 TreeItemData data=None) -> TreeItemId
4433 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
4435 def Delete(*args
, **kwargs
):
4436 """Delete(self, TreeItemId item)"""
4437 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
4439 def DeleteChildren(*args
, **kwargs
):
4440 """DeleteChildren(self, TreeItemId item)"""
4441 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
4443 def DeleteAllItems(*args
, **kwargs
):
4444 """DeleteAllItems(self)"""
4445 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
4447 def Expand(*args
, **kwargs
):
4448 """Expand(self, TreeItemId item)"""
4449 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
4451 def Collapse(*args
, **kwargs
):
4452 """Collapse(self, TreeItemId item)"""
4453 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
4455 def CollapseAndReset(*args
, **kwargs
):
4456 """CollapseAndReset(self, TreeItemId item)"""
4457 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
4459 def Toggle(*args
, **kwargs
):
4460 """Toggle(self, TreeItemId item)"""
4461 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
4463 def Unselect(*args
, **kwargs
):
4464 """Unselect(self)"""
4465 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
4467 def UnselectItem(*args
, **kwargs
):
4468 """UnselectItem(self, TreeItemId item)"""
4469 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
4471 def UnselectAll(*args
, **kwargs
):
4472 """UnselectAll(self)"""
4473 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
4475 def SelectItem(*args
, **kwargs
):
4476 """SelectItem(self, TreeItemId item, bool select=True)"""
4477 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
4479 def ToggleItemSelection(*args
, **kwargs
):
4480 """ToggleItemSelection(self, TreeItemId item)"""
4481 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
4483 def EnsureVisible(*args
, **kwargs
):
4484 """EnsureVisible(self, TreeItemId item)"""
4485 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
4487 def ScrollTo(*args
, **kwargs
):
4488 """ScrollTo(self, TreeItemId item)"""
4489 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
4491 def EditLabel(*args
, **kwargs
):
4492 """EditLabel(self, TreeItemId item)"""
4493 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
4495 def GetEditControl(*args
, **kwargs
):
4496 """GetEditControl(self) -> TextCtrl"""
4497 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
4499 def SortChildren(*args
, **kwargs
):
4500 """SortChildren(self, TreeItemId item)"""
4501 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
4503 def HitTest(*args
, **kwargs
):
4505 HitTest(Point point) -> (item, where)
4507 Determine which item (if any) belongs the given point. The
4508 coordinates specified are relative to the client area of tree ctrl
4509 and the where return value is set to a bitmask of wxTREE_HITTEST_xxx
4513 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
4515 def GetBoundingRect(*args
, **kwargs
):
4516 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
4517 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
4519 def GetClassDefaultAttributes(*args
, **kwargs
):
4521 TreeCtrl.GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4523 Get the default attributes for this class. This is useful if
4524 you want to use the same font or colour in your own control as
4525 in a standard control -- which is a much better idea than hard
4526 coding specific colours or fonts which might look completely out
4527 of place on the users system, especially if it uses themes.
4529 The variant parameter is only relevant under Mac currently and is
4530 ignore under other platforms. Under Mac, it will change the size of the
4531 returned font. See SetWindowVariant for more about this.
4533 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4535 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4537 class TreeCtrlPtr(TreeCtrl
):
4538 def __init__(self
, this
):
4540 if not hasattr(self
,"thisown"): self
.thisown
= 0
4541 self
.__class
__ = TreeCtrl
4542 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
4544 def PreTreeCtrl(*args
, **kwargs
):
4545 """PreTreeCtrl() -> TreeCtrl"""
4546 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
4550 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4552 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4554 Get the default attributes for this class. This is useful if
4555 you want to use the same font or colour in your own control as
4556 in a standard control -- which is a much better idea than hard
4557 coding specific colours or fonts which might look completely out
4558 of place on the users system, especially if it uses themes.
4560 The variant parameter is only relevant under Mac currently and is
4561 ignore under other platforms. Under Mac, it will change the size of the
4562 returned font. See SetWindowVariant for more about this.
4564 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4566 #---------------------------------------------------------------------------
4568 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
4569 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
4570 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
4571 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
4572 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
4573 class GenericDirCtrl(_core
.Control
):
4575 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4576 def __init__(self
, *args
, **kwargs
):
4578 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4579 Point pos=DefaultPosition, Size size=DefaultSize,
4580 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4581 String filter=EmptyString,
4582 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
4584 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
4585 self
.this
= newobj
.this
4588 self
._setOORInfo
(self
)
4590 def Create(*args
, **kwargs
):
4592 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
4593 Point pos=DefaultPosition, Size size=DefaultSize,
4594 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
4595 String filter=EmptyString,
4596 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
4598 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
4600 def ExpandPath(*args
, **kwargs
):
4601 """ExpandPath(self, String path) -> bool"""
4602 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
4604 def GetDefaultPath(*args
, **kwargs
):
4605 """GetDefaultPath(self) -> String"""
4606 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
4608 def SetDefaultPath(*args
, **kwargs
):
4609 """SetDefaultPath(self, String path)"""
4610 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
4612 def GetPath(*args
, **kwargs
):
4613 """GetPath(self) -> String"""
4614 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
4616 def GetFilePath(*args
, **kwargs
):
4617 """GetFilePath(self) -> String"""
4618 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
4620 def SetPath(*args
, **kwargs
):
4621 """SetPath(self, String path)"""
4622 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
4624 def ShowHidden(*args
, **kwargs
):
4625 """ShowHidden(self, bool show)"""
4626 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
4628 def GetShowHidden(*args
, **kwargs
):
4629 """GetShowHidden(self) -> bool"""
4630 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
4632 def GetFilter(*args
, **kwargs
):
4633 """GetFilter(self) -> String"""
4634 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
4636 def SetFilter(*args
, **kwargs
):
4637 """SetFilter(self, String filter)"""
4638 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
4640 def GetFilterIndex(*args
, **kwargs
):
4641 """GetFilterIndex(self) -> int"""
4642 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
4644 def SetFilterIndex(*args
, **kwargs
):
4645 """SetFilterIndex(self, int n)"""
4646 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
4648 def GetRootId(*args
, **kwargs
):
4649 """GetRootId(self) -> TreeItemId"""
4650 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
4652 def GetTreeCtrl(*args
, **kwargs
):
4653 """GetTreeCtrl(self) -> TreeCtrl"""
4654 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
4656 def GetFilterListCtrl(*args
, **kwargs
):
4657 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
4658 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
4660 def FindChild(*args
, **kwargs
):
4662 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
4664 Find the child that matches the first part of 'path'. E.g. if a child path is
4665 "/usr" and 'path' is "/usr/include" then the child for /usr is returned.
4666 If the path string has been used (we're at the leaf), done is set to True
4669 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
4671 def DoResize(*args
, **kwargs
):
4672 """DoResize(self)"""
4673 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
4675 def ReCreateTree(*args
, **kwargs
):
4676 """ReCreateTree(self)"""
4677 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
4680 class GenericDirCtrlPtr(GenericDirCtrl
):
4681 def __init__(self
, this
):
4683 if not hasattr(self
,"thisown"): self
.thisown
= 0
4684 self
.__class
__ = GenericDirCtrl
4685 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
4686 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
4688 def PreGenericDirCtrl(*args
, **kwargs
):
4689 """PreGenericDirCtrl() -> GenericDirCtrl"""
4690 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
4694 class DirFilterListCtrl(Choice
):
4696 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4697 def __init__(self
, *args
, **kwargs
):
4699 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4700 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
4702 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
4703 self
.this
= newobj
.this
4706 self
._setOORInfo
(self
)
4708 def Create(*args
, **kwargs
):
4710 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
4711 Size size=DefaultSize, long style=0) -> bool
4713 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
4715 def FillFilterList(*args
, **kwargs
):
4716 """FillFilterList(self, String filter, int defaultFilter)"""
4717 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
4720 class DirFilterListCtrlPtr(DirFilterListCtrl
):
4721 def __init__(self
, this
):
4723 if not hasattr(self
,"thisown"): self
.thisown
= 0
4724 self
.__class
__ = DirFilterListCtrl
4725 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
4727 def PreDirFilterListCtrl(*args
, **kwargs
):
4728 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
4729 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
4733 #---------------------------------------------------------------------------
4735 class PyControl(_core
.Control
):
4737 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4738 def __init__(self
, *args
, **kwargs
):
4740 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
4741 long style=0, Validator validator=DefaultValidator,
4742 String name=ControlNameStr) -> PyControl
4744 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
4745 self
.this
= newobj
.this
4748 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
4750 def _setCallbackInfo(*args
, **kwargs
):
4751 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4752 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
4754 def base_DoMoveWindow(*args
, **kwargs
):
4755 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
4756 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
4758 def base_DoSetSize(*args
, **kwargs
):
4759 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4760 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
4762 def base_DoSetClientSize(*args
, **kwargs
):
4763 """base_DoSetClientSize(self, int width, int height)"""
4764 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
4766 def base_DoSetVirtualSize(*args
, **kwargs
):
4767 """base_DoSetVirtualSize(self, int x, int y)"""
4768 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
4770 def base_DoGetSize(*args
, **kwargs
):
4771 """base_DoGetSize() -> (width, height)"""
4772 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
4774 def base_DoGetClientSize(*args
, **kwargs
):
4775 """base_DoGetClientSize() -> (width, height)"""
4776 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
4778 def base_DoGetPosition(*args
, **kwargs
):
4779 """base_DoGetPosition() -> (x,y)"""
4780 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
4782 def base_DoGetVirtualSize(*args
, **kwargs
):
4783 """base_DoGetVirtualSize(self) -> Size"""
4784 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
4786 def base_DoGetBestSize(*args
, **kwargs
):
4787 """base_DoGetBestSize(self) -> Size"""
4788 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
4790 def base_InitDialog(*args
, **kwargs
):
4791 """base_InitDialog(self)"""
4792 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
4794 def base_TransferDataToWindow(*args
, **kwargs
):
4795 """base_TransferDataToWindow(self) -> bool"""
4796 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
4798 def base_TransferDataFromWindow(*args
, **kwargs
):
4799 """base_TransferDataFromWindow(self) -> bool"""
4800 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
4802 def base_Validate(*args
, **kwargs
):
4803 """base_Validate(self) -> bool"""
4804 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
4806 def base_AcceptsFocus(*args
, **kwargs
):
4807 """base_AcceptsFocus(self) -> bool"""
4808 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
4810 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
4811 """base_AcceptsFocusFromKeyboard(self) -> bool"""
4812 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4814 def base_GetMaxSize(*args
, **kwargs
):
4815 """base_GetMaxSize(self) -> Size"""
4816 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
4818 def base_AddChild(*args
, **kwargs
):
4819 """base_AddChild(self, Window child)"""
4820 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
4822 def base_RemoveChild(*args
, **kwargs
):
4823 """base_RemoveChild(self, Window child)"""
4824 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
4826 def base_ShouldInheritColours(*args
, **kwargs
):
4827 """base_ShouldInheritColours(self) -> bool"""
4828 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
4830 def base_ApplyParentThemeBackground(*args
, **kwargs
):
4831 """base_ApplyParentThemeBackground(self, Colour c)"""
4832 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
4835 class PyControlPtr(PyControl
):
4836 def __init__(self
, this
):
4838 if not hasattr(self
,"thisown"): self
.thisown
= 0
4839 self
.__class
__ = PyControl
4840 _controls_
.PyControl_swigregister(PyControlPtr
)
4842 def PrePyControl(*args
, **kwargs
):
4843 """PrePyControl() -> PyControl"""
4844 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
4848 #---------------------------------------------------------------------------
4850 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
4851 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
4852 wxEVT_HELP
= _controls_
.wxEVT_HELP
4853 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
4854 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
4855 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
4856 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
4857 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
4859 class HelpEvent(_core
.CommandEvent
):
4861 A help event is sent when the user has requested
4862 context-sensitive help. This can either be caused by the
4863 application requesting context-sensitive help mode via
4864 wx.ContextHelp, or (on MS Windows) by the system generating a
4865 WM_HELP message when the user pressed F1 or clicked on the query
4866 button in a dialog caption.
4868 A help event is sent to the window that the user clicked on, and
4869 is propagated up the window hierarchy until the event is
4870 processed or there are no more event handlers. The application
4871 should call event.GetId to check the identity of the clicked-on
4872 window, and then either show some suitable help or call
4873 event.Skip if the identifier is unrecognised. Calling Skip is
4874 important because it allows wxWindows to generate further events
4875 for ancestors of the clicked-on window. Otherwise it would be
4876 impossible to show help for container windows, since processing
4877 would stop after the first window found.
4880 EVT_HELP Sent when the user has requested context-
4882 EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs
4886 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4887 def __init__(self
, *args
, **kwargs
):
4888 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
4889 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
4890 self
.this
= newobj
.this
4893 def GetPosition(*args
, **kwargs
):
4895 GetPosition(self) -> Point
4897 Returns the left-click position of the mouse, in screen
4898 coordinates. This allows the application to position the help
4901 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
4903 def SetPosition(*args
, **kwargs
):
4905 SetPosition(self, Point pos)
4907 Sets the left-click position of the mouse, in screen coordinates.
4909 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
4911 def GetLink(*args
, **kwargs
):
4913 GetLink(self) -> String
4915 Get an optional link to further help
4917 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
4919 def SetLink(*args
, **kwargs
):
4921 SetLink(self, String link)
4923 Set an optional link to further help
4925 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
4927 def GetTarget(*args
, **kwargs
):
4929 GetTarget(self) -> String
4931 Get an optional target to display help in. E.g. a window specification
4933 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
4935 def SetTarget(*args
, **kwargs
):
4937 SetTarget(self, String target)
4939 Set an optional target to display help in. E.g. a window specification
4941 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
4944 class HelpEventPtr(HelpEvent
):
4945 def __init__(self
, this
):
4947 if not hasattr(self
,"thisown"): self
.thisown
= 0
4948 self
.__class
__ = HelpEvent
4949 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
4951 class ContextHelp(_core
.Object
):
4953 This class changes the cursor to a query and puts the application
4954 into a 'context-sensitive help mode'. When the user left-clicks
4955 on a window within the specified window, a EVT_HELP event is sent
4956 to that control, and the application may respond to it by popping
4959 There are a couple of ways to invoke this behaviour implicitly:
4961 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a
4962 dialog (Windows only). This will put a question mark in the
4963 titlebar, and Windows will put the application into
4964 context-sensitive help mode automatically, with further
4967 * Create a wx.ContextHelpButton, whose predefined behaviour
4968 is to create a context help object. Normally you will write
4969 your application so that this button is only added to a
4970 dialog for non-Windows platforms (use
4971 wx.DIALOG_EX_CONTEXTHELP on Windows).
4975 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4976 def __init__(self
, *args
, **kwargs
):
4978 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
4980 Constructs a context help object, calling BeginContextHelp if
4981 doNow is true (the default).
4983 If window is None, the top window is used.
4985 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
4986 self
.this
= newobj
.this
4989 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
4992 if self
.thisown
: destroy(self
)
4995 def BeginContextHelp(*args
, **kwargs
):
4997 BeginContextHelp(self, Window window=None) -> bool
4999 Puts the application into context-sensitive help mode. window is
5000 the window which will be used to catch events; if NULL, the top
5001 window will be used.
5003 Returns true if the application was successfully put into
5004 context-sensitive help mode. This function only returns when the
5005 event loop has finished.
5007 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5009 def EndContextHelp(*args
, **kwargs
):
5011 EndContextHelp(self) -> bool
5013 Ends context-sensitive help mode. Not normally called by the
5016 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5019 class ContextHelpPtr(ContextHelp
):
5020 def __init__(self
, this
):
5022 if not hasattr(self
,"thisown"): self
.thisown
= 0
5023 self
.__class
__ = ContextHelp
5024 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
5026 class ContextHelpButton(BitmapButton
):
5028 Instances of this class may be used to add a question mark button
5029 that when pressed, puts the application into context-help
5030 mode. It does this by creating a wx.ContextHelp object which
5031 itself generates a EVT_HELP event when the user clicks on a
5034 On Windows, you may add a question-mark icon to a dialog by use
5035 of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other
5036 platforms you will have to add a button explicitly, usually next
5037 to OK, Cancel or similar buttons.
5041 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5042 def __init__(self
, *args
, **kwargs
):
5044 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5045 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5047 Constructor, creating and showing a context help button.
5049 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
5050 self
.this
= newobj
.this
5053 self
._setOORInfo
(self
)
5056 class ContextHelpButtonPtr(ContextHelpButton
):
5057 def __init__(self
, this
):
5059 if not hasattr(self
,"thisown"): self
.thisown
= 0
5060 self
.__class
__ = ContextHelpButton
5061 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5063 class HelpProvider(object):
5065 wx.HelpProvider is an abstract class used by a program
5066 implementing context-sensitive help to show the help text for the
5069 The current help provider must be explicitly set by the
5070 application using wx.HelpProvider.Set().
5072 def __init__(self
): raise RuntimeError, "No constructor defined"
5074 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5075 def Set(*args
, **kwargs
):
5077 HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider
5079 Sset the current, application-wide help provider. Returns the
5080 previous one. Unlike some other classes, the help provider is
5081 not created on demand. This must be explicitly done by the
5084 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5086 Set
= staticmethod(Set
)
5087 def Get(*args
, **kwargs
):
5089 HelpProvider.Get() -> HelpProvider
5091 Return the current application-wide help provider.
5093 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5095 Get
= staticmethod(Get
)
5096 def GetHelp(*args
, **kwargs
):
5098 GetHelp(self, Window window) -> String
5100 Gets the help string for this window. Its interpretation is
5101 dependent on the help provider except that empty string always
5102 means that no help is associated with the window.
5104 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5106 def ShowHelp(*args
, **kwargs
):
5108 ShowHelp(self, Window window) -> bool
5110 Shows help for the given window. Uses GetHelp internally if
5113 Returns true if it was done, or false if no help was available
5116 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5118 def AddHelp(*args
, **kwargs
):
5120 AddHelp(self, Window window, String text)
5122 Associates the text with the given window.
5124 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5126 def AddHelpById(*args
, **kwargs
):
5128 AddHelpById(self, int id, String text)
5130 This version associates the given text with all windows with this
5131 id. May be used to set the same help string for all Cancel
5132 buttons in the application, for example.
5134 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5136 def RemoveHelp(*args
, **kwargs
):
5138 RemoveHelp(self, Window window)
5140 Removes the association between the window pointer and the help
5141 text. This is called by the wx.Window destructor. Without this,
5142 the table of help strings will fill up and when window pointers
5143 are reused, the wrong help string will be found.
5145 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5147 def Destroy(*args
, **kwargs
):
5149 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5152 class HelpProviderPtr(HelpProvider
):
5153 def __init__(self
, this
):
5155 if not hasattr(self
,"thisown"): self
.thisown
= 0
5156 self
.__class
__ = HelpProvider
5157 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
5159 def HelpProvider_Set(*args
, **kwargs
):
5161 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5163 Sset the current, application-wide help provider. Returns the
5164 previous one. Unlike some other classes, the help provider is
5165 not created on demand. This must be explicitly done by the
5168 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5170 def HelpProvider_Get(*args
, **kwargs
):
5172 HelpProvider_Get() -> HelpProvider
5174 Return the current application-wide help provider.
5176 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5178 class SimpleHelpProvider(HelpProvider
):
5180 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5181 which supports only plain text help strings, and shows the string
5182 associated with the control (if any) in a tooltip.
5185 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5186 def __init__(self
, *args
, **kwargs
):
5188 __init__(self) -> SimpleHelpProvider
5190 wx.SimpleHelpProvider is an implementation of wx.HelpProvider
5191 which supports only plain text help strings, and shows the string
5192 associated with the control (if any) in a tooltip.
5194 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
5195 self
.this
= newobj
.this
5199 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5200 def __init__(self
, this
):
5202 if not hasattr(self
,"thisown"): self
.thisown
= 0
5203 self
.__class
__ = SimpleHelpProvider
5204 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
5206 #---------------------------------------------------------------------------
5208 class DragImage(_core
.Object
):
5210 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5211 def __init__(self
, *args
, **kwargs
):
5212 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
5213 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
5214 self
.this
= newobj
.this
5217 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
5220 if self
.thisown
: destroy(self
)
5223 def SetBackingBitmap(*args
, **kwargs
):
5224 """SetBackingBitmap(self, Bitmap bitmap)"""
5225 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
5227 def BeginDrag(*args
, **kwargs
):
5229 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
5230 Rect rect=None) -> bool
5232 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
5234 def BeginDragBounded(*args
, **kwargs
):
5235 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
5236 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
5238 def EndDrag(*args
, **kwargs
):
5239 """EndDrag(self) -> bool"""
5240 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
5242 def Move(*args
, **kwargs
):
5243 """Move(self, Point pt) -> bool"""
5244 return _controls_
.DragImage_Move(*args
, **kwargs
)
5246 def Show(*args
, **kwargs
):
5247 """Show(self) -> bool"""
5248 return _controls_
.DragImage_Show(*args
, **kwargs
)
5250 def Hide(*args
, **kwargs
):
5251 """Hide(self) -> bool"""
5252 return _controls_
.DragImage_Hide(*args
, **kwargs
)
5254 def GetImageRect(*args
, **kwargs
):
5255 """GetImageRect(self, Point pos) -> Rect"""
5256 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
5258 def DoDrawImage(*args
, **kwargs
):
5259 """DoDrawImage(self, DC dc, Point pos) -> bool"""
5260 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
5262 def UpdateBackingFromWindow(*args
, **kwargs
):
5263 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
5264 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
5266 def RedrawImage(*args
, **kwargs
):
5267 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
5268 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
5271 class DragImagePtr(DragImage
):
5272 def __init__(self
, this
):
5274 if not hasattr(self
,"thisown"): self
.thisown
= 0
5275 self
.__class
__ = DragImage
5276 _controls_
.DragImage_swigregister(DragImagePtr
)
5278 def DragIcon(*args
, **kwargs
):
5279 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
5280 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
5284 def DragString(*args
, **kwargs
):
5285 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
5286 val
= _controls_
.new_DragString(*args
, **kwargs
)
5290 def DragTreeItem(*args
, **kwargs
):
5291 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
5292 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
5296 def DragListItem(*args
, **kwargs
):
5297 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
5298 val
= _controls_
.new_DragListItem(*args
, **kwargs
)