1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 BU_LEFT
= _controls_
.BU_LEFT
11 BU_TOP
= _controls_
.BU_TOP
12 BU_RIGHT
= _controls_
.BU_RIGHT
13 BU_BOTTOM
= _controls_
.BU_BOTTOM
14 BU_EXACTFIT
= _controls_
.BU_EXACTFIT
15 BU_AUTODRAW
= _controls_
.BU_AUTODRAW
16 class Button(_core
.Control
):
18 A button is a control that contains a text string, and is one of the most
19 common elements of a GUI. It may be placed on a dialog box or panel, or
20 indeed almost any other window.
23 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
24 def __init__(self
, *args
, **kwargs
):
26 __init__(self, Window parent, int id=-1, String label=EmptyString,
27 Point pos=DefaultPosition, Size size=DefaultSize,
28 long style=0, Validator validator=DefaultValidator,
29 String name=ButtonNameStr) -> Button
31 Create and show a button. The preferred way to create standard
32 buttons is to use a standard ID and an empty label. In this case
33 wxWigets will automatically use a stock label that coresponds to the
34 ID given. In additon, the button will be decorated with stock icons
37 newobj
= _controls_
.new_Button(*args
, **kwargs
)
38 self
.this
= newobj
.this
41 self
._setOORInfo
(self
)
43 def Create(*args
, **kwargs
):
45 Create(self, Window parent, int id=-1, String label=EmptyString,
46 Point pos=DefaultPosition, Size size=DefaultSize,
47 long style=0, Validator validator=DefaultValidator,
48 String name=ButtonNameStr) -> bool
50 Acutally create the GUI Button for 2-phase creation.
52 return _controls_
.Button_Create(*args
, **kwargs
)
54 def SetDefault(*args
, **kwargs
):
58 This sets the button to be the default item for the panel or dialog box.
60 return _controls_
.Button_SetDefault(*args
, **kwargs
)
62 def GetDefaultSize(*args
, **kwargs
):
64 GetDefaultSize() -> Size
66 Returns the default button size for this platform.
68 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
70 GetDefaultSize
= staticmethod(GetDefaultSize
)
71 def GetClassDefaultAttributes(*args
, **kwargs
):
73 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
75 Get the default attributes for this class. This is useful if you want
76 to use the same font or colour in your own control as in a standard
77 control -- which is a much better idea than hard coding specific
78 colours or fonts which might look completely out of place on the
79 user's system, especially if it uses themes.
81 The variant parameter is only relevant under Mac currently and is
82 ignore under other platforms. Under Mac, it will change the size of
83 the returned font. See `wx.Window.SetWindowVariant` for more about
86 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
88 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
90 class ButtonPtr(Button
):
91 def __init__(self
, this
):
93 if not hasattr(self
,"thisown"): self
.thisown
= 0
94 self
.__class
__ = Button
95 _controls_
.Button_swigregister(ButtonPtr
)
96 cvar
= _controls_
.cvar
97 ButtonNameStr
= cvar
.ButtonNameStr
99 def PreButton(*args
, **kwargs
):
101 PreButton() -> Button
103 Precreate a Button for 2-phase creation.
105 val
= _controls_
.new_PreButton(*args
, **kwargs
)
109 def Button_GetDefaultSize(*args
, **kwargs
):
111 Button_GetDefaultSize() -> Size
113 Returns the default button size for this platform.
115 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
117 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
119 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
121 Get the default attributes for this class. This is useful if you want
122 to use the same font or colour in your own control as in a standard
123 control -- which is a much better idea than hard coding specific
124 colours or fonts which might look completely out of place on the
125 user's system, especially if it uses themes.
127 The variant parameter is only relevant under Mac currently and is
128 ignore under other platforms. Under Mac, it will change the size of
129 the returned font. See `wx.Window.SetWindowVariant` for more about
132 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
134 class BitmapButton(Button
):
136 A Button that contains a bitmap. A bitmap button can be supplied with a
137 single bitmap, and wxWidgets will draw all button states using this bitmap. If
138 the application needs more control, additional bitmaps for the selected state,
139 unpressed focused state, and greyed-out state may be supplied.
142 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
143 def __init__(self
, *args
, **kwargs
):
145 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
146 Point pos=DefaultPosition, Size size=DefaultSize,
147 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
148 String name=ButtonNameStr) -> BitmapButton
150 Create and show a button with a bitmap for the label.
152 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
153 self
.this
= newobj
.this
156 self
._setOORInfo
(self
)
158 def Create(*args
, **kwargs
):
160 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
161 Point pos=DefaultPosition, Size size=DefaultSize,
162 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
163 String name=ButtonNameStr) -> bool
165 Acutally create the GUI BitmapButton for 2-phase creation.
167 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
169 def GetBitmapLabel(*args
, **kwargs
):
171 GetBitmapLabel(self) -> Bitmap
173 Returns the label bitmap (the one passed to the constructor).
175 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
177 def GetBitmapDisabled(*args
, **kwargs
):
179 GetBitmapDisabled(self) -> Bitmap
181 Returns the bitmap for the disabled state.
183 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
185 def GetBitmapFocus(*args
, **kwargs
):
187 GetBitmapFocus(self) -> Bitmap
189 Returns the bitmap for the focused state.
191 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
193 def GetBitmapSelected(*args
, **kwargs
):
195 GetBitmapSelected(self) -> Bitmap
197 Returns the bitmap for the selected state.
199 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
201 def SetBitmapDisabled(*args
, **kwargs
):
203 SetBitmapDisabled(self, Bitmap bitmap)
205 Sets the bitmap for the disabled button appearance.
207 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
209 def SetBitmapFocus(*args
, **kwargs
):
211 SetBitmapFocus(self, Bitmap bitmap)
213 Sets the bitmap for the button appearance when it has the keyboard focus.
215 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
217 def SetBitmapSelected(*args
, **kwargs
):
219 SetBitmapSelected(self, Bitmap bitmap)
221 Sets the bitmap for the selected (depressed) button appearance.
223 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
225 def SetBitmapLabel(*args
, **kwargs
):
227 SetBitmapLabel(self, Bitmap bitmap)
229 Sets the bitmap label for the button. This is the bitmap used for the
230 unselected state, and for all other states if no other bitmaps are provided.
232 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
234 def SetMargins(*args
, **kwargs
):
235 """SetMargins(self, int x, int y)"""
236 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
238 def GetMarginX(*args
, **kwargs
):
239 """GetMarginX(self) -> int"""
240 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
242 def GetMarginY(*args
, **kwargs
):
243 """GetMarginY(self) -> int"""
244 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
247 class BitmapButtonPtr(BitmapButton
):
248 def __init__(self
, this
):
250 if not hasattr(self
,"thisown"): self
.thisown
= 0
251 self
.__class
__ = BitmapButton
252 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
254 def PreBitmapButton(*args
, **kwargs
):
256 PreBitmapButton() -> BitmapButton
258 Precreate a BitmapButton for 2-phase creation.
260 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
264 #---------------------------------------------------------------------------
266 CHK_2STATE
= _controls_
.CHK_2STATE
267 CHK_3STATE
= _controls_
.CHK_3STATE
268 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
269 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
270 CHK_CHECKED
= _controls_
.CHK_CHECKED
271 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
272 class CheckBox(_core
.Control
):
274 A checkbox is a labelled box which by default is either on (the
275 checkmark is visible) or off (no checkmark). Optionally (When the
276 wx.CHK_3STATE style flag is set) it can have a third state, called the
277 mixed or undetermined state. Often this is used as a "Does Not
281 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
282 def __init__(self
, *args
, **kwargs
):
284 __init__(self, Window parent, int id=-1, String label=EmptyString,
285 Point pos=DefaultPosition, Size size=DefaultSize,
286 long style=0, Validator validator=DefaultValidator,
287 String name=CheckBoxNameStr) -> CheckBox
289 Creates and shows a CheckBox control
291 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
292 self
.this
= newobj
.this
295 self
._setOORInfo
(self
)
297 def Create(*args
, **kwargs
):
299 Create(self, Window parent, int id=-1, String label=EmptyString,
300 Point pos=DefaultPosition, Size size=DefaultSize,
301 long style=0, Validator validator=DefaultValidator,
302 String name=CheckBoxNameStr) -> bool
304 Actually create the GUI CheckBox for 2-phase creation.
306 return _controls_
.CheckBox_Create(*args
, **kwargs
)
308 def GetValue(*args
, **kwargs
):
310 GetValue(self) -> bool
312 Gets the state of a 2-state CheckBox. Returns True if it is checked,
315 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
317 def IsChecked(*args
, **kwargs
):
319 IsChecked(self) -> bool
321 Similar to GetValue, but raises an exception if it is not a 2-state
324 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
326 def SetValue(*args
, **kwargs
):
328 SetValue(self, bool state)
330 Set the state of a 2-state CheckBox. Pass True for checked, False for
333 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
335 def Get3StateValue(*args
, **kwargs
):
337 Get3StateValue(self) -> int
339 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
340 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
341 the undetermined state. Raises an exceptiion when the function is
342 used with a 2-state CheckBox.
344 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
346 def Set3StateValue(*args
, **kwargs
):
348 Set3StateValue(self, int state)
350 Sets the CheckBox to the given state. The state parameter can be one
351 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
352 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
353 exception when the CheckBox is a 2-state checkbox and setting the
354 state to wx.CHK_UNDETERMINED.
356 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
358 def Is3State(*args
, **kwargs
):
360 Is3State(self) -> bool
362 Returns whether or not the CheckBox is a 3-state CheckBox.
364 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
366 def Is3rdStateAllowedForUser(*args
, **kwargs
):
368 Is3rdStateAllowedForUser(self) -> bool
370 Returns whether or not the user can set the CheckBox to the third
373 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
375 def GetClassDefaultAttributes(*args
, **kwargs
):
377 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
379 Get the default attributes for this class. This is useful if you want
380 to use the same font or colour in your own control as in a standard
381 control -- which is a much better idea than hard coding specific
382 colours or fonts which might look completely out of place on the
383 user's system, especially if it uses themes.
385 The variant parameter is only relevant under Mac currently and is
386 ignore under other platforms. Under Mac, it will change the size of
387 the returned font. See `wx.Window.SetWindowVariant` for more about
390 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
392 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
394 class CheckBoxPtr(CheckBox
):
395 def __init__(self
, this
):
397 if not hasattr(self
,"thisown"): self
.thisown
= 0
398 self
.__class
__ = CheckBox
399 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
400 CheckBoxNameStr
= cvar
.CheckBoxNameStr
402 def PreCheckBox(*args
, **kwargs
):
404 PreCheckBox() -> CheckBox
406 Precreate a CheckBox for 2-phase creation.
408 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
412 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
414 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
416 Get the default attributes for this class. This is useful if you want
417 to use the same font or colour in your own control as in a standard
418 control -- which is a much better idea than hard coding specific
419 colours or fonts which might look completely out of place on the
420 user's system, especially if it uses themes.
422 The variant parameter is only relevant under Mac currently and is
423 ignore under other platforms. Under Mac, it will change the size of
424 the returned font. See `wx.Window.SetWindowVariant` for more about
427 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
429 #---------------------------------------------------------------------------
431 class Choice(_core
.ControlWithItems
):
433 A Choice control is used to select one of a list of strings.
434 Unlike a `wx.ListBox`, only the selection is visible until the
435 user pulls down the menu of choices.
438 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
439 def __init__(self
, *args
, **kwargs
):
441 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
442 List choices=[], long style=0, Validator validator=DefaultValidator,
443 String name=ChoiceNameStr) -> Choice
445 Create and show a Choice control
447 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
448 self
.this
= newobj
.this
451 self
._setOORInfo
(self
)
453 def Create(*args
, **kwargs
):
455 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
456 List choices=[], long style=0, Validator validator=DefaultValidator,
457 String name=ChoiceNameStr) -> bool
459 Actually create the GUI Choice control for 2-phase creation
461 return _controls_
.Choice_Create(*args
, **kwargs
)
463 def SetSelection(*args
, **kwargs
):
465 SetSelection(self, int n)
467 Select the n'th item (zero based) in the list.
469 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
471 def SetStringSelection(*args
, **kwargs
):
473 SetStringSelection(self, String string) -> bool
475 Select the item with the specifed string
477 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
479 def SetString(*args
, **kwargs
):
481 SetString(self, int n, String string)
483 Set the label for the n'th item (zero based) in the list.
485 return _controls_
.Choice_SetString(*args
, **kwargs
)
487 Select
= SetSelection
488 def GetClassDefaultAttributes(*args
, **kwargs
):
490 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
492 Get the default attributes for this class. This is useful if you want
493 to use the same font or colour in your own control as in a standard
494 control -- which is a much better idea than hard coding specific
495 colours or fonts which might look completely out of place on the
496 user's system, especially if it uses themes.
498 The variant parameter is only relevant under Mac currently and is
499 ignore under other platforms. Under Mac, it will change the size of
500 the returned font. See `wx.Window.SetWindowVariant` for more about
503 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
505 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
507 class ChoicePtr(Choice
):
508 def __init__(self
, this
):
510 if not hasattr(self
,"thisown"): self
.thisown
= 0
511 self
.__class
__ = Choice
512 _controls_
.Choice_swigregister(ChoicePtr
)
513 ChoiceNameStr
= cvar
.ChoiceNameStr
515 def PreChoice(*args
, **kwargs
):
517 PreChoice() -> Choice
519 Precreate a Choice control for 2-phase creation.
521 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
525 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
527 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
529 Get the default attributes for this class. This is useful if you want
530 to use the same font or colour in your own control as in a standard
531 control -- which is a much better idea than hard coding specific
532 colours or fonts which might look completely out of place on the
533 user's system, especially if it uses themes.
535 The variant parameter is only relevant under Mac currently and is
536 ignore under other platforms. Under Mac, it will change the size of
537 the returned font. See `wx.Window.SetWindowVariant` for more about
540 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
542 #---------------------------------------------------------------------------
544 class ComboBox(Choice
):
546 A combobox is like a combination of an edit control and a
547 listbox. It can be displayed as static list with editable or
548 read-only text field; or a drop-down list with text field.
550 A combobox permits a single selection only. Combobox items are
554 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
555 def __init__(self
, *args
, **kwargs
):
557 __init__(Window parent, int id, String value=EmptyString,
558 Point pos=DefaultPosition, Size size=DefaultSize,
559 List choices=[], long style=0, Validator validator=DefaultValidator,
560 String name=ComboBoxNameStr) -> ComboBox
562 Constructor, creates and shows a ComboBox control.
564 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
565 self
.this
= newobj
.this
568 self
._setOORInfo
(self
)
570 def Create(*args
, **kwargs
):
572 Create(Window parent, int id, String value=EmptyString,
573 Point pos=DefaultPosition, Size size=DefaultSize,
574 List choices=[], long style=0, Validator validator=DefaultValidator,
575 String name=ChoiceNameStr) -> bool
577 Actually create the GUI wxComboBox control for 2-phase creation
579 return _controls_
.ComboBox_Create(*args
, **kwargs
)
581 def GetValue(*args
, **kwargs
):
583 GetValue(self) -> String
585 Returns the current value in the combobox text field.
587 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
589 def SetValue(*args
, **kwargs
):
590 """SetValue(self, String value)"""
591 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
593 def Copy(*args
, **kwargs
):
597 Copies the selected text to the clipboard.
599 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
601 def Cut(*args
, **kwargs
):
605 Copies the selected text to the clipboard and removes the selection.
607 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
609 def Paste(*args
, **kwargs
):
613 Pastes text from the clipboard to the text field.
615 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
617 def SetInsertionPoint(*args
, **kwargs
):
619 SetInsertionPoint(self, long pos)
621 Sets the insertion point in the combobox text field.
623 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
625 def GetInsertionPoint(*args
, **kwargs
):
627 GetInsertionPoint(self) -> long
629 Returns the insertion point for the combobox's text field.
631 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
633 def GetLastPosition(*args
, **kwargs
):
635 GetLastPosition(self) -> long
637 Returns the last position in the combobox text field.
639 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
641 def Replace(*args
, **kwargs
):
643 Replace(self, long from, long to, String value)
645 Replaces the text between two positions with the given text, in the
648 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
650 def SetSelection(*args
, **kwargs
):
652 SetSelection(self, int n)
654 Sets the item at index 'n' to be the selected item.
656 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
658 def SetMark(*args
, **kwargs
):
660 SetMark(self, long from, long to)
662 Selects the text between the two positions in the combobox text field.
664 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
666 def SetStringSelection(*args
, **kwargs
):
668 SetStringSelection(self, String string) -> bool
670 Select the item with the specifed string
672 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
674 def SetString(*args
, **kwargs
):
676 SetString(self, int n, String string)
678 Set the label for the n'th item (zero based) in the list.
680 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
682 def SetEditable(*args
, **kwargs
):
683 """SetEditable(self, bool editable)"""
684 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
686 def SetInsertionPointEnd(*args
, **kwargs
):
688 SetInsertionPointEnd(self)
690 Sets the insertion point at the end of the combobox text field.
692 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
694 def Remove(*args
, **kwargs
):
696 Remove(self, long from, long to)
698 Removes the text between the two positions in the combobox text field.
700 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
702 def GetClassDefaultAttributes(*args
, **kwargs
):
704 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
706 Get the default attributes for this class. This is useful if you want
707 to use the same font or colour in your own control as in a standard
708 control -- which is a much better idea than hard coding specific
709 colours or fonts which might look completely out of place on the
710 user's system, especially if it uses themes.
712 The variant parameter is only relevant under Mac currently and is
713 ignore under other platforms. Under Mac, it will change the size of
714 the returned font. See `wx.Window.SetWindowVariant` for more about
717 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
719 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
721 class ComboBoxPtr(ComboBox
):
722 def __init__(self
, this
):
724 if not hasattr(self
,"thisown"): self
.thisown
= 0
725 self
.__class
__ = ComboBox
726 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
727 ComboBoxNameStr
= cvar
.ComboBoxNameStr
729 def PreComboBox(*args
, **kwargs
):
731 PreComboBox() -> ComboBox
733 Precreate a ComboBox control for 2-phase creation.
735 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
739 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
741 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
743 Get the default attributes for this class. This is useful if you want
744 to use the same font or colour in your own control as in a standard
745 control -- which is a much better idea than hard coding specific
746 colours or fonts which might look completely out of place on the
747 user's system, especially if it uses themes.
749 The variant parameter is only relevant under Mac currently and is
750 ignore under other platforms. Under Mac, it will change the size of
751 the returned font. See `wx.Window.SetWindowVariant` for more about
754 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
756 #---------------------------------------------------------------------------
758 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
759 GA_VERTICAL
= _controls_
.GA_VERTICAL
760 GA_SMOOTH
= _controls_
.GA_SMOOTH
761 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
762 class Gauge(_core
.Control
):
764 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
765 def __init__(self
, *args
, **kwargs
):
767 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
768 Size size=DefaultSize, long style=GA_HORIZONTAL,
769 Validator validator=DefaultValidator,
770 String name=GaugeNameStr) -> Gauge
772 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
773 self
.this
= newobj
.this
776 self
._setOORInfo
(self
)
778 def Create(*args
, **kwargs
):
780 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
781 Size size=DefaultSize, long style=GA_HORIZONTAL,
782 Validator validator=DefaultValidator,
783 String name=GaugeNameStr) -> bool
785 return _controls_
.Gauge_Create(*args
, **kwargs
)
787 def SetRange(*args
, **kwargs
):
788 """SetRange(self, int range)"""
789 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
791 def GetRange(*args
, **kwargs
):
792 """GetRange(self) -> int"""
793 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
795 def SetValue(*args
, **kwargs
):
796 """SetValue(self, int pos)"""
797 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
799 def GetValue(*args
, **kwargs
):
800 """GetValue(self) -> int"""
801 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
803 def IsVertical(*args
, **kwargs
):
804 """IsVertical(self) -> bool"""
805 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
807 def SetShadowWidth(*args
, **kwargs
):
808 """SetShadowWidth(self, int w)"""
809 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
811 def GetShadowWidth(*args
, **kwargs
):
812 """GetShadowWidth(self) -> int"""
813 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
815 def SetBezelFace(*args
, **kwargs
):
816 """SetBezelFace(self, int w)"""
817 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
819 def GetBezelFace(*args
, **kwargs
):
820 """GetBezelFace(self) -> int"""
821 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
823 def GetClassDefaultAttributes(*args
, **kwargs
):
825 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
827 Get the default attributes for this class. This is useful if you want
828 to use the same font or colour in your own control as in a standard
829 control -- which is a much better idea than hard coding specific
830 colours or fonts which might look completely out of place on the
831 user's system, especially if it uses themes.
833 The variant parameter is only relevant under Mac currently and is
834 ignore under other platforms. Under Mac, it will change the size of
835 the returned font. See `wx.Window.SetWindowVariant` for more about
838 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
840 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
842 class GaugePtr(Gauge
):
843 def __init__(self
, this
):
845 if not hasattr(self
,"thisown"): self
.thisown
= 0
846 self
.__class
__ = Gauge
847 _controls_
.Gauge_swigregister(GaugePtr
)
848 GaugeNameStr
= cvar
.GaugeNameStr
850 def PreGauge(*args
, **kwargs
):
851 """PreGauge() -> Gauge"""
852 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
856 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
858 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
860 Get the default attributes for this class. This is useful if you want
861 to use the same font or colour in your own control as in a standard
862 control -- which is a much better idea than hard coding specific
863 colours or fonts which might look completely out of place on the
864 user's system, especially if it uses themes.
866 The variant parameter is only relevant under Mac currently and is
867 ignore under other platforms. Under Mac, it will change the size of
868 the returned font. See `wx.Window.SetWindowVariant` for more about
871 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
873 #---------------------------------------------------------------------------
875 class StaticBox(_core
.Control
):
877 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
878 def __init__(self
, *args
, **kwargs
):
880 __init__(self, Window parent, int id=-1, String label=EmptyString,
881 Point pos=DefaultPosition, Size size=DefaultSize,
882 long style=0, String name=StaticBoxNameStr) -> StaticBox
884 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
885 self
.this
= newobj
.this
888 self
._setOORInfo
(self
)
890 def Create(*args
, **kwargs
):
892 Create(self, Window parent, int id=-1, String label=EmptyString,
893 Point pos=DefaultPosition, Size size=DefaultSize,
894 long style=0, String name=StaticBoxNameStr) -> bool
896 return _controls_
.StaticBox_Create(*args
, **kwargs
)
898 def GetClassDefaultAttributes(*args
, **kwargs
):
900 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
902 Get the default attributes for this class. This is useful if you want
903 to use the same font or colour in your own control as in a standard
904 control -- which is a much better idea than hard coding specific
905 colours or fonts which might look completely out of place on the
906 user's system, especially if it uses themes.
908 The variant parameter is only relevant under Mac currently and is
909 ignore under other platforms. Under Mac, it will change the size of
910 the returned font. See `wx.Window.SetWindowVariant` for more about
913 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
915 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
917 class StaticBoxPtr(StaticBox
):
918 def __init__(self
, this
):
920 if not hasattr(self
,"thisown"): self
.thisown
= 0
921 self
.__class
__ = StaticBox
922 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
923 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
924 StaticBoxNameStr
= cvar
.StaticBoxNameStr
925 StaticTextNameStr
= cvar
.StaticTextNameStr
927 def PreStaticBox(*args
, **kwargs
):
928 """PreStaticBox() -> StaticBox"""
929 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
933 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
935 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
937 Get the default attributes for this class. This is useful if you want
938 to use the same font or colour in your own control as in a standard
939 control -- which is a much better idea than hard coding specific
940 colours or fonts which might look completely out of place on the
941 user's system, especially if it uses themes.
943 The variant parameter is only relevant under Mac currently and is
944 ignore under other platforms. Under Mac, it will change the size of
945 the returned font. See `wx.Window.SetWindowVariant` for more about
948 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
950 #---------------------------------------------------------------------------
952 class StaticLine(_core
.Control
):
954 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
955 def __init__(self
, *args
, **kwargs
):
957 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
958 Size size=DefaultSize, long style=LI_HORIZONTAL,
959 String name=StaticTextNameStr) -> StaticLine
961 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
962 self
.this
= newobj
.this
965 self
._setOORInfo
(self
)
967 def Create(*args
, **kwargs
):
969 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
970 Size size=DefaultSize, long style=LI_HORIZONTAL,
971 String name=StaticTextNameStr) -> bool
973 return _controls_
.StaticLine_Create(*args
, **kwargs
)
975 def IsVertical(*args
, **kwargs
):
976 """IsVertical(self) -> bool"""
977 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
979 def GetDefaultSize(*args
, **kwargs
):
980 """GetDefaultSize() -> int"""
981 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
983 GetDefaultSize
= staticmethod(GetDefaultSize
)
984 def GetClassDefaultAttributes(*args
, **kwargs
):
986 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
988 Get the default attributes for this class. This is useful if you want
989 to use the same font or colour in your own control as in a standard
990 control -- which is a much better idea than hard coding specific
991 colours or fonts which might look completely out of place on the
992 user's system, especially if it uses themes.
994 The variant parameter is only relevant under Mac currently and is
995 ignore under other platforms. Under Mac, it will change the size of
996 the returned font. See `wx.Window.SetWindowVariant` for more about
999 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1001 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1003 class StaticLinePtr(StaticLine
):
1004 def __init__(self
, this
):
1006 if not hasattr(self
,"thisown"): self
.thisown
= 0
1007 self
.__class
__ = StaticLine
1008 _controls_
.StaticLine_swigregister(StaticLinePtr
)
1010 def PreStaticLine(*args
, **kwargs
):
1011 """PreStaticLine() -> StaticLine"""
1012 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1016 def StaticLine_GetDefaultSize(*args
, **kwargs
):
1017 """StaticLine_GetDefaultSize() -> int"""
1018 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1020 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1022 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1024 Get the default attributes for this class. This is useful if you want
1025 to use the same font or colour in your own control as in a standard
1026 control -- which is a much better idea than hard coding specific
1027 colours or fonts which might look completely out of place on the
1028 user's system, especially if it uses themes.
1030 The variant parameter is only relevant under Mac currently and is
1031 ignore under other platforms. Under Mac, it will change the size of
1032 the returned font. See `wx.Window.SetWindowVariant` for more about
1035 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1037 #---------------------------------------------------------------------------
1039 class StaticText(_core
.Control
):
1041 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1042 def __init__(self
, *args
, **kwargs
):
1044 __init__(self, Window parent, int id=-1, String label=EmptyString,
1045 Point pos=DefaultPosition, Size size=DefaultSize,
1046 long style=0, String name=StaticTextNameStr) -> StaticText
1048 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
1049 self
.this
= newobj
.this
1052 self
._setOORInfo
(self
)
1054 def Create(*args
, **kwargs
):
1056 Create(self, Window parent, int id=-1, String label=EmptyString,
1057 Point pos=DefaultPosition, Size size=DefaultSize,
1058 long style=0, String name=StaticTextNameStr) -> bool
1060 return _controls_
.StaticText_Create(*args
, **kwargs
)
1062 def GetClassDefaultAttributes(*args
, **kwargs
):
1064 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1066 Get the default attributes for this class. This is useful if you want
1067 to use the same font or colour in your own control as in a standard
1068 control -- which is a much better idea than hard coding specific
1069 colours or fonts which might look completely out of place on the
1070 user's system, especially if it uses themes.
1072 The variant parameter is only relevant under Mac currently and is
1073 ignore under other platforms. Under Mac, it will change the size of
1074 the returned font. See `wx.Window.SetWindowVariant` for more about
1077 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1079 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1081 class StaticTextPtr(StaticText
):
1082 def __init__(self
, this
):
1084 if not hasattr(self
,"thisown"): self
.thisown
= 0
1085 self
.__class
__ = StaticText
1086 _controls_
.StaticText_swigregister(StaticTextPtr
)
1088 def PreStaticText(*args
, **kwargs
):
1089 """PreStaticText() -> StaticText"""
1090 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1094 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1096 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1098 Get the default attributes for this class. This is useful if you want
1099 to use the same font or colour in your own control as in a standard
1100 control -- which is a much better idea than hard coding specific
1101 colours or fonts which might look completely out of place on the
1102 user's system, especially if it uses themes.
1104 The variant parameter is only relevant under Mac currently and is
1105 ignore under other platforms. Under Mac, it will change the size of
1106 the returned font. See `wx.Window.SetWindowVariant` for more about
1109 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1111 #---------------------------------------------------------------------------
1113 class StaticBitmap(_core
.Control
):
1115 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1116 def __init__(self
, *args
, **kwargs
):
1118 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1119 Point pos=DefaultPosition, Size size=DefaultSize,
1120 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1122 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
1123 self
.this
= newobj
.this
1126 self
._setOORInfo
(self
)
1128 def Create(*args
, **kwargs
):
1130 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1131 Point pos=DefaultPosition, Size size=DefaultSize,
1132 long style=0, String name=StaticBitmapNameStr) -> bool
1134 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1136 def GetBitmap(*args
, **kwargs
):
1137 """GetBitmap(self) -> Bitmap"""
1138 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1140 def SetBitmap(*args
, **kwargs
):
1141 """SetBitmap(self, Bitmap bitmap)"""
1142 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1144 def SetIcon(*args
, **kwargs
):
1145 """SetIcon(self, Icon icon)"""
1146 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1148 def GetClassDefaultAttributes(*args
, **kwargs
):
1150 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1152 Get the default attributes for this class. This is useful if you want
1153 to use the same font or colour in your own control as in a standard
1154 control -- which is a much better idea than hard coding specific
1155 colours or fonts which might look completely out of place on the
1156 user's system, especially if it uses themes.
1158 The variant parameter is only relevant under Mac currently and is
1159 ignore under other platforms. Under Mac, it will change the size of
1160 the returned font. See `wx.Window.SetWindowVariant` for more about
1163 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1165 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1167 class StaticBitmapPtr(StaticBitmap
):
1168 def __init__(self
, this
):
1170 if not hasattr(self
,"thisown"): self
.thisown
= 0
1171 self
.__class
__ = StaticBitmap
1172 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
1174 def PreStaticBitmap(*args
, **kwargs
):
1175 """PreStaticBitmap() -> StaticBitmap"""
1176 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1180 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1182 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1184 Get the default attributes for this class. This is useful if you want
1185 to use the same font or colour in your own control as in a standard
1186 control -- which is a much better idea than hard coding specific
1187 colours or fonts which might look completely out of place on the
1188 user's system, especially if it uses themes.
1190 The variant parameter is only relevant under Mac currently and is
1191 ignore under other platforms. Under Mac, it will change the size of
1192 the returned font. See `wx.Window.SetWindowVariant` for more about
1195 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1197 #---------------------------------------------------------------------------
1199 class ListBox(_core
.ControlWithItems
):
1201 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1202 def __init__(self
, *args
, **kwargs
):
1204 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1205 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1206 long style=0, Validator validator=DefaultValidator,
1207 String name=ListBoxNameStr) -> ListBox
1209 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
1210 self
.this
= newobj
.this
1213 self
._setOORInfo
(self
)
1215 def Create(*args
, **kwargs
):
1217 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1218 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1219 long style=0, Validator validator=DefaultValidator,
1220 String name=ListBoxNameStr) -> bool
1222 return _controls_
.ListBox_Create(*args
, **kwargs
)
1224 def Insert(*args
, **kwargs
):
1226 Insert(self, String item, int pos, PyObject clientData=None)
1228 Insert an item into the control before the item at the ``pos`` index,
1229 optionally associating some data object with the item.
1231 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1233 def InsertItems(*args
, **kwargs
):
1234 """InsertItems(self, wxArrayString items, int pos)"""
1235 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1237 def Set(*args
, **kwargs
):
1238 """Set(self, wxArrayString items)"""
1239 return _controls_
.ListBox_Set(*args
, **kwargs
)
1241 def IsSelected(*args
, **kwargs
):
1242 """IsSelected(self, int n) -> bool"""
1243 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1245 def SetSelection(*args
, **kwargs
):
1246 """SetSelection(self, int n, bool select=True)"""
1247 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1249 def Select(*args
, **kwargs
):
1253 Sets the item at index 'n' to be the selected item.
1255 return _controls_
.ListBox_Select(*args
, **kwargs
)
1257 def Deselect(*args
, **kwargs
):
1258 """Deselect(self, int n)"""
1259 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1261 def DeselectAll(*args
, **kwargs
):
1262 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1263 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1265 def SetStringSelection(*args
, **kwargs
):
1266 """SetStringSelection(self, String s, bool select=True) -> bool"""
1267 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1269 def GetSelections(*args
, **kwargs
):
1270 """GetSelections(self) -> PyObject"""
1271 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1273 def SetFirstItem(*args
, **kwargs
):
1274 """SetFirstItem(self, int n)"""
1275 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1277 def SetFirstItemStr(*args
, **kwargs
):
1278 """SetFirstItemStr(self, String s)"""
1279 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1281 def EnsureVisible(*args
, **kwargs
):
1282 """EnsureVisible(self, int n)"""
1283 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1285 def AppendAndEnsureVisible(*args
, **kwargs
):
1286 """AppendAndEnsureVisible(self, String s)"""
1287 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1289 def IsSorted(*args
, **kwargs
):
1290 """IsSorted(self) -> bool"""
1291 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1293 def SetItemForegroundColour(*args
, **kwargs
):
1294 """SetItemForegroundColour(self, int item, Colour c)"""
1295 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1297 def SetItemBackgroundColour(*args
, **kwargs
):
1298 """SetItemBackgroundColour(self, int item, Colour c)"""
1299 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1301 def SetItemFont(*args
, **kwargs
):
1302 """SetItemFont(self, int item, Font f)"""
1303 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1305 def GetClassDefaultAttributes(*args
, **kwargs
):
1307 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1309 Get the default attributes for this class. This is useful if you want
1310 to use the same font or colour in your own control as in a standard
1311 control -- which is a much better idea than hard coding specific
1312 colours or fonts which might look completely out of place on the
1313 user's system, especially if it uses themes.
1315 The variant parameter is only relevant under Mac currently and is
1316 ignore under other platforms. Under Mac, it will change the size of
1317 the returned font. See `wx.Window.SetWindowVariant` for more about
1320 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1322 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1324 class ListBoxPtr(ListBox
):
1325 def __init__(self
, this
):
1327 if not hasattr(self
,"thisown"): self
.thisown
= 0
1328 self
.__class
__ = ListBox
1329 _controls_
.ListBox_swigregister(ListBoxPtr
)
1330 ListBoxNameStr
= cvar
.ListBoxNameStr
1332 def PreListBox(*args
, **kwargs
):
1333 """PreListBox() -> ListBox"""
1334 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1338 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1340 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1342 Get the default attributes for this class. This is useful if you want
1343 to use the same font or colour in your own control as in a standard
1344 control -- which is a much better idea than hard coding specific
1345 colours or fonts which might look completely out of place on the
1346 user's system, especially if it uses themes.
1348 The variant parameter is only relevant under Mac currently and is
1349 ignore under other platforms. Under Mac, it will change the size of
1350 the returned font. See `wx.Window.SetWindowVariant` for more about
1353 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1355 #---------------------------------------------------------------------------
1357 class CheckListBox(ListBox
):
1359 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1360 def __init__(self
, *args
, **kwargs
):
1362 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1363 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1364 long style=0, Validator validator=DefaultValidator,
1365 String name=ListBoxNameStr) -> CheckListBox
1367 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1368 self
.this
= newobj
.this
1371 self
._setOORInfo
(self
)
1373 def Create(*args
, **kwargs
):
1375 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1376 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1377 long style=0, Validator validator=DefaultValidator,
1378 String name=ListBoxNameStr) -> bool
1380 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1382 def IsChecked(*args
, **kwargs
):
1383 """IsChecked(self, int index) -> bool"""
1384 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1386 def Check(*args
, **kwargs
):
1387 """Check(self, int index, int check=True)"""
1388 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1390 def GetItemHeight(*args
, **kwargs
):
1391 """GetItemHeight(self) -> int"""
1392 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1394 def HitTest(*args
, **kwargs
):
1396 HitTest(self, Point pt) -> int
1398 Test where the given (in client coords) point lies
1400 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1402 def HitTestXY(*args
, **kwargs
):
1404 HitTestXY(self, int x, int y) -> int
1406 Test where the given (in client coords) point lies
1408 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1411 class CheckListBoxPtr(CheckListBox
):
1412 def __init__(self
, this
):
1414 if not hasattr(self
,"thisown"): self
.thisown
= 0
1415 self
.__class
__ = CheckListBox
1416 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1418 def PreCheckListBox(*args
, **kwargs
):
1419 """PreCheckListBox() -> CheckListBox"""
1420 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1424 #---------------------------------------------------------------------------
1426 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1427 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1428 TE_READONLY
= _controls_
.TE_READONLY
1429 TE_MULTILINE
= _controls_
.TE_MULTILINE
1430 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1431 TE_LEFT
= _controls_
.TE_LEFT
1432 TE_CENTER
= _controls_
.TE_CENTER
1433 TE_RIGHT
= _controls_
.TE_RIGHT
1434 TE_CENTRE
= _controls_
.TE_CENTRE
1435 TE_RICH
= _controls_
.TE_RICH
1436 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1437 TE_PASSWORD
= _controls_
.TE_PASSWORD
1438 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1439 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1440 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1441 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1442 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1443 TE_RICH2
= _controls_
.TE_RICH2
1444 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1445 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1446 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1447 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1448 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1449 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1450 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1451 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1452 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1453 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1454 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1455 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1456 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1457 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1458 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1459 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1460 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1461 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1462 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1463 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1464 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1465 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1466 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1467 class TextAttr(object):
1469 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1470 def __init__(self
, *args
, **kwargs
):
1472 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1473 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1475 newobj
= _controls_
.new_TextAttr(*args
, **kwargs
)
1476 self
.this
= newobj
.this
1479 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1482 if self
.thisown
: destroy(self
)
1485 def Init(*args
, **kwargs
):
1487 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1489 def SetTextColour(*args
, **kwargs
):
1490 """SetTextColour(self, Colour colText)"""
1491 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1493 def SetBackgroundColour(*args
, **kwargs
):
1494 """SetBackgroundColour(self, Colour colBack)"""
1495 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1497 def SetFont(*args
, **kwargs
):
1498 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1499 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1501 def SetAlignment(*args
, **kwargs
):
1502 """SetAlignment(self, int alignment)"""
1503 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1505 def SetTabs(*args
, **kwargs
):
1506 """SetTabs(self, wxArrayInt tabs)"""
1507 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1509 def SetLeftIndent(*args
, **kwargs
):
1510 """SetLeftIndent(self, int indent, int subIndent=0)"""
1511 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1513 def SetRightIndent(*args
, **kwargs
):
1514 """SetRightIndent(self, int indent)"""
1515 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1517 def SetFlags(*args
, **kwargs
):
1518 """SetFlags(self, long flags)"""
1519 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1521 def HasTextColour(*args
, **kwargs
):
1522 """HasTextColour(self) -> bool"""
1523 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1525 def HasBackgroundColour(*args
, **kwargs
):
1526 """HasBackgroundColour(self) -> bool"""
1527 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1529 def HasFont(*args
, **kwargs
):
1530 """HasFont(self) -> bool"""
1531 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1533 def HasAlignment(*args
, **kwargs
):
1534 """HasAlignment(self) -> bool"""
1535 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1537 def HasTabs(*args
, **kwargs
):
1538 """HasTabs(self) -> bool"""
1539 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1541 def HasLeftIndent(*args
, **kwargs
):
1542 """HasLeftIndent(self) -> bool"""
1543 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1545 def HasRightIndent(*args
, **kwargs
):
1546 """HasRightIndent(self) -> bool"""
1547 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1549 def HasFlag(*args
, **kwargs
):
1550 """HasFlag(self, long flag) -> bool"""
1551 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1553 def GetTextColour(*args
, **kwargs
):
1554 """GetTextColour(self) -> Colour"""
1555 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1557 def GetBackgroundColour(*args
, **kwargs
):
1558 """GetBackgroundColour(self) -> Colour"""
1559 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1561 def GetFont(*args
, **kwargs
):
1562 """GetFont(self) -> Font"""
1563 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1565 def GetAlignment(*args
, **kwargs
):
1566 """GetAlignment(self) -> int"""
1567 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1569 def GetTabs(*args
, **kwargs
):
1570 """GetTabs(self) -> wxArrayInt"""
1571 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1573 def GetLeftIndent(*args
, **kwargs
):
1574 """GetLeftIndent(self) -> long"""
1575 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1577 def GetLeftSubIndent(*args
, **kwargs
):
1578 """GetLeftSubIndent(self) -> long"""
1579 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1581 def GetRightIndent(*args
, **kwargs
):
1582 """GetRightIndent(self) -> long"""
1583 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1585 def GetFlags(*args
, **kwargs
):
1586 """GetFlags(self) -> long"""
1587 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1589 def IsDefault(*args
, **kwargs
):
1590 """IsDefault(self) -> bool"""
1591 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1593 def Combine(*args
, **kwargs
):
1594 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1595 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1597 Combine
= staticmethod(Combine
)
1599 class TextAttrPtr(TextAttr
):
1600 def __init__(self
, this
):
1602 if not hasattr(self
,"thisown"): self
.thisown
= 0
1603 self
.__class
__ = TextAttr
1604 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1605 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1607 def TextAttr_Combine(*args
, **kwargs
):
1608 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1609 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1611 class TextCtrl(_core
.Control
):
1613 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1614 def __init__(self
, *args
, **kwargs
):
1616 __init__(self, Window parent, int id=-1, String value=EmptyString,
1617 Point pos=DefaultPosition, Size size=DefaultSize,
1618 long style=0, Validator validator=DefaultValidator,
1619 String name=TextCtrlNameStr) -> TextCtrl
1621 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1622 self
.this
= newobj
.this
1625 self
._setOORInfo
(self
)
1627 def Create(*args
, **kwargs
):
1629 Create(self, Window parent, int id=-1, String value=EmptyString,
1630 Point pos=DefaultPosition, Size size=DefaultSize,
1631 long style=0, Validator validator=DefaultValidator,
1632 String name=TextCtrlNameStr) -> bool
1634 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1636 def GetValue(*args
, **kwargs
):
1637 """GetValue(self) -> String"""
1638 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1640 def SetValue(*args
, **kwargs
):
1641 """SetValue(self, String value)"""
1642 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1644 def GetRange(*args
, **kwargs
):
1645 """GetRange(self, long from, long to) -> String"""
1646 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1648 def GetLineLength(*args
, **kwargs
):
1649 """GetLineLength(self, long lineNo) -> int"""
1650 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1652 def GetLineText(*args
, **kwargs
):
1653 """GetLineText(self, long lineNo) -> String"""
1654 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1656 def GetNumberOfLines(*args
, **kwargs
):
1657 """GetNumberOfLines(self) -> int"""
1658 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1660 def IsModified(*args
, **kwargs
):
1661 """IsModified(self) -> bool"""
1662 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1664 def IsEditable(*args
, **kwargs
):
1665 """IsEditable(self) -> bool"""
1666 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1668 def IsSingleLine(*args
, **kwargs
):
1669 """IsSingleLine(self) -> bool"""
1670 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1672 def IsMultiLine(*args
, **kwargs
):
1673 """IsMultiLine(self) -> bool"""
1674 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1676 def GetSelection(*args
, **kwargs
):
1678 GetSelection() -> (from, to)
1680 If the return values from and to are the same, there is no selection.
1682 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1684 def GetStringSelection(*args
, **kwargs
):
1685 """GetStringSelection(self) -> String"""
1686 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1688 def Clear(*args
, **kwargs
):
1690 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1692 def Replace(*args
, **kwargs
):
1693 """Replace(self, long from, long to, String value)"""
1694 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1696 def Remove(*args
, **kwargs
):
1697 """Remove(self, long from, long to)"""
1698 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1700 def LoadFile(*args
, **kwargs
):
1701 """LoadFile(self, String file) -> bool"""
1702 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1704 def SaveFile(*args
, **kwargs
):
1705 """SaveFile(self, String file=EmptyString) -> bool"""
1706 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1708 def MarkDirty(*args
, **kwargs
):
1709 """MarkDirty(self)"""
1710 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1712 def DiscardEdits(*args
, **kwargs
):
1713 """DiscardEdits(self)"""
1714 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1716 def SetMaxLength(*args
, **kwargs
):
1717 """SetMaxLength(self, unsigned long len)"""
1718 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1720 def WriteText(*args
, **kwargs
):
1721 """WriteText(self, String text)"""
1722 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1724 def AppendText(*args
, **kwargs
):
1725 """AppendText(self, String text)"""
1726 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1728 def EmulateKeyPress(*args
, **kwargs
):
1729 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1730 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1732 def SetStyle(*args
, **kwargs
):
1733 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1734 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1736 def GetStyle(*args
, **kwargs
):
1737 """GetStyle(self, long position, TextAttr style) -> bool"""
1738 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1740 def SetDefaultStyle(*args
, **kwargs
):
1741 """SetDefaultStyle(self, TextAttr style) -> bool"""
1742 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1744 def GetDefaultStyle(*args
, **kwargs
):
1745 """GetDefaultStyle(self) -> TextAttr"""
1746 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1748 def XYToPosition(*args
, **kwargs
):
1749 """XYToPosition(self, long x, long y) -> long"""
1750 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1752 def PositionToXY(*args
, **kwargs
):
1753 """PositionToXY(long pos) -> (x, y)"""
1754 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1756 def ShowPosition(*args
, **kwargs
):
1757 """ShowPosition(self, long pos)"""
1758 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1760 def HitTest(*args
, **kwargs
):
1762 HitTest(Point pt) -> (result, row, col)
1764 Find the row, col coresponding to the character at the point given in
1765 pixels. NB: pt is in device coords but is not adjusted for the client
1766 area origin nor scrolling.
1768 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1770 def HitTestPos(*args
, **kwargs
):
1772 HitTestPos(Point pt) -> (result, position)
1774 Find the character position in the text coresponding to the point
1775 given in pixels. NB: pt is in device coords but is not adjusted for
1776 the client area origin nor scrolling.
1778 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1780 def Copy(*args
, **kwargs
):
1782 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1784 def Cut(*args
, **kwargs
):
1786 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1788 def Paste(*args
, **kwargs
):
1790 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1792 def CanCopy(*args
, **kwargs
):
1793 """CanCopy(self) -> bool"""
1794 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1796 def CanCut(*args
, **kwargs
):
1797 """CanCut(self) -> bool"""
1798 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1800 def CanPaste(*args
, **kwargs
):
1801 """CanPaste(self) -> bool"""
1802 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1804 def Undo(*args
, **kwargs
):
1806 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1808 def Redo(*args
, **kwargs
):
1810 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1812 def CanUndo(*args
, **kwargs
):
1813 """CanUndo(self) -> bool"""
1814 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1816 def CanRedo(*args
, **kwargs
):
1817 """CanRedo(self) -> bool"""
1818 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1820 def SetInsertionPoint(*args
, **kwargs
):
1821 """SetInsertionPoint(self, long pos)"""
1822 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1824 def SetInsertionPointEnd(*args
, **kwargs
):
1825 """SetInsertionPointEnd(self)"""
1826 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1828 def GetInsertionPoint(*args
, **kwargs
):
1829 """GetInsertionPoint(self) -> long"""
1830 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1832 def GetLastPosition(*args
, **kwargs
):
1833 """GetLastPosition(self) -> long"""
1834 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1836 def SetSelection(*args
, **kwargs
):
1837 """SetSelection(self, long from, long to)"""
1838 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1840 def SelectAll(*args
, **kwargs
):
1841 """SelectAll(self)"""
1842 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1844 def SetEditable(*args
, **kwargs
):
1845 """SetEditable(self, bool editable)"""
1846 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1848 def ShowNativeCaret(*args
, **kwargs
):
1849 """ShowNativeCaret(self, bool show=True) -> bool"""
1850 return _controls_
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1852 def HideNativeCaret(*args
, **kwargs
):
1853 """HideNativeCaret(self) -> bool"""
1854 return _controls_
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1856 def write(*args
, **kwargs
):
1857 """write(self, String text)"""
1858 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1860 def GetString(*args
, **kwargs
):
1861 """GetString(self, long from, long to) -> String"""
1862 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1864 def GetClassDefaultAttributes(*args
, **kwargs
):
1866 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1868 Get the default attributes for this class. This is useful if you want
1869 to use the same font or colour in your own control as in a standard
1870 control -- which is a much better idea than hard coding specific
1871 colours or fonts which might look completely out of place on the
1872 user's system, especially if it uses themes.
1874 The variant parameter is only relevant under Mac currently and is
1875 ignore under other platforms. Under Mac, it will change the size of
1876 the returned font. See `wx.Window.SetWindowVariant` for more about
1879 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1881 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1883 class TextCtrlPtr(TextCtrl
):
1884 def __init__(self
, this
):
1886 if not hasattr(self
,"thisown"): self
.thisown
= 0
1887 self
.__class
__ = TextCtrl
1888 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
1890 def PreTextCtrl(*args
, **kwargs
):
1891 """PreTextCtrl() -> TextCtrl"""
1892 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1896 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1898 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1900 Get the default attributes for this class. This is useful if you want
1901 to use the same font or colour in your own control as in a standard
1902 control -- which is a much better idea than hard coding specific
1903 colours or fonts which might look completely out of place on the
1904 user's system, especially if it uses themes.
1906 The variant parameter is only relevant under Mac currently and is
1907 ignore under other platforms. Under Mac, it will change the size of
1908 the returned font. See `wx.Window.SetWindowVariant` for more about
1911 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1913 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1914 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1915 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1916 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1917 class TextUrlEvent(_core
.CommandEvent
):
1919 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1920 def __init__(self
, *args
, **kwargs
):
1921 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1922 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
1923 self
.this
= newobj
.this
1926 def GetMouseEvent(*args
, **kwargs
):
1927 """GetMouseEvent(self) -> MouseEvent"""
1928 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1930 def GetURLStart(*args
, **kwargs
):
1931 """GetURLStart(self) -> long"""
1932 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1934 def GetURLEnd(*args
, **kwargs
):
1935 """GetURLEnd(self) -> long"""
1936 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1939 class TextUrlEventPtr(TextUrlEvent
):
1940 def __init__(self
, this
):
1942 if not hasattr(self
,"thisown"): self
.thisown
= 0
1943 self
.__class
__ = TextUrlEvent
1944 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1946 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1947 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1948 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1949 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1951 #---------------------------------------------------------------------------
1953 class ScrollBar(_core
.Control
):
1955 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1956 def __init__(self
, *args
, **kwargs
):
1958 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1959 Size size=DefaultSize, long style=SB_HORIZONTAL,
1960 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1962 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
1963 self
.this
= newobj
.this
1966 self
._setOORInfo
(self
)
1968 def Create(*args
, **kwargs
):
1970 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1971 Size size=DefaultSize, long style=SB_HORIZONTAL,
1972 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1974 Do the 2nd phase and create the GUI control.
1976 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1978 def GetThumbPosition(*args
, **kwargs
):
1979 """GetThumbPosition(self) -> int"""
1980 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1982 def GetThumbSize(*args
, **kwargs
):
1983 """GetThumbSize(self) -> int"""
1984 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1986 GetThumbLength
= GetThumbSize
1987 def GetPageSize(*args
, **kwargs
):
1988 """GetPageSize(self) -> int"""
1989 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
1991 def GetRange(*args
, **kwargs
):
1992 """GetRange(self) -> int"""
1993 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
1995 def IsVertical(*args
, **kwargs
):
1996 """IsVertical(self) -> bool"""
1997 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
1999 def SetThumbPosition(*args
, **kwargs
):
2000 """SetThumbPosition(self, int viewStart)"""
2001 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2003 def SetScrollbar(*args
, **kwargs
):
2005 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
2008 Sets the scrollbar properties of a built-in scrollbar.
2010 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
2012 def GetClassDefaultAttributes(*args
, **kwargs
):
2014 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2016 Get the default attributes for this class. This is useful if you want
2017 to use the same font or colour in your own control as in a standard
2018 control -- which is a much better idea than hard coding specific
2019 colours or fonts which might look completely out of place on the
2020 user's system, especially if it uses themes.
2022 The variant parameter is only relevant under Mac currently and is
2023 ignore under other platforms. Under Mac, it will change the size of
2024 the returned font. See `wx.Window.SetWindowVariant` for more about
2027 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2029 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2031 class ScrollBarPtr(ScrollBar
):
2032 def __init__(self
, this
):
2034 if not hasattr(self
,"thisown"): self
.thisown
= 0
2035 self
.__class
__ = ScrollBar
2036 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
2037 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2039 def PreScrollBar(*args
, **kwargs
):
2040 """PreScrollBar() -> ScrollBar"""
2041 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2045 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2047 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2049 Get the default attributes for this class. This is useful if you want
2050 to use the same font or colour in your own control as in a standard
2051 control -- which is a much better idea than hard coding specific
2052 colours or fonts which might look completely out of place on the
2053 user's system, especially if it uses themes.
2055 The variant parameter is only relevant under Mac currently and is
2056 ignore under other platforms. Under Mac, it will change the size of
2057 the returned font. See `wx.Window.SetWindowVariant` for more about
2060 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2062 #---------------------------------------------------------------------------
2064 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2065 SP_VERTICAL
= _controls_
.SP_VERTICAL
2066 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2067 SP_WRAP
= _controls_
.SP_WRAP
2068 class SpinButton(_core
.Control
):
2070 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2071 def __init__(self
, *args
, **kwargs
):
2073 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2074 Size size=DefaultSize, long style=SP_HORIZONTAL,
2075 String name=SPIN_BUTTON_NAME) -> SpinButton
2077 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
2078 self
.this
= newobj
.this
2081 self
._setOORInfo
(self
)
2083 def Create(*args
, **kwargs
):
2085 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2086 Size size=DefaultSize, long style=SP_HORIZONTAL,
2087 String name=SPIN_BUTTON_NAME) -> bool
2089 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2091 def GetValue(*args
, **kwargs
):
2092 """GetValue(self) -> int"""
2093 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2095 def GetMin(*args
, **kwargs
):
2096 """GetMin(self) -> int"""
2097 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2099 def GetMax(*args
, **kwargs
):
2100 """GetMax(self) -> int"""
2101 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2103 def SetValue(*args
, **kwargs
):
2104 """SetValue(self, int val)"""
2105 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2107 def SetMin(*args
, **kwargs
):
2108 """SetMin(self, int minVal)"""
2109 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2111 def SetMax(*args
, **kwargs
):
2112 """SetMax(self, int maxVal)"""
2113 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2115 def SetRange(*args
, **kwargs
):
2116 """SetRange(self, int minVal, int maxVal)"""
2117 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2119 def IsVertical(*args
, **kwargs
):
2120 """IsVertical(self) -> bool"""
2121 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2123 def GetClassDefaultAttributes(*args
, **kwargs
):
2125 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2127 Get the default attributes for this class. This is useful if you want
2128 to use the same font or colour in your own control as in a standard
2129 control -- which is a much better idea than hard coding specific
2130 colours or fonts which might look completely out of place on the
2131 user's system, especially if it uses themes.
2133 The variant parameter is only relevant under Mac currently and is
2134 ignore under other platforms. Under Mac, it will change the size of
2135 the returned font. See `wx.Window.SetWindowVariant` for more about
2138 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2140 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2142 class SpinButtonPtr(SpinButton
):
2143 def __init__(self
, this
):
2145 if not hasattr(self
,"thisown"): self
.thisown
= 0
2146 self
.__class
__ = SpinButton
2147 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
2148 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2149 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2151 def PreSpinButton(*args
, **kwargs
):
2152 """PreSpinButton() -> SpinButton"""
2153 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2157 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2159 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2161 Get the default attributes for this class. This is useful if you want
2162 to use the same font or colour in your own control as in a standard
2163 control -- which is a much better idea than hard coding specific
2164 colours or fonts which might look completely out of place on the
2165 user's system, especially if it uses themes.
2167 The variant parameter is only relevant under Mac currently and is
2168 ignore under other platforms. Under Mac, it will change the size of
2169 the returned font. See `wx.Window.SetWindowVariant` for more about
2172 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2174 class SpinCtrl(_core
.Control
):
2176 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2177 def __init__(self
, *args
, **kwargs
):
2179 __init__(self, Window parent, int id=-1, String value=EmptyString,
2180 Point pos=DefaultPosition, Size size=DefaultSize,
2181 long style=SP_ARROW_KEYS, int min=0, int max=100,
2182 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2184 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
2185 self
.this
= newobj
.this
2188 self
._setOORInfo
(self
)
2190 def Create(*args
, **kwargs
):
2192 Create(self, Window parent, int id=-1, String value=EmptyString,
2193 Point pos=DefaultPosition, Size size=DefaultSize,
2194 long style=SP_ARROW_KEYS, int min=0, int max=100,
2195 int initial=0, String name=SpinCtrlNameStr) -> bool
2197 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2199 def GetValue(*args
, **kwargs
):
2200 """GetValue(self) -> int"""
2201 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2203 def SetValue(*args
, **kwargs
):
2204 """SetValue(self, int value)"""
2205 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2207 def SetValueString(*args
, **kwargs
):
2208 """SetValueString(self, String text)"""
2209 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2211 def SetRange(*args
, **kwargs
):
2212 """SetRange(self, int minVal, int maxVal)"""
2213 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2215 def GetMin(*args
, **kwargs
):
2216 """GetMin(self) -> int"""
2217 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2219 def GetMax(*args
, **kwargs
):
2220 """GetMax(self) -> int"""
2221 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2223 def SetSelection(*args
, **kwargs
):
2224 """SetSelection(self, long from, long to)"""
2225 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2227 def GetClassDefaultAttributes(*args
, **kwargs
):
2229 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2231 Get the default attributes for this class. This is useful if you want
2232 to use the same font or colour in your own control as in a standard
2233 control -- which is a much better idea than hard coding specific
2234 colours or fonts which might look completely out of place on the
2235 user's system, especially if it uses themes.
2237 The variant parameter is only relevant under Mac currently and is
2238 ignore under other platforms. Under Mac, it will change the size of
2239 the returned font. See `wx.Window.SetWindowVariant` for more about
2242 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2244 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2246 class SpinCtrlPtr(SpinCtrl
):
2247 def __init__(self
, this
):
2249 if not hasattr(self
,"thisown"): self
.thisown
= 0
2250 self
.__class
__ = SpinCtrl
2251 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
2253 def PreSpinCtrl(*args
, **kwargs
):
2254 """PreSpinCtrl() -> SpinCtrl"""
2255 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2259 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2261 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2263 Get the default attributes for this class. This is useful if you want
2264 to use the same font or colour in your own control as in a standard
2265 control -- which is a much better idea than hard coding specific
2266 colours or fonts which might look completely out of place on the
2267 user's system, especially if it uses themes.
2269 The variant parameter is only relevant under Mac currently and is
2270 ignore under other platforms. Under Mac, it will change the size of
2271 the returned font. See `wx.Window.SetWindowVariant` for more about
2274 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2276 class SpinEvent(_core
.NotifyEvent
):
2278 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2279 def __init__(self
, *args
, **kwargs
):
2280 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2281 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
2282 self
.this
= newobj
.this
2285 def GetPosition(*args
, **kwargs
):
2286 """GetPosition(self) -> int"""
2287 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2289 def SetPosition(*args
, **kwargs
):
2290 """SetPosition(self, int pos)"""
2291 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2294 class SpinEventPtr(SpinEvent
):
2295 def __init__(self
, this
):
2297 if not hasattr(self
,"thisown"): self
.thisown
= 0
2298 self
.__class
__ = SpinEvent
2299 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
2301 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2302 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2303 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2304 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2305 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2307 #---------------------------------------------------------------------------
2309 class RadioBox(_core
.Control
):
2311 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2312 def __init__(self
, *args
, **kwargs
):
2314 __init__(self, Window parent, int id=-1, String label=EmptyString,
2315 Point pos=DefaultPosition, Size size=DefaultSize,
2316 wxArrayString choices=wxPyEmptyStringArray,
2317 int majorDimension=0, long style=RA_HORIZONTAL,
2318 Validator validator=DefaultValidator,
2319 String name=RadioBoxNameStr) -> RadioBox
2321 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2322 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
2323 self
.this
= newobj
.this
2326 self
._setOORInfo
(self
)
2328 def Create(*args
, **kwargs
):
2330 Create(self, Window parent, int id=-1, String label=EmptyString,
2331 Point pos=DefaultPosition, Size size=DefaultSize,
2332 wxArrayString choices=wxPyEmptyStringArray,
2333 int majorDimension=0, long style=RA_HORIZONTAL,
2334 Validator validator=DefaultValidator,
2335 String name=RadioBoxNameStr) -> bool
2337 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2339 def SetSelection(*args
, **kwargs
):
2340 """SetSelection(self, int n)"""
2341 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2343 def GetSelection(*args
, **kwargs
):
2344 """GetSelection(self) -> int"""
2345 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2347 def GetStringSelection(*args
, **kwargs
):
2348 """GetStringSelection(self) -> String"""
2349 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2351 def SetStringSelection(*args
, **kwargs
):
2352 """SetStringSelection(self, String s) -> bool"""
2353 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2355 def GetCount(*args
, **kwargs
):
2356 """GetCount(self) -> int"""
2357 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2359 def FindString(*args
, **kwargs
):
2360 """FindString(self, String s) -> int"""
2361 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2363 def GetString(*args
, **kwargs
):
2364 """GetString(self, int n) -> String"""
2365 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2367 def SetString(*args
, **kwargs
):
2368 """SetString(self, int n, String label)"""
2369 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2371 GetItemLabel
= GetString
2372 SetItemLabel
= SetString
2373 def EnableItem(*args
, **kwargs
):
2374 """EnableItem(self, int n, bool enable=True)"""
2375 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2377 def ShowItem(*args
, **kwargs
):
2378 """ShowItem(self, int n, bool show=True)"""
2379 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2381 def GetColumnCount(*args
, **kwargs
):
2382 """GetColumnCount(self) -> int"""
2383 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2385 def GetRowCount(*args
, **kwargs
):
2386 """GetRowCount(self) -> int"""
2387 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2389 def GetNextItem(*args
, **kwargs
):
2390 """GetNextItem(self, int item, int dir, long style) -> int"""
2391 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2393 def GetClassDefaultAttributes(*args
, **kwargs
):
2395 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2397 Get the default attributes for this class. This is useful if you want
2398 to use the same font or colour in your own control as in a standard
2399 control -- which is a much better idea than hard coding specific
2400 colours or fonts which might look completely out of place on the
2401 user's system, especially if it uses themes.
2403 The variant parameter is only relevant under Mac currently and is
2404 ignore under other platforms. Under Mac, it will change the size of
2405 the returned font. See `wx.Window.SetWindowVariant` for more about
2408 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2410 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2412 class RadioBoxPtr(RadioBox
):
2413 def __init__(self
, this
):
2415 if not hasattr(self
,"thisown"): self
.thisown
= 0
2416 self
.__class
__ = RadioBox
2417 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2418 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2419 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2421 def PreRadioBox(*args
, **kwargs
):
2422 """PreRadioBox() -> RadioBox"""
2423 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2427 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2429 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2431 Get the default attributes for this class. This is useful if you want
2432 to use the same font or colour in your own control as in a standard
2433 control -- which is a much better idea than hard coding specific
2434 colours or fonts which might look completely out of place on the
2435 user's system, especially if it uses themes.
2437 The variant parameter is only relevant under Mac currently and is
2438 ignore under other platforms. Under Mac, it will change the size of
2439 the returned font. See `wx.Window.SetWindowVariant` for more about
2442 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2444 #---------------------------------------------------------------------------
2446 class RadioButton(_core
.Control
):
2448 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2449 def __init__(self
, *args
, **kwargs
):
2451 __init__(self, Window parent, int id=-1, String label=EmptyString,
2452 Point pos=DefaultPosition, Size size=DefaultSize,
2453 long style=0, Validator validator=DefaultValidator,
2454 String name=RadioButtonNameStr) -> RadioButton
2456 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2457 self
.this
= newobj
.this
2460 self
._setOORInfo
(self
)
2462 def Create(*args
, **kwargs
):
2464 Create(self, Window parent, int id=-1, String label=EmptyString,
2465 Point pos=DefaultPosition, Size size=DefaultSize,
2466 long style=0, Validator validator=DefaultValidator,
2467 String name=RadioButtonNameStr) -> bool
2469 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2471 def GetValue(*args
, **kwargs
):
2472 """GetValue(self) -> bool"""
2473 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2475 def SetValue(*args
, **kwargs
):
2476 """SetValue(self, bool value)"""
2477 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2479 def GetClassDefaultAttributes(*args
, **kwargs
):
2481 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2483 Get the default attributes for this class. This is useful if you want
2484 to use the same font or colour in your own control as in a standard
2485 control -- which is a much better idea than hard coding specific
2486 colours or fonts which might look completely out of place on the
2487 user's system, especially if it uses themes.
2489 The variant parameter is only relevant under Mac currently and is
2490 ignore under other platforms. Under Mac, it will change the size of
2491 the returned font. See `wx.Window.SetWindowVariant` for more about
2494 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2496 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2498 class RadioButtonPtr(RadioButton
):
2499 def __init__(self
, this
):
2501 if not hasattr(self
,"thisown"): self
.thisown
= 0
2502 self
.__class
__ = RadioButton
2503 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2505 def PreRadioButton(*args
, **kwargs
):
2506 """PreRadioButton() -> RadioButton"""
2507 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2511 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2513 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2515 Get the default attributes for this class. This is useful if you want
2516 to use the same font or colour in your own control as in a standard
2517 control -- which is a much better idea than hard coding specific
2518 colours or fonts which might look completely out of place on the
2519 user's system, especially if it uses themes.
2521 The variant parameter is only relevant under Mac currently and is
2522 ignore under other platforms. Under Mac, it will change the size of
2523 the returned font. See `wx.Window.SetWindowVariant` for more about
2526 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2528 #---------------------------------------------------------------------------
2530 class Slider(_core
.Control
):
2532 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2533 def __init__(self
, *args
, **kwargs
):
2535 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2536 int maxValue=100, Point pos=DefaultPosition,
2537 Size size=DefaultSize, long style=SL_HORIZONTAL,
2538 Validator validator=DefaultValidator,
2539 String name=SliderNameStr) -> Slider
2541 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2542 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2543 self
.this
= newobj
.this
2546 self
._setOORInfo
(self
)
2548 def Create(*args
, **kwargs
):
2550 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2551 int maxValue=100, Point pos=DefaultPosition,
2552 Size size=DefaultSize, long style=SL_HORIZONTAL,
2553 Validator validator=DefaultValidator,
2554 String name=SliderNameStr) -> bool
2556 return _controls_
.Slider_Create(*args
, **kwargs
)
2558 def GetValue(*args
, **kwargs
):
2559 """GetValue(self) -> int"""
2560 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2562 def SetValue(*args
, **kwargs
):
2563 """SetValue(self, int value)"""
2564 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2566 def SetRange(*args
, **kwargs
):
2567 """SetRange(self, int minValue, int maxValue)"""
2568 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2570 def GetMin(*args
, **kwargs
):
2571 """GetMin(self) -> int"""
2572 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2574 def GetMax(*args
, **kwargs
):
2575 """GetMax(self) -> int"""
2576 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2578 def SetMin(*args
, **kwargs
):
2579 """SetMin(self, int minValue)"""
2580 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2582 def SetMax(*args
, **kwargs
):
2583 """SetMax(self, int maxValue)"""
2584 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2586 def SetLineSize(*args
, **kwargs
):
2587 """SetLineSize(self, int lineSize)"""
2588 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2590 def SetPageSize(*args
, **kwargs
):
2591 """SetPageSize(self, int pageSize)"""
2592 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2594 def GetLineSize(*args
, **kwargs
):
2595 """GetLineSize(self) -> int"""
2596 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2598 def GetPageSize(*args
, **kwargs
):
2599 """GetPageSize(self) -> int"""
2600 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2602 def SetThumbLength(*args
, **kwargs
):
2603 """SetThumbLength(self, int lenPixels)"""
2604 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2606 def GetThumbLength(*args
, **kwargs
):
2607 """GetThumbLength(self) -> int"""
2608 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2610 def SetTickFreq(*args
, **kwargs
):
2611 """SetTickFreq(self, int n, int pos=1)"""
2612 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2614 def GetTickFreq(*args
, **kwargs
):
2615 """GetTickFreq(self) -> int"""
2616 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2618 def ClearTicks(*args
, **kwargs
):
2619 """ClearTicks(self)"""
2620 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2622 def SetTick(*args
, **kwargs
):
2623 """SetTick(self, int tickPos)"""
2624 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2626 def ClearSel(*args
, **kwargs
):
2627 """ClearSel(self)"""
2628 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2630 def GetSelEnd(*args
, **kwargs
):
2631 """GetSelEnd(self) -> int"""
2632 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2634 def GetSelStart(*args
, **kwargs
):
2635 """GetSelStart(self) -> int"""
2636 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2638 def SetSelection(*args
, **kwargs
):
2639 """SetSelection(self, int min, int max)"""
2640 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2642 def GetClassDefaultAttributes(*args
, **kwargs
):
2644 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2646 Get the default attributes for this class. This is useful if you want
2647 to use the same font or colour in your own control as in a standard
2648 control -- which is a much better idea than hard coding specific
2649 colours or fonts which might look completely out of place on the
2650 user's system, especially if it uses themes.
2652 The variant parameter is only relevant under Mac currently and is
2653 ignore under other platforms. Under Mac, it will change the size of
2654 the returned font. See `wx.Window.SetWindowVariant` for more about
2657 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2659 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2661 class SliderPtr(Slider
):
2662 def __init__(self
, this
):
2664 if not hasattr(self
,"thisown"): self
.thisown
= 0
2665 self
.__class
__ = Slider
2666 _controls_
.Slider_swigregister(SliderPtr
)
2667 SliderNameStr
= cvar
.SliderNameStr
2669 def PreSlider(*args
, **kwargs
):
2670 """PreSlider() -> Slider"""
2671 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2675 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2677 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2679 Get the default attributes for this class. This is useful if you want
2680 to use the same font or colour in your own control as in a standard
2681 control -- which is a much better idea than hard coding specific
2682 colours or fonts which might look completely out of place on the
2683 user's system, especially if it uses themes.
2685 The variant parameter is only relevant under Mac currently and is
2686 ignore under other platforms. Under Mac, it will change the size of
2687 the returned font. See `wx.Window.SetWindowVariant` for more about
2690 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2692 #---------------------------------------------------------------------------
2694 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2695 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2697 class ToggleButton(_core
.Control
):
2699 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2700 def __init__(self
, *args
, **kwargs
):
2702 __init__(self, Window parent, int id=-1, String label=EmptyString,
2703 Point pos=DefaultPosition, Size size=DefaultSize,
2704 long style=0, Validator validator=DefaultValidator,
2705 String name=ToggleButtonNameStr) -> ToggleButton
2707 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2708 self
.this
= newobj
.this
2711 self
._setOORInfo
(self
)
2713 def Create(*args
, **kwargs
):
2715 Create(self, Window parent, int id=-1, String label=EmptyString,
2716 Point pos=DefaultPosition, Size size=DefaultSize,
2717 long style=0, Validator validator=DefaultValidator,
2718 String name=ToggleButtonNameStr) -> bool
2720 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2722 def SetValue(*args
, **kwargs
):
2723 """SetValue(self, bool value)"""
2724 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2726 def GetValue(*args
, **kwargs
):
2727 """GetValue(self) -> bool"""
2728 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2730 def SetLabel(*args
, **kwargs
):
2732 SetLabel(self, String label)
2734 Sets the item's text.
2736 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2738 def GetClassDefaultAttributes(*args
, **kwargs
):
2740 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2742 Get the default attributes for this class. This is useful if you want
2743 to use the same font or colour in your own control as in a standard
2744 control -- which is a much better idea than hard coding specific
2745 colours or fonts which might look completely out of place on the
2746 user's system, especially if it uses themes.
2748 The variant parameter is only relevant under Mac currently and is
2749 ignore under other platforms. Under Mac, it will change the size of
2750 the returned font. See `wx.Window.SetWindowVariant` for more about
2753 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2755 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2757 class ToggleButtonPtr(ToggleButton
):
2758 def __init__(self
, this
):
2760 if not hasattr(self
,"thisown"): self
.thisown
= 0
2761 self
.__class
__ = ToggleButton
2762 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2763 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2765 def PreToggleButton(*args
, **kwargs
):
2766 """PreToggleButton() -> ToggleButton"""
2767 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2771 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2773 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2775 Get the default attributes for this class. This is useful if you want
2776 to use the same font or colour in your own control as in a standard
2777 control -- which is a much better idea than hard coding specific
2778 colours or fonts which might look completely out of place on the
2779 user's system, especially if it uses themes.
2781 The variant parameter is only relevant under Mac currently and is
2782 ignore under other platforms. Under Mac, it will change the size of
2783 the returned font. See `wx.Window.SetWindowVariant` for more about
2786 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2788 #---------------------------------------------------------------------------
2790 class BookCtrl(_core
.Control
):
2791 def __init__(self
): raise RuntimeError, "No constructor defined"
2793 return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2794 def GetPageCount(*args
, **kwargs
):
2795 """GetPageCount(self) -> size_t"""
2796 return _controls_
.BookCtrl_GetPageCount(*args
, **kwargs
)
2798 def GetPage(*args
, **kwargs
):
2799 """GetPage(self, size_t n) -> Window"""
2800 return _controls_
.BookCtrl_GetPage(*args
, **kwargs
)
2802 def GetSelection(*args
, **kwargs
):
2803 """GetSelection(self) -> int"""
2804 return _controls_
.BookCtrl_GetSelection(*args
, **kwargs
)
2806 def SetPageText(*args
, **kwargs
):
2807 """SetPageText(self, size_t n, String strText) -> bool"""
2808 return _controls_
.BookCtrl_SetPageText(*args
, **kwargs
)
2810 def GetPageText(*args
, **kwargs
):
2811 """GetPageText(self, size_t n) -> String"""
2812 return _controls_
.BookCtrl_GetPageText(*args
, **kwargs
)
2814 def SetImageList(*args
, **kwargs
):
2815 """SetImageList(self, ImageList imageList)"""
2816 return _controls_
.BookCtrl_SetImageList(*args
, **kwargs
)
2818 def AssignImageList(*args
, **kwargs
):
2819 """AssignImageList(self, ImageList imageList)"""
2820 return _controls_
.BookCtrl_AssignImageList(*args
, **kwargs
)
2822 def GetImageList(*args
, **kwargs
):
2823 """GetImageList(self) -> ImageList"""
2824 return _controls_
.BookCtrl_GetImageList(*args
, **kwargs
)
2826 def GetPageImage(*args
, **kwargs
):
2827 """GetPageImage(self, size_t n) -> int"""
2828 return _controls_
.BookCtrl_GetPageImage(*args
, **kwargs
)
2830 def SetPageImage(*args
, **kwargs
):
2831 """SetPageImage(self, size_t n, int imageId) -> bool"""
2832 return _controls_
.BookCtrl_SetPageImage(*args
, **kwargs
)
2834 def SetPageSize(*args
, **kwargs
):
2835 """SetPageSize(self, Size size)"""
2836 return _controls_
.BookCtrl_SetPageSize(*args
, **kwargs
)
2838 def CalcSizeFromPage(*args
, **kwargs
):
2839 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2840 return _controls_
.BookCtrl_CalcSizeFromPage(*args
, **kwargs
)
2842 def DeletePage(*args
, **kwargs
):
2843 """DeletePage(self, size_t n) -> bool"""
2844 return _controls_
.BookCtrl_DeletePage(*args
, **kwargs
)
2846 def RemovePage(*args
, **kwargs
):
2847 """RemovePage(self, size_t n) -> bool"""
2848 return _controls_
.BookCtrl_RemovePage(*args
, **kwargs
)
2850 def DeleteAllPages(*args
, **kwargs
):
2851 """DeleteAllPages(self) -> bool"""
2852 return _controls_
.BookCtrl_DeleteAllPages(*args
, **kwargs
)
2854 def AddPage(*args
, **kwargs
):
2855 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2856 return _controls_
.BookCtrl_AddPage(*args
, **kwargs
)
2858 def InsertPage(*args
, **kwargs
):
2860 InsertPage(self, size_t n, Window page, String text, bool select=False,
2861 int imageId=-1) -> bool
2863 return _controls_
.BookCtrl_InsertPage(*args
, **kwargs
)
2865 def SetSelection(*args
, **kwargs
):
2866 """SetSelection(self, size_t n) -> int"""
2867 return _controls_
.BookCtrl_SetSelection(*args
, **kwargs
)
2869 def AdvanceSelection(*args
, **kwargs
):
2870 """AdvanceSelection(self, bool forward=True)"""
2871 return _controls_
.BookCtrl_AdvanceSelection(*args
, **kwargs
)
2873 def GetClassDefaultAttributes(*args
, **kwargs
):
2875 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2877 Get the default attributes for this class. This is useful if you want
2878 to use the same font or colour in your own control as in a standard
2879 control -- which is a much better idea than hard coding specific
2880 colours or fonts which might look completely out of place on the
2881 user's system, especially if it uses themes.
2883 The variant parameter is only relevant under Mac currently and is
2884 ignore under other platforms. Under Mac, it will change the size of
2885 the returned font. See `wx.Window.SetWindowVariant` for more about
2888 return _controls_
.BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2890 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2892 class BookCtrlPtr(BookCtrl
):
2893 def __init__(self
, this
):
2895 if not hasattr(self
,"thisown"): self
.thisown
= 0
2896 self
.__class
__ = BookCtrl
2897 _controls_
.BookCtrl_swigregister(BookCtrlPtr
)
2898 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2900 def BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2902 BookCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2904 Get the default attributes for this class. This is useful if you want
2905 to use the same font or colour in your own control as in a standard
2906 control -- which is a much better idea than hard coding specific
2907 colours or fonts which might look completely out of place on the
2908 user's system, especially if it uses themes.
2910 The variant parameter is only relevant under Mac currently and is
2911 ignore under other platforms. Under Mac, it will change the size of
2912 the returned font. See `wx.Window.SetWindowVariant` for more about
2915 return _controls_
.BookCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2917 class BookCtrlEvent(_core
.NotifyEvent
):
2919 return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2920 def __init__(self
, *args
, **kwargs
):
2922 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2923 int nOldSel=-1) -> BookCtrlEvent
2925 newobj
= _controls_
.new_BookCtrlEvent(*args
, **kwargs
)
2926 self
.this
= newobj
.this
2929 def GetSelection(*args
, **kwargs
):
2930 """GetSelection(self) -> int"""
2931 return _controls_
.BookCtrlEvent_GetSelection(*args
, **kwargs
)
2933 def SetSelection(*args
, **kwargs
):
2934 """SetSelection(self, int nSel)"""
2935 return _controls_
.BookCtrlEvent_SetSelection(*args
, **kwargs
)
2937 def GetOldSelection(*args
, **kwargs
):
2938 """GetOldSelection(self) -> int"""
2939 return _controls_
.BookCtrlEvent_GetOldSelection(*args
, **kwargs
)
2941 def SetOldSelection(*args
, **kwargs
):
2942 """SetOldSelection(self, int nOldSel)"""
2943 return _controls_
.BookCtrlEvent_SetOldSelection(*args
, **kwargs
)
2946 class BookCtrlEventPtr(BookCtrlEvent
):
2947 def __init__(self
, this
):
2949 if not hasattr(self
,"thisown"): self
.thisown
= 0
2950 self
.__class
__ = BookCtrlEvent
2951 _controls_
.BookCtrlEvent_swigregister(BookCtrlEventPtr
)
2953 #---------------------------------------------------------------------------
2955 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2956 NB_TOP
= _controls_
.NB_TOP
2957 NB_LEFT
= _controls_
.NB_LEFT
2958 NB_RIGHT
= _controls_
.NB_RIGHT
2959 NB_BOTTOM
= _controls_
.NB_BOTTOM
2960 NB_MULTILINE
= _controls_
.NB_MULTILINE
2961 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2962 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2963 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2964 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2965 class Notebook(BookCtrl
):
2967 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2968 def __init__(self
, *args
, **kwargs
):
2970 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2971 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2973 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
2974 self
.this
= newobj
.this
2977 self
._setOORInfo
(self
)
2979 def Create(*args
, **kwargs
):
2981 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2982 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool
2984 return _controls_
.Notebook_Create(*args
, **kwargs
)
2986 def GetRowCount(*args
, **kwargs
):
2987 """GetRowCount(self) -> int"""
2988 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2990 def SetPadding(*args
, **kwargs
):
2991 """SetPadding(self, Size padding)"""
2992 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2994 def SetTabSize(*args
, **kwargs
):
2995 """SetTabSize(self, Size sz)"""
2996 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
2998 def HitTest(*args
, **kwargs
):
3000 HitTest(Point pt) -> (tab, where)
3002 Returns the tab which is hit, and flags indicating where using
3003 wx.NB_HITTEST flags.
3005 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3007 def CalcSizeFromPage(*args
, **kwargs
):
3008 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3009 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
3011 def ApplyThemeBackground(*args
, **kwargs
):
3012 """ApplyThemeBackground(self, Window window, Colour colour)"""
3013 return _controls_
.Notebook_ApplyThemeBackground(*args
, **kwargs
)
3015 def GetClassDefaultAttributes(*args
, **kwargs
):
3017 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3019 Get the default attributes for this class. This is useful if you want
3020 to use the same font or colour in your own control as in a standard
3021 control -- which is a much better idea than hard coding specific
3022 colours or fonts which might look completely out of place on the
3023 user's system, especially if it uses themes.
3025 The variant parameter is only relevant under Mac currently and is
3026 ignore under other platforms. Under Mac, it will change the size of
3027 the returned font. See `wx.Window.SetWindowVariant` for more about
3030 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3032 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3034 class NotebookPtr(Notebook
):
3035 def __init__(self
, this
):
3037 if not hasattr(self
,"thisown"): self
.thisown
= 0
3038 self
.__class
__ = Notebook
3039 _controls_
.Notebook_swigregister(NotebookPtr
)
3041 def PreNotebook(*args
, **kwargs
):
3042 """PreNotebook() -> Notebook"""
3043 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3047 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3049 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3051 Get the default attributes for this class. This is useful if you want
3052 to use the same font or colour in your own control as in a standard
3053 control -- which is a much better idea than hard coding specific
3054 colours or fonts which might look completely out of place on the
3055 user's system, especially if it uses themes.
3057 The variant parameter is only relevant under Mac currently and is
3058 ignore under other platforms. Under Mac, it will change the size of
3059 the returned font. See `wx.Window.SetWindowVariant` for more about
3062 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3064 class NotebookEvent(BookCtrlEvent
):
3066 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3067 def __init__(self
, *args
, **kwargs
):
3069 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3070 int nOldSel=-1) -> NotebookEvent
3072 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3073 self
.this
= newobj
.this
3077 class NotebookEventPtr(NotebookEvent
):
3078 def __init__(self
, this
):
3080 if not hasattr(self
,"thisown"): self
.thisown
= 0
3081 self
.__class
__ = NotebookEvent
3082 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3084 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3085 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3087 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3088 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3090 #----------------------------------------------------------------------------
3092 class NotebookPage(wx
.Panel
):
3094 There is an old (and apparently unsolvable) bug when placing a
3095 window with a nonstandard background colour in a wxNotebook on
3096 wxGTK, as the notbooks's background colour would always be used
3097 when the window is refreshed. The solution is to place a panel in
3098 the notbook and the coloured window on the panel, sized to cover
3099 the panel. This simple class does that for you, just put an
3100 instance of this in the notebook and make your regular window a
3101 child of this one and it will handle the resize for you.
3103 def __init__(self
, parent
, id=-1,
3104 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3105 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3106 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3108 EVT_SIZE(self
, self
.OnSize
)
3110 def OnSize(self
, evt
):
3111 if self
.child
is None:
3112 children
= self
.GetChildren()
3114 self
.child
= children
[0]
3116 self
.child
.SetPosition((0,0))
3117 self
.child
.SetSize(self
.GetSize())
3120 #---------------------------------------------------------------------------
3122 LB_DEFAULT
= _controls_
.LB_DEFAULT
3123 LB_TOP
= _controls_
.LB_TOP
3124 LB_BOTTOM
= _controls_
.LB_BOTTOM
3125 LB_LEFT
= _controls_
.LB_LEFT
3126 LB_RIGHT
= _controls_
.LB_RIGHT
3127 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3128 class Listbook(BookCtrl
):
3130 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3131 def __init__(self
, *args
, **kwargs
):
3133 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3134 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3136 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3137 self
.this
= newobj
.this
3140 self
._setOORInfo
(self
)
3142 def Create(*args
, **kwargs
):
3144 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3145 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3147 return _controls_
.Listbook_Create(*args
, **kwargs
)
3149 def IsVertical(*args
, **kwargs
):
3150 """IsVertical(self) -> bool"""
3151 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
3153 def GetListView(*args
, **kwargs
):
3154 """GetListView(self) -> ListView"""
3155 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3158 class ListbookPtr(Listbook
):
3159 def __init__(self
, this
):
3161 if not hasattr(self
,"thisown"): self
.thisown
= 0
3162 self
.__class
__ = Listbook
3163 _controls_
.Listbook_swigregister(ListbookPtr
)
3165 def PreListbook(*args
, **kwargs
):
3166 """PreListbook() -> Listbook"""
3167 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3171 class ListbookEvent(BookCtrlEvent
):
3173 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3174 def __init__(self
, *args
, **kwargs
):
3176 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3177 int nOldSel=-1) -> ListbookEvent
3179 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3180 self
.this
= newobj
.this
3184 class ListbookEventPtr(ListbookEvent
):
3185 def __init__(self
, this
):
3187 if not hasattr(self
,"thisown"): self
.thisown
= 0
3188 self
.__class
__ = ListbookEvent
3189 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3191 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3192 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3193 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3194 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3196 #---------------------------------------------------------------------------
3198 class BookCtrlSizer(_core
.Sizer
):
3200 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3201 def __init__(self
, *args
, **kwargs
):
3202 """__init__(self, BookCtrl nb) -> BookCtrlSizer"""
3203 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
3204 self
.this
= newobj
.this
3207 self
._setOORInfo
(self
)
3209 def RecalcSizes(*args
, **kwargs
):
3213 Using the sizes calculated by `CalcMin` reposition and resize all the
3214 items managed by this sizer. You should not need to call this directly as
3215 it is called by `Layout`.
3217 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
3219 def CalcMin(*args
, **kwargs
):
3221 CalcMin(self) -> Size
3223 This method is where the sizer will do the actual calculation of its
3224 children's minimal sizes. You should not need to call this directly as
3225 it is called by `Layout`.
3227 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
3229 def GetControl(*args
, **kwargs
):
3230 """GetControl(self) -> BookCtrl"""
3231 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
3234 class BookCtrlSizerPtr(BookCtrlSizer
):
3235 def __init__(self
, this
):
3237 if not hasattr(self
,"thisown"): self
.thisown
= 0
3238 self
.__class
__ = BookCtrlSizer
3239 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
3241 class NotebookSizer(_core
.Sizer
):
3243 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3244 def __init__(self
, *args
, **kwargs
):
3245 """__init__(self, Notebook nb) -> NotebookSizer"""
3246 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
3247 self
.this
= newobj
.this
3250 self
._setOORInfo
(self
)
3252 def RecalcSizes(*args
, **kwargs
):
3256 Using the sizes calculated by `CalcMin` reposition and resize all the
3257 items managed by this sizer. You should not need to call this directly as
3258 it is called by `Layout`.
3260 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
3262 def CalcMin(*args
, **kwargs
):
3264 CalcMin(self) -> Size
3266 This method is where the sizer will do the actual calculation of its
3267 children's minimal sizes. You should not need to call this directly as
3268 it is called by `Layout`.
3270 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
3272 def GetNotebook(*args
, **kwargs
):
3273 """GetNotebook(self) -> Notebook"""
3274 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
3277 class NotebookSizerPtr(NotebookSizer
):
3278 def __init__(self
, this
):
3280 if not hasattr(self
,"thisown"): self
.thisown
= 0
3281 self
.__class
__ = NotebookSizer
3282 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
3284 #---------------------------------------------------------------------------
3286 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3287 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3288 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3289 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3290 TB_VERTICAL
= _controls_
.TB_VERTICAL
3291 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3292 TB_FLAT
= _controls_
.TB_FLAT
3293 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3294 TB_NOICONS
= _controls_
.TB_NOICONS
3295 TB_TEXT
= _controls_
.TB_TEXT
3296 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3297 TB_NOALIGN
= _controls_
.TB_NOALIGN
3298 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3299 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3300 class ToolBarToolBase(_core
.Object
):
3301 def __init__(self
): raise RuntimeError, "No constructor defined"
3303 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3304 def GetId(*args
, **kwargs
):
3305 """GetId(self) -> int"""
3306 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3308 def GetControl(*args
, **kwargs
):
3309 """GetControl(self) -> Control"""
3310 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3312 def GetToolBar(*args
, **kwargs
):
3313 """GetToolBar(self) -> ToolBarBase"""
3314 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3316 def IsButton(*args
, **kwargs
):
3317 """IsButton(self) -> int"""
3318 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3320 def IsControl(*args
, **kwargs
):
3321 """IsControl(self) -> int"""
3322 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3324 def IsSeparator(*args
, **kwargs
):
3325 """IsSeparator(self) -> int"""
3326 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3328 def GetStyle(*args
, **kwargs
):
3329 """GetStyle(self) -> int"""
3330 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3332 def GetKind(*args
, **kwargs
):
3333 """GetKind(self) -> int"""
3334 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3336 def IsEnabled(*args
, **kwargs
):
3337 """IsEnabled(self) -> bool"""
3338 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3340 def IsToggled(*args
, **kwargs
):
3341 """IsToggled(self) -> bool"""
3342 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3344 def CanBeToggled(*args
, **kwargs
):
3345 """CanBeToggled(self) -> bool"""
3346 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3348 def GetNormalBitmap(*args
, **kwargs
):
3349 """GetNormalBitmap(self) -> Bitmap"""
3350 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3352 def GetDisabledBitmap(*args
, **kwargs
):
3353 """GetDisabledBitmap(self) -> Bitmap"""
3354 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3356 def GetBitmap(*args
, **kwargs
):
3357 """GetBitmap(self) -> Bitmap"""
3358 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3360 def GetLabel(*args
, **kwargs
):
3361 """GetLabel(self) -> String"""
3362 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3364 def GetShortHelp(*args
, **kwargs
):
3365 """GetShortHelp(self) -> String"""
3366 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3368 def GetLongHelp(*args
, **kwargs
):
3369 """GetLongHelp(self) -> String"""
3370 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3372 def Enable(*args
, **kwargs
):
3373 """Enable(self, bool enable) -> bool"""
3374 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3376 def Toggle(*args
, **kwargs
):
3378 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3380 def SetToggle(*args
, **kwargs
):
3381 """SetToggle(self, bool toggle) -> bool"""
3382 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3384 def SetShortHelp(*args
, **kwargs
):
3385 """SetShortHelp(self, String help) -> bool"""
3386 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3388 def SetLongHelp(*args
, **kwargs
):
3389 """SetLongHelp(self, String help) -> bool"""
3390 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3392 def SetNormalBitmap(*args
, **kwargs
):
3393 """SetNormalBitmap(self, Bitmap bmp)"""
3394 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3396 def SetDisabledBitmap(*args
, **kwargs
):
3397 """SetDisabledBitmap(self, Bitmap bmp)"""
3398 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3400 def SetLabel(*args
, **kwargs
):
3401 """SetLabel(self, String label)"""
3402 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3404 def Detach(*args
, **kwargs
):
3406 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3408 def Attach(*args
, **kwargs
):
3409 """Attach(self, ToolBarBase tbar)"""
3410 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3412 def GetClientData(*args
, **kwargs
):
3413 """GetClientData(self) -> PyObject"""
3414 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3416 def SetClientData(*args
, **kwargs
):
3417 """SetClientData(self, PyObject clientData)"""
3418 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3420 GetBitmap1
= GetNormalBitmap
3421 GetBitmap2
= GetDisabledBitmap
3422 SetBitmap1
= SetNormalBitmap
3423 SetBitmap2
= SetDisabledBitmap
3426 class ToolBarToolBasePtr(ToolBarToolBase
):
3427 def __init__(self
, this
):
3429 if not hasattr(self
,"thisown"): self
.thisown
= 0
3430 self
.__class
__ = ToolBarToolBase
3431 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3433 class ToolBarBase(_core
.Control
):
3434 def __init__(self
): raise RuntimeError, "No constructor defined"
3436 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3437 def DoAddTool(*args
, **kwargs
):
3439 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3440 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3441 String longHelp=EmptyString,
3442 PyObject clientData=None) -> ToolBarToolBase
3444 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3446 def DoInsertTool(*args
, **kwargs
):
3448 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3449 int kind=ITEM_NORMAL,
3450 String shortHelp=EmptyString, String longHelp=EmptyString,
3451 PyObject clientData=None) -> ToolBarToolBase
3453 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3455 # These match the original Add methods for this class, kept for
3456 # backwards compatibility with versions < 2.3.3.
3459 def AddTool(self
, id, bitmap
,
3460 pushedBitmap
= wx
.NullBitmap
,
3463 shortHelpString
= '',
3464 longHelpString
= '') :
3465 '''Old style method to add a tool to the toolbar.'''
3466 kind
= wx
.ITEM_NORMAL
3467 if isToggle
: kind
= wx
.ITEM_CHECK
3468 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3469 shortHelpString
, longHelpString
, clientData
)
3471 def AddSimpleTool(self
, id, bitmap
,
3472 shortHelpString
= '',
3473 longHelpString
= '',
3475 '''Old style method to add a tool to the toolbar.'''
3476 kind
= wx
.ITEM_NORMAL
3477 if isToggle
: kind
= wx
.ITEM_CHECK
3478 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3479 shortHelpString
, longHelpString
, None)
3481 def InsertTool(self
, pos
, id, bitmap
,
3482 pushedBitmap
= wx
.NullBitmap
,
3485 shortHelpString
= '',
3486 longHelpString
= ''):
3487 '''Old style method to insert a tool in the toolbar.'''
3488 kind
= wx
.ITEM_NORMAL
3489 if isToggle
: kind
= wx
.ITEM_CHECK
3490 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3491 shortHelpString
, longHelpString
, clientData
)
3493 def InsertSimpleTool(self
, pos
, id, bitmap
,
3494 shortHelpString
= '',
3495 longHelpString
= '',
3497 '''Old style method to insert a tool in the toolbar.'''
3498 kind
= wx
.ITEM_NORMAL
3499 if isToggle
: kind
= wx
.ITEM_CHECK
3500 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3501 shortHelpString
, longHelpString
, None)
3504 # The following are the new toolbar Add methods starting with
3505 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3506 # able to keep backwards compatibility with using the above
3507 # methods. Eventually these should migrate to be the methods used
3508 # primarily and lose the 'Label' in the name...
3510 def AddLabelTool(self
, id, label
, bitmap
,
3511 bmpDisabled
= wx
.NullBitmap
,
3512 kind
= wx
.ITEM_NORMAL
,
3513 shortHelp
= '', longHelp
= '',
3516 The full AddTool() function.
3518 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3519 is created and used as the disabled image.
3521 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3522 shortHelp
, longHelp
, clientData
)
3525 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3526 bmpDisabled
= wx
.NullBitmap
,
3527 kind
= wx
.ITEM_NORMAL
,
3528 shortHelp
= '', longHelp
= '',
3531 Insert the new tool at the given position, if pos == GetToolsCount(), it
3532 is equivalent to AddTool()
3534 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3535 shortHelp
, longHelp
, clientData
)
3537 def AddCheckLabelTool(self
, id, label
, bitmap
,
3538 bmpDisabled
= wx
.NullBitmap
,
3539 shortHelp
= '', longHelp
= '',
3541 '''Add a check tool, i.e. a tool which can be toggled'''
3542 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3543 shortHelp
, longHelp
, clientData
)
3545 def AddRadioLabelTool(self
, id, label
, bitmap
,
3546 bmpDisabled
= wx
.NullBitmap
,
3547 shortHelp
= '', longHelp
= '',
3550 Add a radio tool, i.e. a tool which can be toggled and releases any
3551 other toggled radio tools in the same group when it happens
3553 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3554 shortHelp
, longHelp
, clientData
)
3557 # For consistency with the backwards compatible methods above, here are
3558 # some non-'Label' versions of the Check and Radio methods
3560 def AddCheckTool(self
, id, bitmap
,
3561 bmpDisabled
= wx
.NullBitmap
,
3562 shortHelp
= '', longHelp
= '',
3564 '''Add a check tool, i.e. a tool which can be toggled'''
3565 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3566 shortHelp
, longHelp
, clientData
)
3568 def AddRadioTool(self
, id, bitmap
,
3569 bmpDisabled
= wx
.NullBitmap
,
3570 shortHelp
= '', longHelp
= '',
3573 Add a radio tool, i.e. a tool which can be toggled and releases any
3574 other toggled radio tools in the same group when it happens
3576 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3577 shortHelp
, longHelp
, clientData
)
3579 def AddToolItem(*args
, **kwargs
):
3580 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3581 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3583 def InsertToolItem(*args
, **kwargs
):
3584 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3585 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3587 def AddControl(*args
, **kwargs
):
3588 """AddControl(self, Control control) -> ToolBarToolBase"""
3589 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3591 def InsertControl(*args
, **kwargs
):
3592 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3593 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3595 def FindControl(*args
, **kwargs
):
3596 """FindControl(self, int id) -> Control"""
3597 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3599 def AddSeparator(*args
, **kwargs
):
3600 """AddSeparator(self) -> ToolBarToolBase"""
3601 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3603 def InsertSeparator(*args
, **kwargs
):
3604 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3605 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3607 def RemoveTool(*args
, **kwargs
):
3608 """RemoveTool(self, int id) -> ToolBarToolBase"""
3609 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3611 def DeleteToolByPos(*args
, **kwargs
):
3612 """DeleteToolByPos(self, size_t pos) -> bool"""
3613 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3615 def DeleteTool(*args
, **kwargs
):
3616 """DeleteTool(self, int id) -> bool"""
3617 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3619 def ClearTools(*args
, **kwargs
):
3620 """ClearTools(self)"""
3621 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3623 def Realize(*args
, **kwargs
):
3624 """Realize(self) -> bool"""
3625 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3627 def EnableTool(*args
, **kwargs
):
3628 """EnableTool(self, int id, bool enable)"""
3629 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3631 def ToggleTool(*args
, **kwargs
):
3632 """ToggleTool(self, int id, bool toggle)"""
3633 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3635 def SetToggle(*args
, **kwargs
):
3636 """SetToggle(self, int id, bool toggle)"""
3637 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3639 def GetToolClientData(*args
, **kwargs
):
3640 """GetToolClientData(self, int id) -> PyObject"""
3641 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3643 def SetToolClientData(*args
, **kwargs
):
3644 """SetToolClientData(self, int id, PyObject clientData)"""
3645 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3647 def GetToolPos(*args
, **kwargs
):
3648 """GetToolPos(self, int id) -> int"""
3649 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3651 def GetToolState(*args
, **kwargs
):
3652 """GetToolState(self, int id) -> bool"""
3653 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3655 def GetToolEnabled(*args
, **kwargs
):
3656 """GetToolEnabled(self, int id) -> bool"""
3657 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3659 def SetToolShortHelp(*args
, **kwargs
):
3660 """SetToolShortHelp(self, int id, String helpString)"""
3661 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3663 def GetToolShortHelp(*args
, **kwargs
):
3664 """GetToolShortHelp(self, int id) -> String"""
3665 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3667 def SetToolLongHelp(*args
, **kwargs
):
3668 """SetToolLongHelp(self, int id, String helpString)"""
3669 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3671 def GetToolLongHelp(*args
, **kwargs
):
3672 """GetToolLongHelp(self, int id) -> String"""
3673 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3675 def SetMarginsXY(*args
, **kwargs
):
3676 """SetMarginsXY(self, int x, int y)"""
3677 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3679 def SetMargins(*args
, **kwargs
):
3680 """SetMargins(self, Size size)"""
3681 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3683 def SetToolPacking(*args
, **kwargs
):
3684 """SetToolPacking(self, int packing)"""
3685 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3687 def SetToolSeparation(*args
, **kwargs
):
3688 """SetToolSeparation(self, int separation)"""
3689 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3691 def GetToolMargins(*args
, **kwargs
):
3692 """GetToolMargins(self) -> Size"""
3693 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3695 def GetMargins(*args
, **kwargs
):
3696 """GetMargins(self) -> Size"""
3697 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3699 def GetToolPacking(*args
, **kwargs
):
3700 """GetToolPacking(self) -> int"""
3701 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3703 def GetToolSeparation(*args
, **kwargs
):
3704 """GetToolSeparation(self) -> int"""
3705 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3707 def SetRows(*args
, **kwargs
):
3708 """SetRows(self, int nRows)"""
3709 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3711 def SetMaxRowsCols(*args
, **kwargs
):
3712 """SetMaxRowsCols(self, int rows, int cols)"""
3713 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3715 def GetMaxRows(*args
, **kwargs
):
3716 """GetMaxRows(self) -> int"""
3717 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3719 def GetMaxCols(*args
, **kwargs
):
3720 """GetMaxCols(self) -> int"""
3721 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3723 def SetToolBitmapSize(*args
, **kwargs
):
3724 """SetToolBitmapSize(self, Size size)"""
3725 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3727 def GetToolBitmapSize(*args
, **kwargs
):
3728 """GetToolBitmapSize(self) -> Size"""
3729 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3731 def GetToolSize(*args
, **kwargs
):
3732 """GetToolSize(self) -> Size"""
3733 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3735 def FindToolForPosition(*args
, **kwargs
):
3736 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3737 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3739 def FindById(*args
, **kwargs
):
3740 """FindById(self, int toolid) -> ToolBarToolBase"""
3741 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3743 def IsVertical(*args
, **kwargs
):
3744 """IsVertical(self) -> bool"""
3745 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3748 class ToolBarBasePtr(ToolBarBase
):
3749 def __init__(self
, this
):
3751 if not hasattr(self
,"thisown"): self
.thisown
= 0
3752 self
.__class
__ = ToolBarBase
3753 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3755 class ToolBar(ToolBarBase
):
3757 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3758 def __init__(self
, *args
, **kwargs
):
3760 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3761 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3762 String name=wxPyToolBarNameStr) -> ToolBar
3764 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3765 self
.this
= newobj
.this
3768 self
._setOORInfo
(self
)
3770 def Create(*args
, **kwargs
):
3772 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3773 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3774 String name=wxPyToolBarNameStr) -> bool
3776 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3778 def FindToolForPosition(*args
, **kwargs
):
3779 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3780 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3782 def GetClassDefaultAttributes(*args
, **kwargs
):
3784 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3786 Get the default attributes for this class. This is useful if you want
3787 to use the same font or colour in your own control as in a standard
3788 control -- which is a much better idea than hard coding specific
3789 colours or fonts which might look completely out of place on the
3790 user's system, especially if it uses themes.
3792 The variant parameter is only relevant under Mac currently and is
3793 ignore under other platforms. Under Mac, it will change the size of
3794 the returned font. See `wx.Window.SetWindowVariant` for more about
3797 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3799 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3801 class ToolBarPtr(ToolBar
):
3802 def __init__(self
, this
):
3804 if not hasattr(self
,"thisown"): self
.thisown
= 0
3805 self
.__class
__ = ToolBar
3806 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3808 def PreToolBar(*args
, **kwargs
):
3809 """PreToolBar() -> ToolBar"""
3810 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3814 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3816 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3818 Get the default attributes for this class. This is useful if you want
3819 to use the same font or colour in your own control as in a standard
3820 control -- which is a much better idea than hard coding specific
3821 colours or fonts which might look completely out of place on the
3822 user's system, especially if it uses themes.
3824 The variant parameter is only relevant under Mac currently and is
3825 ignore under other platforms. Under Mac, it will change the size of
3826 the returned font. See `wx.Window.SetWindowVariant` for more about
3829 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3831 #---------------------------------------------------------------------------
3833 LC_VRULES
= _controls_
.LC_VRULES
3834 LC_HRULES
= _controls_
.LC_HRULES
3835 LC_ICON
= _controls_
.LC_ICON
3836 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3837 LC_LIST
= _controls_
.LC_LIST
3838 LC_REPORT
= _controls_
.LC_REPORT
3839 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3840 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3841 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3842 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3843 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3844 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3845 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3846 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3847 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3848 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3849 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3850 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3851 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3852 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3853 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3854 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3855 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3856 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3857 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3858 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3859 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3860 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3861 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3862 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3863 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3864 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3865 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3866 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3867 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3868 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3869 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3870 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3871 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3872 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3873 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3874 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3875 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3876 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3877 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3878 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3879 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3880 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3881 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3882 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3883 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3884 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3885 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3886 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3887 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3888 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3889 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3890 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3891 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3892 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3893 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3894 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3895 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3896 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3897 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3898 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3899 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3900 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3901 #---------------------------------------------------------------------------
3903 class ListItemAttr(object):
3905 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3906 def __init__(self
, *args
, **kwargs
):
3908 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3909 Font font=wxNullFont) -> ListItemAttr
3911 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
3912 self
.this
= newobj
.this
3915 def SetTextColour(*args
, **kwargs
):
3916 """SetTextColour(self, Colour colText)"""
3917 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3919 def SetBackgroundColour(*args
, **kwargs
):
3920 """SetBackgroundColour(self, Colour colBack)"""
3921 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3923 def SetFont(*args
, **kwargs
):
3924 """SetFont(self, Font font)"""
3925 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3927 def HasTextColour(*args
, **kwargs
):
3928 """HasTextColour(self) -> bool"""
3929 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3931 def HasBackgroundColour(*args
, **kwargs
):
3932 """HasBackgroundColour(self) -> bool"""
3933 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3935 def HasFont(*args
, **kwargs
):
3936 """HasFont(self) -> bool"""
3937 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
3939 def GetTextColour(*args
, **kwargs
):
3940 """GetTextColour(self) -> Colour"""
3941 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
3943 def GetBackgroundColour(*args
, **kwargs
):
3944 """GetBackgroundColour(self) -> Colour"""
3945 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
3947 def GetFont(*args
, **kwargs
):
3948 """GetFont(self) -> Font"""
3949 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
3951 def Destroy(*args
, **kwargs
):
3953 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
3956 class ListItemAttrPtr(ListItemAttr
):
3957 def __init__(self
, this
):
3959 if not hasattr(self
,"thisown"): self
.thisown
= 0
3960 self
.__class
__ = ListItemAttr
3961 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
3962 ListCtrlNameStr
= cvar
.ListCtrlNameStr
3964 #---------------------------------------------------------------------------
3966 class ListItem(_core
.Object
):
3968 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3969 def __init__(self
, *args
, **kwargs
):
3970 """__init__(self) -> ListItem"""
3971 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
3972 self
.this
= newobj
.this
3975 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
3978 if self
.thisown
: destroy(self
)
3981 def Clear(*args
, **kwargs
):
3983 return _controls_
.ListItem_Clear(*args
, **kwargs
)
3985 def ClearAttributes(*args
, **kwargs
):
3986 """ClearAttributes(self)"""
3987 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
3989 def SetMask(*args
, **kwargs
):
3990 """SetMask(self, long mask)"""
3991 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
3993 def SetId(*args
, **kwargs
):
3994 """SetId(self, long id)"""
3995 return _controls_
.ListItem_SetId(*args
, **kwargs
)
3997 def SetColumn(*args
, **kwargs
):
3998 """SetColumn(self, int col)"""
3999 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4001 def SetState(*args
, **kwargs
):
4002 """SetState(self, long state)"""
4003 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4005 def SetStateMask(*args
, **kwargs
):
4006 """SetStateMask(self, long stateMask)"""
4007 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4009 def SetText(*args
, **kwargs
):
4010 """SetText(self, String text)"""
4011 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4013 def SetImage(*args
, **kwargs
):
4014 """SetImage(self, int image)"""
4015 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4017 def SetData(*args
, **kwargs
):
4018 """SetData(self, long data)"""
4019 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4021 def SetWidth(*args
, **kwargs
):
4022 """SetWidth(self, int width)"""
4023 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4025 def SetAlign(*args
, **kwargs
):
4026 """SetAlign(self, int align)"""
4027 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4029 def SetTextColour(*args
, **kwargs
):
4030 """SetTextColour(self, Colour colText)"""
4031 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4033 def SetBackgroundColour(*args
, **kwargs
):
4034 """SetBackgroundColour(self, Colour colBack)"""
4035 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4037 def SetFont(*args
, **kwargs
):
4038 """SetFont(self, Font font)"""
4039 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4041 def GetMask(*args
, **kwargs
):
4042 """GetMask(self) -> long"""
4043 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4045 def GetId(*args
, **kwargs
):
4046 """GetId(self) -> long"""
4047 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4049 def GetColumn(*args
, **kwargs
):
4050 """GetColumn(self) -> int"""
4051 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4053 def GetState(*args
, **kwargs
):
4054 """GetState(self) -> long"""
4055 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4057 def GetText(*args
, **kwargs
):
4058 """GetText(self) -> String"""
4059 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4061 def GetImage(*args
, **kwargs
):
4062 """GetImage(self) -> int"""
4063 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4065 def GetData(*args
, **kwargs
):
4066 """GetData(self) -> long"""
4067 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4069 def GetWidth(*args
, **kwargs
):
4070 """GetWidth(self) -> int"""
4071 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4073 def GetAlign(*args
, **kwargs
):
4074 """GetAlign(self) -> int"""
4075 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4077 def GetAttributes(*args
, **kwargs
):
4078 """GetAttributes(self) -> ListItemAttr"""
4079 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4081 def HasAttributes(*args
, **kwargs
):
4082 """HasAttributes(self) -> bool"""
4083 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4085 def GetTextColour(*args
, **kwargs
):
4086 """GetTextColour(self) -> Colour"""
4087 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4089 def GetBackgroundColour(*args
, **kwargs
):
4090 """GetBackgroundColour(self) -> Colour"""
4091 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4093 def GetFont(*args
, **kwargs
):
4094 """GetFont(self) -> Font"""
4095 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4097 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4098 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4099 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4100 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4101 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4102 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4103 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4104 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4105 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4106 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4108 class ListItemPtr(ListItem
):
4109 def __init__(self
, this
):
4111 if not hasattr(self
,"thisown"): self
.thisown
= 0
4112 self
.__class
__ = ListItem
4113 _controls_
.ListItem_swigregister(ListItemPtr
)
4115 #---------------------------------------------------------------------------
4117 class ListEvent(_core
.NotifyEvent
):
4119 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4120 def __init__(self
, *args
, **kwargs
):
4121 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4122 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4123 self
.this
= newobj
.this
4126 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4127 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4128 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4129 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4130 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4131 m_item
= property(_controls_
.ListEvent_m_item_get
)
4132 def GetKeyCode(*args
, **kwargs
):
4133 """GetKeyCode(self) -> int"""
4134 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4136 GetCode
= GetKeyCode
4137 def GetIndex(*args
, **kwargs
):
4138 """GetIndex(self) -> long"""
4139 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4141 def GetColumn(*args
, **kwargs
):
4142 """GetColumn(self) -> int"""
4143 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4145 def GetPoint(*args
, **kwargs
):
4146 """GetPoint(self) -> Point"""
4147 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4149 GetPosition
= GetPoint
4150 def GetLabel(*args
, **kwargs
):
4151 """GetLabel(self) -> String"""
4152 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4154 def GetText(*args
, **kwargs
):
4155 """GetText(self) -> String"""
4156 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4158 def GetImage(*args
, **kwargs
):
4159 """GetImage(self) -> int"""
4160 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4162 def GetData(*args
, **kwargs
):
4163 """GetData(self) -> long"""
4164 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4166 def GetMask(*args
, **kwargs
):
4167 """GetMask(self) -> long"""
4168 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4170 def GetItem(*args
, **kwargs
):
4171 """GetItem(self) -> ListItem"""
4172 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4174 def GetCacheFrom(*args
, **kwargs
):
4175 """GetCacheFrom(self) -> long"""
4176 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4178 def GetCacheTo(*args
, **kwargs
):
4179 """GetCacheTo(self) -> long"""
4180 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4182 def IsEditCancelled(*args
, **kwargs
):
4183 """IsEditCancelled(self) -> bool"""
4184 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4186 def SetEditCanceled(*args
, **kwargs
):
4187 """SetEditCanceled(self, bool editCancelled)"""
4188 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4191 class ListEventPtr(ListEvent
):
4192 def __init__(self
, this
):
4194 if not hasattr(self
,"thisown"): self
.thisown
= 0
4195 self
.__class
__ = ListEvent
4196 _controls_
.ListEvent_swigregister(ListEventPtr
)
4198 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4199 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4200 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4201 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4202 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4203 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4204 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
4205 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
4206 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4207 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4208 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4209 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4210 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4211 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4212 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4213 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4214 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4215 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4216 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4217 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4218 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4219 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4220 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4221 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4222 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4223 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4224 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4225 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4226 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
4227 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
4228 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4229 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4230 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4231 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4232 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4233 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4234 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4235 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4236 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4237 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4238 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4239 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4240 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4241 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4243 #---------------------------------------------------------------------------
4245 class ListCtrl(_core
.Control
):
4247 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4248 def __init__(self
, *args
, **kwargs
):
4250 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4251 Size size=DefaultSize, long style=LC_ICON,
4252 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4254 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4255 self
.this
= newobj
.this
4258 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4260 def Create(*args
, **kwargs
):
4262 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4263 Size size=DefaultSize, long style=LC_ICON,
4264 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4266 Do the 2nd phase and create the GUI control.
4268 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4270 def _setCallbackInfo(*args
, **kwargs
):
4271 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4272 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4274 def SetForegroundColour(*args
, **kwargs
):
4275 """SetForegroundColour(self, Colour col) -> bool"""
4276 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4278 def SetBackgroundColour(*args
, **kwargs
):
4279 """SetBackgroundColour(self, Colour col) -> bool"""
4280 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4282 def GetColumn(*args
, **kwargs
):
4283 """GetColumn(self, int col) -> ListItem"""
4284 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4285 if val
is not None: val
.thisown
= 1
4288 def SetColumn(*args
, **kwargs
):
4289 """SetColumn(self, int col, ListItem item) -> bool"""
4290 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4292 def GetColumnWidth(*args
, **kwargs
):
4293 """GetColumnWidth(self, int col) -> int"""
4294 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4296 def SetColumnWidth(*args
, **kwargs
):
4297 """SetColumnWidth(self, int col, int width) -> bool"""
4298 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4300 def GetCountPerPage(*args
, **kwargs
):
4301 """GetCountPerPage(self) -> int"""
4302 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4304 def GetViewRect(*args
, **kwargs
):
4305 """GetViewRect(self) -> Rect"""
4306 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4308 def GetEditControl(*args
, **kwargs
):
4309 """GetEditControl(self) -> TextCtrl"""
4310 return _controls_
.ListCtrl_GetEditControl(*args
, **kwargs
)
4312 def GetItem(*args
, **kwargs
):
4313 """GetItem(self, long itemId, int col=0) -> ListItem"""
4314 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4315 if val
is not None: val
.thisown
= 1
4318 def SetItem(*args
, **kwargs
):
4319 """SetItem(self, ListItem info) -> bool"""
4320 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4322 def SetStringItem(*args
, **kwargs
):
4323 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4324 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4326 def GetItemState(*args
, **kwargs
):
4327 """GetItemState(self, long item, long stateMask) -> int"""
4328 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4330 def SetItemState(*args
, **kwargs
):
4331 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4332 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4334 def SetItemImage(*args
, **kwargs
):
4335 """SetItemImage(self, long item, int image, int selImage) -> bool"""
4336 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4338 def GetItemText(*args
, **kwargs
):
4339 """GetItemText(self, long item) -> String"""
4340 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4342 def SetItemText(*args
, **kwargs
):
4343 """SetItemText(self, long item, String str)"""
4344 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4346 def GetItemData(*args
, **kwargs
):
4347 """GetItemData(self, long item) -> long"""
4348 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4350 def SetItemData(*args
, **kwargs
):
4351 """SetItemData(self, long item, long data) -> bool"""
4352 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4354 def GetItemPosition(*args
, **kwargs
):
4355 """GetItemPosition(self, long item) -> Point"""
4356 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4358 def GetItemRect(*args
, **kwargs
):
4359 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4360 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4362 def SetItemPosition(*args
, **kwargs
):
4363 """SetItemPosition(self, long item, Point pos) -> bool"""
4364 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4366 def GetItemCount(*args
, **kwargs
):
4367 """GetItemCount(self) -> int"""
4368 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4370 def GetColumnCount(*args
, **kwargs
):
4371 """GetColumnCount(self) -> int"""
4372 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4374 def GetItemSpacing(*args
, **kwargs
):
4375 """GetItemSpacing(self) -> Size"""
4376 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4378 def GetSelectedItemCount(*args
, **kwargs
):
4379 """GetSelectedItemCount(self) -> int"""
4380 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4382 def GetTextColour(*args
, **kwargs
):
4383 """GetTextColour(self) -> Colour"""
4384 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4386 def SetTextColour(*args
, **kwargs
):
4387 """SetTextColour(self, Colour col)"""
4388 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4390 def GetTopItem(*args
, **kwargs
):
4391 """GetTopItem(self) -> long"""
4392 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4394 def SetSingleStyle(*args
, **kwargs
):
4395 """SetSingleStyle(self, long style, bool add=True)"""
4396 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4398 def SetWindowStyleFlag(*args
, **kwargs
):
4400 SetWindowStyleFlag(self, long style)
4402 Sets the style of the window. Please note that some styles cannot be
4403 changed after the window creation and that Refresh() might need to be
4404 called after changing the others for the change to take place
4407 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4409 def GetNextItem(*args
, **kwargs
):
4410 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4411 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4413 def GetImageList(*args
, **kwargs
):
4414 """GetImageList(self, int which) -> ImageList"""
4415 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4417 def SetImageList(*args
, **kwargs
):
4418 """SetImageList(self, ImageList imageList, int which)"""
4419 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4421 def AssignImageList(*args
, **kwargs
):
4422 """AssignImageList(self, ImageList imageList, int which)"""
4423 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4425 def InReportView(*args
, **kwargs
):
4426 """InReportView(self) -> bool"""
4427 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4429 def IsVirtual(*args
, **kwargs
):
4430 """IsVirtual(self) -> bool"""
4431 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4433 def RefreshItem(*args
, **kwargs
):
4434 """RefreshItem(self, long item)"""
4435 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4437 def RefreshItems(*args
, **kwargs
):
4438 """RefreshItems(self, long itemFrom, long itemTo)"""
4439 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4441 def Arrange(*args
, **kwargs
):
4442 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4443 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4445 def DeleteItem(*args
, **kwargs
):
4446 """DeleteItem(self, long item) -> bool"""
4447 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4449 def DeleteAllItems(*args
, **kwargs
):
4450 """DeleteAllItems(self) -> bool"""
4451 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4453 def DeleteColumn(*args
, **kwargs
):
4454 """DeleteColumn(self, int col) -> bool"""
4455 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4457 def DeleteAllColumns(*args
, **kwargs
):
4458 """DeleteAllColumns(self) -> bool"""
4459 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4461 def ClearAll(*args
, **kwargs
):
4462 """ClearAll(self)"""
4463 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4465 def EditLabel(*args
, **kwargs
):
4466 """EditLabel(self, long item) -> TextCtrl"""
4467 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4469 def EndEditLabel(*args
, **kwargs
):
4470 """EndEditLabel(self, bool cancel) -> bool"""
4471 return _controls_
.ListCtrl_EndEditLabel(*args
, **kwargs
)
4473 def EnsureVisible(*args
, **kwargs
):
4474 """EnsureVisible(self, long item) -> bool"""
4475 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4477 def FindItem(*args
, **kwargs
):
4478 """FindItem(self, long start, String str, bool partial=False) -> long"""
4479 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4481 def FindItemData(*args
, **kwargs
):
4482 """FindItemData(self, long start, long data) -> long"""
4483 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4485 def FindItemAtPos(*args
, **kwargs
):
4486 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4487 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4489 def HitTest(*args
, **kwargs
):
4491 HitTest(Point point) -> (item, where)
4493 Determines which item (if any) is at the specified point, giving
4494 in the second return value (see wxLIST_HITTEST_... flags.)
4496 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4498 def InsertItem(*args
, **kwargs
):
4499 """InsertItem(self, ListItem info) -> long"""
4500 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4502 def InsertStringItem(*args
, **kwargs
):
4503 """InsertStringItem(self, long index, String label) -> long"""
4504 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4506 def InsertImageItem(*args
, **kwargs
):
4507 """InsertImageItem(self, long index, int imageIndex) -> long"""
4508 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4510 def InsertImageStringItem(*args
, **kwargs
):
4511 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4512 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4514 def InsertColumnInfo(*args
, **kwargs
):
4515 """InsertColumnInfo(self, long col, ListItem info) -> long"""
4516 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
4518 def InsertColumn(*args
, **kwargs
):
4520 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4521 int width=-1) -> long
4523 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4525 def SetItemCount(*args
, **kwargs
):
4526 """SetItemCount(self, long count)"""
4527 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4529 def ScrollList(*args
, **kwargs
):
4530 """ScrollList(self, int dx, int dy) -> bool"""
4531 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4533 def SetItemTextColour(*args
, **kwargs
):
4534 """SetItemTextColour(self, long item, Colour col)"""
4535 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4537 def GetItemTextColour(*args
, **kwargs
):
4538 """GetItemTextColour(self, long item) -> Colour"""
4539 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4541 def SetItemBackgroundColour(*args
, **kwargs
):
4542 """SetItemBackgroundColour(self, long item, Colour col)"""
4543 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4545 def GetItemBackgroundColour(*args
, **kwargs
):
4546 """GetItemBackgroundColour(self, long item) -> Colour"""
4547 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4551 def Select(self
, idx
, on
=1):
4552 '''[de]select an item'''
4553 if on
: state
= wx
.LIST_STATE_SELECTED
4555 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4557 def Focus(self
, idx
):
4558 '''Focus and show the given item'''
4559 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4560 self
.EnsureVisible(idx
)
4562 def GetFocusedItem(self
):
4563 '''get the currently focused item or -1 if none'''
4564 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4566 def GetFirstSelected(self
, *args
):
4567 '''return first selected item, or -1 when none'''
4568 return self
.GetNextSelected(-1)
4570 def GetNextSelected(self
, item
):
4571 '''return subsequent selected items, or -1 when no more'''
4572 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4574 def IsSelected(self
, idx
):
4575 '''return True if the item is selected'''
4576 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
4578 def SetColumnImage(self
, col
, image
):
4579 item
= self
.GetColumn(col
)
4580 # preserve all other attributes too
4581 item
.SetMask( wx
.LIST_MASK_STATE |
4583 wx
.LIST_MASK_IMAGE |
4586 wx
.LIST_MASK_WIDTH |
4587 wx
.LIST_MASK_FORMAT
)
4588 item
.SetImage(image
)
4589 self
.SetColumn(col
, item
)
4591 def ClearColumnImage(self
, col
):
4592 self
.SetColumnImage(col
, -1)
4594 def Append(self
, entry
):
4595 '''Append an item to the list control. The entry parameter should be a
4596 sequence with an item for each column'''
4602 pos
= self
.GetItemCount()
4603 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4604 for i
in range(1, len(entry
)):
4605 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4608 def SortItems(*args
, **kwargs
):
4609 """SortItems(self, PyObject func) -> bool"""
4610 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4612 def GetMainWindow(*args
, **kwargs
):
4613 """GetMainWindow(self) -> Window"""
4614 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4616 def GetClassDefaultAttributes(*args
, **kwargs
):
4618 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4620 Get the default attributes for this class. This is useful if you want
4621 to use the same font or colour in your own control as in a standard
4622 control -- which is a much better idea than hard coding specific
4623 colours or fonts which might look completely out of place on the
4624 user's system, especially if it uses themes.
4626 The variant parameter is only relevant under Mac currently and is
4627 ignore under other platforms. Under Mac, it will change the size of
4628 the returned font. See `wx.Window.SetWindowVariant` for more about
4631 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4633 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4635 class ListCtrlPtr(ListCtrl
):
4636 def __init__(self
, this
):
4638 if not hasattr(self
,"thisown"): self
.thisown
= 0
4639 self
.__class
__ = ListCtrl
4640 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
4642 def PreListCtrl(*args
, **kwargs
):
4643 """PreListCtrl() -> ListCtrl"""
4644 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4648 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4650 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4652 Get the default attributes for this class. This is useful if you want
4653 to use the same font or colour in your own control as in a standard
4654 control -- which is a much better idea than hard coding specific
4655 colours or fonts which might look completely out of place on the
4656 user's system, especially if it uses themes.
4658 The variant parameter is only relevant under Mac currently and is
4659 ignore under other platforms. Under Mac, it will change the size of
4660 the returned font. See `wx.Window.SetWindowVariant` for more about
4663 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4665 #---------------------------------------------------------------------------
4667 class ListView(ListCtrl
):
4669 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4670 def __init__(self
, *args
, **kwargs
):
4672 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4673 Size size=DefaultSize, long style=LC_REPORT,
4674 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4676 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
4677 self
.this
= newobj
.this
4680 self
._setOORInfo
(self
)
4682 def Create(*args
, **kwargs
):
4684 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4685 Size size=DefaultSize, long style=LC_REPORT,
4686 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4688 Do the 2nd phase and create the GUI control.
4690 return _controls_
.ListView_Create(*args
, **kwargs
)
4692 def Select(*args
, **kwargs
):
4693 """Select(self, long n, bool on=True)"""
4694 return _controls_
.ListView_Select(*args
, **kwargs
)
4696 def Focus(*args
, **kwargs
):
4697 """Focus(self, long index)"""
4698 return _controls_
.ListView_Focus(*args
, **kwargs
)
4700 def GetFocusedItem(*args
, **kwargs
):
4701 """GetFocusedItem(self) -> long"""
4702 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4704 def GetNextSelected(*args
, **kwargs
):
4705 """GetNextSelected(self, long item) -> long"""
4706 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4708 def GetFirstSelected(*args
, **kwargs
):
4709 """GetFirstSelected(self) -> long"""
4710 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4712 def IsSelected(*args
, **kwargs
):
4713 """IsSelected(self, long index) -> bool"""
4714 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4716 def SetColumnImage(*args
, **kwargs
):
4717 """SetColumnImage(self, int col, int image)"""
4718 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4720 def ClearColumnImage(*args
, **kwargs
):
4721 """ClearColumnImage(self, int col)"""
4722 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4725 class ListViewPtr(ListView
):
4726 def __init__(self
, this
):
4728 if not hasattr(self
,"thisown"): self
.thisown
= 0
4729 self
.__class
__ = ListView
4730 _controls_
.ListView_swigregister(ListViewPtr
)
4732 def PreListView(*args
, **kwargs
):
4733 """PreListView() -> ListView"""
4734 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4738 #---------------------------------------------------------------------------
4740 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4741 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4742 TR_NO_LINES
= _controls_
.TR_NO_LINES
4743 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4744 TR_SINGLE
= _controls_
.TR_SINGLE
4745 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4746 TR_EXTENDED
= _controls_
.TR_EXTENDED
4747 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4748 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4749 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4750 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4751 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4752 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4753 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4754 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
4755 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
4756 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4757 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4758 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4759 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4760 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4761 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4762 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4763 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4764 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4765 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4766 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4767 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4768 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4769 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4770 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4771 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4772 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4773 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4774 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4775 #---------------------------------------------------------------------------
4777 class TreeItemId(object):
4779 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4780 def __init__(self
, *args
, **kwargs
):
4781 """__init__(self) -> TreeItemId"""
4782 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
4783 self
.this
= newobj
.this
4786 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
4789 if self
.thisown
: destroy(self
)
4792 def IsOk(*args
, **kwargs
):
4793 """IsOk(self) -> bool"""
4794 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4796 def __eq__(*args
, **kwargs
):
4797 """__eq__(self, TreeItemId other) -> bool"""
4798 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4800 def __ne__(*args
, **kwargs
):
4801 """__ne__(self, TreeItemId other) -> bool"""
4802 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4804 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4806 def __nonzero__(self
): return self
.IsOk()
4808 class TreeItemIdPtr(TreeItemId
):
4809 def __init__(self
, this
):
4811 if not hasattr(self
,"thisown"): self
.thisown
= 0
4812 self
.__class
__ = TreeItemId
4813 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
4814 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4816 class TreeItemData(object):
4818 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4819 def __init__(self
, *args
, **kwargs
):
4820 """__init__(self, PyObject obj=None) -> TreeItemData"""
4821 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
4822 self
.this
= newobj
.this
4825 def GetData(*args
, **kwargs
):
4826 """GetData(self) -> PyObject"""
4827 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4829 def SetData(*args
, **kwargs
):
4830 """SetData(self, PyObject obj)"""
4831 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4833 def GetId(*args
, **kwargs
):
4834 """GetId(self) -> TreeItemId"""
4835 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4837 def SetId(*args
, **kwargs
):
4838 """SetId(self, TreeItemId id)"""
4839 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4841 def Destroy(*args
, **kwargs
):
4843 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4846 class TreeItemDataPtr(TreeItemData
):
4847 def __init__(self
, this
):
4849 if not hasattr(self
,"thisown"): self
.thisown
= 0
4850 self
.__class
__ = TreeItemData
4851 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
4853 #---------------------------------------------------------------------------
4855 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4856 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4857 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4858 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4859 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4860 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4861 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4862 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4863 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4864 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4865 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4866 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4867 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4868 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4869 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4870 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4871 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4872 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4873 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4874 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4875 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4876 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4877 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4878 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4879 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4880 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4881 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4882 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4883 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4884 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4885 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4886 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4887 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4888 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4889 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4890 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4891 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4892 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4893 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4894 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4896 class TreeEvent(_core
.NotifyEvent
):
4898 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4899 def __init__(self
, *args
, **kwargs
):
4900 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4901 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
4902 self
.this
= newobj
.this
4905 def GetItem(*args
, **kwargs
):
4906 """GetItem(self) -> TreeItemId"""
4907 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4909 def SetItem(*args
, **kwargs
):
4910 """SetItem(self, TreeItemId item)"""
4911 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4913 def GetOldItem(*args
, **kwargs
):
4914 """GetOldItem(self) -> TreeItemId"""
4915 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4917 def SetOldItem(*args
, **kwargs
):
4918 """SetOldItem(self, TreeItemId item)"""
4919 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4921 def GetPoint(*args
, **kwargs
):
4922 """GetPoint(self) -> Point"""
4923 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4925 def SetPoint(*args
, **kwargs
):
4926 """SetPoint(self, Point pt)"""
4927 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4929 def GetKeyEvent(*args
, **kwargs
):
4930 """GetKeyEvent(self) -> KeyEvent"""
4931 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4933 def GetKeyCode(*args
, **kwargs
):
4934 """GetKeyCode(self) -> int"""
4935 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4937 def SetKeyEvent(*args
, **kwargs
):
4938 """SetKeyEvent(self, KeyEvent evt)"""
4939 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4941 def GetLabel(*args
, **kwargs
):
4942 """GetLabel(self) -> String"""
4943 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4945 def SetLabel(*args
, **kwargs
):
4946 """SetLabel(self, String label)"""
4947 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4949 def IsEditCancelled(*args
, **kwargs
):
4950 """IsEditCancelled(self) -> bool"""
4951 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
4953 def SetEditCanceled(*args
, **kwargs
):
4954 """SetEditCanceled(self, bool editCancelled)"""
4955 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
4957 def SetToolTip(*args
, **kwargs
):
4958 """SetToolTip(self, String toolTip)"""
4959 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
4962 class TreeEventPtr(TreeEvent
):
4963 def __init__(self
, this
):
4965 if not hasattr(self
,"thisown"): self
.thisown
= 0
4966 self
.__class
__ = TreeEvent
4967 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
4969 #---------------------------------------------------------------------------
4971 class TreeCtrl(_core
.Control
):
4973 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4974 def __init__(self
, *args
, **kwargs
):
4976 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4977 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4978 Validator validator=DefaultValidator,
4979 String name=TreeCtrlNameStr) -> TreeCtrl
4981 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
4982 self
.this
= newobj
.this
4985 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
4987 def Create(*args
, **kwargs
):
4989 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4990 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
4991 Validator validator=DefaultValidator,
4992 String name=TreeCtrlNameStr) -> bool
4994 Do the 2nd phase and create the GUI control.
4996 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
4998 def _setCallbackInfo(*args
, **kwargs
):
4999 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5000 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5002 def GetCount(*args
, **kwargs
):
5003 """GetCount(self) -> size_t"""
5004 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5006 def GetIndent(*args
, **kwargs
):
5007 """GetIndent(self) -> unsigned int"""
5008 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5010 def SetIndent(*args
, **kwargs
):
5011 """SetIndent(self, unsigned int indent)"""
5012 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5014 def GetSpacing(*args
, **kwargs
):
5015 """GetSpacing(self) -> unsigned int"""
5016 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5018 def SetSpacing(*args
, **kwargs
):
5019 """SetSpacing(self, unsigned int spacing)"""
5020 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5022 def GetImageList(*args
, **kwargs
):
5023 """GetImageList(self) -> ImageList"""
5024 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5026 def GetStateImageList(*args
, **kwargs
):
5027 """GetStateImageList(self) -> ImageList"""
5028 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5030 def SetImageList(*args
, **kwargs
):
5031 """SetImageList(self, ImageList imageList)"""
5032 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5034 def SetStateImageList(*args
, **kwargs
):
5035 """SetStateImageList(self, ImageList imageList)"""
5036 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5038 def AssignImageList(*args
, **kwargs
):
5039 """AssignImageList(self, ImageList imageList)"""
5040 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5042 def AssignStateImageList(*args
, **kwargs
):
5043 """AssignStateImageList(self, ImageList imageList)"""
5044 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5046 def GetItemText(*args
, **kwargs
):
5047 """GetItemText(self, TreeItemId item) -> String"""
5048 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5050 def GetItemImage(*args
, **kwargs
):
5051 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5052 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5054 def GetItemData(*args
, **kwargs
):
5055 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5056 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5058 def GetItemPyData(*args
, **kwargs
):
5059 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5060 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5062 GetPyData
= GetItemPyData
5063 def GetItemTextColour(*args
, **kwargs
):
5064 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5065 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5067 def GetItemBackgroundColour(*args
, **kwargs
):
5068 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5069 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5071 def GetItemFont(*args
, **kwargs
):
5072 """GetItemFont(self, TreeItemId item) -> Font"""
5073 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5075 def SetItemText(*args
, **kwargs
):
5076 """SetItemText(self, TreeItemId item, String text)"""
5077 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5079 def SetItemImage(*args
, **kwargs
):
5080 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5081 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5083 def SetItemData(*args
, **kwargs
):
5084 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5085 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5087 def SetItemPyData(*args
, **kwargs
):
5088 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5089 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5091 SetPyData
= SetItemPyData
5092 def SetItemHasChildren(*args
, **kwargs
):
5093 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5094 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5096 def SetItemBold(*args
, **kwargs
):
5097 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5098 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5100 def SetItemDropHighlight(*args
, **kwargs
):
5101 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5102 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5104 def SetItemTextColour(*args
, **kwargs
):
5105 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5106 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5108 def SetItemBackgroundColour(*args
, **kwargs
):
5109 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5110 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5112 def SetItemFont(*args
, **kwargs
):
5113 """SetItemFont(self, TreeItemId item, Font font)"""
5114 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5116 def IsVisible(*args
, **kwargs
):
5117 """IsVisible(self, TreeItemId item) -> bool"""
5118 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5120 def ItemHasChildren(*args
, **kwargs
):
5121 """ItemHasChildren(self, TreeItemId item) -> bool"""
5122 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5124 def IsExpanded(*args
, **kwargs
):
5125 """IsExpanded(self, TreeItemId item) -> bool"""
5126 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5128 def IsSelected(*args
, **kwargs
):
5129 """IsSelected(self, TreeItemId item) -> bool"""
5130 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5132 def IsBold(*args
, **kwargs
):
5133 """IsBold(self, TreeItemId item) -> bool"""
5134 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5136 def GetChildrenCount(*args
, **kwargs
):
5137 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5138 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5140 def GetRootItem(*args
, **kwargs
):
5141 """GetRootItem(self) -> TreeItemId"""
5142 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5144 def GetSelection(*args
, **kwargs
):
5145 """GetSelection(self) -> TreeItemId"""
5146 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5148 def GetSelections(*args
, **kwargs
):
5149 """GetSelections(self) -> PyObject"""
5150 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5152 def GetItemParent(*args
, **kwargs
):
5153 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5154 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5156 def GetFirstChild(*args
, **kwargs
):
5157 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5158 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5160 def GetNextChild(*args
, **kwargs
):
5161 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5162 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5164 def GetLastChild(*args
, **kwargs
):
5165 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5166 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5168 def GetNextSibling(*args
, **kwargs
):
5169 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5170 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5172 def GetPrevSibling(*args
, **kwargs
):
5173 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5174 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5176 def GetFirstVisibleItem(*args
, **kwargs
):
5177 """GetFirstVisibleItem(self) -> TreeItemId"""
5178 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5180 def GetNextVisible(*args
, **kwargs
):
5181 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5182 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5184 def GetPrevVisible(*args
, **kwargs
):
5185 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5186 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5188 def AddRoot(*args
, **kwargs
):
5189 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5190 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5192 def PrependItem(*args
, **kwargs
):
5194 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5195 TreeItemData data=None) -> TreeItemId
5197 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5199 def InsertItem(*args
, **kwargs
):
5201 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5202 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5204 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5206 def InsertItemBefore(*args
, **kwargs
):
5208 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5209 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5211 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5213 def AppendItem(*args
, **kwargs
):
5215 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5216 TreeItemData data=None) -> TreeItemId
5218 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5220 def Delete(*args
, **kwargs
):
5221 """Delete(self, TreeItemId item)"""
5222 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5224 def DeleteChildren(*args
, **kwargs
):
5225 """DeleteChildren(self, TreeItemId item)"""
5226 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5228 def DeleteAllItems(*args
, **kwargs
):
5229 """DeleteAllItems(self)"""
5230 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5232 def Expand(*args
, **kwargs
):
5233 """Expand(self, TreeItemId item)"""
5234 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5236 def Collapse(*args
, **kwargs
):
5237 """Collapse(self, TreeItemId item)"""
5238 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5240 def CollapseAndReset(*args
, **kwargs
):
5241 """CollapseAndReset(self, TreeItemId item)"""
5242 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5244 def Toggle(*args
, **kwargs
):
5245 """Toggle(self, TreeItemId item)"""
5246 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5248 def Unselect(*args
, **kwargs
):
5249 """Unselect(self)"""
5250 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5252 def UnselectItem(*args
, **kwargs
):
5253 """UnselectItem(self, TreeItemId item)"""
5254 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5256 def UnselectAll(*args
, **kwargs
):
5257 """UnselectAll(self)"""
5258 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5260 def SelectItem(*args
, **kwargs
):
5261 """SelectItem(self, TreeItemId item, bool select=True)"""
5262 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5264 def ToggleItemSelection(*args
, **kwargs
):
5265 """ToggleItemSelection(self, TreeItemId item)"""
5266 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5268 def EnsureVisible(*args
, **kwargs
):
5269 """EnsureVisible(self, TreeItemId item)"""
5270 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5272 def ScrollTo(*args
, **kwargs
):
5273 """ScrollTo(self, TreeItemId item)"""
5274 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5276 def EditLabel(*args
, **kwargs
):
5277 """EditLabel(self, TreeItemId item)"""
5278 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5280 def GetEditControl(*args
, **kwargs
):
5281 """GetEditControl(self) -> TextCtrl"""
5282 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5284 def EndEditLabel(*args
, **kwargs
):
5285 """EndEditLabel(self, TreeItemId item, bool discardChanges=False)"""
5286 return _controls_
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
5288 def SortChildren(*args
, **kwargs
):
5289 """SortChildren(self, TreeItemId item)"""
5290 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5292 def HitTest(*args
, **kwargs
):
5294 HitTest(Point point) -> (item, where)
5296 Determine which item (if any) belongs the given point. The coordinates
5297 specified are relative to the client area of tree ctrl and the where return
5298 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5301 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5303 def GetBoundingRect(*args
, **kwargs
):
5304 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5305 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5307 def SetState(*args
, **kwargs
):
5308 """SetState(self, TreeItemId node, int state)"""
5309 return _controls_
.TreeCtrl_SetState(*args
, **kwargs
)
5311 def GetState(*args
, **kwargs
):
5312 """GetState(self, TreeItemId node) -> int"""
5313 return _controls_
.TreeCtrl_GetState(*args
, **kwargs
)
5315 def GetClassDefaultAttributes(*args
, **kwargs
):
5317 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5319 Get the default attributes for this class. This is useful if you want
5320 to use the same font or colour in your own control as in a standard
5321 control -- which is a much better idea than hard coding specific
5322 colours or fonts which might look completely out of place on the
5323 user's system, especially if it uses themes.
5325 The variant parameter is only relevant under Mac currently and is
5326 ignore under other platforms. Under Mac, it will change the size of
5327 the returned font. See `wx.Window.SetWindowVariant` for more about
5330 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5332 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5334 class TreeCtrlPtr(TreeCtrl
):
5335 def __init__(self
, this
):
5337 if not hasattr(self
,"thisown"): self
.thisown
= 0
5338 self
.__class
__ = TreeCtrl
5339 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5341 def PreTreeCtrl(*args
, **kwargs
):
5342 """PreTreeCtrl() -> TreeCtrl"""
5343 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5347 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5349 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5351 Get the default attributes for this class. This is useful if you want
5352 to use the same font or colour in your own control as in a standard
5353 control -- which is a much better idea than hard coding specific
5354 colours or fonts which might look completely out of place on the
5355 user's system, especially if it uses themes.
5357 The variant parameter is only relevant under Mac currently and is
5358 ignore under other platforms. Under Mac, it will change the size of
5359 the returned font. See `wx.Window.SetWindowVariant` for more about
5362 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5364 #---------------------------------------------------------------------------
5366 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5367 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5368 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5369 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5370 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5371 class GenericDirCtrl(_core
.Control
):
5373 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5374 def __init__(self
, *args
, **kwargs
):
5376 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5377 Point pos=DefaultPosition, Size size=DefaultSize,
5378 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5379 String filter=EmptyString,
5380 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5382 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5383 self
.this
= newobj
.this
5386 self
._setOORInfo
(self
)
5388 def Create(*args
, **kwargs
):
5390 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5391 Point pos=DefaultPosition, Size size=DefaultSize,
5392 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5393 String filter=EmptyString,
5394 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5396 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5398 def ExpandPath(*args
, **kwargs
):
5399 """ExpandPath(self, String path) -> bool"""
5400 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5402 def GetDefaultPath(*args
, **kwargs
):
5403 """GetDefaultPath(self) -> String"""
5404 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5406 def SetDefaultPath(*args
, **kwargs
):
5407 """SetDefaultPath(self, String path)"""
5408 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5410 def GetPath(*args
, **kwargs
):
5411 """GetPath(self) -> String"""
5412 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5414 def GetFilePath(*args
, **kwargs
):
5415 """GetFilePath(self) -> String"""
5416 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5418 def SetPath(*args
, **kwargs
):
5419 """SetPath(self, String path)"""
5420 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5422 def ShowHidden(*args
, **kwargs
):
5423 """ShowHidden(self, bool show)"""
5424 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5426 def GetShowHidden(*args
, **kwargs
):
5427 """GetShowHidden(self) -> bool"""
5428 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5430 def GetFilter(*args
, **kwargs
):
5431 """GetFilter(self) -> String"""
5432 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5434 def SetFilter(*args
, **kwargs
):
5435 """SetFilter(self, String filter)"""
5436 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5438 def GetFilterIndex(*args
, **kwargs
):
5439 """GetFilterIndex(self) -> int"""
5440 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5442 def SetFilterIndex(*args
, **kwargs
):
5443 """SetFilterIndex(self, int n)"""
5444 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5446 def GetRootId(*args
, **kwargs
):
5447 """GetRootId(self) -> TreeItemId"""
5448 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5450 def GetTreeCtrl(*args
, **kwargs
):
5451 """GetTreeCtrl(self) -> TreeCtrl"""
5452 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5454 def GetFilterListCtrl(*args
, **kwargs
):
5455 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5456 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5458 def FindChild(*args
, **kwargs
):
5460 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5462 Find the child that matches the first part of 'path'. E.g. if a child
5463 path is "/usr" and 'path' is "/usr/include" then the child for
5464 /usr is returned. If the path string has been used (we're at the
5465 leaf), done is set to True.
5468 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5470 def DoResize(*args
, **kwargs
):
5471 """DoResize(self)"""
5472 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5474 def ReCreateTree(*args
, **kwargs
):
5475 """ReCreateTree(self)"""
5476 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5479 class GenericDirCtrlPtr(GenericDirCtrl
):
5480 def __init__(self
, this
):
5482 if not hasattr(self
,"thisown"): self
.thisown
= 0
5483 self
.__class
__ = GenericDirCtrl
5484 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5485 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5487 def PreGenericDirCtrl(*args
, **kwargs
):
5488 """PreGenericDirCtrl() -> GenericDirCtrl"""
5489 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5493 class DirFilterListCtrl(Choice
):
5495 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5496 def __init__(self
, *args
, **kwargs
):
5498 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5499 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5501 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5502 self
.this
= newobj
.this
5505 self
._setOORInfo
(self
)
5507 def Create(*args
, **kwargs
):
5509 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5510 Size size=DefaultSize, long style=0) -> bool
5512 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5514 def FillFilterList(*args
, **kwargs
):
5515 """FillFilterList(self, String filter, int defaultFilter)"""
5516 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5519 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5520 def __init__(self
, this
):
5522 if not hasattr(self
,"thisown"): self
.thisown
= 0
5523 self
.__class
__ = DirFilterListCtrl
5524 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5526 def PreDirFilterListCtrl(*args
, **kwargs
):
5527 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5528 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5532 #---------------------------------------------------------------------------
5534 class PyControl(_core
.Control
):
5536 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5537 def __init__(self
, *args
, **kwargs
):
5539 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5540 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5541 String name=ControlNameStr) -> PyControl
5543 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5544 self
.this
= newobj
.this
5547 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5549 def _setCallbackInfo(*args
, **kwargs
):
5550 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5551 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5553 def SetBestSize(*args
, **kwargs
):
5554 """SetBestSize(self, Size size)"""
5555 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5557 def base_DoMoveWindow(*args
, **kwargs
):
5558 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
5559 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
5561 def base_DoSetSize(*args
, **kwargs
):
5562 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5563 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
5565 def base_DoSetClientSize(*args
, **kwargs
):
5566 """base_DoSetClientSize(self, int width, int height)"""
5567 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
5569 def base_DoSetVirtualSize(*args
, **kwargs
):
5570 """base_DoSetVirtualSize(self, int x, int y)"""
5571 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
5573 def base_DoGetSize(*args
, **kwargs
):
5574 """base_DoGetSize() -> (width, height)"""
5575 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
5577 def base_DoGetClientSize(*args
, **kwargs
):
5578 """base_DoGetClientSize() -> (width, height)"""
5579 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
5581 def base_DoGetPosition(*args
, **kwargs
):
5582 """base_DoGetPosition() -> (x,y)"""
5583 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
5585 def base_DoGetVirtualSize(*args
, **kwargs
):
5586 """base_DoGetVirtualSize(self) -> Size"""
5587 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
5589 def base_DoGetBestSize(*args
, **kwargs
):
5590 """base_DoGetBestSize(self) -> Size"""
5591 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
5593 def base_InitDialog(*args
, **kwargs
):
5594 """base_InitDialog(self)"""
5595 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
5597 def base_TransferDataToWindow(*args
, **kwargs
):
5598 """base_TransferDataToWindow(self) -> bool"""
5599 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
5601 def base_TransferDataFromWindow(*args
, **kwargs
):
5602 """base_TransferDataFromWindow(self) -> bool"""
5603 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
5605 def base_Validate(*args
, **kwargs
):
5606 """base_Validate(self) -> bool"""
5607 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
5609 def base_AcceptsFocus(*args
, **kwargs
):
5610 """base_AcceptsFocus(self) -> bool"""
5611 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
5613 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
5614 """base_AcceptsFocusFromKeyboard(self) -> bool"""
5615 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
5617 def base_GetMaxSize(*args
, **kwargs
):
5618 """base_GetMaxSize(self) -> Size"""
5619 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
5621 def base_AddChild(*args
, **kwargs
):
5622 """base_AddChild(self, Window child)"""
5623 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
5625 def base_RemoveChild(*args
, **kwargs
):
5626 """base_RemoveChild(self, Window child)"""
5627 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
5629 def base_ShouldInheritColours(*args
, **kwargs
):
5630 """base_ShouldInheritColours(self) -> bool"""
5631 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
5633 def base_ApplyParentThemeBackground(*args
, **kwargs
):
5634 """base_ApplyParentThemeBackground(self, Colour c)"""
5635 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
5637 def base_GetDefaultAttributes(*args
, **kwargs
):
5638 """base_GetDefaultAttributes(self) -> VisualAttributes"""
5639 return _controls_
.PyControl_base_GetDefaultAttributes(*args
, **kwargs
)
5642 class PyControlPtr(PyControl
):
5643 def __init__(self
, this
):
5645 if not hasattr(self
,"thisown"): self
.thisown
= 0
5646 self
.__class
__ = PyControl
5647 _controls_
.PyControl_swigregister(PyControlPtr
)
5649 def PrePyControl(*args
, **kwargs
):
5650 """PrePyControl() -> PyControl"""
5651 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5655 #---------------------------------------------------------------------------
5657 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5658 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5659 wxEVT_HELP
= _controls_
.wxEVT_HELP
5660 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5661 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5662 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5663 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5664 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5666 class HelpEvent(_core
.CommandEvent
):
5668 A help event is sent when the user has requested context-sensitive
5669 help. This can either be caused by the application requesting
5670 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5671 the system generating a WM_HELP message when the user pressed F1 or
5672 clicked on the query button in a dialog caption.
5674 A help event is sent to the window that the user clicked on, and is
5675 propagated up the window hierarchy until the event is processed or
5676 there are no more event handlers. The application should call
5677 event.GetId to check the identity of the clicked-on window, and then
5678 either show some suitable help or call event.Skip if the identifier is
5679 unrecognised. Calling Skip is important because it allows wxWindows to
5680 generate further events for ancestors of the clicked-on
5681 window. Otherwise it would be impossible to show help for container
5682 windows, since processing would stop after the first window found.
5685 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5686 def __init__(self
, *args
, **kwargs
):
5687 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5688 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
5689 self
.this
= newobj
.this
5692 def GetPosition(*args
, **kwargs
):
5694 GetPosition(self) -> Point
5696 Returns the left-click position of the mouse, in screen
5697 coordinates. This allows the application to position the help
5700 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5702 def SetPosition(*args
, **kwargs
):
5704 SetPosition(self, Point pos)
5706 Sets the left-click position of the mouse, in screen coordinates.
5708 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5710 def GetLink(*args
, **kwargs
):
5712 GetLink(self) -> String
5714 Get an optional link to further help
5716 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5718 def SetLink(*args
, **kwargs
):
5720 SetLink(self, String link)
5722 Set an optional link to further help
5724 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5726 def GetTarget(*args
, **kwargs
):
5728 GetTarget(self) -> String
5730 Get an optional target to display help in. E.g. a window specification
5732 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5734 def SetTarget(*args
, **kwargs
):
5736 SetTarget(self, String target)
5738 Set an optional target to display help in. E.g. a window specification
5740 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5743 class HelpEventPtr(HelpEvent
):
5744 def __init__(self
, this
):
5746 if not hasattr(self
,"thisown"): self
.thisown
= 0
5747 self
.__class
__ = HelpEvent
5748 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
5750 class ContextHelp(_core
.Object
):
5752 This class changes the cursor to a query and puts the application into
5753 a 'context-sensitive help mode'. When the user left-clicks on a window
5754 within the specified window, a ``EVT_HELP`` event is sent to that
5755 control, and the application may respond to it by popping up some
5758 There are a couple of ways to invoke this behaviour implicitly:
5760 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5761 (Windows only). This will put a question mark in the titlebar,
5762 and Windows will put the application into context-sensitive help
5763 mode automatically, with further programming.
5765 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5766 to create a context help object. Normally you will write your
5767 application so that this button is only added to a dialog for
5768 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5771 :see: `wx.ContextHelpButton`
5775 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5776 def __init__(self
, *args
, **kwargs
):
5778 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5780 Constructs a context help object, calling BeginContextHelp if doNow is
5783 If window is None, the top window is used.
5785 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
5786 self
.this
= newobj
.this
5789 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
5792 if self
.thisown
: destroy(self
)
5795 def BeginContextHelp(*args
, **kwargs
):
5797 BeginContextHelp(self, Window window=None) -> bool
5799 Puts the application into context-sensitive help mode. window is the
5800 window which will be used to catch events; if NULL, the top window
5803 Returns true if the application was successfully put into
5804 context-sensitive help mode. This function only returns when the event
5807 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5809 def EndContextHelp(*args
, **kwargs
):
5811 EndContextHelp(self) -> bool
5813 Ends context-sensitive help mode. Not normally called by the
5816 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5819 class ContextHelpPtr(ContextHelp
):
5820 def __init__(self
, this
):
5822 if not hasattr(self
,"thisown"): self
.thisown
= 0
5823 self
.__class
__ = ContextHelp
5824 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
5826 class ContextHelpButton(BitmapButton
):
5828 Instances of this class may be used to add a question mark button that
5829 when pressed, puts the application into context-help mode. It does
5830 this by creating a wx.ContextHelp object which itself generates a
5831 ``EVT_HELP`` event when the user clicks on a window.
5833 On Windows, you may add a question-mark icon to a dialog by use of the
5834 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5835 will have to add a button explicitly, usually next to OK, Cancel or
5838 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5842 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5843 def __init__(self
, *args
, **kwargs
):
5845 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5846 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5848 Constructor, creating and showing a context help button.
5850 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
5851 self
.this
= newobj
.this
5854 self
._setOORInfo
(self
)
5857 class ContextHelpButtonPtr(ContextHelpButton
):
5858 def __init__(self
, this
):
5860 if not hasattr(self
,"thisown"): self
.thisown
= 0
5861 self
.__class
__ = ContextHelpButton
5862 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5864 class HelpProvider(object):
5866 wx.HelpProvider is an abstract class used by a program
5867 implementing context-sensitive help to show the help text for the
5870 The current help provider must be explicitly set by the
5871 application using wx.HelpProvider.Set().
5873 def __init__(self
): raise RuntimeError, "No constructor defined"
5875 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5876 def Set(*args
, **kwargs
):
5878 Set(HelpProvider helpProvider) -> HelpProvider
5880 Sset the current, application-wide help provider. Returns the previous
5881 one. Unlike some other classes, the help provider is not created on
5882 demand. This must be explicitly done by the application.
5884 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5886 Set
= staticmethod(Set
)
5887 def Get(*args
, **kwargs
):
5889 Get() -> HelpProvider
5891 Return the current application-wide help provider.
5893 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5895 Get
= staticmethod(Get
)
5896 def GetHelp(*args
, **kwargs
):
5898 GetHelp(self, Window window) -> String
5900 Gets the help string for this window. Its interpretation is dependent
5901 on the help provider except that empty string always means that no
5902 help is associated with the window.
5904 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5906 def ShowHelp(*args
, **kwargs
):
5908 ShowHelp(self, Window window) -> bool
5910 Shows help for the given window. Uses GetHelp internally if
5911 applicable. Returns True if it was done, or False if no help was
5912 available for this window.
5914 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5916 def AddHelp(*args
, **kwargs
):
5918 AddHelp(self, Window window, String text)
5920 Associates the text with the given window.
5922 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5924 def AddHelpById(*args
, **kwargs
):
5926 AddHelpById(self, int id, String text)
5928 This version associates the given text with all windows with this
5929 id. May be used to set the same help string for all Cancel buttons in
5930 the application, for example.
5932 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5934 def RemoveHelp(*args
, **kwargs
):
5936 RemoveHelp(self, Window window)
5938 Removes the association between the window pointer and the help
5939 text. This is called by the wx.Window destructor. Without this, the
5940 table of help strings will fill up and when window pointers are
5941 reused, the wrong help string will be found.
5943 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5945 def Destroy(*args
, **kwargs
):
5947 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5950 class HelpProviderPtr(HelpProvider
):
5951 def __init__(self
, this
):
5953 if not hasattr(self
,"thisown"): self
.thisown
= 0
5954 self
.__class
__ = HelpProvider
5955 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
5957 def HelpProvider_Set(*args
, **kwargs
):
5959 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
5961 Sset the current, application-wide help provider. Returns the previous
5962 one. Unlike some other classes, the help provider is not created on
5963 demand. This must be explicitly done by the application.
5965 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5967 def HelpProvider_Get(*args
, **kwargs
):
5969 HelpProvider_Get() -> HelpProvider
5971 Return the current application-wide help provider.
5973 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5975 class SimpleHelpProvider(HelpProvider
):
5977 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5978 supports only plain text help strings, and shows the string associated
5979 with the control (if any) in a tooltip.
5982 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5983 def __init__(self
, *args
, **kwargs
):
5985 __init__(self) -> SimpleHelpProvider
5987 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
5988 supports only plain text help strings, and shows the string associated
5989 with the control (if any) in a tooltip.
5991 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
5992 self
.this
= newobj
.this
5996 class SimpleHelpProviderPtr(SimpleHelpProvider
):
5997 def __init__(self
, this
):
5999 if not hasattr(self
,"thisown"): self
.thisown
= 0
6000 self
.__class
__ = SimpleHelpProvider
6001 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
6003 #---------------------------------------------------------------------------
6005 class DragImage(_core
.Object
):
6007 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6008 def __init__(self
, *args
, **kwargs
):
6009 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6010 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
6011 self
.this
= newobj
.this
6014 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
6017 if self
.thisown
: destroy(self
)
6020 def SetBackingBitmap(*args
, **kwargs
):
6021 """SetBackingBitmap(self, Bitmap bitmap)"""
6022 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6024 def BeginDrag(*args
, **kwargs
):
6026 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6027 Rect rect=None) -> bool
6029 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6031 def BeginDragBounded(*args
, **kwargs
):
6032 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6033 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6035 def EndDrag(*args
, **kwargs
):
6036 """EndDrag(self) -> bool"""
6037 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6039 def Move(*args
, **kwargs
):
6040 """Move(self, Point pt) -> bool"""
6041 return _controls_
.DragImage_Move(*args
, **kwargs
)
6043 def Show(*args
, **kwargs
):
6044 """Show(self) -> bool"""
6045 return _controls_
.DragImage_Show(*args
, **kwargs
)
6047 def Hide(*args
, **kwargs
):
6048 """Hide(self) -> bool"""
6049 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6051 def GetImageRect(*args
, **kwargs
):
6052 """GetImageRect(self, Point pos) -> Rect"""
6053 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6055 def DoDrawImage(*args
, **kwargs
):
6056 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6057 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6059 def UpdateBackingFromWindow(*args
, **kwargs
):
6060 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6061 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6063 def RedrawImage(*args
, **kwargs
):
6064 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6065 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6068 class DragImagePtr(DragImage
):
6069 def __init__(self
, this
):
6071 if not hasattr(self
,"thisown"): self
.thisown
= 0
6072 self
.__class
__ = DragImage
6073 _controls_
.DragImage_swigregister(DragImagePtr
)
6075 def DragIcon(*args
, **kwargs
):
6076 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6077 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6081 def DragString(*args
, **kwargs
):
6082 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6083 val
= _controls_
.new_DragString(*args
, **kwargs
)
6087 def DragTreeItem(*args
, **kwargs
):
6088 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6089 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6093 def DragListItem(*args
, **kwargs
):
6094 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6095 val
= _controls_
.new_DragListItem(*args
, **kwargs
)