1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
58 BU_LEFT
= _controls_
.BU_LEFT
59 BU_TOP
= _controls_
.BU_TOP
60 BU_RIGHT
= _controls_
.BU_RIGHT
61 BU_BOTTOM
= _controls_
.BU_BOTTOM
62 BU_ALIGN_MASK
= _controls_
.BU_ALIGN_MASK
63 BU_EXACTFIT
= _controls_
.BU_EXACTFIT
64 BU_AUTODRAW
= _controls_
.BU_AUTODRAW
65 class Button(_core
.Control
):
67 A button is a control that contains a text string, and is one of the most
68 common elements of a GUI. It may be placed on a dialog box or panel, or
69 indeed almost any other window.
71 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
73 def __init__(self
, *args
, **kwargs
):
75 __init__(self, Window parent, int id=-1, String label=EmptyString,
76 Point pos=DefaultPosition, Size size=DefaultSize,
77 long style=0, Validator validator=DefaultValidator,
78 String name=ButtonNameStr) -> Button
80 Create and show a button. The preferred way to create standard
81 buttons is to use a standard ID and an empty label. In this case
82 wxWigets will automatically use a stock label that coresponds to the
83 ID given. In additon, the button will be decorated with stock icons
86 _controls_
.Button_swiginit(self
,_controls_
.new_Button(*args
, **kwargs
))
87 self
._setOORInfo
(self
)
89 def Create(*args
, **kwargs
):
91 Create(self, Window parent, int id=-1, String label=EmptyString,
92 Point pos=DefaultPosition, Size size=DefaultSize,
93 long style=0, Validator validator=DefaultValidator,
94 String name=ButtonNameStr) -> bool
96 Acutally create the GUI Button for 2-phase creation.
98 return _controls_
.Button_Create(*args
, **kwargs
)
100 def SetDefault(*args
, **kwargs
):
104 This sets the button to be the default item for the panel or dialog box.
106 return _controls_
.Button_SetDefault(*args
, **kwargs
)
108 def GetDefaultSize(*args
, **kwargs
):
110 GetDefaultSize() -> Size
112 Returns the default button size for this platform.
114 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
116 GetDefaultSize
= staticmethod(GetDefaultSize
)
117 def GetClassDefaultAttributes(*args
, **kwargs
):
119 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 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
135 _controls_
.Button_swigregister(Button
)
136 cvar
= _controls_
.cvar
137 ButtonNameStr
= cvar
.ButtonNameStr
139 def PreButton(*args
, **kwargs
):
141 PreButton() -> Button
143 Precreate a Button for 2-phase creation.
145 val
= _controls_
.new_PreButton(*args
, **kwargs
)
148 def Button_GetDefaultSize(*args
):
150 Button_GetDefaultSize() -> Size
152 Returns the default button size for this platform.
154 return _controls_
.Button_GetDefaultSize(*args
)
156 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
158 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
160 Get the default attributes for this class. This is useful if you want
161 to use the same font or colour in your own control as in a standard
162 control -- which is a much better idea than hard coding specific
163 colours or fonts which might look completely out of place on the
164 user's system, especially if it uses themes.
166 The variant parameter is only relevant under Mac currently and is
167 ignore under other platforms. Under Mac, it will change the size of
168 the returned font. See `wx.Window.SetWindowVariant` for more about
171 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
173 class BitmapButton(Button
):
175 A Button that contains a bitmap. A bitmap button can be supplied with a
176 single bitmap, and wxWidgets will draw all button states using this bitmap. If
177 the application needs more control, additional bitmaps for the selected state,
178 unpressed focused state, and greyed-out state may be supplied.
180 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
181 __repr__
= _swig_repr
182 def __init__(self
, *args
, **kwargs
):
184 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
185 Point pos=DefaultPosition, Size size=DefaultSize,
186 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
187 String name=ButtonNameStr) -> BitmapButton
189 Create and show a button with a bitmap for the label.
191 _controls_
.BitmapButton_swiginit(self
,_controls_
.new_BitmapButton(*args
, **kwargs
))
192 self
._setOORInfo
(self
)
194 def Create(*args
, **kwargs
):
196 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
197 Point pos=DefaultPosition, Size size=DefaultSize,
198 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
199 String name=ButtonNameStr) -> bool
201 Acutally create the GUI BitmapButton for 2-phase creation.
203 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
205 def GetBitmapLabel(*args
, **kwargs
):
207 GetBitmapLabel(self) -> Bitmap
209 Returns the label bitmap (the one passed to the constructor).
211 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
213 def GetBitmapDisabled(*args
, **kwargs
):
215 GetBitmapDisabled(self) -> Bitmap
217 Returns the bitmap for the disabled state.
219 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
221 def GetBitmapFocus(*args
, **kwargs
):
223 GetBitmapFocus(self) -> Bitmap
225 Returns the bitmap for the focused state.
227 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
229 def GetBitmapSelected(*args
, **kwargs
):
231 GetBitmapSelected(self) -> Bitmap
233 Returns the bitmap for the selected state.
235 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
237 def GetBitmapHover(*args
, **kwargs
):
239 GetBitmapHover(self) -> Bitmap
241 Returns the bitmap used when the mouse is over the button, may be invalid.
243 return _controls_
.BitmapButton_GetBitmapHover(*args
, **kwargs
)
245 def SetBitmapDisabled(*args
, **kwargs
):
247 SetBitmapDisabled(self, Bitmap bitmap)
249 Sets the bitmap for the disabled button appearance.
251 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
253 def SetBitmapFocus(*args
, **kwargs
):
255 SetBitmapFocus(self, Bitmap bitmap)
257 Sets the bitmap for the button appearance when it has the keyboard focus.
259 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
261 def SetBitmapSelected(*args
, **kwargs
):
263 SetBitmapSelected(self, Bitmap bitmap)
265 Sets the bitmap for the selected (depressed) button appearance.
267 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
269 def SetBitmapLabel(*args
, **kwargs
):
271 SetBitmapLabel(self, Bitmap bitmap)
273 Sets the bitmap label for the button. This is the bitmap used for the
274 unselected state, and for all other states if no other bitmaps are provided.
276 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
278 def SetBitmapHover(*args
, **kwargs
):
280 SetBitmapHover(self, Bitmap hover)
282 Sets the bitmap to be shown when the mouse is over the button. This function
283 is new since wxWidgets version 2.7.0 and the hover bitmap is currently only
286 return _controls_
.BitmapButton_SetBitmapHover(*args
, **kwargs
)
288 def SetMargins(*args
, **kwargs
):
289 """SetMargins(self, int x, int y)"""
290 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
292 def GetMarginX(*args
, **kwargs
):
293 """GetMarginX(self) -> int"""
294 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
296 def GetMarginY(*args
, **kwargs
):
297 """GetMarginY(self) -> int"""
298 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
300 BitmapDisabled
= property(GetBitmapDisabled
,SetBitmapDisabled
,doc
="See `GetBitmapDisabled` and `SetBitmapDisabled`")
301 BitmapFocus
= property(GetBitmapFocus
,SetBitmapFocus
,doc
="See `GetBitmapFocus` and `SetBitmapFocus`")
302 BitmapHover
= property(GetBitmapHover
,SetBitmapHover
,doc
="See `GetBitmapHover` and `SetBitmapHover`")
303 BitmapLabel
= property(GetBitmapLabel
,SetBitmapLabel
,doc
="See `GetBitmapLabel` and `SetBitmapLabel`")
304 BitmapSelected
= property(GetBitmapSelected
,SetBitmapSelected
,doc
="See `GetBitmapSelected` and `SetBitmapSelected`")
305 MarginX
= property(GetMarginX
,doc
="See `GetMarginX`")
306 MarginY
= property(GetMarginY
,doc
="See `GetMarginY`")
307 _controls_
.BitmapButton_swigregister(BitmapButton
)
309 def PreBitmapButton(*args
, **kwargs
):
311 PreBitmapButton() -> BitmapButton
313 Precreate a BitmapButton for 2-phase creation.
315 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
318 #---------------------------------------------------------------------------
320 CHK_2STATE
= _controls_
.CHK_2STATE
321 CHK_3STATE
= _controls_
.CHK_3STATE
322 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
323 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
324 CHK_CHECKED
= _controls_
.CHK_CHECKED
325 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
326 class CheckBox(_core
.Control
):
328 A checkbox is a labelled box which by default is either on (the
329 checkmark is visible) or off (no checkmark). Optionally (When the
330 wx.CHK_3STATE style flag is set) it can have a third state, called the
331 mixed or undetermined state. Often this is used as a "Does Not
334 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
335 __repr__
= _swig_repr
336 def __init__(self
, *args
, **kwargs
):
338 __init__(self, Window parent, int id=-1, String label=EmptyString,
339 Point pos=DefaultPosition, Size size=DefaultSize,
340 long style=0, Validator validator=DefaultValidator,
341 String name=CheckBoxNameStr) -> CheckBox
343 Creates and shows a CheckBox control
345 _controls_
.CheckBox_swiginit(self
,_controls_
.new_CheckBox(*args
, **kwargs
))
346 self
._setOORInfo
(self
)
348 def Create(*args
, **kwargs
):
350 Create(self, Window parent, int id=-1, String label=EmptyString,
351 Point pos=DefaultPosition, Size size=DefaultSize,
352 long style=0, Validator validator=DefaultValidator,
353 String name=CheckBoxNameStr) -> bool
355 Actually create the GUI CheckBox for 2-phase creation.
357 return _controls_
.CheckBox_Create(*args
, **kwargs
)
359 def GetValue(*args
, **kwargs
):
361 GetValue(self) -> bool
363 Gets the state of a 2-state CheckBox. Returns True if it is checked,
366 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
368 def IsChecked(*args
, **kwargs
):
370 IsChecked(self) -> bool
372 Similar to GetValue, but raises an exception if it is not a 2-state
375 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
377 def SetValue(*args
, **kwargs
):
379 SetValue(self, bool state)
381 Set the state of a 2-state CheckBox. Pass True for checked, False for
384 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
386 def Get3StateValue(*args
, **kwargs
):
388 Get3StateValue(self) -> int
390 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
391 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
392 the undetermined state. Raises an exceptiion when the function is
393 used with a 2-state CheckBox.
395 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
397 def Set3StateValue(*args
, **kwargs
):
399 Set3StateValue(self, int state)
401 Sets the CheckBox to the given state. The state parameter can be one
402 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
403 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
404 exception when the CheckBox is a 2-state checkbox and setting the
405 state to wx.CHK_UNDETERMINED.
407 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
409 def Is3State(*args
, **kwargs
):
411 Is3State(self) -> bool
413 Returns whether or not the CheckBox is a 3-state CheckBox.
415 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
417 def Is3rdStateAllowedForUser(*args
, **kwargs
):
419 Is3rdStateAllowedForUser(self) -> bool
421 Returns whether or not the user can set the CheckBox to the third
424 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
426 def GetClassDefaultAttributes(*args
, **kwargs
):
428 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
430 Get the default attributes for this class. This is useful if you want
431 to use the same font or colour in your own control as in a standard
432 control -- which is a much better idea than hard coding specific
433 colours or fonts which might look completely out of place on the
434 user's system, especially if it uses themes.
436 The variant parameter is only relevant under Mac currently and is
437 ignore under other platforms. Under Mac, it will change the size of
438 the returned font. See `wx.Window.SetWindowVariant` for more about
441 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
443 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
444 ThreeStateValue
= property(Get3StateValue
,Set3StateValue
,doc
="See `Get3StateValue` and `Set3StateValue`")
445 Value
= property(GetValue
,SetValue
,doc
="See `GetValue` and `SetValue`")
446 _controls_
.CheckBox_swigregister(CheckBox
)
447 CheckBoxNameStr
= cvar
.CheckBoxNameStr
449 def PreCheckBox(*args
, **kwargs
):
451 PreCheckBox() -> CheckBox
453 Precreate a CheckBox for 2-phase creation.
455 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
458 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
460 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
462 Get the default attributes for this class. This is useful if you want
463 to use the same font or colour in your own control as in a standard
464 control -- which is a much better idea than hard coding specific
465 colours or fonts which might look completely out of place on the
466 user's system, especially if it uses themes.
468 The variant parameter is only relevant under Mac currently and is
469 ignore under other platforms. Under Mac, it will change the size of
470 the returned font. See `wx.Window.SetWindowVariant` for more about
473 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
475 #---------------------------------------------------------------------------
477 class Choice(_core
.ControlWithItems
):
479 A Choice control is used to select one of a list of strings.
480 Unlike a `wx.ListBox`, only the selection is visible until the
481 user pulls down the menu of choices.
483 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
484 __repr__
= _swig_repr
485 def __init__(self
, *args
, **kwargs
):
487 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
488 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
489 String name=ChoiceNameStr) -> Choice
491 Create and show a Choice control
493 _controls_
.Choice_swiginit(self
,_controls_
.new_Choice(*args
, **kwargs
))
494 self
._setOORInfo
(self
)
496 def Create(*args
, **kwargs
):
498 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
499 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
500 String name=ChoiceNameStr) -> bool
502 Actually create the GUI Choice control for 2-phase creation
504 return _controls_
.Choice_Create(*args
, **kwargs
)
506 def GetCurrentSelection(*args
, **kwargs
):
508 GetCurrentSelection(self) -> int
510 Unlike `GetSelection` which only returns the accepted selection value,
511 i.e. the selection in the control once the user closes the dropdown
512 list, this function returns the current selection. That is, while the
513 dropdown list is shown, it returns the currently selected item in
514 it. When it is not shown, its result is the same as for the other
517 return _controls_
.Choice_GetCurrentSelection(*args
, **kwargs
)
519 def GetClassDefaultAttributes(*args
, **kwargs
):
521 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
523 Get the default attributes for this class. This is useful if you want
524 to use the same font or colour in your own control as in a standard
525 control -- which is a much better idea than hard coding specific
526 colours or fonts which might look completely out of place on the
527 user's system, especially if it uses themes.
529 The variant parameter is only relevant under Mac currently and is
530 ignore under other platforms. Under Mac, it will change the size of
531 the returned font. See `wx.Window.SetWindowVariant` for more about
534 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
536 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
537 CurrentSelection
= property(GetCurrentSelection
,doc
="See `GetCurrentSelection`")
538 _controls_
.Choice_swigregister(Choice
)
539 ChoiceNameStr
= cvar
.ChoiceNameStr
541 def PreChoice(*args
, **kwargs
):
543 PreChoice() -> Choice
545 Precreate a Choice control for 2-phase creation.
547 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
550 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
552 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
554 Get the default attributes for this class. This is useful if you want
555 to use the same font or colour in your own control as in a standard
556 control -- which is a much better idea than hard coding specific
557 colours or fonts which might look completely out of place on the
558 user's system, especially if it uses themes.
560 The variant parameter is only relevant under Mac currently and is
561 ignore under other platforms. Under Mac, it will change the size of
562 the returned font. See `wx.Window.SetWindowVariant` for more about
565 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
567 #---------------------------------------------------------------------------
569 class ComboBox(Choice
):
571 A combobox is like a combination of an edit control and a
572 listbox. It can be displayed as static list with editable or
573 read-only text field; or a drop-down list with text field.
575 A combobox permits a single selection only. Combobox items are
578 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
579 __repr__
= _swig_repr
580 def __init__(self
, *args
, **kwargs
):
582 __init__(Window parent, int id, String value=EmptyString,
583 Point pos=DefaultPosition, Size size=DefaultSize,
584 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
585 String name=ComboBoxNameStr) -> ComboBox
587 Constructor, creates and shows a ComboBox control.
589 _controls_
.ComboBox_swiginit(self
,_controls_
.new_ComboBox(*args
, **kwargs
))
590 self
._setOORInfo
(self
)
592 def Create(*args
, **kwargs
):
594 Create(Window parent, int id, String value=EmptyString,
595 Point pos=DefaultPosition, Size size=DefaultSize,
596 List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
597 String name=ChoiceNameStr) -> bool
599 Actually create the GUI wxComboBox control for 2-phase creation
601 return _controls_
.ComboBox_Create(*args
, **kwargs
)
603 def GetValue(*args
, **kwargs
):
605 GetValue(self) -> String
607 Returns the current value in the combobox text field.
609 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
611 def SetValue(*args
, **kwargs
):
612 """SetValue(self, String value)"""
613 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
615 def Copy(*args
, **kwargs
):
619 Copies the selected text to the clipboard.
621 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
623 def Cut(*args
, **kwargs
):
627 Copies the selected text to the clipboard and removes the selection.
629 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
631 def Paste(*args
, **kwargs
):
635 Pastes text from the clipboard to the text field.
637 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
639 def SetInsertionPoint(*args
, **kwargs
):
641 SetInsertionPoint(self, long pos)
643 Sets the insertion point in the combobox text field.
645 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
647 def GetInsertionPoint(*args
, **kwargs
):
649 GetInsertionPoint(self) -> long
651 Returns the insertion point for the combobox's text field.
653 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
655 def GetLastPosition(*args
, **kwargs
):
657 GetLastPosition(self) -> long
659 Returns the last position in the combobox text field.
661 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
663 def Replace(*args
, **kwargs
):
665 Replace(self, long from, long to, String value)
667 Replaces the text between two positions with the given text, in the
670 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
672 def SetMark(*args
, **kwargs
):
674 SetMark(self, long from, long to)
676 Selects the text between the two positions in the combobox text field.
678 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
680 def GetMark(*args
, **kwargs
):
682 GetMark(self) -> (from, to)
684 Gets the positions of the begining and ending of the selection mark in
685 the combobox text field.
687 return _controls_
.ComboBox_GetMark(*args
, **kwargs
)
689 def GetCurrentSelection(*args
, **kwargs
):
691 GetCurrentSelection(self) -> int
693 Unlike `GetSelection` which only returns the accepted selection value,
694 i.e. the selection in the control once the user closes the dropdown
695 list, this function returns the current selection. That is, while the
696 dropdown list is shown, it returns the currently selected item in
697 it. When it is not shown, its result is the same as for the other
700 return _controls_
.ComboBox_GetCurrentSelection(*args
, **kwargs
)
702 def SetStringSelection(*args
, **kwargs
):
704 SetStringSelection(self, String string) -> bool
706 Select the item with the specifed string
708 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
710 def SetString(*args
, **kwargs
):
712 SetString(self, int n, String string)
714 Set the label for the n'th item (zero based) in the list.
716 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
718 def SetEditable(*args
, **kwargs
):
719 """SetEditable(self, bool editable)"""
720 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
722 def SetInsertionPointEnd(*args
, **kwargs
):
724 SetInsertionPointEnd(self)
726 Sets the insertion point at the end of the combobox text field.
728 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
730 def Remove(*args
, **kwargs
):
732 Remove(self, long from, long to)
734 Removes the text between the two positions in the combobox text field.
736 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
738 def IsEditable(*args
, **kwargs
):
740 IsEditable(self) -> bool
742 Returns True if the combo is ediatable (not read-only.)
744 return _controls_
.ComboBox_IsEditable(*args
, **kwargs
)
746 def Undo(*args
, **kwargs
):
750 Redoes the last undo in the text field. Windows only.
752 return _controls_
.ComboBox_Undo(*args
, **kwargs
)
754 def Redo(*args
, **kwargs
):
758 Undoes the last edit in the text field. Windows only.
760 return _controls_
.ComboBox_Redo(*args
, **kwargs
)
762 def SelectAll(*args
, **kwargs
):
766 Select all the text in the combo's text field.
768 return _controls_
.ComboBox_SelectAll(*args
, **kwargs
)
770 def CanCopy(*args
, **kwargs
):
772 CanCopy(self) -> bool
774 Returns True if the combobox is editable and there is a text selection
775 to copy to the clipboard. Only available on Windows.
777 return _controls_
.ComboBox_CanCopy(*args
, **kwargs
)
779 def CanCut(*args
, **kwargs
):
783 Returns True if the combobox is editable and there is a text selection
784 to copy to the clipboard. Only available on Windows.
786 return _controls_
.ComboBox_CanCut(*args
, **kwargs
)
788 def CanPaste(*args
, **kwargs
):
790 CanPaste(self) -> bool
792 Returns True if the combobox is editable and there is text on the
793 clipboard that can be pasted into the text field. Only available on
796 return _controls_
.ComboBox_CanPaste(*args
, **kwargs
)
798 def CanUndo(*args
, **kwargs
):
800 CanUndo(self) -> bool
802 Returns True if the combobox is editable and the last edit can be
803 undone. Only available on Windows.
805 return _controls_
.ComboBox_CanUndo(*args
, **kwargs
)
807 def CanRedo(*args
, **kwargs
):
809 CanRedo(self) -> bool
811 Returns True if the combobox is editable and the last undo can be
812 redone. Only available on Windows.
814 return _controls_
.ComboBox_CanRedo(*args
, **kwargs
)
816 def GetClassDefaultAttributes(*args
, **kwargs
):
818 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
820 Get the default attributes for this class. This is useful if you want
821 to use the same font or colour in your own control as in a standard
822 control -- which is a much better idea than hard coding specific
823 colours or fonts which might look completely out of place on the
824 user's system, especially if it uses themes.
826 The variant parameter is only relevant under Mac currently and is
827 ignore under other platforms. Under Mac, it will change the size of
828 the returned font. See `wx.Window.SetWindowVariant` for more about
831 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
833 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
834 CurrentSelection
= property(GetCurrentSelection
,doc
="See `GetCurrentSelection`")
835 InsertionPoint
= property(GetInsertionPoint
,SetInsertionPoint
,doc
="See `GetInsertionPoint` and `SetInsertionPoint`")
836 LastPosition
= property(GetLastPosition
,doc
="See `GetLastPosition`")
837 Mark
= property(GetMark
,SetMark
,doc
="See `GetMark` and `SetMark`")
838 Value
= property(GetValue
,SetValue
,doc
="See `GetValue` and `SetValue`")
839 _controls_
.ComboBox_swigregister(ComboBox
)
840 ComboBoxNameStr
= cvar
.ComboBoxNameStr
842 def PreComboBox(*args
, **kwargs
):
844 PreComboBox() -> ComboBox
846 Precreate a ComboBox control for 2-phase creation.
848 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
851 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
853 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
855 Get the default attributes for this class. This is useful if you want
856 to use the same font or colour in your own control as in a standard
857 control -- which is a much better idea than hard coding specific
858 colours or fonts which might look completely out of place on the
859 user's system, especially if it uses themes.
861 The variant parameter is only relevant under Mac currently and is
862 ignore under other platforms. Under Mac, it will change the size of
863 the returned font. See `wx.Window.SetWindowVariant` for more about
866 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
868 #---------------------------------------------------------------------------
870 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
871 GA_VERTICAL
= _controls_
.GA_VERTICAL
872 GA_SMOOTH
= _controls_
.GA_SMOOTH
873 GA_PROGRESSBAR
= 0 # obsolete
874 class Gauge(_core
.Control
):
875 """Proxy of C++ Gauge class"""
876 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
877 __repr__
= _swig_repr
878 def __init__(self
, *args
, **kwargs
):
880 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
881 Size size=DefaultSize, long style=GA_HORIZONTAL,
882 Validator validator=DefaultValidator,
883 String name=GaugeNameStr) -> Gauge
885 _controls_
.Gauge_swiginit(self
,_controls_
.new_Gauge(*args
, **kwargs
))
886 self
._setOORInfo
(self
)
888 def Create(*args
, **kwargs
):
890 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
891 Size size=DefaultSize, long style=GA_HORIZONTAL,
892 Validator validator=DefaultValidator,
893 String name=GaugeNameStr) -> bool
895 return _controls_
.Gauge_Create(*args
, **kwargs
)
897 def SetRange(*args
, **kwargs
):
898 """SetRange(self, int range)"""
899 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
901 def GetRange(*args
, **kwargs
):
902 """GetRange(self) -> int"""
903 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
905 def SetValue(*args
, **kwargs
):
906 """SetValue(self, int pos)"""
907 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
909 def GetValue(*args
, **kwargs
):
910 """GetValue(self) -> int"""
911 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
913 def IsVertical(*args
, **kwargs
):
914 """IsVertical(self) -> bool"""
915 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
917 def SetShadowWidth(*args
, **kwargs
):
918 """SetShadowWidth(self, int w)"""
919 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
921 def GetShadowWidth(*args
, **kwargs
):
922 """GetShadowWidth(self) -> int"""
923 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
925 def SetBezelFace(*args
, **kwargs
):
926 """SetBezelFace(self, int w)"""
927 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
929 def GetBezelFace(*args
, **kwargs
):
930 """GetBezelFace(self) -> int"""
931 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
933 def GetClassDefaultAttributes(*args
, **kwargs
):
935 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_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
950 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
951 _controls_
.Gauge_swigregister(Gauge
)
952 GaugeNameStr
= cvar
.GaugeNameStr
954 def PreGauge(*args
, **kwargs
):
955 """PreGauge() -> Gauge"""
956 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
959 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
961 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
963 Get the default attributes for this class. This is useful if you want
964 to use the same font or colour in your own control as in a standard
965 control -- which is a much better idea than hard coding specific
966 colours or fonts which might look completely out of place on the
967 user's system, especially if it uses themes.
969 The variant parameter is only relevant under Mac currently and is
970 ignore under other platforms. Under Mac, it will change the size of
971 the returned font. See `wx.Window.SetWindowVariant` for more about
974 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
976 #---------------------------------------------------------------------------
978 class StaticBox(_core
.Control
):
979 """Proxy of C++ StaticBox class"""
980 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
981 __repr__
= _swig_repr
982 def __init__(self
, *args
, **kwargs
):
984 __init__(self, Window parent, int id=-1, String label=EmptyString,
985 Point pos=DefaultPosition, Size size=DefaultSize,
986 long style=0, String name=StaticBoxNameStr) -> StaticBox
988 _controls_
.StaticBox_swiginit(self
,_controls_
.new_StaticBox(*args
, **kwargs
))
989 self
._setOORInfo
(self
)
991 def Create(*args
, **kwargs
):
993 Create(self, Window parent, int id=-1, String label=EmptyString,
994 Point pos=DefaultPosition, Size size=DefaultSize,
995 long style=0, String name=StaticBoxNameStr) -> bool
997 return _controls_
.StaticBox_Create(*args
, **kwargs
)
999 def GetClassDefaultAttributes(*args
, **kwargs
):
1001 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1003 Get the default attributes for this class. This is useful if you want
1004 to use the same font or colour in your own control as in a standard
1005 control -- which is a much better idea than hard coding specific
1006 colours or fonts which might look completely out of place on the
1007 user's system, especially if it uses themes.
1009 The variant parameter is only relevant under Mac currently and is
1010 ignore under other platforms. Under Mac, it will change the size of
1011 the returned font. See `wx.Window.SetWindowVariant` for more about
1014 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1016 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1017 _controls_
.StaticBox_swigregister(StaticBox
)
1018 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
1019 StaticBoxNameStr
= cvar
.StaticBoxNameStr
1020 StaticTextNameStr
= cvar
.StaticTextNameStr
1022 def PreStaticBox(*args
, **kwargs
):
1023 """PreStaticBox() -> StaticBox"""
1024 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
1027 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
1029 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1031 Get the default attributes for this class. This is useful if you want
1032 to use the same font or colour in your own control as in a standard
1033 control -- which is a much better idea than hard coding specific
1034 colours or fonts which might look completely out of place on the
1035 user's system, especially if it uses themes.
1037 The variant parameter is only relevant under Mac currently and is
1038 ignore under other platforms. Under Mac, it will change the size of
1039 the returned font. See `wx.Window.SetWindowVariant` for more about
1042 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1044 #---------------------------------------------------------------------------
1046 class StaticLine(_core
.Control
):
1047 """Proxy of C++ StaticLine class"""
1048 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1049 __repr__
= _swig_repr
1050 def __init__(self
, *args
, **kwargs
):
1052 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1053 Size size=DefaultSize, long style=LI_HORIZONTAL,
1054 String name=StaticTextNameStr) -> StaticLine
1056 _controls_
.StaticLine_swiginit(self
,_controls_
.new_StaticLine(*args
, **kwargs
))
1057 self
._setOORInfo
(self
)
1059 def Create(*args
, **kwargs
):
1061 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1062 Size size=DefaultSize, long style=LI_HORIZONTAL,
1063 String name=StaticTextNameStr) -> bool
1065 return _controls_
.StaticLine_Create(*args
, **kwargs
)
1067 def IsVertical(*args
, **kwargs
):
1068 """IsVertical(self) -> bool"""
1069 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
1071 def GetDefaultSize(*args
, **kwargs
):
1072 """GetDefaultSize() -> int"""
1073 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1075 GetDefaultSize
= staticmethod(GetDefaultSize
)
1076 def GetClassDefaultAttributes(*args
, **kwargs
):
1078 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1080 Get the default attributes for this class. This is useful if you want
1081 to use the same font or colour in your own control as in a standard
1082 control -- which is a much better idea than hard coding specific
1083 colours or fonts which might look completely out of place on the
1084 user's system, especially if it uses themes.
1086 The variant parameter is only relevant under Mac currently and is
1087 ignore under other platforms. Under Mac, it will change the size of
1088 the returned font. See `wx.Window.SetWindowVariant` for more about
1091 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1093 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1094 _controls_
.StaticLine_swigregister(StaticLine
)
1096 def PreStaticLine(*args
, **kwargs
):
1097 """PreStaticLine() -> StaticLine"""
1098 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1101 def StaticLine_GetDefaultSize(*args
):
1102 """StaticLine_GetDefaultSize() -> int"""
1103 return _controls_
.StaticLine_GetDefaultSize(*args
)
1105 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1107 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1109 Get the default attributes for this class. This is useful if you want
1110 to use the same font or colour in your own control as in a standard
1111 control -- which is a much better idea than hard coding specific
1112 colours or fonts which might look completely out of place on the
1113 user's system, especially if it uses themes.
1115 The variant parameter is only relevant under Mac currently and is
1116 ignore under other platforms. Under Mac, it will change the size of
1117 the returned font. See `wx.Window.SetWindowVariant` for more about
1120 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1122 #---------------------------------------------------------------------------
1124 class StaticText(_core
.Control
):
1125 """Proxy of C++ StaticText class"""
1126 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1127 __repr__
= _swig_repr
1128 def __init__(self
, *args
, **kwargs
):
1130 __init__(self, Window parent, int id=-1, String label=EmptyString,
1131 Point pos=DefaultPosition, Size size=DefaultSize,
1132 long style=0, String name=StaticTextNameStr) -> StaticText
1134 _controls_
.StaticText_swiginit(self
,_controls_
.new_StaticText(*args
, **kwargs
))
1135 self
._setOORInfo
(self
)
1137 def Create(*args
, **kwargs
):
1139 Create(self, Window parent, int id=-1, String label=EmptyString,
1140 Point pos=DefaultPosition, Size size=DefaultSize,
1141 long style=0, String name=StaticTextNameStr) -> bool
1143 return _controls_
.StaticText_Create(*args
, **kwargs
)
1145 def Wrap(*args
, **kwargs
):
1147 Wrap(self, int width)
1149 This functions wraps the control's label so that each of its lines
1150 becomes at most ``width`` pixels wide if possible (the lines are
1151 broken at words boundaries so it might not be the case if words are
1152 too long). If ``width`` is negative, no wrapping is done.
1154 return _controls_
.StaticText_Wrap(*args
, **kwargs
)
1156 def GetClassDefaultAttributes(*args
, **kwargs
):
1158 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1160 Get the default attributes for this class. This is useful if you want
1161 to use the same font or colour in your own control as in a standard
1162 control -- which is a much better idea than hard coding specific
1163 colours or fonts which might look completely out of place on the
1164 user's system, especially if it uses themes.
1166 The variant parameter is only relevant under Mac currently and is
1167 ignore under other platforms. Under Mac, it will change the size of
1168 the returned font. See `wx.Window.SetWindowVariant` for more about
1171 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1173 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1174 _controls_
.StaticText_swigregister(StaticText
)
1176 def PreStaticText(*args
, **kwargs
):
1177 """PreStaticText() -> StaticText"""
1178 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1181 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1183 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1185 Get the default attributes for this class. This is useful if you want
1186 to use the same font or colour in your own control as in a standard
1187 control -- which is a much better idea than hard coding specific
1188 colours or fonts which might look completely out of place on the
1189 user's system, especially if it uses themes.
1191 The variant parameter is only relevant under Mac currently and is
1192 ignore under other platforms. Under Mac, it will change the size of
1193 the returned font. See `wx.Window.SetWindowVariant` for more about
1196 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1198 #---------------------------------------------------------------------------
1200 class StaticBitmap(_core
.Control
):
1201 """Proxy of C++ StaticBitmap class"""
1202 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1203 __repr__
= _swig_repr
1204 def __init__(self
, *args
, **kwargs
):
1206 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1207 Point pos=DefaultPosition, Size size=DefaultSize,
1208 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1210 _controls_
.StaticBitmap_swiginit(self
,_controls_
.new_StaticBitmap(*args
, **kwargs
))
1211 self
._setOORInfo
(self
)
1213 def Create(*args
, **kwargs
):
1215 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1216 Point pos=DefaultPosition, Size size=DefaultSize,
1217 long style=0, String name=StaticBitmapNameStr) -> bool
1219 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1221 def GetBitmap(*args
, **kwargs
):
1222 """GetBitmap(self) -> Bitmap"""
1223 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1225 def SetBitmap(*args
, **kwargs
):
1226 """SetBitmap(self, Bitmap bitmap)"""
1227 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1229 def SetIcon(*args
, **kwargs
):
1230 """SetIcon(self, Icon icon)"""
1231 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1233 def GetClassDefaultAttributes(*args
, **kwargs
):
1235 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1237 Get the default attributes for this class. This is useful if you want
1238 to use the same font or colour in your own control as in a standard
1239 control -- which is a much better idea than hard coding specific
1240 colours or fonts which might look completely out of place on the
1241 user's system, especially if it uses themes.
1243 The variant parameter is only relevant under Mac currently and is
1244 ignore under other platforms. Under Mac, it will change the size of
1245 the returned font. See `wx.Window.SetWindowVariant` for more about
1248 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1250 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1251 _controls_
.StaticBitmap_swigregister(StaticBitmap
)
1253 def PreStaticBitmap(*args
, **kwargs
):
1254 """PreStaticBitmap() -> StaticBitmap"""
1255 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1258 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1260 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1262 Get the default attributes for this class. This is useful if you want
1263 to use the same font or colour in your own control as in a standard
1264 control -- which is a much better idea than hard coding specific
1265 colours or fonts which might look completely out of place on the
1266 user's system, especially if it uses themes.
1268 The variant parameter is only relevant under Mac currently and is
1269 ignore under other platforms. Under Mac, it will change the size of
1270 the returned font. See `wx.Window.SetWindowVariant` for more about
1273 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1275 #---------------------------------------------------------------------------
1277 class ListBox(_core
.ControlWithItems
):
1278 """Proxy of C++ ListBox class"""
1279 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1280 __repr__
= _swig_repr
1281 def __init__(self
, *args
, **kwargs
):
1283 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1284 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1285 long style=0, Validator validator=DefaultValidator,
1286 String name=ListBoxNameStr) -> ListBox
1288 _controls_
.ListBox_swiginit(self
,_controls_
.new_ListBox(*args
, **kwargs
))
1289 self
._setOORInfo
(self
)
1291 def Create(*args
, **kwargs
):
1293 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1294 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1295 long style=0, Validator validator=DefaultValidator,
1296 String name=ListBoxNameStr) -> bool
1298 return _controls_
.ListBox_Create(*args
, **kwargs
)
1300 def Insert(*args
, **kwargs
):
1302 Insert(self, String item, int pos, PyObject clientData=None)
1304 Insert an item into the control before the item at the ``pos`` index,
1305 optionally associating some data object with the item.
1307 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1309 def InsertItems(*args
, **kwargs
):
1310 """InsertItems(self, wxArrayString items, unsigned int pos)"""
1311 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1313 def Set(*args
, **kwargs
):
1314 """Set(self, wxArrayString items)"""
1315 return _controls_
.ListBox_Set(*args
, **kwargs
)
1317 def IsSelected(*args
, **kwargs
):
1318 """IsSelected(self, int n) -> bool"""
1319 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1321 def SetSelection(*args
, **kwargs
):
1322 """SetSelection(self, int n, bool select=True)"""
1323 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1325 def Select(*args
, **kwargs
):
1329 This is the same as `SetSelection` and exists only because it is
1330 slightly more natural for controls which support multiple selection.
1332 return _controls_
.ListBox_Select(*args
, **kwargs
)
1334 def Deselect(*args
, **kwargs
):
1335 """Deselect(self, int n)"""
1336 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1338 def DeselectAll(*args
, **kwargs
):
1339 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1340 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1342 def SetStringSelection(*args
, **kwargs
):
1343 """SetStringSelection(self, String s, bool select=True) -> bool"""
1344 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1346 def GetSelections(*args
, **kwargs
):
1347 """GetSelections(self) -> PyObject"""
1348 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1350 def SetFirstItem(*args
, **kwargs
):
1351 """SetFirstItem(self, int n)"""
1352 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1354 def SetFirstItemStr(*args
, **kwargs
):
1355 """SetFirstItemStr(self, String s)"""
1356 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1358 def EnsureVisible(*args
, **kwargs
):
1359 """EnsureVisible(self, int n)"""
1360 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1362 def AppendAndEnsureVisible(*args
, **kwargs
):
1363 """AppendAndEnsureVisible(self, String s)"""
1364 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1366 def IsSorted(*args
, **kwargs
):
1367 """IsSorted(self) -> bool"""
1368 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1370 def HitTest(*args
, **kwargs
):
1372 HitTest(self, Point pt) -> int
1374 Test where the given (in client coords) point lies
1376 return _controls_
.ListBox_HitTest(*args
, **kwargs
)
1378 def SetItemForegroundColour(*args
, **kwargs
):
1379 """SetItemForegroundColour(self, int item, Colour c)"""
1380 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1382 def SetItemBackgroundColour(*args
, **kwargs
):
1383 """SetItemBackgroundColour(self, int item, Colour c)"""
1384 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1386 def SetItemFont(*args
, **kwargs
):
1387 """SetItemFont(self, int item, Font f)"""
1388 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1390 def GetClassDefaultAttributes(*args
, **kwargs
):
1392 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1394 Get the default attributes for this class. This is useful if you want
1395 to use the same font or colour in your own control as in a standard
1396 control -- which is a much better idea than hard coding specific
1397 colours or fonts which might look completely out of place on the
1398 user's system, especially if it uses themes.
1400 The variant parameter is only relevant under Mac currently and is
1401 ignore under other platforms. Under Mac, it will change the size of
1402 the returned font. See `wx.Window.SetWindowVariant` for more about
1405 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1407 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1408 _controls_
.ListBox_swigregister(ListBox
)
1409 ListBoxNameStr
= cvar
.ListBoxNameStr
1411 def PreListBox(*args
, **kwargs
):
1412 """PreListBox() -> ListBox"""
1413 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1416 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1418 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1420 Get the default attributes for this class. This is useful if you want
1421 to use the same font or colour in your own control as in a standard
1422 control -- which is a much better idea than hard coding specific
1423 colours or fonts which might look completely out of place on the
1424 user's system, especially if it uses themes.
1426 The variant parameter is only relevant under Mac currently and is
1427 ignore under other platforms. Under Mac, it will change the size of
1428 the returned font. See `wx.Window.SetWindowVariant` for more about
1431 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1433 #---------------------------------------------------------------------------
1435 class CheckListBox(ListBox
):
1436 """Proxy of C++ CheckListBox class"""
1437 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1438 __repr__
= _swig_repr
1439 def __init__(self
, *args
, **kwargs
):
1441 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1442 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1443 long style=0, Validator validator=DefaultValidator,
1444 String name=ListBoxNameStr) -> CheckListBox
1446 _controls_
.CheckListBox_swiginit(self
,_controls_
.new_CheckListBox(*args
, **kwargs
))
1447 self
._setOORInfo
(self
)
1449 def Create(*args
, **kwargs
):
1451 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1452 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1453 long style=0, Validator validator=DefaultValidator,
1454 String name=ListBoxNameStr) -> bool
1456 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1458 def IsChecked(*args
, **kwargs
):
1459 """IsChecked(self, unsigned int index) -> bool"""
1460 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1462 def Check(*args
, **kwargs
):
1463 """Check(self, unsigned int index, int check=True)"""
1464 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1466 def GetItemHeight(*args
, **kwargs
):
1467 """GetItemHeight(self) -> int"""
1468 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1470 ItemHeight
= property(GetItemHeight
,doc
="See `GetItemHeight`")
1471 _controls_
.CheckListBox_swigregister(CheckListBox
)
1473 def PreCheckListBox(*args
, **kwargs
):
1474 """PreCheckListBox() -> CheckListBox"""
1475 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1478 #---------------------------------------------------------------------------
1480 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1481 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1482 TE_READONLY
= _controls_
.TE_READONLY
1483 TE_MULTILINE
= _controls_
.TE_MULTILINE
1484 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1485 TE_LEFT
= _controls_
.TE_LEFT
1486 TE_CENTER
= _controls_
.TE_CENTER
1487 TE_RIGHT
= _controls_
.TE_RIGHT
1488 TE_CENTRE
= _controls_
.TE_CENTRE
1489 TE_RICH
= _controls_
.TE_RICH
1490 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1491 TE_PASSWORD
= _controls_
.TE_PASSWORD
1492 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1493 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1494 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1495 TE_CHARWRAP
= _controls_
.TE_CHARWRAP
1496 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1497 TE_BESTWRAP
= _controls_
.TE_BESTWRAP
1498 TE_RICH2
= _controls_
.TE_RICH2
1499 TE_CAPITALIZE
= _controls_
.TE_CAPITALIZE
1500 TE_LINEWRAP
= TE_CHARWRAP
1501 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1502 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1503 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1504 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1505 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1506 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1507 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1508 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1509 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1510 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1511 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1512 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1513 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1514 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1515 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1516 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1517 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1518 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1519 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1520 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1521 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1522 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1523 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1524 OutOfRangeTextCoord
= _controls_
.OutOfRangeTextCoord
1525 InvalidTextCoord
= _controls_
.InvalidTextCoord
1526 class TextAttr(object):
1527 """Proxy of C++ TextAttr class"""
1528 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1529 __repr__
= _swig_repr
1530 def __init__(self
, *args
, **kwargs
):
1532 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1533 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1535 _controls_
.TextAttr_swiginit(self
,_controls_
.new_TextAttr(*args
, **kwargs
))
1536 __swig_destroy__
= _controls_
.delete_TextAttr
1537 __del__
= lambda self
: None;
1538 def Init(*args
, **kwargs
):
1540 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1542 def Merge(*args
, **kwargs
):
1543 """Merge(TextAttr base, TextAttr overlay) -> TextAttr"""
1544 return _controls_
.TextAttr_Merge(*args
, **kwargs
)
1546 Merge
= staticmethod(Merge
)
1547 def SetTextColour(*args
, **kwargs
):
1548 """SetTextColour(self, Colour colText)"""
1549 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1551 def SetBackgroundColour(*args
, **kwargs
):
1552 """SetBackgroundColour(self, Colour colBack)"""
1553 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1555 def SetFont(*args
, **kwargs
):
1556 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1557 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1559 def SetAlignment(*args
, **kwargs
):
1560 """SetAlignment(self, int alignment)"""
1561 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1563 def SetTabs(*args
, **kwargs
):
1564 """SetTabs(self, wxArrayInt tabs)"""
1565 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1567 def SetLeftIndent(*args
, **kwargs
):
1568 """SetLeftIndent(self, int indent, int subIndent=0)"""
1569 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1571 def SetRightIndent(*args
, **kwargs
):
1572 """SetRightIndent(self, int indent)"""
1573 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1575 def SetFlags(*args
, **kwargs
):
1576 """SetFlags(self, long flags)"""
1577 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1579 def HasTextColour(*args
, **kwargs
):
1580 """HasTextColour(self) -> bool"""
1581 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1583 def HasBackgroundColour(*args
, **kwargs
):
1584 """HasBackgroundColour(self) -> bool"""
1585 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1587 def HasFont(*args
, **kwargs
):
1588 """HasFont(self) -> bool"""
1589 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1591 def HasAlignment(*args
, **kwargs
):
1592 """HasAlignment(self) -> bool"""
1593 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1595 def HasTabs(*args
, **kwargs
):
1596 """HasTabs(self) -> bool"""
1597 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1599 def HasLeftIndent(*args
, **kwargs
):
1600 """HasLeftIndent(self) -> bool"""
1601 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1603 def HasRightIndent(*args
, **kwargs
):
1604 """HasRightIndent(self) -> bool"""
1605 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1607 def HasFlag(*args
, **kwargs
):
1608 """HasFlag(self, long flag) -> bool"""
1609 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1611 def GetTextColour(*args
, **kwargs
):
1612 """GetTextColour(self) -> Colour"""
1613 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1615 def GetBackgroundColour(*args
, **kwargs
):
1616 """GetBackgroundColour(self) -> Colour"""
1617 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1619 def GetFont(*args
, **kwargs
):
1620 """GetFont(self) -> Font"""
1621 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1623 def GetAlignment(*args
, **kwargs
):
1624 """GetAlignment(self) -> int"""
1625 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1627 def GetTabs(*args
, **kwargs
):
1628 """GetTabs(self) -> wxArrayInt"""
1629 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1631 def GetLeftIndent(*args
, **kwargs
):
1632 """GetLeftIndent(self) -> long"""
1633 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1635 def GetLeftSubIndent(*args
, **kwargs
):
1636 """GetLeftSubIndent(self) -> long"""
1637 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1639 def GetRightIndent(*args
, **kwargs
):
1640 """GetRightIndent(self) -> long"""
1641 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1643 def GetFlags(*args
, **kwargs
):
1644 """GetFlags(self) -> long"""
1645 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1647 def IsDefault(*args
, **kwargs
):
1648 """IsDefault(self) -> bool"""
1649 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1651 def Combine(*args
, **kwargs
):
1652 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1653 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1655 Combine
= staticmethod(Combine
)
1656 _controls_
.TextAttr_swigregister(TextAttr
)
1657 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1659 def TextAttr_Merge(*args
, **kwargs
):
1660 """TextAttr_Merge(TextAttr base, TextAttr overlay) -> TextAttr"""
1661 return _controls_
.TextAttr_Merge(*args
, **kwargs
)
1663 def TextAttr_Combine(*args
, **kwargs
):
1664 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1665 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1667 class TextCtrl(_core
.Control
):
1668 """Proxy of C++ TextCtrl class"""
1669 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1670 __repr__
= _swig_repr
1671 def __init__(self
, *args
, **kwargs
):
1673 __init__(self, Window parent, int id=-1, String value=EmptyString,
1674 Point pos=DefaultPosition, Size size=DefaultSize,
1675 long style=0, Validator validator=DefaultValidator,
1676 String name=TextCtrlNameStr) -> TextCtrl
1678 _controls_
.TextCtrl_swiginit(self
,_controls_
.new_TextCtrl(*args
, **kwargs
))
1679 self
._setOORInfo
(self
)
1681 def Create(*args
, **kwargs
):
1683 Create(self, Window parent, int id=-1, String value=EmptyString,
1684 Point pos=DefaultPosition, Size size=DefaultSize,
1685 long style=0, Validator validator=DefaultValidator,
1686 String name=TextCtrlNameStr) -> bool
1688 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1690 def GetValue(*args
, **kwargs
):
1691 """GetValue(self) -> String"""
1692 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1694 def SetValue(*args
, **kwargs
):
1695 """SetValue(self, String value)"""
1696 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1698 def GetRange(*args
, **kwargs
):
1699 """GetRange(self, long from, long to) -> String"""
1700 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1702 def GetLineLength(*args
, **kwargs
):
1703 """GetLineLength(self, long lineNo) -> int"""
1704 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1706 def GetLineText(*args
, **kwargs
):
1707 """GetLineText(self, long lineNo) -> String"""
1708 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1710 def GetNumberOfLines(*args
, **kwargs
):
1711 """GetNumberOfLines(self) -> int"""
1712 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1714 def IsModified(*args
, **kwargs
):
1715 """IsModified(self) -> bool"""
1716 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1718 def IsEditable(*args
, **kwargs
):
1719 """IsEditable(self) -> bool"""
1720 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1722 def IsSingleLine(*args
, **kwargs
):
1723 """IsSingleLine(self) -> bool"""
1724 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1726 def IsMultiLine(*args
, **kwargs
):
1727 """IsMultiLine(self) -> bool"""
1728 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1730 def GetSelection(*args
, **kwargs
):
1732 GetSelection() -> (from, to)
1734 If the return values from and to are the same, there is no selection.
1736 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1738 def GetStringSelection(*args
, **kwargs
):
1739 """GetStringSelection(self) -> String"""
1740 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1742 def Clear(*args
, **kwargs
):
1744 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1746 def Replace(*args
, **kwargs
):
1747 """Replace(self, long from, long to, String value)"""
1748 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1750 def Remove(*args
, **kwargs
):
1751 """Remove(self, long from, long to)"""
1752 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1754 def LoadFile(*args
, **kwargs
):
1755 """LoadFile(self, String file) -> bool"""
1756 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1758 def SaveFile(*args
, **kwargs
):
1759 """SaveFile(self, String file=EmptyString) -> bool"""
1760 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1762 def MarkDirty(*args
, **kwargs
):
1763 """MarkDirty(self)"""
1764 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1766 def DiscardEdits(*args
, **kwargs
):
1767 """DiscardEdits(self)"""
1768 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1770 def SetModified(*args
, **kwargs
):
1771 """SetModified(self, bool modified)"""
1772 return _controls_
.TextCtrl_SetModified(*args
, **kwargs
)
1774 def SetMaxLength(*args
, **kwargs
):
1775 """SetMaxLength(self, unsigned long len)"""
1776 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1778 def WriteText(*args
, **kwargs
):
1779 """WriteText(self, String text)"""
1780 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1782 def AppendText(*args
, **kwargs
):
1783 """AppendText(self, String text)"""
1784 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1786 def EmulateKeyPress(*args
, **kwargs
):
1787 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1788 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1790 def SetStyle(*args
, **kwargs
):
1791 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1792 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1794 def GetStyle(*args
, **kwargs
):
1795 """GetStyle(self, long position, TextAttr style) -> bool"""
1796 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1798 def SetDefaultStyle(*args
, **kwargs
):
1799 """SetDefaultStyle(self, TextAttr style) -> bool"""
1800 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1802 def GetDefaultStyle(*args
, **kwargs
):
1803 """GetDefaultStyle(self) -> TextAttr"""
1804 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1806 def XYToPosition(*args
, **kwargs
):
1807 """XYToPosition(self, long x, long y) -> long"""
1808 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1810 def PositionToXY(*args
, **kwargs
):
1811 """PositionToXY(long pos) -> (x, y)"""
1812 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1814 def ShowPosition(*args
, **kwargs
):
1815 """ShowPosition(self, long pos)"""
1816 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1818 def HitTest(*args
, **kwargs
):
1820 HitTest(Point pt) -> (result, col, row)
1822 Find the row, col coresponding to the character at the point given in
1823 pixels. NB: pt is in device coords but is not adjusted for the client
1824 area origin nor scrolling.
1826 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1828 def HitTestPos(*args
, **kwargs
):
1830 HitTestPos(Point pt) -> (result, position)
1832 Find the character position in the text coresponding to the point
1833 given in pixels. NB: pt is in device coords but is not adjusted for
1834 the client area origin nor scrolling.
1836 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1838 def Copy(*args
, **kwargs
):
1840 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1842 def Cut(*args
, **kwargs
):
1844 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1846 def Paste(*args
, **kwargs
):
1848 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1850 def CanCopy(*args
, **kwargs
):
1851 """CanCopy(self) -> bool"""
1852 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1854 def CanCut(*args
, **kwargs
):
1855 """CanCut(self) -> bool"""
1856 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1858 def CanPaste(*args
, **kwargs
):
1859 """CanPaste(self) -> bool"""
1860 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1862 def Undo(*args
, **kwargs
):
1864 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1866 def Redo(*args
, **kwargs
):
1868 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1870 def CanUndo(*args
, **kwargs
):
1871 """CanUndo(self) -> bool"""
1872 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1874 def CanRedo(*args
, **kwargs
):
1875 """CanRedo(self) -> bool"""
1876 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1878 def SetInsertionPoint(*args
, **kwargs
):
1879 """SetInsertionPoint(self, long pos)"""
1880 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1882 def SetInsertionPointEnd(*args
, **kwargs
):
1883 """SetInsertionPointEnd(self)"""
1884 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1886 def GetInsertionPoint(*args
, **kwargs
):
1887 """GetInsertionPoint(self) -> long"""
1888 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1890 def GetLastPosition(*args
, **kwargs
):
1891 """GetLastPosition(self) -> long"""
1892 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1894 def SetSelection(*args
, **kwargs
):
1895 """SetSelection(self, long from, long to)"""
1896 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1898 def SelectAll(*args
, **kwargs
):
1899 """SelectAll(self)"""
1900 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1902 def SetEditable(*args
, **kwargs
):
1903 """SetEditable(self, bool editable)"""
1904 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1906 def ShowNativeCaret(*args
, **kwargs
):
1907 """ShowNativeCaret(self, bool show=True) -> bool"""
1908 return _controls_
.TextCtrl_ShowNativeCaret(*args
, **kwargs
)
1910 def HideNativeCaret(*args
, **kwargs
):
1911 """HideNativeCaret(self) -> bool"""
1912 return _controls_
.TextCtrl_HideNativeCaret(*args
, **kwargs
)
1914 def write(*args
, **kwargs
):
1915 """write(self, String text)"""
1916 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1918 def GetString(*args
, **kwargs
):
1919 """GetString(self, long from, long to) -> String"""
1920 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1922 def GetClassDefaultAttributes(*args
, **kwargs
):
1924 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1926 Get the default attributes for this class. This is useful if you want
1927 to use the same font or colour in your own control as in a standard
1928 control -- which is a much better idea than hard coding specific
1929 colours or fonts which might look completely out of place on the
1930 user's system, especially if it uses themes.
1932 The variant parameter is only relevant under Mac currently and is
1933 ignore under other platforms. Under Mac, it will change the size of
1934 the returned font. See `wx.Window.SetWindowVariant` for more about
1937 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1939 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1940 _controls_
.TextCtrl_swigregister(TextCtrl
)
1942 def PreTextCtrl(*args
, **kwargs
):
1943 """PreTextCtrl() -> TextCtrl"""
1944 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1947 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1949 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1951 Get the default attributes for this class. This is useful if you want
1952 to use the same font or colour in your own control as in a standard
1953 control -- which is a much better idea than hard coding specific
1954 colours or fonts which might look completely out of place on the
1955 user's system, especially if it uses themes.
1957 The variant parameter is only relevant under Mac currently and is
1958 ignore under other platforms. Under Mac, it will change the size of
1959 the returned font. See `wx.Window.SetWindowVariant` for more about
1962 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1964 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1965 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1966 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1967 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1968 class TextUrlEvent(_core
.CommandEvent
):
1969 """Proxy of C++ TextUrlEvent class"""
1970 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1971 __repr__
= _swig_repr
1972 def __init__(self
, *args
, **kwargs
):
1973 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1974 _controls_
.TextUrlEvent_swiginit(self
,_controls_
.new_TextUrlEvent(*args
, **kwargs
))
1975 def GetMouseEvent(*args
, **kwargs
):
1976 """GetMouseEvent(self) -> MouseEvent"""
1977 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1979 def GetURLStart(*args
, **kwargs
):
1980 """GetURLStart(self) -> long"""
1981 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1983 def GetURLEnd(*args
, **kwargs
):
1984 """GetURLEnd(self) -> long"""
1985 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1987 _controls_
.TextUrlEvent_swigregister(TextUrlEvent
)
1989 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1990 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1991 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1992 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1994 #---------------------------------------------------------------------------
1996 class ScrollBar(_core
.Control
):
1997 """Proxy of C++ ScrollBar class"""
1998 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1999 __repr__
= _swig_repr
2000 def __init__(self
, *args
, **kwargs
):
2002 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2003 Size size=DefaultSize, long style=SB_HORIZONTAL,
2004 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
2006 _controls_
.ScrollBar_swiginit(self
,_controls_
.new_ScrollBar(*args
, **kwargs
))
2007 self
._setOORInfo
(self
)
2009 def Create(*args
, **kwargs
):
2011 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2012 Size size=DefaultSize, long style=SB_HORIZONTAL,
2013 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2015 Do the 2nd phase and create the GUI control.
2017 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2019 def GetThumbPosition(*args
, **kwargs
):
2020 """GetThumbPosition(self) -> int"""
2021 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2023 def GetThumbSize(*args
, **kwargs
):
2024 """GetThumbSize(self) -> int"""
2025 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2027 GetThumbLength
= GetThumbSize
2028 def GetPageSize(*args
, **kwargs
):
2029 """GetPageSize(self) -> int"""
2030 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2032 def GetRange(*args
, **kwargs
):
2033 """GetRange(self) -> int"""
2034 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2036 def IsVertical(*args
, **kwargs
):
2037 """IsVertical(self) -> bool"""
2038 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2040 def SetThumbPosition(*args
, **kwargs
):
2041 """SetThumbPosition(self, int viewStart)"""
2042 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2044 def GetClassDefaultAttributes(*args
, **kwargs
):
2046 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2048 Get the default attributes for this class. This is useful if you want
2049 to use the same font or colour in your own control as in a standard
2050 control -- which is a much better idea than hard coding specific
2051 colours or fonts which might look completely out of place on the
2052 user's system, especially if it uses themes.
2054 The variant parameter is only relevant under Mac currently and is
2055 ignore under other platforms. Under Mac, it will change the size of
2056 the returned font. See `wx.Window.SetWindowVariant` for more about
2059 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2061 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2062 _controls_
.ScrollBar_swigregister(ScrollBar
)
2063 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2065 def PreScrollBar(*args
, **kwargs
):
2066 """PreScrollBar() -> ScrollBar"""
2067 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2070 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2072 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2074 Get the default attributes for this class. This is useful if you want
2075 to use the same font or colour in your own control as in a standard
2076 control -- which is a much better idea than hard coding specific
2077 colours or fonts which might look completely out of place on the
2078 user's system, especially if it uses themes.
2080 The variant parameter is only relevant under Mac currently and is
2081 ignore under other platforms. Under Mac, it will change the size of
2082 the returned font. See `wx.Window.SetWindowVariant` for more about
2085 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2087 #---------------------------------------------------------------------------
2089 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2090 SP_VERTICAL
= _controls_
.SP_VERTICAL
2091 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2092 SP_WRAP
= _controls_
.SP_WRAP
2093 class SpinButton(_core
.Control
):
2094 """Proxy of C++ SpinButton class"""
2095 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2096 __repr__
= _swig_repr
2097 def __init__(self
, *args
, **kwargs
):
2099 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2100 Size size=DefaultSize, long style=SP_HORIZONTAL,
2101 String name=SPIN_BUTTON_NAME) -> SpinButton
2103 _controls_
.SpinButton_swiginit(self
,_controls_
.new_SpinButton(*args
, **kwargs
))
2104 self
._setOORInfo
(self
)
2106 def Create(*args
, **kwargs
):
2108 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2109 Size size=DefaultSize, long style=SP_HORIZONTAL,
2110 String name=SPIN_BUTTON_NAME) -> bool
2112 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2114 def GetValue(*args
, **kwargs
):
2115 """GetValue(self) -> int"""
2116 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2118 def GetMin(*args
, **kwargs
):
2119 """GetMin(self) -> int"""
2120 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2122 def GetMax(*args
, **kwargs
):
2123 """GetMax(self) -> int"""
2124 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2126 def SetValue(*args
, **kwargs
):
2127 """SetValue(self, int val)"""
2128 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2130 def SetMin(*args
, **kwargs
):
2131 """SetMin(self, int minVal)"""
2132 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2134 def SetMax(*args
, **kwargs
):
2135 """SetMax(self, int maxVal)"""
2136 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2138 def SetRange(*args
, **kwargs
):
2139 """SetRange(self, int minVal, int maxVal)"""
2140 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2142 def IsVertical(*args
, **kwargs
):
2143 """IsVertical(self) -> bool"""
2144 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2146 def GetClassDefaultAttributes(*args
, **kwargs
):
2148 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2150 Get the default attributes for this class. This is useful if you want
2151 to use the same font or colour in your own control as in a standard
2152 control -- which is a much better idea than hard coding specific
2153 colours or fonts which might look completely out of place on the
2154 user's system, especially if it uses themes.
2156 The variant parameter is only relevant under Mac currently and is
2157 ignore under other platforms. Under Mac, it will change the size of
2158 the returned font. See `wx.Window.SetWindowVariant` for more about
2161 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2163 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2164 _controls_
.SpinButton_swigregister(SpinButton
)
2165 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2166 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2168 def PreSpinButton(*args
, **kwargs
):
2169 """PreSpinButton() -> SpinButton"""
2170 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2173 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2175 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2177 Get the default attributes for this class. This is useful if you want
2178 to use the same font or colour in your own control as in a standard
2179 control -- which is a much better idea than hard coding specific
2180 colours or fonts which might look completely out of place on the
2181 user's system, especially if it uses themes.
2183 The variant parameter is only relevant under Mac currently and is
2184 ignore under other platforms. Under Mac, it will change the size of
2185 the returned font. See `wx.Window.SetWindowVariant` for more about
2188 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2190 class SpinCtrl(_core
.Control
):
2191 """Proxy of C++ SpinCtrl class"""
2192 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2193 __repr__
= _swig_repr
2194 def __init__(self
, *args
, **kwargs
):
2196 __init__(self, Window parent, int id=-1, String value=EmptyString,
2197 Point pos=DefaultPosition, Size size=DefaultSize,
2198 long style=SP_ARROW_KEYS, int min=0, int max=100,
2199 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2201 _controls_
.SpinCtrl_swiginit(self
,_controls_
.new_SpinCtrl(*args
, **kwargs
))
2202 self
._setOORInfo
(self
)
2204 def Create(*args
, **kwargs
):
2206 Create(self, Window parent, int id=-1, String value=EmptyString,
2207 Point pos=DefaultPosition, Size size=DefaultSize,
2208 long style=SP_ARROW_KEYS, int min=0, int max=100,
2209 int initial=0, String name=SpinCtrlNameStr) -> bool
2211 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2213 def GetValue(*args
, **kwargs
):
2214 """GetValue(self) -> int"""
2215 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2217 def SetValue(*args
, **kwargs
):
2218 """SetValue(self, int value)"""
2219 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2221 def SetValueString(*args
, **kwargs
):
2222 """SetValueString(self, String text)"""
2223 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2225 def SetRange(*args
, **kwargs
):
2226 """SetRange(self, int minVal, int maxVal)"""
2227 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2229 def GetMin(*args
, **kwargs
):
2230 """GetMin(self) -> int"""
2231 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2233 def GetMax(*args
, **kwargs
):
2234 """GetMax(self) -> int"""
2235 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2237 def SetSelection(*args
, **kwargs
):
2238 """SetSelection(self, long from, long to)"""
2239 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2241 def GetClassDefaultAttributes(*args
, **kwargs
):
2243 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2245 Get the default attributes for this class. This is useful if you want
2246 to use the same font or colour in your own control as in a standard
2247 control -- which is a much better idea than hard coding specific
2248 colours or fonts which might look completely out of place on the
2249 user's system, especially if it uses themes.
2251 The variant parameter is only relevant under Mac currently and is
2252 ignore under other platforms. Under Mac, it will change the size of
2253 the returned font. See `wx.Window.SetWindowVariant` for more about
2256 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2258 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2259 _controls_
.SpinCtrl_swigregister(SpinCtrl
)
2261 def PreSpinCtrl(*args
, **kwargs
):
2262 """PreSpinCtrl() -> SpinCtrl"""
2263 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2266 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2268 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2270 Get the default attributes for this class. This is useful if you want
2271 to use the same font or colour in your own control as in a standard
2272 control -- which is a much better idea than hard coding specific
2273 colours or fonts which might look completely out of place on the
2274 user's system, especially if it uses themes.
2276 The variant parameter is only relevant under Mac currently and is
2277 ignore under other platforms. Under Mac, it will change the size of
2278 the returned font. See `wx.Window.SetWindowVariant` for more about
2281 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2283 class SpinEvent(_core
.NotifyEvent
):
2284 """Proxy of C++ SpinEvent class"""
2285 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2286 __repr__
= _swig_repr
2287 def __init__(self
, *args
, **kwargs
):
2288 """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2289 _controls_
.SpinEvent_swiginit(self
,_controls_
.new_SpinEvent(*args
, **kwargs
))
2290 def GetPosition(*args
, **kwargs
):
2291 """GetPosition(self) -> int"""
2292 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2294 def SetPosition(*args
, **kwargs
):
2295 """SetPosition(self, int pos)"""
2296 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2298 _controls_
.SpinEvent_swigregister(SpinEvent
)
2300 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2301 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2302 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2303 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2304 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2306 #---------------------------------------------------------------------------
2308 class RadioBox(_core
.Control
):
2309 """Proxy of C++ RadioBox class"""
2310 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2311 __repr__
= _swig_repr
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 _controls_
.RadioBox_swiginit(self
,_controls_
.new_RadioBox(*args
, **kwargs
))
2323 self
._setOORInfo
(self
)
2325 def Create(*args
, **kwargs
):
2327 Create(self, Window parent, int id=-1, String label=EmptyString,
2328 Point pos=DefaultPosition, Size size=DefaultSize,
2329 wxArrayString choices=wxPyEmptyStringArray,
2330 int majorDimension=0, long style=RA_HORIZONTAL,
2331 Validator validator=DefaultValidator,
2332 String name=RadioBoxNameStr) -> bool
2334 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2336 def SetSelection(*args
, **kwargs
):
2337 """SetSelection(self, int n)"""
2338 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2340 def GetSelection(*args
, **kwargs
):
2341 """GetSelection(self) -> int"""
2342 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2344 def GetStringSelection(*args
, **kwargs
):
2345 """GetStringSelection(self) -> String"""
2346 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2348 def SetStringSelection(*args
, **kwargs
):
2349 """SetStringSelection(self, String s) -> bool"""
2350 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2352 def GetCount(*args
, **kwargs
):
2353 """GetCount(self) -> size_t"""
2354 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2356 def FindString(*args
, **kwargs
):
2357 """FindString(self, String s) -> int"""
2358 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2360 def GetString(*args
, **kwargs
):
2361 """GetString(self, int n) -> String"""
2362 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2364 def SetString(*args
, **kwargs
):
2365 """SetString(self, int n, String label)"""
2366 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2368 GetItemLabel
= GetString
2369 SetItemLabel
= SetString
2370 def EnableItem(*args
, **kwargs
):
2371 """EnableItem(self, unsigned int n, bool enable=True)"""
2372 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2374 def ShowItem(*args
, **kwargs
):
2375 """ShowItem(self, unsigned int n, bool show=True)"""
2376 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2378 def IsItemEnabled(*args
, **kwargs
):
2379 """IsItemEnabled(self, unsigned int n) -> bool"""
2380 return _controls_
.RadioBox_IsItemEnabled(*args
, **kwargs
)
2382 def IsItemShown(*args
, **kwargs
):
2383 """IsItemShown(self, unsigned int n) -> bool"""
2384 return _controls_
.RadioBox_IsItemShown(*args
, **kwargs
)
2386 def GetColumnCount(*args
, **kwargs
):
2387 """GetColumnCount(self) -> unsigned int"""
2388 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2390 def GetRowCount(*args
, **kwargs
):
2391 """GetRowCount(self) -> unsigned int"""
2392 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2394 def GetNextItem(*args
, **kwargs
):
2395 """GetNextItem(self, int item, int dir, long style) -> int"""
2396 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2398 def SetItemToolTip(*args
, **kwargs
):
2399 """SetItemToolTip(self, unsigned int item, String text)"""
2400 return _controls_
.RadioBox_SetItemToolTip(*args
, **kwargs
)
2402 def GetItemToolTip(*args
, **kwargs
):
2403 """GetItemToolTip(self, unsigned int item) -> ToolTip"""
2404 return _controls_
.RadioBox_GetItemToolTip(*args
, **kwargs
)
2406 def SetItemHelpText(*args
, **kwargs
):
2407 """SetItemHelpText(self, unsigned int n, String helpText)"""
2408 return _controls_
.RadioBox_SetItemHelpText(*args
, **kwargs
)
2410 def GetItemHelpText(*args
, **kwargs
):
2411 """GetItemHelpText(self, unsigned int n) -> String"""
2412 return _controls_
.RadioBox_GetItemHelpText(*args
, **kwargs
)
2414 def GetClassDefaultAttributes(*args
, **kwargs
):
2416 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2418 Get the default attributes for this class. This is useful if you want
2419 to use the same font or colour in your own control as in a standard
2420 control -- which is a much better idea than hard coding specific
2421 colours or fonts which might look completely out of place on the
2422 user's system, especially if it uses themes.
2424 The variant parameter is only relevant under Mac currently and is
2425 ignore under other platforms. Under Mac, it will change the size of
2426 the returned font. See `wx.Window.SetWindowVariant` for more about
2429 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2431 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2432 _controls_
.RadioBox_swigregister(RadioBox
)
2433 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2434 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2436 def PreRadioBox(*args
, **kwargs
):
2437 """PreRadioBox() -> RadioBox"""
2438 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2441 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2443 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2445 Get the default attributes for this class. This is useful if you want
2446 to use the same font or colour in your own control as in a standard
2447 control -- which is a much better idea than hard coding specific
2448 colours or fonts which might look completely out of place on the
2449 user's system, especially if it uses themes.
2451 The variant parameter is only relevant under Mac currently and is
2452 ignore under other platforms. Under Mac, it will change the size of
2453 the returned font. See `wx.Window.SetWindowVariant` for more about
2456 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2458 #---------------------------------------------------------------------------
2460 class RadioButton(_core
.Control
):
2461 """Proxy of C++ RadioButton class"""
2462 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2463 __repr__
= _swig_repr
2464 def __init__(self
, *args
, **kwargs
):
2466 __init__(self, Window parent, int id=-1, String label=EmptyString,
2467 Point pos=DefaultPosition, Size size=DefaultSize,
2468 long style=0, Validator validator=DefaultValidator,
2469 String name=RadioButtonNameStr) -> RadioButton
2471 _controls_
.RadioButton_swiginit(self
,_controls_
.new_RadioButton(*args
, **kwargs
))
2472 self
._setOORInfo
(self
)
2474 def Create(*args
, **kwargs
):
2476 Create(self, Window parent, int id=-1, String label=EmptyString,
2477 Point pos=DefaultPosition, Size size=DefaultSize,
2478 long style=0, Validator validator=DefaultValidator,
2479 String name=RadioButtonNameStr) -> bool
2481 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2483 def GetValue(*args
, **kwargs
):
2484 """GetValue(self) -> bool"""
2485 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2487 def SetValue(*args
, **kwargs
):
2488 """SetValue(self, bool value)"""
2489 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2491 def GetClassDefaultAttributes(*args
, **kwargs
):
2493 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2495 Get the default attributes for this class. This is useful if you want
2496 to use the same font or colour in your own control as in a standard
2497 control -- which is a much better idea than hard coding specific
2498 colours or fonts which might look completely out of place on the
2499 user's system, especially if it uses themes.
2501 The variant parameter is only relevant under Mac currently and is
2502 ignore under other platforms. Under Mac, it will change the size of
2503 the returned font. See `wx.Window.SetWindowVariant` for more about
2506 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2508 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2509 _controls_
.RadioButton_swigregister(RadioButton
)
2511 def PreRadioButton(*args
, **kwargs
):
2512 """PreRadioButton() -> RadioButton"""
2513 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2516 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2518 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2520 Get the default attributes for this class. This is useful if you want
2521 to use the same font or colour in your own control as in a standard
2522 control -- which is a much better idea than hard coding specific
2523 colours or fonts which might look completely out of place on the
2524 user's system, especially if it uses themes.
2526 The variant parameter is only relevant under Mac currently and is
2527 ignore under other platforms. Under Mac, it will change the size of
2528 the returned font. See `wx.Window.SetWindowVariant` for more about
2531 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2533 #---------------------------------------------------------------------------
2535 SL_HORIZONTAL
= _controls_
.SL_HORIZONTAL
2536 SL_VERTICAL
= _controls_
.SL_VERTICAL
2537 SL_TICKS
= _controls_
.SL_TICKS
2538 SL_AUTOTICKS
= _controls_
.SL_AUTOTICKS
2539 SL_LABELS
= _controls_
.SL_LABELS
2540 SL_LEFT
= _controls_
.SL_LEFT
2541 SL_TOP
= _controls_
.SL_TOP
2542 SL_RIGHT
= _controls_
.SL_RIGHT
2543 SL_BOTTOM
= _controls_
.SL_BOTTOM
2544 SL_BOTH
= _controls_
.SL_BOTH
2545 SL_SELRANGE
= _controls_
.SL_SELRANGE
2546 SL_INVERSE
= _controls_
.SL_INVERSE
2547 class Slider(_core
.Control
):
2548 """Proxy of C++ Slider class"""
2549 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2550 __repr__
= _swig_repr
2551 def __init__(self
, *args
, **kwargs
):
2553 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2554 int maxValue=100, Point pos=DefaultPosition,
2555 Size size=DefaultSize, long style=SL_HORIZONTAL,
2556 Validator validator=DefaultValidator,
2557 String name=SliderNameStr) -> Slider
2559 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2560 _controls_
.Slider_swiginit(self
,_controls_
.new_Slider(*args
, **kwargs
))
2561 self
._setOORInfo
(self
)
2563 def Create(*args
, **kwargs
):
2565 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2566 int maxValue=100, Point pos=DefaultPosition,
2567 Size size=DefaultSize, long style=SL_HORIZONTAL,
2568 Validator validator=DefaultValidator,
2569 String name=SliderNameStr) -> bool
2571 return _controls_
.Slider_Create(*args
, **kwargs
)
2573 def GetValue(*args
, **kwargs
):
2574 """GetValue(self) -> int"""
2575 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2577 def SetValue(*args
, **kwargs
):
2578 """SetValue(self, int value)"""
2579 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2581 def SetRange(*args
, **kwargs
):
2582 """SetRange(self, int minValue, int maxValue)"""
2583 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2585 def GetMin(*args
, **kwargs
):
2586 """GetMin(self) -> int"""
2587 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2589 def GetMax(*args
, **kwargs
):
2590 """GetMax(self) -> int"""
2591 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2593 def SetMin(*args
, **kwargs
):
2594 """SetMin(self, int minValue)"""
2595 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2597 def SetMax(*args
, **kwargs
):
2598 """SetMax(self, int maxValue)"""
2599 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2601 def SetLineSize(*args
, **kwargs
):
2602 """SetLineSize(self, int lineSize)"""
2603 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2605 def SetPageSize(*args
, **kwargs
):
2606 """SetPageSize(self, int pageSize)"""
2607 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2609 def GetLineSize(*args
, **kwargs
):
2610 """GetLineSize(self) -> int"""
2611 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2613 def GetPageSize(*args
, **kwargs
):
2614 """GetPageSize(self) -> int"""
2615 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2617 def SetThumbLength(*args
, **kwargs
):
2618 """SetThumbLength(self, int lenPixels)"""
2619 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2621 def GetThumbLength(*args
, **kwargs
):
2622 """GetThumbLength(self) -> int"""
2623 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2625 def SetTickFreq(*args
, **kwargs
):
2626 """SetTickFreq(self, int n, int pos=1)"""
2627 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2629 def GetTickFreq(*args
, **kwargs
):
2630 """GetTickFreq(self) -> int"""
2631 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2633 def ClearTicks(*args
, **kwargs
):
2634 """ClearTicks(self)"""
2635 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2637 def SetTick(*args
, **kwargs
):
2638 """SetTick(self, int tickPos)"""
2639 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2641 def ClearSel(*args
, **kwargs
):
2642 """ClearSel(self)"""
2643 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2645 def GetSelEnd(*args
, **kwargs
):
2646 """GetSelEnd(self) -> int"""
2647 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2649 def GetSelStart(*args
, **kwargs
):
2650 """GetSelStart(self) -> int"""
2651 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2653 def SetSelection(*args
, **kwargs
):
2654 """SetSelection(self, int min, int max)"""
2655 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2657 def GetClassDefaultAttributes(*args
, **kwargs
):
2659 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2661 Get the default attributes for this class. This is useful if you want
2662 to use the same font or colour in your own control as in a standard
2663 control -- which is a much better idea than hard coding specific
2664 colours or fonts which might look completely out of place on the
2665 user's system, especially if it uses themes.
2667 The variant parameter is only relevant under Mac currently and is
2668 ignore under other platforms. Under Mac, it will change the size of
2669 the returned font. See `wx.Window.SetWindowVariant` for more about
2672 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2674 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2675 _controls_
.Slider_swigregister(Slider
)
2676 SliderNameStr
= cvar
.SliderNameStr
2678 def PreSlider(*args
, **kwargs
):
2679 """PreSlider() -> Slider"""
2680 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2683 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2685 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2687 Get the default attributes for this class. This is useful if you want
2688 to use the same font or colour in your own control as in a standard
2689 control -- which is a much better idea than hard coding specific
2690 colours or fonts which might look completely out of place on the
2691 user's system, especially if it uses themes.
2693 The variant parameter is only relevant under Mac currently and is
2694 ignore under other platforms. Under Mac, it will change the size of
2695 the returned font. See `wx.Window.SetWindowVariant` for more about
2698 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2700 #---------------------------------------------------------------------------
2702 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2703 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2705 class ToggleButton(_core
.Control
):
2706 """Proxy of C++ ToggleButton class"""
2707 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2708 __repr__
= _swig_repr
2709 def __init__(self
, *args
, **kwargs
):
2711 __init__(self, Window parent, int id=-1, String label=EmptyString,
2712 Point pos=DefaultPosition, Size size=DefaultSize,
2713 long style=0, Validator validator=DefaultValidator,
2714 String name=ToggleButtonNameStr) -> ToggleButton
2716 _controls_
.ToggleButton_swiginit(self
,_controls_
.new_ToggleButton(*args
, **kwargs
))
2717 self
._setOORInfo
(self
)
2719 def Create(*args
, **kwargs
):
2721 Create(self, Window parent, int id=-1, String label=EmptyString,
2722 Point pos=DefaultPosition, Size size=DefaultSize,
2723 long style=0, Validator validator=DefaultValidator,
2724 String name=ToggleButtonNameStr) -> bool
2726 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2728 def SetValue(*args
, **kwargs
):
2729 """SetValue(self, bool value)"""
2730 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2732 def GetValue(*args
, **kwargs
):
2733 """GetValue(self) -> bool"""
2734 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2736 def GetClassDefaultAttributes(*args
, **kwargs
):
2738 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2740 Get the default attributes for this class. This is useful if you want
2741 to use the same font or colour in your own control as in a standard
2742 control -- which is a much better idea than hard coding specific
2743 colours or fonts which might look completely out of place on the
2744 user's system, especially if it uses themes.
2746 The variant parameter is only relevant under Mac currently and is
2747 ignore under other platforms. Under Mac, it will change the size of
2748 the returned font. See `wx.Window.SetWindowVariant` for more about
2751 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2753 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2754 _controls_
.ToggleButton_swigregister(ToggleButton
)
2755 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2757 def PreToggleButton(*args
, **kwargs
):
2758 """PreToggleButton() -> ToggleButton"""
2759 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2762 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2764 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2766 Get the default attributes for this class. This is useful if you want
2767 to use the same font or colour in your own control as in a standard
2768 control -- which is a much better idea than hard coding specific
2769 colours or fonts which might look completely out of place on the
2770 user's system, especially if it uses themes.
2772 The variant parameter is only relevant under Mac currently and is
2773 ignore under other platforms. Under Mac, it will change the size of
2774 the returned font. See `wx.Window.SetWindowVariant` for more about
2777 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2779 #---------------------------------------------------------------------------
2781 BK_DEFAULT
= _controls_
.BK_DEFAULT
2782 BK_TOP
= _controls_
.BK_TOP
2783 BK_BOTTOM
= _controls_
.BK_BOTTOM
2784 BK_LEFT
= _controls_
.BK_LEFT
2785 BK_RIGHT
= _controls_
.BK_RIGHT
2786 BK_ALIGN_MASK
= _controls_
.BK_ALIGN_MASK
2787 BK_BUTTONBAR
= _controls_
.BK_BUTTONBAR
2788 BK_HITTEST_NOWHERE
= _controls_
.BK_HITTEST_NOWHERE
2789 BK_HITTEST_ONICON
= _controls_
.BK_HITTEST_ONICON
2790 BK_HITTEST_ONLABEL
= _controls_
.BK_HITTEST_ONLABEL
2791 BK_HITTEST_ONITEM
= _controls_
.BK_HITTEST_ONITEM
2792 BK_HITTEST_ONPAGE
= _controls_
.BK_HITTEST_ONPAGE
2793 class BookCtrlBase(_core
.Control
):
2794 """Proxy of C++ BookCtrlBase class"""
2795 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2796 def __init__(self
): raise AttributeError, "No constructor defined"
2797 __repr__
= _swig_repr
2798 def GetPageCount(*args
, **kwargs
):
2799 """GetPageCount(self) -> size_t"""
2800 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2802 def GetPage(*args
, **kwargs
):
2803 """GetPage(self, size_t n) -> Window"""
2804 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2806 def GetCurrentPage(*args
, **kwargs
):
2807 """GetCurrentPage(self) -> Window"""
2808 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2810 def GetSelection(*args
, **kwargs
):
2811 """GetSelection(self) -> int"""
2812 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2814 def SetPageText(*args
, **kwargs
):
2815 """SetPageText(self, size_t n, String strText) -> bool"""
2816 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2818 def GetPageText(*args
, **kwargs
):
2819 """GetPageText(self, size_t n) -> String"""
2820 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2822 def SetImageList(*args
, **kwargs
):
2823 """SetImageList(self, ImageList imageList)"""
2824 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2826 def AssignImageList(*args
, **kwargs
):
2827 """AssignImageList(self, ImageList imageList)"""
2828 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2830 def GetImageList(*args
, **kwargs
):
2831 """GetImageList(self) -> ImageList"""
2832 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2834 def GetPageImage(*args
, **kwargs
):
2835 """GetPageImage(self, size_t n) -> int"""
2836 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2838 def SetPageImage(*args
, **kwargs
):
2839 """SetPageImage(self, size_t n, int imageId) -> bool"""
2840 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2842 def SetPageSize(*args
, **kwargs
):
2843 """SetPageSize(self, Size size)"""
2844 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2846 def CalcSizeFromPage(*args
, **kwargs
):
2847 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2848 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2850 def GetInternalBorder(*args
, **kwargs
):
2851 """GetInternalBorder(self) -> unsigned int"""
2852 return _controls_
.BookCtrlBase_GetInternalBorder(*args
, **kwargs
)
2854 def SetInternalBorder(*args
, **kwargs
):
2855 """SetInternalBorder(self, unsigned int internalBorder)"""
2856 return _controls_
.BookCtrlBase_SetInternalBorder(*args
, **kwargs
)
2858 def IsVertical(*args
, **kwargs
):
2859 """IsVertical(self) -> bool"""
2860 return _controls_
.BookCtrlBase_IsVertical(*args
, **kwargs
)
2862 def SetControlMargin(*args
, **kwargs
):
2863 """SetControlMargin(self, int margin)"""
2864 return _controls_
.BookCtrlBase_SetControlMargin(*args
, **kwargs
)
2866 def GetControlMargin(*args
, **kwargs
):
2867 """GetControlMargin(self) -> int"""
2868 return _controls_
.BookCtrlBase_GetControlMargin(*args
, **kwargs
)
2870 def SetFitToCurrentPage(*args
, **kwargs
):
2871 """SetFitToCurrentPage(self, bool fit)"""
2872 return _controls_
.BookCtrlBase_SetFitToCurrentPage(*args
, **kwargs
)
2874 def GetFitToCurrentPage(*args
, **kwargs
):
2875 """GetFitToCurrentPage(self) -> bool"""
2876 return _controls_
.BookCtrlBase_GetFitToCurrentPage(*args
, **kwargs
)
2878 def GetControlSizer(*args
, **kwargs
):
2879 """GetControlSizer(self) -> Sizer"""
2880 return _controls_
.BookCtrlBase_GetControlSizer(*args
, **kwargs
)
2882 def DeletePage(*args
, **kwargs
):
2883 """DeletePage(self, size_t n) -> bool"""
2884 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2886 def RemovePage(*args
, **kwargs
):
2887 """RemovePage(self, size_t n) -> bool"""
2888 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
2890 def DeleteAllPages(*args
, **kwargs
):
2891 """DeleteAllPages(self) -> bool"""
2892 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
2894 def AddPage(*args
, **kwargs
):
2895 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2896 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
2898 def InsertPage(*args
, **kwargs
):
2900 InsertPage(self, size_t n, Window page, String text, bool select=False,
2901 int imageId=-1) -> bool
2903 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
2905 def SetSelection(*args
, **kwargs
):
2906 """SetSelection(self, size_t n) -> int"""
2907 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
2909 def AdvanceSelection(*args
, **kwargs
):
2910 """AdvanceSelection(self, bool forward=True)"""
2911 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
2913 def HitTest(*args
, **kwargs
):
2915 HitTest(Point pt) -> (tab, where)
2917 Returns the page/tab which is hit, and flags indicating where using
2918 wx.NB_HITTEST flags.
2920 return _controls_
.BookCtrlBase_HitTest(*args
, **kwargs
)
2922 def GetClassDefaultAttributes(*args
, **kwargs
):
2924 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2926 Get the default attributes for this class. This is useful if you want
2927 to use the same font or colour in your own control as in a standard
2928 control -- which is a much better idea than hard coding specific
2929 colours or fonts which might look completely out of place on the
2930 user's system, especially if it uses themes.
2932 The variant parameter is only relevant under Mac currently and is
2933 ignore under other platforms. Under Mac, it will change the size of
2934 the returned font. See `wx.Window.SetWindowVariant` for more about
2937 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2939 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2940 ControlMargin
= property(GetControlMargin
,SetControlMargin
,doc
="See `GetControlMargin` and `SetControlMargin`")
2941 ControlSizer
= property(GetControlSizer
,doc
="See `GetControlSizer`")
2942 CurrentPage
= property(GetCurrentPage
,doc
="See `GetCurrentPage`")
2943 FitToCurrentPage
= property(GetFitToCurrentPage
,SetFitToCurrentPage
,doc
="See `GetFitToCurrentPage` and `SetFitToCurrentPage`")
2944 ImageList
= property(GetImageList
,SetImageList
,doc
="See `GetImageList` and `SetImageList`")
2945 InternalBorder
= property(GetInternalBorder
,SetInternalBorder
,doc
="See `GetInternalBorder` and `SetInternalBorder`")
2946 Page
= property(GetPage
,doc
="See `GetPage`")
2947 PageCount
= property(GetPageCount
,doc
="See `GetPageCount`")
2948 PageImage
= property(GetPageImage
,SetPageImage
,doc
="See `GetPageImage` and `SetPageImage`")
2949 PageText
= property(GetPageText
,SetPageText
,doc
="See `GetPageText` and `SetPageText`")
2950 Selection
= property(GetSelection
,SetSelection
,doc
="See `GetSelection` and `SetSelection`")
2951 _controls_
.BookCtrlBase_swigregister(BookCtrlBase
)
2952 NotebookNameStr
= cvar
.NotebookNameStr
2954 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
2956 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2958 Get the default attributes for this class. This is useful if you want
2959 to use the same font or colour in your own control as in a standard
2960 control -- which is a much better idea than hard coding specific
2961 colours or fonts which might look completely out of place on the
2962 user's system, especially if it uses themes.
2964 The variant parameter is only relevant under Mac currently and is
2965 ignore under other platforms. Under Mac, it will change the size of
2966 the returned font. See `wx.Window.SetWindowVariant` for more about
2969 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2971 class BookCtrlBaseEvent(_core
.NotifyEvent
):
2972 """Proxy of C++ BookCtrlBaseEvent class"""
2973 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2974 __repr__
= _swig_repr
2975 def __init__(self
, *args
, **kwargs
):
2977 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2978 int nOldSel=-1) -> BookCtrlBaseEvent
2980 _controls_
.BookCtrlBaseEvent_swiginit(self
,_controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
))
2981 def GetSelection(*args
, **kwargs
):
2983 GetSelection(self) -> int
2985 Returns item index for a listbox or choice selection event (not valid
2988 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
2990 def SetSelection(*args
, **kwargs
):
2991 """SetSelection(self, int nSel)"""
2992 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
2994 def GetOldSelection(*args
, **kwargs
):
2995 """GetOldSelection(self) -> int"""
2996 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
2998 def SetOldSelection(*args
, **kwargs
):
2999 """SetOldSelection(self, int nOldSel)"""
3000 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
3002 OldSelection
= property(GetOldSelection
,SetOldSelection
,doc
="See `GetOldSelection` and `SetOldSelection`")
3003 Selection
= property(GetSelection
,SetSelection
,doc
="See `GetSelection` and `SetSelection`")
3004 _controls_
.BookCtrlBaseEvent_swigregister(BookCtrlBaseEvent
)
3006 #---------------------------------------------------------------------------
3008 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
3009 NB_TOP
= _controls_
.NB_TOP
3010 NB_LEFT
= _controls_
.NB_LEFT
3011 NB_RIGHT
= _controls_
.NB_RIGHT
3012 NB_BOTTOM
= _controls_
.NB_BOTTOM
3013 NB_MULTILINE
= _controls_
.NB_MULTILINE
3014 NB_NOPAGETHEME
= _controls_
.NB_NOPAGETHEME
3015 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
3016 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
3017 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
3018 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
3019 NB_HITTEST_ONPAGE
= _controls_
.NB_HITTEST_ONPAGE
3020 class Notebook(BookCtrlBase
):
3021 """Proxy of C++ Notebook class"""
3022 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3023 __repr__
= _swig_repr
3024 def __init__(self
, *args
, **kwargs
):
3026 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3027 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
3029 _controls_
.Notebook_swiginit(self
,_controls_
.new_Notebook(*args
, **kwargs
))
3030 self
._setOORInfo
(self
)
3032 def Create(*args
, **kwargs
):
3034 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3035 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
3037 return _controls_
.Notebook_Create(*args
, **kwargs
)
3039 def GetRowCount(*args
, **kwargs
):
3040 """GetRowCount(self) -> int"""
3041 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3043 def SetPadding(*args
, **kwargs
):
3044 """SetPadding(self, Size padding)"""
3045 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3047 def SetTabSize(*args
, **kwargs
):
3048 """SetTabSize(self, Size sz)"""
3049 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3051 def GetThemeBackgroundColour(*args
, **kwargs
):
3052 """GetThemeBackgroundColour(self) -> Colour"""
3053 return _controls_
.Notebook_GetThemeBackgroundColour(*args
, **kwargs
)
3055 def GetClassDefaultAttributes(*args
, **kwargs
):
3057 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3059 Get the default attributes for this class. This is useful if you want
3060 to use the same font or colour in your own control as in a standard
3061 control -- which is a much better idea than hard coding specific
3062 colours or fonts which might look completely out of place on the
3063 user's system, especially if it uses themes.
3065 The variant parameter is only relevant under Mac currently and is
3066 ignore under other platforms. Under Mac, it will change the size of
3067 the returned font. See `wx.Window.SetWindowVariant` for more about
3070 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3072 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3073 _controls_
.Notebook_swigregister(Notebook
)
3075 def PreNotebook(*args
, **kwargs
):
3076 """PreNotebook() -> Notebook"""
3077 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3080 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3082 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3084 Get the default attributes for this class. This is useful if you want
3085 to use the same font or colour in your own control as in a standard
3086 control -- which is a much better idea than hard coding specific
3087 colours or fonts which might look completely out of place on the
3088 user's system, especially if it uses themes.
3090 The variant parameter is only relevant under Mac currently and is
3091 ignore under other platforms. Under Mac, it will change the size of
3092 the returned font. See `wx.Window.SetWindowVariant` for more about
3095 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3097 class NotebookEvent(BookCtrlBaseEvent
):
3098 """Proxy of C++ NotebookEvent class"""
3099 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3100 __repr__
= _swig_repr
3101 def __init__(self
, *args
, **kwargs
):
3103 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3104 int nOldSel=-1) -> NotebookEvent
3106 _controls_
.NotebookEvent_swiginit(self
,_controls_
.new_NotebookEvent(*args
, **kwargs
))
3107 _controls_
.NotebookEvent_swigregister(NotebookEvent
)
3109 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3110 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3112 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3113 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3115 #----------------------------------------------------------------------------
3117 class NotebookPage(wx
.Panel
):
3119 There is an old (and apparently unsolvable) bug when placing a
3120 window with a nonstandard background colour in a wx.Notebook on
3121 wxGTK1, as the notbooks's background colour would always be used
3122 when the window is refreshed. The solution is to place a panel in
3123 the notbook and the coloured window on the panel, sized to cover
3124 the panel. This simple class does that for you, just put an
3125 instance of this in the notebook and make your regular window a
3126 child of this one and it will handle the resize for you.
3128 def __init__(self
, parent
, id=-1,
3129 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3130 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3131 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3133 self
.Bind(wx
.EVT_SIZE
, self
.OnSize
)
3135 def OnSize(self
, evt
):
3136 if self
.child
is None:
3137 children
= self
.GetChildren()
3139 self
.child
= children
[0]
3141 self
.child
.SetPosition((0,0))
3142 self
.child
.SetSize(self
.GetSize())
3145 #---------------------------------------------------------------------------
3147 LB_DEFAULT
= _controls_
.LB_DEFAULT
3148 LB_TOP
= _controls_
.LB_TOP
3149 LB_BOTTOM
= _controls_
.LB_BOTTOM
3150 LB_LEFT
= _controls_
.LB_LEFT
3151 LB_RIGHT
= _controls_
.LB_RIGHT
3152 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3153 class Listbook(BookCtrlBase
):
3154 """Proxy of C++ Listbook class"""
3155 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3156 __repr__
= _swig_repr
3157 def __init__(self
, *args
, **kwargs
):
3159 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3160 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3162 _controls_
.Listbook_swiginit(self
,_controls_
.new_Listbook(*args
, **kwargs
))
3163 self
._setOORInfo
(self
)
3165 def Create(*args
, **kwargs
):
3167 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3168 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3170 return _controls_
.Listbook_Create(*args
, **kwargs
)
3172 def GetListView(*args
, **kwargs
):
3173 """GetListView(self) -> ListView"""
3174 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3176 _controls_
.Listbook_swigregister(Listbook
)
3178 def PreListbook(*args
, **kwargs
):
3179 """PreListbook() -> Listbook"""
3180 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3183 class ListbookEvent(BookCtrlBaseEvent
):
3184 """Proxy of C++ ListbookEvent class"""
3185 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3186 __repr__
= _swig_repr
3187 def __init__(self
, *args
, **kwargs
):
3189 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3190 int nOldSel=-1) -> ListbookEvent
3192 _controls_
.ListbookEvent_swiginit(self
,_controls_
.new_ListbookEvent(*args
, **kwargs
))
3193 _controls_
.ListbookEvent_swigregister(ListbookEvent
)
3195 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3196 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3197 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3198 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3200 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3201 CHB_TOP
= _controls_
.CHB_TOP
3202 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3203 CHB_LEFT
= _controls_
.CHB_LEFT
3204 CHB_RIGHT
= _controls_
.CHB_RIGHT
3205 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3206 class Choicebook(BookCtrlBase
):
3207 """Proxy of C++ Choicebook class"""
3208 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3209 __repr__
= _swig_repr
3210 def __init__(self
, *args
, **kwargs
):
3212 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3213 long style=0, String name=EmptyString) -> Choicebook
3215 _controls_
.Choicebook_swiginit(self
,_controls_
.new_Choicebook(*args
, **kwargs
))
3216 self
._setOORInfo
(self
)
3218 def Create(*args
, **kwargs
):
3220 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3221 long style=0, String name=EmptyString) -> bool
3223 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3225 def GetChoiceCtrl(*args
, **kwargs
):
3226 """GetChoiceCtrl(self) -> Choice"""
3227 return _controls_
.Choicebook_GetChoiceCtrl(*args
, **kwargs
)
3229 ChoiceCtrl
= property(GetChoiceCtrl
,doc
="See `GetChoiceCtrl`")
3230 _controls_
.Choicebook_swigregister(Choicebook
)
3232 def PreChoicebook(*args
, **kwargs
):
3233 """PreChoicebook() -> Choicebook"""
3234 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3237 class ChoicebookEvent(BookCtrlBaseEvent
):
3238 """Proxy of C++ ChoicebookEvent class"""
3239 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3240 __repr__
= _swig_repr
3241 def __init__(self
, *args
, **kwargs
):
3243 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3244 int nOldSel=-1) -> ChoicebookEvent
3246 _controls_
.ChoicebookEvent_swiginit(self
,_controls_
.new_ChoicebookEvent(*args
, **kwargs
))
3247 _controls_
.ChoicebookEvent_swigregister(ChoicebookEvent
)
3249 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3250 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3251 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3252 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3254 #---------------------------------------------------------------------------
3256 class Treebook(BookCtrlBase
):
3257 """Proxy of C++ Treebook class"""
3258 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3259 __repr__
= _swig_repr
3260 def __init__(self
, *args
, **kwargs
):
3262 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3263 long style=BK_DEFAULT,
3264 String name=EmptyString) -> Treebook
3266 _controls_
.Treebook_swiginit(self
,_controls_
.new_Treebook(*args
, **kwargs
))
3267 self
._setOORInfo
(self
)
3269 def Create(*args
, **kwargs
):
3271 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3272 long style=BK_DEFAULT,
3273 String name=EmptyString) -> bool
3275 return _controls_
.Treebook_Create(*args
, **kwargs
)
3277 def InsertSubPage(*args
, **kwargs
):
3279 InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
3280 int imageId=NOT_FOUND) -> bool
3282 return _controls_
.Treebook_InsertSubPage(*args
, **kwargs
)
3284 def AddSubPage(*args
, **kwargs
):
3285 """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
3286 return _controls_
.Treebook_AddSubPage(*args
, **kwargs
)
3288 def IsNodeExpanded(*args
, **kwargs
):
3289 """IsNodeExpanded(self, size_t pos) -> bool"""
3290 return _controls_
.Treebook_IsNodeExpanded(*args
, **kwargs
)
3292 def ExpandNode(*args
, **kwargs
):
3293 """ExpandNode(self, size_t pos, bool expand=True) -> bool"""
3294 return _controls_
.Treebook_ExpandNode(*args
, **kwargs
)
3296 def CollapseNode(*args
, **kwargs
):
3297 """CollapseNode(self, size_t pos) -> bool"""
3298 return _controls_
.Treebook_CollapseNode(*args
, **kwargs
)
3300 def GetPageParent(*args
, **kwargs
):
3301 """GetPageParent(self, size_t pos) -> int"""
3302 return _controls_
.Treebook_GetPageParent(*args
, **kwargs
)
3304 def GetTreeCtrl(*args
, **kwargs
):
3305 """GetTreeCtrl(self) -> TreeCtrl"""
3306 return _controls_
.Treebook_GetTreeCtrl(*args
, **kwargs
)
3308 _controls_
.Treebook_swigregister(Treebook
)
3310 def PreTreebook(*args
, **kwargs
):
3311 """PreTreebook() -> Treebook"""
3312 val
= _controls_
.new_PreTreebook(*args
, **kwargs
)
3315 class TreebookEvent(BookCtrlBaseEvent
):
3316 """Proxy of C++ TreebookEvent class"""
3317 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3318 __repr__
= _swig_repr
3319 def __init__(self
, *args
, **kwargs
):
3321 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3322 int nOldSel=NOT_FOUND) -> TreebookEvent
3324 _controls_
.TreebookEvent_swiginit(self
,_controls_
.new_TreebookEvent(*args
, **kwargs
))
3325 _controls_
.TreebookEvent_swigregister(TreebookEvent
)
3327 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
3328 wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
3329 wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
3330 wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
= _controls_
.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
3331 EVT_TREEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
, 1 )
3332 EVT_TREEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
, 1)
3333 EVT_TREEBOOK_NODE_COLLAPSED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
, 1 )
3334 EVT_TREEBOOK_NODE_EXPANDED
= wx
.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
, 1 )
3336 #---------------------------------------------------------------------------
3338 class Toolbook(BookCtrlBase
):
3339 """Proxy of C++ Toolbook class"""
3340 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3341 __repr__
= _swig_repr
3342 def __init__(self
, *args
, **kwargs
):
3344 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3345 long style=BK_DEFAULT,
3346 String name=EmptyString) -> Toolbook
3348 _controls_
.Toolbook_swiginit(self
,_controls_
.new_Toolbook(*args
, **kwargs
))
3349 self
._setOORInfo
(self
)
3351 def Create(*args
, **kwargs
):
3353 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3354 long style=0, String name=wxEmptyString) -> bool
3356 return _controls_
.Toolbook_Create(*args
, **kwargs
)
3358 def GetToolBar(*args
, **kwargs
):
3359 """GetToolBar(self) -> ToolBarBase"""
3360 return _controls_
.Toolbook_GetToolBar(*args
, **kwargs
)
3362 def Realize(*args
, **kwargs
):
3364 return _controls_
.Toolbook_Realize(*args
, **kwargs
)
3366 _controls_
.Toolbook_swigregister(Toolbook
)
3368 def PreToolbook(*args
, **kwargs
):
3369 """PreToolbook() -> Toolbook"""
3370 val
= _controls_
.new_PreToolbook(*args
, **kwargs
)
3373 class ToolbookEvent(BookCtrlBaseEvent
):
3374 """Proxy of C++ ToolbookEvent class"""
3375 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3376 __repr__
= _swig_repr
3377 def __init__(self
, *args
, **kwargs
):
3379 __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
3380 int nOldSel=NOT_FOUND) -> ToolbookEvent
3382 _controls_
.ToolbookEvent_swiginit(self
,_controls_
.new_ToolbookEvent(*args
, **kwargs
))
3383 _controls_
.ToolbookEvent_swigregister(ToolbookEvent
)
3385 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
3386 wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
3387 EVT_TOOLBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
, 1)
3388 EVT_TOOLBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
, 1)
3390 #---------------------------------------------------------------------------
3392 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3393 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3394 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3395 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3396 TB_VERTICAL
= _controls_
.TB_VERTICAL
3397 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3398 TB_FLAT
= _controls_
.TB_FLAT
3399 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3400 TB_NOICONS
= _controls_
.TB_NOICONS
3401 TB_TEXT
= _controls_
.TB_TEXT
3402 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3403 TB_NOALIGN
= _controls_
.TB_NOALIGN
3404 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3405 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3406 TB_NO_TOOLTIPS
= _controls_
.TB_NO_TOOLTIPS
3407 class ToolBarToolBase(_core
.Object
):
3408 """Proxy of C++ ToolBarToolBase class"""
3409 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3410 def __init__(self
): raise AttributeError, "No constructor defined"
3411 __repr__
= _swig_repr
3412 def GetId(*args
, **kwargs
):
3413 """GetId(self) -> int"""
3414 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3416 def GetControl(*args
, **kwargs
):
3417 """GetControl(self) -> Control"""
3418 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3420 def GetToolBar(*args
, **kwargs
):
3421 """GetToolBar(self) -> ToolBarBase"""
3422 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3424 def IsButton(*args
, **kwargs
):
3425 """IsButton(self) -> int"""
3426 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3428 def IsControl(*args
, **kwargs
):
3429 """IsControl(self) -> int"""
3430 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3432 def IsSeparator(*args
, **kwargs
):
3433 """IsSeparator(self) -> int"""
3434 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3436 def GetStyle(*args
, **kwargs
):
3437 """GetStyle(self) -> int"""
3438 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3440 def GetKind(*args
, **kwargs
):
3441 """GetKind(self) -> int"""
3442 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3444 def IsEnabled(*args
, **kwargs
):
3445 """IsEnabled(self) -> bool"""
3446 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3448 def IsToggled(*args
, **kwargs
):
3449 """IsToggled(self) -> bool"""
3450 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3452 def CanBeToggled(*args
, **kwargs
):
3453 """CanBeToggled(self) -> bool"""
3454 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3456 def GetNormalBitmap(*args
, **kwargs
):
3457 """GetNormalBitmap(self) -> Bitmap"""
3458 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3460 def GetDisabledBitmap(*args
, **kwargs
):
3461 """GetDisabledBitmap(self) -> Bitmap"""
3462 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3464 def GetBitmap(*args
, **kwargs
):
3465 """GetBitmap(self) -> Bitmap"""
3466 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3468 def GetLabel(*args
, **kwargs
):
3469 """GetLabel(self) -> String"""
3470 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3472 def GetShortHelp(*args
, **kwargs
):
3473 """GetShortHelp(self) -> String"""
3474 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3476 def GetLongHelp(*args
, **kwargs
):
3477 """GetLongHelp(self) -> String"""
3478 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3480 def Enable(*args
, **kwargs
):
3481 """Enable(self, bool enable) -> bool"""
3482 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3484 def Toggle(*args
, **kwargs
):
3486 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3488 def SetToggle(*args
, **kwargs
):
3489 """SetToggle(self, bool toggle) -> bool"""
3490 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3492 def SetShortHelp(*args
, **kwargs
):
3493 """SetShortHelp(self, String help) -> bool"""
3494 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3496 def SetLongHelp(*args
, **kwargs
):
3497 """SetLongHelp(self, String help) -> bool"""
3498 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3500 def SetNormalBitmap(*args
, **kwargs
):
3501 """SetNormalBitmap(self, Bitmap bmp)"""
3502 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3504 def SetDisabledBitmap(*args
, **kwargs
):
3505 """SetDisabledBitmap(self, Bitmap bmp)"""
3506 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3508 def SetLabel(*args
, **kwargs
):
3509 """SetLabel(self, String label)"""
3510 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3512 def Detach(*args
, **kwargs
):
3514 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3516 def Attach(*args
, **kwargs
):
3517 """Attach(self, ToolBarBase tbar)"""
3518 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3520 def GetClientData(*args
, **kwargs
):
3521 """GetClientData(self) -> PyObject"""
3522 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3524 def SetClientData(*args
, **kwargs
):
3525 """SetClientData(self, PyObject clientData)"""
3526 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3528 GetBitmap1
= GetNormalBitmap
3529 GetBitmap2
= GetDisabledBitmap
3530 SetBitmap1
= SetNormalBitmap
3531 SetBitmap2
= SetDisabledBitmap
3533 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBase
)
3535 class ToolBarBase(_core
.Control
):
3536 """Proxy of C++ ToolBarBase class"""
3537 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3538 def __init__(self
): raise AttributeError, "No constructor defined"
3539 __repr__
= _swig_repr
3540 def DoAddTool(*args
, **kwargs
):
3542 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3543 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3544 String longHelp=EmptyString,
3545 PyObject clientData=None) -> ToolBarToolBase
3547 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3549 def DoInsertTool(*args
, **kwargs
):
3551 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3552 int kind=ITEM_NORMAL,
3553 String shortHelp=EmptyString, String longHelp=EmptyString,
3554 PyObject clientData=None) -> ToolBarToolBase
3556 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3558 # These match the original Add methods for this class, kept for
3559 # backwards compatibility with versions < 2.3.3.
3562 def AddTool(self
, id, bitmap
,
3563 pushedBitmap
= wx
.NullBitmap
,
3566 shortHelpString
= '',
3567 longHelpString
= '') :
3568 '''Old style method to add a tool to the toolbar.'''
3569 kind
= wx
.ITEM_NORMAL
3570 if isToggle
: kind
= wx
.ITEM_CHECK
3571 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3572 shortHelpString
, longHelpString
, clientData
)
3574 def AddSimpleTool(self
, id, bitmap
,
3575 shortHelpString
= '',
3576 longHelpString
= '',
3578 '''Old style method to add a tool to the toolbar.'''
3579 kind
= wx
.ITEM_NORMAL
3580 if isToggle
: kind
= wx
.ITEM_CHECK
3581 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3582 shortHelpString
, longHelpString
, None)
3584 def InsertTool(self
, pos
, id, bitmap
,
3585 pushedBitmap
= wx
.NullBitmap
,
3588 shortHelpString
= '',
3589 longHelpString
= ''):
3590 '''Old style method to insert a tool in the toolbar.'''
3591 kind
= wx
.ITEM_NORMAL
3592 if isToggle
: kind
= wx
.ITEM_CHECK
3593 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3594 shortHelpString
, longHelpString
, clientData
)
3596 def InsertSimpleTool(self
, pos
, id, bitmap
,
3597 shortHelpString
= '',
3598 longHelpString
= '',
3600 '''Old style method to insert a tool in the toolbar.'''
3601 kind
= wx
.ITEM_NORMAL
3602 if isToggle
: kind
= wx
.ITEM_CHECK
3603 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3604 shortHelpString
, longHelpString
, None)
3607 # The following are the new toolbar Add methods starting with
3608 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3609 # able to keep backwards compatibility with using the above
3610 # methods. Eventually these should migrate to be the methods used
3611 # primarily and lose the 'Label' in the name...
3613 def AddLabelTool(self
, id, label
, bitmap
,
3614 bmpDisabled
= wx
.NullBitmap
,
3615 kind
= wx
.ITEM_NORMAL
,
3616 shortHelp
= '', longHelp
= '',
3619 The full AddTool() function.
3621 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3622 is created and used as the disabled image.
3624 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3625 shortHelp
, longHelp
, clientData
)
3628 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3629 bmpDisabled
= wx
.NullBitmap
,
3630 kind
= wx
.ITEM_NORMAL
,
3631 shortHelp
= '', longHelp
= '',
3634 Insert the new tool at the given position, if pos == GetToolsCount(), it
3635 is equivalent to AddTool()
3637 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3638 shortHelp
, longHelp
, clientData
)
3640 def AddCheckLabelTool(self
, id, label
, bitmap
,
3641 bmpDisabled
= wx
.NullBitmap
,
3642 shortHelp
= '', longHelp
= '',
3644 '''Add a check tool, i.e. a tool which can be toggled'''
3645 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3646 shortHelp
, longHelp
, clientData
)
3648 def AddRadioLabelTool(self
, id, label
, bitmap
,
3649 bmpDisabled
= wx
.NullBitmap
,
3650 shortHelp
= '', longHelp
= '',
3653 Add a radio tool, i.e. a tool which can be toggled and releases any
3654 other toggled radio tools in the same group when it happens
3656 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3657 shortHelp
, longHelp
, clientData
)
3660 # For consistency with the backwards compatible methods above, here are
3661 # some non-'Label' versions of the Check and Radio methods
3663 def AddCheckTool(self
, id, bitmap
,
3664 bmpDisabled
= wx
.NullBitmap
,
3665 shortHelp
= '', longHelp
= '',
3667 '''Add a check tool, i.e. a tool which can be toggled'''
3668 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3669 shortHelp
, longHelp
, clientData
)
3671 def AddRadioTool(self
, id, bitmap
,
3672 bmpDisabled
= wx
.NullBitmap
,
3673 shortHelp
= '', longHelp
= '',
3676 Add a radio tool, i.e. a tool which can be toggled and releases any
3677 other toggled radio tools in the same group when it happens
3679 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3680 shortHelp
, longHelp
, clientData
)
3682 def AddToolItem(*args
, **kwargs
):
3683 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3684 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3686 def InsertToolItem(*args
, **kwargs
):
3687 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3688 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3690 def AddControl(*args
, **kwargs
):
3691 """AddControl(self, Control control) -> ToolBarToolBase"""
3692 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3694 def InsertControl(*args
, **kwargs
):
3695 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3696 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3698 def FindControl(*args
, **kwargs
):
3699 """FindControl(self, int id) -> Control"""
3700 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3702 def AddSeparator(*args
, **kwargs
):
3703 """AddSeparator(self) -> ToolBarToolBase"""
3704 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3706 def InsertSeparator(*args
, **kwargs
):
3707 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3708 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3710 def RemoveTool(*args
, **kwargs
):
3711 """RemoveTool(self, int id) -> ToolBarToolBase"""
3712 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3714 def DeleteToolByPos(*args
, **kwargs
):
3715 """DeleteToolByPos(self, size_t pos) -> bool"""
3716 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3718 def DeleteTool(*args
, **kwargs
):
3719 """DeleteTool(self, int id) -> bool"""
3720 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3722 def ClearTools(*args
, **kwargs
):
3723 """ClearTools(self)"""
3724 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3726 def Realize(*args
, **kwargs
):
3727 """Realize(self) -> bool"""
3728 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3730 def EnableTool(*args
, **kwargs
):
3731 """EnableTool(self, int id, bool enable)"""
3732 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3734 def ToggleTool(*args
, **kwargs
):
3735 """ToggleTool(self, int id, bool toggle)"""
3736 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3738 def SetToggle(*args
, **kwargs
):
3739 """SetToggle(self, int id, bool toggle)"""
3740 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3742 def GetToolClientData(*args
, **kwargs
):
3743 """GetToolClientData(self, int id) -> PyObject"""
3744 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3746 def SetToolClientData(*args
, **kwargs
):
3747 """SetToolClientData(self, int id, PyObject clientData)"""
3748 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3750 def GetToolPos(*args
, **kwargs
):
3751 """GetToolPos(self, int id) -> int"""
3752 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3754 def GetToolState(*args
, **kwargs
):
3755 """GetToolState(self, int id) -> bool"""
3756 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3758 def GetToolEnabled(*args
, **kwargs
):
3759 """GetToolEnabled(self, int id) -> bool"""
3760 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3762 def SetToolShortHelp(*args
, **kwargs
):
3763 """SetToolShortHelp(self, int id, String helpString)"""
3764 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3766 def GetToolShortHelp(*args
, **kwargs
):
3767 """GetToolShortHelp(self, int id) -> String"""
3768 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3770 def SetToolLongHelp(*args
, **kwargs
):
3771 """SetToolLongHelp(self, int id, String helpString)"""
3772 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3774 def GetToolLongHelp(*args
, **kwargs
):
3775 """GetToolLongHelp(self, int id) -> String"""
3776 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3778 def SetMarginsXY(*args
, **kwargs
):
3779 """SetMarginsXY(self, int x, int y)"""
3780 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3782 def SetMargins(*args
, **kwargs
):
3783 """SetMargins(self, Size size)"""
3784 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3786 def SetToolPacking(*args
, **kwargs
):
3787 """SetToolPacking(self, int packing)"""
3788 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3790 def SetToolSeparation(*args
, **kwargs
):
3791 """SetToolSeparation(self, int separation)"""
3792 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3794 def GetToolMargins(*args
, **kwargs
):
3795 """GetToolMargins(self) -> Size"""
3796 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3798 def GetMargins(*args
, **kwargs
):
3799 """GetMargins(self) -> Size"""
3800 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3802 def GetToolPacking(*args
, **kwargs
):
3803 """GetToolPacking(self) -> int"""
3804 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3806 def GetToolSeparation(*args
, **kwargs
):
3807 """GetToolSeparation(self) -> int"""
3808 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3810 def SetRows(*args
, **kwargs
):
3811 """SetRows(self, int nRows)"""
3812 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3814 def SetMaxRowsCols(*args
, **kwargs
):
3815 """SetMaxRowsCols(self, int rows, int cols)"""
3816 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3818 def GetMaxRows(*args
, **kwargs
):
3819 """GetMaxRows(self) -> int"""
3820 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3822 def GetMaxCols(*args
, **kwargs
):
3823 """GetMaxCols(self) -> int"""
3824 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3826 def SetToolBitmapSize(*args
, **kwargs
):
3827 """SetToolBitmapSize(self, Size size)"""
3828 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3830 def GetToolBitmapSize(*args
, **kwargs
):
3831 """GetToolBitmapSize(self) -> Size"""
3832 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3834 def GetToolSize(*args
, **kwargs
):
3835 """GetToolSize(self) -> Size"""
3836 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3838 def FindToolForPosition(*args
, **kwargs
):
3839 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3840 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3842 def FindById(*args
, **kwargs
):
3843 """FindById(self, int toolid) -> ToolBarToolBase"""
3844 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3846 def IsVertical(*args
, **kwargs
):
3847 """IsVertical(self) -> bool"""
3848 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3850 def GetToolsCount(*args
, **kwargs
):
3851 """GetToolsCount(self) -> size_t"""
3852 return _controls_
.ToolBarBase_GetToolsCount(*args
, **kwargs
)
3854 _controls_
.ToolBarBase_swigregister(ToolBarBase
)
3856 class ToolBar(ToolBarBase
):
3857 """Proxy of C++ ToolBar class"""
3858 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3859 __repr__
= _swig_repr
3860 def __init__(self
, *args
, **kwargs
):
3862 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3863 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3864 String name=wxPyToolBarNameStr) -> ToolBar
3866 _controls_
.ToolBar_swiginit(self
,_controls_
.new_ToolBar(*args
, **kwargs
))
3867 self
._setOORInfo
(self
)
3869 def Create(*args
, **kwargs
):
3871 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3872 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3873 String name=wxPyToolBarNameStr) -> bool
3875 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3877 def GetClassDefaultAttributes(*args
, **kwargs
):
3879 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3881 Get the default attributes for this class. This is useful if you want
3882 to use the same font or colour in your own control as in a standard
3883 control -- which is a much better idea than hard coding specific
3884 colours or fonts which might look completely out of place on the
3885 user's system, especially if it uses themes.
3887 The variant parameter is only relevant under Mac currently and is
3888 ignore under other platforms. Under Mac, it will change the size of
3889 the returned font. See `wx.Window.SetWindowVariant` for more about
3892 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3894 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3895 _controls_
.ToolBar_swigregister(ToolBar
)
3897 def PreToolBar(*args
, **kwargs
):
3898 """PreToolBar() -> ToolBar"""
3899 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3902 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3904 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3906 Get the default attributes for this class. This is useful if you want
3907 to use the same font or colour in your own control as in a standard
3908 control -- which is a much better idea than hard coding specific
3909 colours or fonts which might look completely out of place on the
3910 user's system, especially if it uses themes.
3912 The variant parameter is only relevant under Mac currently and is
3913 ignore under other platforms. Under Mac, it will change the size of
3914 the returned font. See `wx.Window.SetWindowVariant` for more about
3917 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3919 #---------------------------------------------------------------------------
3921 LC_VRULES
= _controls_
.LC_VRULES
3922 LC_HRULES
= _controls_
.LC_HRULES
3923 LC_ICON
= _controls_
.LC_ICON
3924 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3925 LC_LIST
= _controls_
.LC_LIST
3926 LC_REPORT
= _controls_
.LC_REPORT
3927 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3928 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3929 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3930 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3931 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3932 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3933 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3934 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3935 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3936 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3937 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3938 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3939 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3940 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3941 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3942 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3943 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3944 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3945 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3946 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3947 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3948 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3949 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3950 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3951 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3952 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3953 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3954 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3955 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3956 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3957 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3958 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3959 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3960 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3961 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3962 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3963 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3964 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3965 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3966 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3967 LIST_GETSUBITEMRECT_WHOLEITEM
= _controls_
.LIST_GETSUBITEMRECT_WHOLEITEM
3968 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3969 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3970 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3971 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3972 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3973 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3974 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3975 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3976 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3977 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3978 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3979 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3980 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3981 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3982 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3983 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3984 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3985 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3986 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3987 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3988 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3989 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3990 #---------------------------------------------------------------------------
3992 class ListItemAttr(object):
3993 """Proxy of C++ ListItemAttr class"""
3994 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3995 __repr__
= _swig_repr
3996 def __init__(self
, *args
, **kwargs
):
3998 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3999 Font font=wxNullFont) -> ListItemAttr
4001 _controls_
.ListItemAttr_swiginit(self
,_controls_
.new_ListItemAttr(*args
, **kwargs
))
4002 __swig_destroy__
= _controls_
.delete_ListItemAttr
4003 __del__
= lambda self
: None;
4004 def SetTextColour(*args
, **kwargs
):
4005 """SetTextColour(self, Colour colText)"""
4006 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
4008 def SetBackgroundColour(*args
, **kwargs
):
4009 """SetBackgroundColour(self, Colour colBack)"""
4010 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
4012 def SetFont(*args
, **kwargs
):
4013 """SetFont(self, Font font)"""
4014 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
4016 def HasTextColour(*args
, **kwargs
):
4017 """HasTextColour(self) -> bool"""
4018 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
4020 def HasBackgroundColour(*args
, **kwargs
):
4021 """HasBackgroundColour(self) -> bool"""
4022 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
4024 def HasFont(*args
, **kwargs
):
4025 """HasFont(self) -> bool"""
4026 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4028 def GetTextColour(*args
, **kwargs
):
4029 """GetTextColour(self) -> Colour"""
4030 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4032 def GetBackgroundColour(*args
, **kwargs
):
4033 """GetBackgroundColour(self) -> Colour"""
4034 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4036 def GetFont(*args
, **kwargs
):
4037 """GetFont(self) -> Font"""
4038 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4040 def AssignFrom(*args
, **kwargs
):
4041 """AssignFrom(self, ListItemAttr source)"""
4042 return _controls_
.ListItemAttr_AssignFrom(*args
, **kwargs
)
4044 def Destroy(*args
, **kwargs
):
4046 val
= _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4050 _controls_
.ListItemAttr_swigregister(ListItemAttr
)
4051 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4053 #---------------------------------------------------------------------------
4055 class ListItem(_core
.Object
):
4056 """Proxy of C++ ListItem class"""
4057 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4058 __repr__
= _swig_repr
4059 def __init__(self
, *args
, **kwargs
):
4060 """__init__(self) -> ListItem"""
4061 _controls_
.ListItem_swiginit(self
,_controls_
.new_ListItem(*args
, **kwargs
))
4062 __swig_destroy__
= _controls_
.delete_ListItem
4063 __del__
= lambda self
: None;
4064 def Clear(*args
, **kwargs
):
4066 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4068 def ClearAttributes(*args
, **kwargs
):
4069 """ClearAttributes(self)"""
4070 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4072 def SetMask(*args
, **kwargs
):
4073 """SetMask(self, long mask)"""
4074 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4076 def SetId(*args
, **kwargs
):
4077 """SetId(self, long id)"""
4078 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4080 def SetColumn(*args
, **kwargs
):
4081 """SetColumn(self, int col)"""
4082 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4084 def SetState(*args
, **kwargs
):
4085 """SetState(self, long state)"""
4086 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4088 def SetStateMask(*args
, **kwargs
):
4089 """SetStateMask(self, long stateMask)"""
4090 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4092 def SetText(*args
, **kwargs
):
4093 """SetText(self, String text)"""
4094 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4096 def SetImage(*args
, **kwargs
):
4097 """SetImage(self, int image)"""
4098 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4100 def SetData(*args
, **kwargs
):
4101 """SetData(self, long data)"""
4102 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4104 def SetWidth(*args
, **kwargs
):
4105 """SetWidth(self, int width)"""
4106 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4108 def SetAlign(*args
, **kwargs
):
4109 """SetAlign(self, int align)"""
4110 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4112 def SetTextColour(*args
, **kwargs
):
4113 """SetTextColour(self, Colour colText)"""
4114 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4116 def SetBackgroundColour(*args
, **kwargs
):
4117 """SetBackgroundColour(self, Colour colBack)"""
4118 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4120 def SetFont(*args
, **kwargs
):
4121 """SetFont(self, Font font)"""
4122 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4124 def GetMask(*args
, **kwargs
):
4125 """GetMask(self) -> long"""
4126 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4128 def GetId(*args
, **kwargs
):
4129 """GetId(self) -> long"""
4130 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4132 def GetColumn(*args
, **kwargs
):
4133 """GetColumn(self) -> int"""
4134 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4136 def GetState(*args
, **kwargs
):
4137 """GetState(self) -> long"""
4138 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4140 def GetText(*args
, **kwargs
):
4141 """GetText(self) -> String"""
4142 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4144 def GetImage(*args
, **kwargs
):
4145 """GetImage(self) -> int"""
4146 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4148 def GetData(*args
, **kwargs
):
4149 """GetData(self) -> long"""
4150 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4152 def GetWidth(*args
, **kwargs
):
4153 """GetWidth(self) -> int"""
4154 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4156 def GetAlign(*args
, **kwargs
):
4157 """GetAlign(self) -> int"""
4158 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4160 def GetAttributes(*args
, **kwargs
):
4161 """GetAttributes(self) -> ListItemAttr"""
4162 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4164 def HasAttributes(*args
, **kwargs
):
4165 """HasAttributes(self) -> bool"""
4166 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4168 def GetTextColour(*args
, **kwargs
):
4169 """GetTextColour(self) -> Colour"""
4170 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4172 def GetBackgroundColour(*args
, **kwargs
):
4173 """GetBackgroundColour(self) -> Colour"""
4174 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4176 def GetFont(*args
, **kwargs
):
4177 """GetFont(self) -> Font"""
4178 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4180 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4181 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4182 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4183 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4184 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4185 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4186 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4187 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4188 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4189 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4190 _controls_
.ListItem_swigregister(ListItem
)
4192 #---------------------------------------------------------------------------
4194 class ListEvent(_core
.NotifyEvent
):
4195 """Proxy of C++ ListEvent class"""
4196 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4197 __repr__
= _swig_repr
4198 def __init__(self
, *args
, **kwargs
):
4199 """__init__(self, EventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4200 _controls_
.ListEvent_swiginit(self
,_controls_
.new_ListEvent(*args
, **kwargs
))
4201 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4202 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4203 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4204 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4205 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4206 m_item
= property(_controls_
.ListEvent_m_item_get
)
4207 def GetKeyCode(*args
, **kwargs
):
4208 """GetKeyCode(self) -> int"""
4209 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4211 GetCode
= GetKeyCode
4212 def GetIndex(*args
, **kwargs
):
4213 """GetIndex(self) -> long"""
4214 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4216 def GetColumn(*args
, **kwargs
):
4217 """GetColumn(self) -> int"""
4218 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4220 def GetPoint(*args
, **kwargs
):
4221 """GetPoint(self) -> Point"""
4222 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4224 GetPosition
= GetPoint
4225 def GetLabel(*args
, **kwargs
):
4226 """GetLabel(self) -> String"""
4227 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4229 def GetText(*args
, **kwargs
):
4230 """GetText(self) -> String"""
4231 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4233 def GetImage(*args
, **kwargs
):
4234 """GetImage(self) -> int"""
4235 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4237 def GetData(*args
, **kwargs
):
4238 """GetData(self) -> long"""
4239 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4241 def GetMask(*args
, **kwargs
):
4242 """GetMask(self) -> long"""
4243 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4245 def GetItem(*args
, **kwargs
):
4246 """GetItem(self) -> ListItem"""
4247 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4249 def GetCacheFrom(*args
, **kwargs
):
4250 """GetCacheFrom(self) -> long"""
4251 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4253 def GetCacheTo(*args
, **kwargs
):
4254 """GetCacheTo(self) -> long"""
4255 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4257 def IsEditCancelled(*args
, **kwargs
):
4258 """IsEditCancelled(self) -> bool"""
4259 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4261 def SetEditCanceled(*args
, **kwargs
):
4262 """SetEditCanceled(self, bool editCancelled)"""
4263 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4265 _controls_
.ListEvent_swigregister(ListEvent
)
4267 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4268 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4269 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4270 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4271 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4272 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4273 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4274 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4275 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4276 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4277 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4278 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4279 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4280 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4281 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4282 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4283 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4284 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4285 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4286 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4287 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4288 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4289 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4290 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4291 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4292 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4297 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4298 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4299 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4300 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4301 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4302 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4303 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4304 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4305 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4306 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4307 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4308 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4309 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4310 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4316 #---------------------------------------------------------------------------
4318 class ListCtrl(_core
.Control
):
4319 """Proxy of C++ ListCtrl class"""
4320 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4321 __repr__
= _swig_repr
4322 def __init__(self
, *args
, **kwargs
):
4324 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4325 Size size=DefaultSize, long style=LC_ICON,
4326 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4328 _controls_
.ListCtrl_swiginit(self
,_controls_
.new_ListCtrl(*args
, **kwargs
))
4329 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4331 def Create(*args
, **kwargs
):
4333 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4334 Size size=DefaultSize, long style=LC_ICON,
4335 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4337 Do the 2nd phase and create the GUI control.
4339 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4341 def _setCallbackInfo(*args
, **kwargs
):
4342 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4343 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4345 def GetColumn(*args
, **kwargs
):
4346 """GetColumn(self, int col) -> ListItem"""
4347 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4348 if val
is not None: val
.thisown
= 1
4351 def SetColumn(*args
, **kwargs
):
4352 """SetColumn(self, int col, ListItem item) -> bool"""
4353 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4355 def GetColumnWidth(*args
, **kwargs
):
4356 """GetColumnWidth(self, int col) -> int"""
4357 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4359 def SetColumnWidth(*args
, **kwargs
):
4360 """SetColumnWidth(self, int col, int width) -> bool"""
4361 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4363 def GetCountPerPage(*args
, **kwargs
):
4364 """GetCountPerPage(self) -> int"""
4365 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4367 def GetViewRect(*args
, **kwargs
):
4368 """GetViewRect(self) -> Rect"""
4369 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4371 def GetEditControl(*args
, **kwargs
):
4372 """GetEditControl(self) -> TextCtrl"""
4373 return _controls_
.ListCtrl_GetEditControl(*args
, **kwargs
)
4375 def GetItem(*args
, **kwargs
):
4376 """GetItem(self, long itemId, int col=0) -> ListItem"""
4377 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4378 if val
is not None: val
.thisown
= 1
4381 def SetItem(*args
, **kwargs
):
4382 """SetItem(self, ListItem info) -> bool"""
4383 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4385 def SetStringItem(*args
, **kwargs
):
4386 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4387 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4389 def GetItemState(*args
, **kwargs
):
4390 """GetItemState(self, long item, long stateMask) -> int"""
4391 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4393 def SetItemState(*args
, **kwargs
):
4394 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4395 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4397 def SetItemImage(*args
, **kwargs
):
4398 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4399 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4401 def SetItemColumnImage(*args
, **kwargs
):
4402 """SetItemColumnImage(self, long item, long column, int image) -> bool"""
4403 return _controls_
.ListCtrl_SetItemColumnImage(*args
, **kwargs
)
4405 def GetItemText(*args
, **kwargs
):
4406 """GetItemText(self, long item) -> String"""
4407 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4409 def SetItemText(*args
, **kwargs
):
4410 """SetItemText(self, long item, String str)"""
4411 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4413 def GetItemData(*args
, **kwargs
):
4414 """GetItemData(self, long item) -> long"""
4415 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4417 def SetItemData(*args
, **kwargs
):
4418 """SetItemData(self, long item, long data) -> bool"""
4419 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4421 def GetItemPosition(*args
, **kwargs
):
4422 """GetItemPosition(self, long item) -> Point"""
4423 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4425 def GetItemRect(*args
, **kwargs
):
4426 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4427 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4429 def SetItemPosition(*args
, **kwargs
):
4430 """SetItemPosition(self, long item, Point pos) -> bool"""
4431 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4433 def GetItemCount(*args
, **kwargs
):
4434 """GetItemCount(self) -> int"""
4435 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4437 def GetColumnCount(*args
, **kwargs
):
4438 """GetColumnCount(self) -> int"""
4439 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4441 def GetItemSpacing(*args
, **kwargs
):
4442 """GetItemSpacing(self) -> Size"""
4443 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4445 GetItemSpacing
= wx
._deprecated
(GetItemSpacing
)
4446 def GetSelectedItemCount(*args
, **kwargs
):
4447 """GetSelectedItemCount(self) -> int"""
4448 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4450 def GetTextColour(*args
, **kwargs
):
4451 """GetTextColour(self) -> Colour"""
4452 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4454 def SetTextColour(*args
, **kwargs
):
4455 """SetTextColour(self, Colour col)"""
4456 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4458 def GetTopItem(*args
, **kwargs
):
4459 """GetTopItem(self) -> long"""
4460 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4462 def SetSingleStyle(*args
, **kwargs
):
4463 """SetSingleStyle(self, long style, bool add=True)"""
4464 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4466 def GetNextItem(*args
, **kwargs
):
4467 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4468 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4470 def GetImageList(*args
, **kwargs
):
4471 """GetImageList(self, int which) -> ImageList"""
4472 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4474 def SetImageList(*args
, **kwargs
):
4475 """SetImageList(self, ImageList imageList, int which)"""
4476 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4478 def AssignImageList(*args
, **kwargs
):
4479 """AssignImageList(self, ImageList imageList, int which)"""
4480 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4482 def InReportView(*args
, **kwargs
):
4483 """InReportView(self) -> bool"""
4484 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4486 def IsVirtual(*args
, **kwargs
):
4487 """IsVirtual(self) -> bool"""
4488 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4490 def RefreshItem(*args
, **kwargs
):
4491 """RefreshItem(self, long item)"""
4492 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4494 def RefreshItems(*args
, **kwargs
):
4495 """RefreshItems(self, long itemFrom, long itemTo)"""
4496 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4498 def Arrange(*args
, **kwargs
):
4499 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4500 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4502 def DeleteItem(*args
, **kwargs
):
4503 """DeleteItem(self, long item) -> bool"""
4504 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4506 def DeleteAllItems(*args
, **kwargs
):
4507 """DeleteAllItems(self) -> bool"""
4508 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4510 def DeleteColumn(*args
, **kwargs
):
4511 """DeleteColumn(self, int col) -> bool"""
4512 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4514 def DeleteAllColumns(*args
, **kwargs
):
4515 """DeleteAllColumns(self) -> bool"""
4516 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4518 def ClearAll(*args
, **kwargs
):
4519 """ClearAll(self)"""
4520 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4522 def EditLabel(*args
, **kwargs
):
4523 """EditLabel(self, long item) -> TextCtrl"""
4524 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4526 def EndEditLabel(*args
, **kwargs
):
4527 """EndEditLabel(self, bool cancel) -> bool"""
4528 return _controls_
.ListCtrl_EndEditLabel(*args
, **kwargs
)
4530 def EnsureVisible(*args
, **kwargs
):
4531 """EnsureVisible(self, long item) -> bool"""
4532 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4534 def FindItem(*args
, **kwargs
):
4535 """FindItem(self, long start, String str, bool partial=False) -> long"""
4536 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4538 def FindItemData(*args
, **kwargs
):
4539 """FindItemData(self, long start, long data) -> long"""
4540 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4542 def FindItemAtPos(*args
, **kwargs
):
4543 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4544 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4546 def HitTest(*args
, **kwargs
):
4548 HitTest(Point point) -> (item, where)
4550 Determines which item (if any) is at the specified point, giving
4551 in the second return value (see wx.LIST_HITTEST flags.)
4553 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4555 def HitTestSubItem(*args
, **kwargs
):
4557 HitTestSubItem(Point point) -> (item, where, subItem)
4559 Determines which item (if any) is at the specified point, giving in
4560 the second return value (see wx.LIST_HITTEST flags) and also the subItem, if
4563 return _controls_
.ListCtrl_HitTestSubItem(*args
, **kwargs
)
4565 def InsertItem(*args
, **kwargs
):
4566 """InsertItem(self, ListItem info) -> long"""
4567 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4569 def InsertStringItem(*args
, **kwargs
):
4570 """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long"""
4571 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4573 def InsertImageItem(*args
, **kwargs
):
4574 """InsertImageItem(self, long index, int imageIndex) -> long"""
4575 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4577 def InsertImageStringItem(*args
, **kwargs
):
4578 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4579 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4581 def InsertColumnItem(*args
, **kwargs
):
4582 """InsertColumnItem(self, long col, ListItem info) -> long"""
4583 return _controls_
.ListCtrl_InsertColumnItem(*args
, **kwargs
)
4585 InsertColumnInfo
= InsertColumnItem
4586 def InsertColumn(*args
, **kwargs
):
4588 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4589 int width=-1) -> long
4591 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4593 def SetItemCount(*args
, **kwargs
):
4594 """SetItemCount(self, long count)"""
4595 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4597 def ScrollList(*args
, **kwargs
):
4598 """ScrollList(self, int dx, int dy) -> bool"""
4599 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4601 def SetItemTextColour(*args
, **kwargs
):
4602 """SetItemTextColour(self, long item, Colour col)"""
4603 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4605 def GetItemTextColour(*args
, **kwargs
):
4606 """GetItemTextColour(self, long item) -> Colour"""
4607 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4609 def SetItemBackgroundColour(*args
, **kwargs
):
4610 """SetItemBackgroundColour(self, long item, Colour col)"""
4611 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4613 def GetItemBackgroundColour(*args
, **kwargs
):
4614 """GetItemBackgroundColour(self, long item) -> Colour"""
4615 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4617 def SetItemFont(*args
, **kwargs
):
4618 """SetItemFont(self, long item, Font f)"""
4619 return _controls_
.ListCtrl_SetItemFont(*args
, **kwargs
)
4621 def GetItemFont(*args
, **kwargs
):
4622 """GetItemFont(self, long item) -> Font"""
4623 return _controls_
.ListCtrl_GetItemFont(*args
, **kwargs
)
4627 def Select(self
, idx
, on
=1):
4628 '''[de]select an item'''
4629 if on
: state
= wx
.LIST_STATE_SELECTED
4631 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4633 def Focus(self
, idx
):
4634 '''Focus and show the given item'''
4635 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4636 self
.EnsureVisible(idx
)
4638 def GetFocusedItem(self
):
4639 '''get the currently focused item or -1 if none'''
4640 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4642 def GetFirstSelected(self
, *args
):
4643 '''return first selected item, or -1 when none'''
4644 return self
.GetNextSelected(-1)
4646 def GetNextSelected(self
, item
):
4647 '''return subsequent selected items, or -1 when no more'''
4648 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4650 def IsSelected(self
, idx
):
4651 '''return True if the item is selected'''
4652 return (self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) & wx
.LIST_STATE_SELECTED
) != 0
4654 def SetColumnImage(self
, col
, image
):
4655 item
= self
.GetColumn(col
)
4656 # preserve all other attributes too
4657 item
.SetMask( wx
.LIST_MASK_STATE |
4659 wx
.LIST_MASK_IMAGE |
4662 wx
.LIST_MASK_WIDTH |
4663 wx
.LIST_MASK_FORMAT
)
4664 item
.SetImage(image
)
4665 self
.SetColumn(col
, item
)
4667 def ClearColumnImage(self
, col
):
4668 self
.SetColumnImage(col
, -1)
4670 def Append(self
, entry
):
4671 '''Append an item to the list control. The entry parameter should be a
4672 sequence with an item for each column'''
4678 pos
= self
.GetItemCount()
4679 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4680 for i
in range(1, len(entry
)):
4681 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4684 def SortItems(*args
, **kwargs
):
4685 """SortItems(self, PyObject func) -> bool"""
4686 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4688 def GetMainWindow(*args
, **kwargs
):
4689 """GetMainWindow(self) -> Window"""
4690 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4692 def GetClassDefaultAttributes(*args
, **kwargs
):
4694 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4696 Get the default attributes for this class. This is useful if you want
4697 to use the same font or colour in your own control as in a standard
4698 control -- which is a much better idea than hard coding specific
4699 colours or fonts which might look completely out of place on the
4700 user's system, especially if it uses themes.
4702 The variant parameter is only relevant under Mac currently and is
4703 ignore under other platforms. Under Mac, it will change the size of
4704 the returned font. See `wx.Window.SetWindowVariant` for more about
4707 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4709 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4710 _controls_
.ListCtrl_swigregister(ListCtrl
)
4712 def PreListCtrl(*args
, **kwargs
):
4713 """PreListCtrl() -> ListCtrl"""
4714 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4717 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4719 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4721 Get the default attributes for this class. This is useful if you want
4722 to use the same font or colour in your own control as in a standard
4723 control -- which is a much better idea than hard coding specific
4724 colours or fonts which might look completely out of place on the
4725 user's system, especially if it uses themes.
4727 The variant parameter is only relevant under Mac currently and is
4728 ignore under other platforms. Under Mac, it will change the size of
4729 the returned font. See `wx.Window.SetWindowVariant` for more about
4732 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4734 #---------------------------------------------------------------------------
4736 class ListView(ListCtrl
):
4737 """Proxy of C++ ListView class"""
4738 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4739 __repr__
= _swig_repr
4740 def __init__(self
, *args
, **kwargs
):
4742 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4743 Size size=DefaultSize, long style=LC_REPORT,
4744 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4746 _controls_
.ListView_swiginit(self
,_controls_
.new_ListView(*args
, **kwargs
))
4747 self
._setOORInfo
(self
)
4749 def Create(*args
, **kwargs
):
4751 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4752 Size size=DefaultSize, long style=LC_REPORT,
4753 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4755 Do the 2nd phase and create the GUI control.
4757 return _controls_
.ListView_Create(*args
, **kwargs
)
4759 def Select(*args
, **kwargs
):
4760 """Select(self, long n, bool on=True)"""
4761 return _controls_
.ListView_Select(*args
, **kwargs
)
4763 def Focus(*args
, **kwargs
):
4764 """Focus(self, long index)"""
4765 return _controls_
.ListView_Focus(*args
, **kwargs
)
4767 def GetFocusedItem(*args
, **kwargs
):
4768 """GetFocusedItem(self) -> long"""
4769 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4771 def GetNextSelected(*args
, **kwargs
):
4772 """GetNextSelected(self, long item) -> long"""
4773 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4775 def GetFirstSelected(*args
, **kwargs
):
4776 """GetFirstSelected(self) -> long"""
4777 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4779 def IsSelected(*args
, **kwargs
):
4780 """IsSelected(self, long index) -> bool"""
4781 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4783 def SetColumnImage(*args
, **kwargs
):
4784 """SetColumnImage(self, int col, int image)"""
4785 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4787 def ClearColumnImage(*args
, **kwargs
):
4788 """ClearColumnImage(self, int col)"""
4789 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4791 _controls_
.ListView_swigregister(ListView
)
4793 def PreListView(*args
, **kwargs
):
4794 """PreListView() -> ListView"""
4795 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4798 #---------------------------------------------------------------------------
4800 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4801 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4802 TR_NO_LINES
= _controls_
.TR_NO_LINES
4803 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4804 TR_SINGLE
= _controls_
.TR_SINGLE
4805 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4806 TR_EXTENDED
= _controls_
.TR_EXTENDED
4807 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4808 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4809 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4810 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4811 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4812 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4813 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4816 wxTR_AQUA_BUTTONS
= 0
4818 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4819 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4820 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4821 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4822 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4823 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4824 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4825 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4826 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4827 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4828 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4829 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4830 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4831 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4832 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4833 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4834 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4835 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4836 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4837 #---------------------------------------------------------------------------
4839 class TreeItemId(object):
4840 """Proxy of C++ TreeItemId class"""
4841 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4842 __repr__
= _swig_repr
4843 def __init__(self
, *args
, **kwargs
):
4844 """__init__(self) -> TreeItemId"""
4845 _controls_
.TreeItemId_swiginit(self
,_controls_
.new_TreeItemId(*args
, **kwargs
))
4846 __swig_destroy__
= _controls_
.delete_TreeItemId
4847 __del__
= lambda self
: None;
4848 def IsOk(*args
, **kwargs
):
4849 """IsOk(self) -> bool"""
4850 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4852 def __eq__(*args
, **kwargs
):
4853 """__eq__(self, TreeItemId other) -> bool"""
4854 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4856 def __ne__(*args
, **kwargs
):
4857 """__ne__(self, TreeItemId other) -> bool"""
4858 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4860 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4862 def __nonzero__(self
): return self
.IsOk()
4863 _controls_
.TreeItemId_swigregister(TreeItemId
)
4864 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4866 class TreeItemData(object):
4867 """Proxy of C++ TreeItemData class"""
4868 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4869 __repr__
= _swig_repr
4870 def __init__(self
, *args
, **kwargs
):
4871 """__init__(self, PyObject obj=None) -> TreeItemData"""
4872 _controls_
.TreeItemData_swiginit(self
,_controls_
.new_TreeItemData(*args
, **kwargs
))
4873 __swig_destroy__
= _controls_
.delete_TreeItemData
4874 __del__
= lambda self
: None;
4875 def GetData(*args
, **kwargs
):
4876 """GetData(self) -> PyObject"""
4877 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4879 def SetData(*args
, **kwargs
):
4880 """SetData(self, PyObject obj)"""
4881 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4883 def GetId(*args
, **kwargs
):
4884 """GetId(self) -> TreeItemId"""
4885 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4887 def SetId(*args
, **kwargs
):
4888 """SetId(self, TreeItemId id)"""
4889 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4891 def Destroy(*args
, **kwargs
):
4893 val
= _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4897 _controls_
.TreeItemData_swigregister(TreeItemData
)
4899 #---------------------------------------------------------------------------
4901 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4902 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4903 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4904 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4905 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4906 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4907 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4908 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4909 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4910 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4911 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4912 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4913 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4914 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4915 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4916 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4917 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4918 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4919 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4920 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4921 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
4922 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4923 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4924 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4925 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4926 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4927 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4928 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4929 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4930 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4931 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4932 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4933 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4934 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4935 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4936 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4937 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4938 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4939 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4940 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4941 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4942 EVT_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
4944 class TreeEvent(_core
.NotifyEvent
):
4945 """Proxy of C++ TreeEvent class"""
4946 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4947 __repr__
= _swig_repr
4948 def __init__(self
, *args
):
4950 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> TreeEvent
4951 __init__(self, EventType commandType, TreeCtrl tree, TreeItemId item=NullTreeItemId) -> TreeEvent
4953 _controls_
.TreeEvent_swiginit(self
,_controls_
.new_TreeEvent(*args
))
4954 def GetItem(*args
, **kwargs
):
4955 """GetItem(self) -> TreeItemId"""
4956 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4958 def SetItem(*args
, **kwargs
):
4959 """SetItem(self, TreeItemId item)"""
4960 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4962 def GetOldItem(*args
, **kwargs
):
4963 """GetOldItem(self) -> TreeItemId"""
4964 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4966 def SetOldItem(*args
, **kwargs
):
4967 """SetOldItem(self, TreeItemId item)"""
4968 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4970 def GetPoint(*args
, **kwargs
):
4971 """GetPoint(self) -> Point"""
4972 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4974 def SetPoint(*args
, **kwargs
):
4975 """SetPoint(self, Point pt)"""
4976 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4978 def GetKeyEvent(*args
, **kwargs
):
4979 """GetKeyEvent(self) -> KeyEvent"""
4980 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4982 def GetKeyCode(*args
, **kwargs
):
4983 """GetKeyCode(self) -> int"""
4984 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4986 def SetKeyEvent(*args
, **kwargs
):
4987 """SetKeyEvent(self, KeyEvent evt)"""
4988 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
4990 def GetLabel(*args
, **kwargs
):
4991 """GetLabel(self) -> String"""
4992 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
4994 def SetLabel(*args
, **kwargs
):
4995 """SetLabel(self, String label)"""
4996 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
4998 def IsEditCancelled(*args
, **kwargs
):
4999 """IsEditCancelled(self) -> bool"""
5000 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
5002 def SetEditCanceled(*args
, **kwargs
):
5003 """SetEditCanceled(self, bool editCancelled)"""
5004 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
5006 def SetToolTip(*args
, **kwargs
):
5007 """SetToolTip(self, String toolTip)"""
5008 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
5010 def GetToolTip(*args
, **kwargs
):
5011 """GetToolTip(self) -> String"""
5012 return _controls_
.TreeEvent_GetToolTip(*args
, **kwargs
)
5014 _controls_
.TreeEvent_swigregister(TreeEvent
)
5016 #---------------------------------------------------------------------------
5018 class TreeCtrl(_core
.Control
):
5019 """Proxy of C++ TreeCtrl class"""
5020 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5021 __repr__
= _swig_repr
5022 def __init__(self
, *args
, **kwargs
):
5024 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5025 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5026 Validator validator=DefaultValidator,
5027 String name=TreeCtrlNameStr) -> TreeCtrl
5029 _controls_
.TreeCtrl_swiginit(self
,_controls_
.new_TreeCtrl(*args
, **kwargs
))
5030 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5032 def Create(*args
, **kwargs
):
5034 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5035 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5036 Validator validator=DefaultValidator,
5037 String name=TreeCtrlNameStr) -> bool
5039 Do the 2nd phase and create the GUI control.
5041 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5043 def _setCallbackInfo(*args
, **kwargs
):
5044 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5045 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5047 def GetCount(*args
, **kwargs
):
5048 """GetCount(self) -> unsigned int"""
5049 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5051 def GetIndent(*args
, **kwargs
):
5052 """GetIndent(self) -> unsigned int"""
5053 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5055 def SetIndent(*args
, **kwargs
):
5056 """SetIndent(self, unsigned int indent)"""
5057 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5059 def GetSpacing(*args
, **kwargs
):
5060 """GetSpacing(self) -> unsigned int"""
5061 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5063 def SetSpacing(*args
, **kwargs
):
5064 """SetSpacing(self, unsigned int spacing)"""
5065 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5067 def GetImageList(*args
, **kwargs
):
5068 """GetImageList(self) -> ImageList"""
5069 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5071 def GetStateImageList(*args
, **kwargs
):
5072 """GetStateImageList(self) -> ImageList"""
5073 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5075 def SetImageList(*args
, **kwargs
):
5076 """SetImageList(self, ImageList imageList)"""
5077 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5079 def SetStateImageList(*args
, **kwargs
):
5080 """SetStateImageList(self, ImageList imageList)"""
5081 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5083 def AssignImageList(*args
, **kwargs
):
5084 """AssignImageList(self, ImageList imageList)"""
5085 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5087 def AssignStateImageList(*args
, **kwargs
):
5088 """AssignStateImageList(self, ImageList imageList)"""
5089 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5091 def GetItemText(*args
, **kwargs
):
5092 """GetItemText(self, TreeItemId item) -> String"""
5093 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5095 def GetItemImage(*args
, **kwargs
):
5096 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5097 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5099 def GetItemData(*args
, **kwargs
):
5100 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5101 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5103 def GetItemPyData(*args
, **kwargs
):
5104 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5105 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5107 GetPyData
= GetItemPyData
5108 def GetItemTextColour(*args
, **kwargs
):
5109 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5110 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5112 def GetItemBackgroundColour(*args
, **kwargs
):
5113 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5114 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5116 def GetItemFont(*args
, **kwargs
):
5117 """GetItemFont(self, TreeItemId item) -> Font"""
5118 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5120 def SetItemText(*args
, **kwargs
):
5121 """SetItemText(self, TreeItemId item, String text)"""
5122 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5124 def SetItemImage(*args
, **kwargs
):
5125 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5126 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5128 def SetItemData(*args
, **kwargs
):
5129 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5130 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5132 def SetItemPyData(*args
, **kwargs
):
5133 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5134 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5136 SetPyData
= SetItemPyData
5137 def SetItemHasChildren(*args
, **kwargs
):
5138 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5139 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5141 def SetItemBold(*args
, **kwargs
):
5142 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5143 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5145 def SetItemDropHighlight(*args
, **kwargs
):
5146 """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)"""
5147 return _controls_
.TreeCtrl_SetItemDropHighlight(*args
, **kwargs
)
5149 def SetItemTextColour(*args
, **kwargs
):
5150 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5151 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5153 def SetItemBackgroundColour(*args
, **kwargs
):
5154 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5155 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5157 def SetItemFont(*args
, **kwargs
):
5158 """SetItemFont(self, TreeItemId item, Font font)"""
5159 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5161 def IsVisible(*args
, **kwargs
):
5162 """IsVisible(self, TreeItemId item) -> bool"""
5163 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5165 def ItemHasChildren(*args
, **kwargs
):
5166 """ItemHasChildren(self, TreeItemId item) -> bool"""
5167 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5169 def IsExpanded(*args
, **kwargs
):
5170 """IsExpanded(self, TreeItemId item) -> bool"""
5171 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5173 def IsSelected(*args
, **kwargs
):
5174 """IsSelected(self, TreeItemId item) -> bool"""
5175 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5177 def IsBold(*args
, **kwargs
):
5178 """IsBold(self, TreeItemId item) -> bool"""
5179 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5181 def GetChildrenCount(*args
, **kwargs
):
5182 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5183 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5185 def GetRootItem(*args
, **kwargs
):
5186 """GetRootItem(self) -> TreeItemId"""
5187 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5189 def GetSelection(*args
, **kwargs
):
5190 """GetSelection(self) -> TreeItemId"""
5191 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5193 def GetSelections(*args
, **kwargs
):
5194 """GetSelections(self) -> PyObject"""
5195 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5197 def GetItemParent(*args
, **kwargs
):
5198 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5199 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5201 def GetFirstChild(*args
, **kwargs
):
5202 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5203 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5205 def GetNextChild(*args
, **kwargs
):
5206 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5207 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5209 def GetLastChild(*args
, **kwargs
):
5210 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5211 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5213 def GetNextSibling(*args
, **kwargs
):
5214 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5215 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5217 def GetPrevSibling(*args
, **kwargs
):
5218 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5219 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5221 def GetFirstVisibleItem(*args
, **kwargs
):
5222 """GetFirstVisibleItem(self) -> TreeItemId"""
5223 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5225 def GetNextVisible(*args
, **kwargs
):
5226 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5227 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5229 def GetPrevVisible(*args
, **kwargs
):
5230 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5231 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5233 def AddRoot(*args
, **kwargs
):
5234 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5235 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5237 def PrependItem(*args
, **kwargs
):
5239 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5240 TreeItemData data=None) -> TreeItemId
5242 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5244 def InsertItem(*args
, **kwargs
):
5246 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5247 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5249 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5251 def InsertItemBefore(*args
, **kwargs
):
5253 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5254 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5256 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5258 def AppendItem(*args
, **kwargs
):
5260 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5261 TreeItemData data=None) -> TreeItemId
5263 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5265 def Delete(*args
, **kwargs
):
5266 """Delete(self, TreeItemId item)"""
5267 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5269 def DeleteChildren(*args
, **kwargs
):
5270 """DeleteChildren(self, TreeItemId item)"""
5271 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5273 def DeleteAllItems(*args
, **kwargs
):
5274 """DeleteAllItems(self)"""
5275 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5277 def Expand(*args
, **kwargs
):
5278 """Expand(self, TreeItemId item)"""
5279 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5281 def ExpandAllChildren(*args
, **kwargs
):
5282 """ExpandAllChildren(self, TreeItemId item)"""
5283 return _controls_
.TreeCtrl_ExpandAllChildren(*args
, **kwargs
)
5285 def ExpandAll(*args
, **kwargs
):
5286 """ExpandAll(self)"""
5287 return _controls_
.TreeCtrl_ExpandAll(*args
, **kwargs
)
5289 def Collapse(*args
, **kwargs
):
5290 """Collapse(self, TreeItemId item)"""
5291 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5293 def CollapseAndReset(*args
, **kwargs
):
5294 """CollapseAndReset(self, TreeItemId item)"""
5295 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5297 def Toggle(*args
, **kwargs
):
5298 """Toggle(self, TreeItemId item)"""
5299 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5301 def Unselect(*args
, **kwargs
):
5302 """Unselect(self)"""
5303 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5305 def UnselectItem(*args
, **kwargs
):
5306 """UnselectItem(self, TreeItemId item)"""
5307 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5309 def UnselectAll(*args
, **kwargs
):
5310 """UnselectAll(self)"""
5311 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5313 def SelectItem(*args
, **kwargs
):
5314 """SelectItem(self, TreeItemId item, bool select=True)"""
5315 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5317 def ToggleItemSelection(*args
, **kwargs
):
5318 """ToggleItemSelection(self, TreeItemId item)"""
5319 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5321 def EnsureVisible(*args
, **kwargs
):
5322 """EnsureVisible(self, TreeItemId item)"""
5323 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5325 def ScrollTo(*args
, **kwargs
):
5326 """ScrollTo(self, TreeItemId item)"""
5327 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5329 def EditLabel(*args
, **kwargs
):
5330 """EditLabel(self, TreeItemId item)"""
5331 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5333 def GetEditControl(*args
, **kwargs
):
5334 """GetEditControl(self) -> TextCtrl"""
5335 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5337 def EndEditLabel(*args
, **kwargs
):
5338 """EndEditLabel(self, TreeItemId item, bool discardChanges=False)"""
5339 return _controls_
.TreeCtrl_EndEditLabel(*args
, **kwargs
)
5341 def SortChildren(*args
, **kwargs
):
5342 """SortChildren(self, TreeItemId item)"""
5343 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5345 def HitTest(*args
, **kwargs
):
5347 HitTest(Point point) -> (item, where)
5349 Determine which item (if any) belongs the given point. The coordinates
5350 specified are relative to the client area of tree ctrl and the where return
5351 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5354 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5356 def GetBoundingRect(*args
, **kwargs
):
5357 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5358 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5360 def SetState(*args
, **kwargs
):
5361 """SetState(self, TreeItemId node, int state)"""
5362 return _controls_
.TreeCtrl_SetState(*args
, **kwargs
)
5364 def GetState(*args
, **kwargs
):
5365 """GetState(self, TreeItemId node) -> int"""
5366 return _controls_
.TreeCtrl_GetState(*args
, **kwargs
)
5368 def GetClassDefaultAttributes(*args
, **kwargs
):
5370 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5372 Get the default attributes for this class. This is useful if you want
5373 to use the same font or colour in your own control as in a standard
5374 control -- which is a much better idea than hard coding specific
5375 colours or fonts which might look completely out of place on the
5376 user's system, especially if it uses themes.
5378 The variant parameter is only relevant under Mac currently and is
5379 ignore under other platforms. Under Mac, it will change the size of
5380 the returned font. See `wx.Window.SetWindowVariant` for more about
5383 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5385 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5386 def SetQuickBestSize(*args
, **kwargs
):
5387 """SetQuickBestSize(self, bool q)"""
5388 return _controls_
.TreeCtrl_SetQuickBestSize(*args
, **kwargs
)
5390 def GetQuickBestSize(*args
, **kwargs
):
5391 """GetQuickBestSize(self) -> bool"""
5392 return _controls_
.TreeCtrl_GetQuickBestSize(*args
, **kwargs
)
5394 _controls_
.TreeCtrl_swigregister(TreeCtrl
)
5396 def PreTreeCtrl(*args
, **kwargs
):
5397 """PreTreeCtrl() -> TreeCtrl"""
5398 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5401 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5403 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5405 Get the default attributes for this class. This is useful if you want
5406 to use the same font or colour in your own control as in a standard
5407 control -- which is a much better idea than hard coding specific
5408 colours or fonts which might look completely out of place on the
5409 user's system, especially if it uses themes.
5411 The variant parameter is only relevant under Mac currently and is
5412 ignore under other platforms. Under Mac, it will change the size of
5413 the returned font. See `wx.Window.SetWindowVariant` for more about
5416 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5418 #---------------------------------------------------------------------------
5420 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5421 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5422 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5423 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5424 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5425 class GenericDirCtrl(_core
.Control
):
5426 """Proxy of C++ GenericDirCtrl class"""
5427 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5428 __repr__
= _swig_repr
5429 def __init__(self
, *args
, **kwargs
):
5431 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5432 Point pos=DefaultPosition, Size size=DefaultSize,
5433 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5434 String filter=EmptyString,
5435 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5437 _controls_
.GenericDirCtrl_swiginit(self
,_controls_
.new_GenericDirCtrl(*args
, **kwargs
))
5438 self
._setOORInfo
(self
)
5440 def Create(*args
, **kwargs
):
5442 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5443 Point pos=DefaultPosition, Size size=DefaultSize,
5444 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5445 String filter=EmptyString,
5446 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5448 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5450 def ExpandPath(*args
, **kwargs
):
5451 """ExpandPath(self, String path) -> bool"""
5452 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5454 def CollapsePath(*args
, **kwargs
):
5455 """CollapsePath(self, String path) -> bool"""
5456 return _controls_
.GenericDirCtrl_CollapsePath(*args
, **kwargs
)
5458 def GetDefaultPath(*args
, **kwargs
):
5459 """GetDefaultPath(self) -> String"""
5460 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5462 def SetDefaultPath(*args
, **kwargs
):
5463 """SetDefaultPath(self, String path)"""
5464 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5466 def GetPath(*args
, **kwargs
):
5467 """GetPath(self) -> String"""
5468 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5470 def GetFilePath(*args
, **kwargs
):
5471 """GetFilePath(self) -> String"""
5472 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5474 def SetPath(*args
, **kwargs
):
5475 """SetPath(self, String path)"""
5476 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5478 def ShowHidden(*args
, **kwargs
):
5479 """ShowHidden(self, bool show)"""
5480 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5482 def GetShowHidden(*args
, **kwargs
):
5483 """GetShowHidden(self) -> bool"""
5484 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5486 def GetFilter(*args
, **kwargs
):
5487 """GetFilter(self) -> String"""
5488 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5490 def SetFilter(*args
, **kwargs
):
5491 """SetFilter(self, String filter)"""
5492 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5494 def GetFilterIndex(*args
, **kwargs
):
5495 """GetFilterIndex(self) -> int"""
5496 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5498 def SetFilterIndex(*args
, **kwargs
):
5499 """SetFilterIndex(self, int n)"""
5500 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5502 def GetRootId(*args
, **kwargs
):
5503 """GetRootId(self) -> TreeItemId"""
5504 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5506 def GetTreeCtrl(*args
, **kwargs
):
5507 """GetTreeCtrl(self) -> TreeCtrl"""
5508 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5510 def GetFilterListCtrl(*args
, **kwargs
):
5511 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5512 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5514 def FindChild(*args
, **kwargs
):
5516 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5518 Find the child that matches the first part of 'path'. E.g. if a child
5519 path is "/usr" and 'path' is "/usr/include" then the child for
5520 /usr is returned. If the path string has been used (we're at the
5521 leaf), done is set to True.
5524 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5526 def DoResize(*args
, **kwargs
):
5527 """DoResize(self)"""
5528 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5530 def ReCreateTree(*args
, **kwargs
):
5531 """ReCreateTree(self)"""
5532 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5534 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrl
)
5535 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5537 def PreGenericDirCtrl(*args
, **kwargs
):
5538 """PreGenericDirCtrl() -> GenericDirCtrl"""
5539 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5542 class DirFilterListCtrl(Choice
):
5543 """Proxy of C++ DirFilterListCtrl class"""
5544 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5545 __repr__
= _swig_repr
5546 def __init__(self
, *args
, **kwargs
):
5548 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5549 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5551 _controls_
.DirFilterListCtrl_swiginit(self
,_controls_
.new_DirFilterListCtrl(*args
, **kwargs
))
5552 self
._setOORInfo
(self
)
5554 def Create(*args
, **kwargs
):
5556 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5557 Size size=DefaultSize, long style=0) -> bool
5559 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5561 def FillFilterList(*args
, **kwargs
):
5562 """FillFilterList(self, String filter, int defaultFilter)"""
5563 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5565 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrl
)
5567 def PreDirFilterListCtrl(*args
, **kwargs
):
5568 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5569 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5572 #---------------------------------------------------------------------------
5574 class PyControl(_core
.Control
):
5575 """Proxy of C++ PyControl class"""
5576 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5577 __repr__
= _swig_repr
5578 def __init__(self
, *args
, **kwargs
):
5580 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5581 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5582 String name=ControlNameStr) -> PyControl
5584 _controls_
.PyControl_swiginit(self
,_controls_
.new_PyControl(*args
, **kwargs
))
5585 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5587 def _setCallbackInfo(*args
, **kwargs
):
5588 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5589 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5591 def SetBestSize(*args
, **kwargs
):
5592 """SetBestSize(self, Size size)"""
5593 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5595 def DoEraseBackground(*args
, **kwargs
):
5596 """DoEraseBackground(self, DC dc) -> bool"""
5597 return _controls_
.PyControl_DoEraseBackground(*args
, **kwargs
)
5599 def DoMoveWindow(*args
, **kwargs
):
5600 """DoMoveWindow(self, int x, int y, int width, int height)"""
5601 return _controls_
.PyControl_DoMoveWindow(*args
, **kwargs
)
5603 def DoSetSize(*args
, **kwargs
):
5604 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5605 return _controls_
.PyControl_DoSetSize(*args
, **kwargs
)
5607 def DoSetClientSize(*args
, **kwargs
):
5608 """DoSetClientSize(self, int width, int height)"""
5609 return _controls_
.PyControl_DoSetClientSize(*args
, **kwargs
)
5611 def DoSetVirtualSize(*args
, **kwargs
):
5612 """DoSetVirtualSize(self, int x, int y)"""
5613 return _controls_
.PyControl_DoSetVirtualSize(*args
, **kwargs
)
5615 def DoGetSize(*args
, **kwargs
):
5616 """DoGetSize() -> (width, height)"""
5617 return _controls_
.PyControl_DoGetSize(*args
, **kwargs
)
5619 def DoGetClientSize(*args
, **kwargs
):
5620 """DoGetClientSize() -> (width, height)"""
5621 return _controls_
.PyControl_DoGetClientSize(*args
, **kwargs
)
5623 def DoGetPosition(*args
, **kwargs
):
5624 """DoGetPosition() -> (x,y)"""
5625 return _controls_
.PyControl_DoGetPosition(*args
, **kwargs
)
5627 def DoGetVirtualSize(*args
, **kwargs
):
5628 """DoGetVirtualSize(self) -> Size"""
5629 return _controls_
.PyControl_DoGetVirtualSize(*args
, **kwargs
)
5631 def DoGetBestSize(*args
, **kwargs
):
5632 """DoGetBestSize(self) -> Size"""
5633 return _controls_
.PyControl_DoGetBestSize(*args
, **kwargs
)
5635 def GetDefaultAttributes(*args
, **kwargs
):
5636 """GetDefaultAttributes(self) -> VisualAttributes"""
5637 return _controls_
.PyControl_GetDefaultAttributes(*args
, **kwargs
)
5639 def OnInternalIdle(*args
, **kwargs
):
5640 """OnInternalIdle(self)"""
5641 return _controls_
.PyControl_OnInternalIdle(*args
, **kwargs
)
5643 def base_DoMoveWindow(*args
, **kw
):
5644 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
5645 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
5646 "Please use PyScrolledWindow.DoMoveWindow instead.")
5648 def base_DoSetSize(*args
, **kw
):
5649 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
5650 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
5651 "Please use PyScrolledWindow.DoSetSize instead.")
5653 def base_DoSetClientSize(*args
, **kw
):
5654 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
5655 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
5656 "Please use PyScrolledWindow.DoSetClientSize instead.")
5658 def base_DoSetVirtualSize(*args
, **kw
):
5659 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
5660 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
5661 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
5663 def base_DoGetSize(*args
, **kw
):
5664 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
5665 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
5666 "Please use PyScrolledWindow.DoGetSize instead.")
5668 def base_DoGetClientSize(*args
, **kw
):
5669 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
5670 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
5671 "Please use PyScrolledWindow.DoGetClientSize instead.")
5673 def base_DoGetPosition(*args
, **kw
):
5674 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
5675 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
5676 "Please use PyScrolledWindow.DoGetPosition instead.")
5678 def base_DoGetVirtualSize(*args
, **kw
):
5679 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
5680 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
5681 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
5683 def base_DoGetBestSize(*args
, **kw
):
5684 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
5685 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
5686 "Please use PyScrolledWindow.DoGetBestSize instead.")
5688 def base_InitDialog(*args
, **kw
):
5689 return PyScrolledWindow
.InitDialog(*args
, **kw
)
5690 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
5691 "Please use PyScrolledWindow.InitDialog instead.")
5693 def base_TransferDataToWindow(*args
, **kw
):
5694 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
5695 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
5696 "Please use PyScrolledWindow.TransferDataToWindow instead.")
5698 def base_TransferDataFromWindow(*args
, **kw
):
5699 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
5700 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
5701 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
5703 def base_Validate(*args
, **kw
):
5704 return PyScrolledWindow
.Validate(*args
, **kw
)
5705 base_Validate
= wx
._deprecated
(base_Validate
,
5706 "Please use PyScrolledWindow.Validate instead.")
5708 def base_AcceptsFocus(*args
, **kw
):
5709 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
5710 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
5711 "Please use PyScrolledWindow.AcceptsFocus instead.")
5713 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
5714 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
5715 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
5716 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
5718 def base_GetMaxSize(*args
, **kw
):
5719 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
5720 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
5721 "Please use PyScrolledWindow.GetMaxSize instead.")
5723 def base_AddChild(*args
, **kw
):
5724 return PyScrolledWindow
.AddChild(*args
, **kw
)
5725 base_AddChild
= wx
._deprecated
(base_AddChild
,
5726 "Please use PyScrolledWindow.AddChild instead.")
5728 def base_RemoveChild(*args
, **kw
):
5729 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
5730 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
5731 "Please use PyScrolledWindow.RemoveChild instead.")
5733 def base_ShouldInheritColours(*args
, **kw
):
5734 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
5735 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
5736 "Please use PyScrolledWindow.ShouldInheritColours instead.")
5738 def base_GetDefaultAttributes(*args
, **kw
):
5739 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
5740 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
5741 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
5743 def base_OnInternalIdle(*args
, **kw
):
5744 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
5745 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
5746 "Please use PyScrolledWindow.OnInternalIdle instead.")
5748 _controls_
.PyControl_swigregister(PyControl
)
5750 def PrePyControl(*args
, **kwargs
):
5751 """PrePyControl() -> PyControl"""
5752 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5755 #---------------------------------------------------------------------------
5757 wxEVT_HELP
= _controls_
.wxEVT_HELP
5758 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5759 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5760 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5761 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5762 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5764 class HelpEvent(_core
.CommandEvent
):
5766 A help event is sent when the user has requested context-sensitive
5767 help. This can either be caused by the application requesting
5768 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5769 the system generating a WM_HELP message when the user pressed F1 or
5770 clicked on the query button in a dialog caption.
5772 A help event is sent to the window that the user clicked on, and is
5773 propagated up the window hierarchy until the event is processed or
5774 there are no more event handlers. The application should call
5775 event.GetId to check the identity of the clicked-on window, and then
5776 either show some suitable help or call event.Skip if the identifier is
5777 unrecognised. Calling Skip is important because it allows wxWindows to
5778 generate further events for ancestors of the clicked-on
5779 window. Otherwise it would be impossible to show help for container
5780 windows, since processing would stop after the first window found.
5782 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5783 __repr__
= _swig_repr
5784 Origin_Unknown
= _controls_
.HelpEvent_Origin_Unknown
5785 Origin_Keyboard
= _controls_
.HelpEvent_Origin_Keyboard
5786 Origin_HelpButton
= _controls_
.HelpEvent_Origin_HelpButton
5787 def __init__(self
, *args
, **kwargs
):
5789 __init__(self, EventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition,
5790 int origin=Origin_Unknown) -> HelpEvent
5792 _controls_
.HelpEvent_swiginit(self
,_controls_
.new_HelpEvent(*args
, **kwargs
))
5793 def GetPosition(*args
, **kwargs
):
5795 GetPosition(self) -> Point
5797 Returns the left-click position of the mouse, in screen
5798 coordinates. This allows the application to position the help
5801 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5803 def SetPosition(*args
, **kwargs
):
5805 SetPosition(self, Point pos)
5807 Sets the left-click position of the mouse, in screen coordinates.
5809 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5811 def GetLink(*args
, **kwargs
):
5813 GetLink(self) -> String
5815 Get an optional link to further help
5817 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5819 def SetLink(*args
, **kwargs
):
5821 SetLink(self, String link)
5823 Set an optional link to further help
5825 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5827 def GetTarget(*args
, **kwargs
):
5829 GetTarget(self) -> String
5831 Get an optional target to display help in. E.g. a window specification
5833 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5835 def SetTarget(*args
, **kwargs
):
5837 SetTarget(self, String target)
5839 Set an optional target to display help in. E.g. a window specification
5841 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5843 def GetOrigin(*args
, **kwargs
):
5845 GetOrigin(self) -> int
5847 Optiononal indication of the source of the event.
5849 return _controls_
.HelpEvent_GetOrigin(*args
, **kwargs
)
5851 def SetOrigin(*args
, **kwargs
):
5852 """SetOrigin(self, int origin)"""
5853 return _controls_
.HelpEvent_SetOrigin(*args
, **kwargs
)
5855 _controls_
.HelpEvent_swigregister(HelpEvent
)
5857 class ContextHelp(_core
.Object
):
5859 This class changes the cursor to a query and puts the application into
5860 a 'context-sensitive help mode'. When the user left-clicks on a window
5861 within the specified window, a ``EVT_HELP`` event is sent to that
5862 control, and the application may respond to it by popping up some
5865 There are a couple of ways to invoke this behaviour implicitly:
5867 * Use the wx.WS_EX_CONTEXTHELP extended style for a dialog or frame
5868 (Windows only). This will put a question mark in the titlebar,
5869 and Windows will put the application into context-sensitive help
5870 mode automatically, with further programming.
5872 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5873 to create a context help object. Normally you will write your
5874 application so that this button is only added to a dialog for
5875 non-Windows platforms (use ``wx.WS_EX_CONTEXTHELP`` on
5878 :see: `wx.ContextHelpButton`
5881 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5882 __repr__
= _swig_repr
5883 def __init__(self
, *args
, **kwargs
):
5885 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5887 Constructs a context help object, calling BeginContextHelp if doNow is
5890 If window is None, the top window is used.
5892 _controls_
.ContextHelp_swiginit(self
,_controls_
.new_ContextHelp(*args
, **kwargs
))
5893 __swig_destroy__
= _controls_
.delete_ContextHelp
5894 __del__
= lambda self
: None;
5895 def BeginContextHelp(*args
, **kwargs
):
5897 BeginContextHelp(self, Window window=None) -> bool
5899 Puts the application into context-sensitive help mode. window is the
5900 window which will be used to catch events; if NULL, the top window
5903 Returns true if the application was successfully put into
5904 context-sensitive help mode. This function only returns when the event
5907 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5909 def EndContextHelp(*args
, **kwargs
):
5911 EndContextHelp(self) -> bool
5913 Ends context-sensitive help mode. Not normally called by the
5916 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5918 _controls_
.ContextHelp_swigregister(ContextHelp
)
5920 class ContextHelpButton(BitmapButton
):
5922 Instances of this class may be used to add a question mark button that
5923 when pressed, puts the application into context-help mode. It does
5924 this by creating a wx.ContextHelp object which itself generates a
5925 ``EVT_HELP`` event when the user clicks on a window.
5927 On Windows, you may add a question-mark icon to a dialog by use of the
5928 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5929 will have to add a button explicitly, usually next to OK, Cancel or
5932 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5935 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5936 __repr__
= _swig_repr
5937 def __init__(self
, *args
, **kwargs
):
5939 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5940 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5942 Constructor, creating and showing a context help button.
5944 _controls_
.ContextHelpButton_swiginit(self
,_controls_
.new_ContextHelpButton(*args
, **kwargs
))
5945 self
._setOORInfo
(self
)
5947 _controls_
.ContextHelpButton_swigregister(ContextHelpButton
)
5949 class HelpProvider(object):
5951 wx.HelpProvider is an abstract class used by a program
5952 implementing context-sensitive help to show the help text for the
5955 The current help provider must be explicitly set by the
5956 application using wx.HelpProvider.Set().
5958 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5959 def __init__(self
): raise AttributeError, "No constructor defined"
5960 __repr__
= _swig_repr
5961 __swig_destroy__
= _controls_
.delete_HelpProvider
5962 __del__
= lambda self
: None;
5963 def Set(*args
, **kwargs
):
5965 Set(HelpProvider helpProvider) -> HelpProvider
5967 Sset the current, application-wide help provider. Returns the previous
5968 one. Unlike some other classes, the help provider is not created on
5969 demand. This must be explicitly done by the application.
5971 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5973 Set
= staticmethod(Set
)
5974 def Get(*args
, **kwargs
):
5976 Get() -> HelpProvider
5978 Return the current application-wide help provider.
5980 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5982 Get
= staticmethod(Get
)
5983 def GetHelp(*args
, **kwargs
):
5985 GetHelp(self, Window window) -> String
5987 Gets the help string for this window. Its interpretation is dependent
5988 on the help provider except that empty string always means that no
5989 help is associated with the window.
5991 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5993 def ShowHelp(*args
, **kwargs
):
5995 ShowHelp(self, Window window) -> bool
5997 Shows help for the given window. Uses GetHelp internally if
5998 applicable. Returns True if it was done, or False if no help was
5999 available for this window.
6001 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
6003 def ShowHelpAtPoint(*args
, **kwargs
):
6005 ShowHelpAtPoint(self, wxWindowBase window, Point pt, int origin) -> bool
6007 Show help for the given window (uses window.GetHelpAtPoint()
6008 internally if applicable), return true if it was done or false if no
6009 help available for this window.
6011 return _controls_
.HelpProvider_ShowHelpAtPoint(*args
, **kwargs
)
6013 def AddHelp(*args
, **kwargs
):
6015 AddHelp(self, Window window, String text)
6017 Associates the text with the given window.
6019 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
6021 def AddHelpById(*args
, **kwargs
):
6023 AddHelpById(self, int id, String text)
6025 This version associates the given text with all windows with this
6026 id. May be used to set the same help string for all Cancel buttons in
6027 the application, for example.
6029 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
6031 def RemoveHelp(*args
, **kwargs
):
6033 RemoveHelp(self, Window window)
6035 Removes the association between the window pointer and the help
6036 text. This is called by the wx.Window destructor. Without this, the
6037 table of help strings will fill up and when window pointers are
6038 reused, the wrong help string will be found.
6040 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
6042 def Destroy(*args
, **kwargs
):
6044 val
= _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
6048 _controls_
.HelpProvider_swigregister(HelpProvider
)
6050 def HelpProvider_Set(*args
, **kwargs
):
6052 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
6054 Sset the current, application-wide help provider. Returns the previous
6055 one. Unlike some other classes, the help provider is not created on
6056 demand. This must be explicitly done by the application.
6058 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6060 def HelpProvider_Get(*args
):
6062 HelpProvider_Get() -> HelpProvider
6064 Return the current application-wide help provider.
6066 return _controls_
.HelpProvider_Get(*args
)
6068 class SimpleHelpProvider(HelpProvider
):
6070 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6071 supports only plain text help strings, and shows the string associated
6072 with the control (if any) in a tooltip.
6074 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6075 __repr__
= _swig_repr
6076 def __init__(self
, *args
, **kwargs
):
6078 __init__(self) -> SimpleHelpProvider
6080 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6081 supports only plain text help strings, and shows the string associated
6082 with the control (if any) in a tooltip.
6084 _controls_
.SimpleHelpProvider_swiginit(self
,_controls_
.new_SimpleHelpProvider(*args
, **kwargs
))
6085 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProvider
)
6087 #---------------------------------------------------------------------------
6089 class DragImage(_core
.Object
):
6090 """Proxy of C++ DragImage class"""
6091 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6092 __repr__
= _swig_repr
6093 def __init__(self
, *args
, **kwargs
):
6094 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6095 _controls_
.DragImage_swiginit(self
,_controls_
.new_DragImage(*args
, **kwargs
))
6096 __swig_destroy__
= _controls_
.delete_DragImage
6097 __del__
= lambda self
: None;
6098 def SetBackingBitmap(*args
, **kwargs
):
6099 """SetBackingBitmap(self, Bitmap bitmap)"""
6100 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6102 def BeginDrag(*args
, **kwargs
):
6104 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6105 Rect rect=None) -> bool
6107 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6109 def BeginDragBounded(*args
, **kwargs
):
6110 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6111 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6113 def EndDrag(*args
, **kwargs
):
6114 """EndDrag(self) -> bool"""
6115 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6117 def Move(*args
, **kwargs
):
6118 """Move(self, Point pt) -> bool"""
6119 return _controls_
.DragImage_Move(*args
, **kwargs
)
6121 def Show(*args
, **kwargs
):
6122 """Show(self) -> bool"""
6123 return _controls_
.DragImage_Show(*args
, **kwargs
)
6125 def Hide(*args
, **kwargs
):
6126 """Hide(self) -> bool"""
6127 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6129 def GetImageRect(*args
, **kwargs
):
6130 """GetImageRect(self, Point pos) -> Rect"""
6131 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6133 def DoDrawImage(*args
, **kwargs
):
6134 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6135 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6137 def UpdateBackingFromWindow(*args
, **kwargs
):
6138 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6139 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6141 def RedrawImage(*args
, **kwargs
):
6142 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6143 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6145 ImageRect
= property(GetImageRect
,doc
="See `GetImageRect`")
6146 _controls_
.DragImage_swigregister(DragImage
)
6148 def DragIcon(*args
, **kwargs
):
6149 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6150 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6153 def DragString(*args
, **kwargs
):
6154 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6155 val
= _controls_
.new_DragString(*args
, **kwargs
)
6158 def DragTreeItem(*args
, **kwargs
):
6159 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6160 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6163 def DragListItem(*args
, **kwargs
):
6164 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6165 val
= _controls_
.new_DragListItem(*args
, **kwargs
)
6168 #---------------------------------------------------------------------------
6170 DP_DEFAULT
= _controls_
.DP_DEFAULT
6171 DP_SPIN
= _controls_
.DP_SPIN
6172 DP_DROPDOWN
= _controls_
.DP_DROPDOWN
6173 DP_SHOWCENTURY
= _controls_
.DP_SHOWCENTURY
6174 DP_ALLOWNONE
= _controls_
.DP_ALLOWNONE
6175 class DatePickerCtrl(_core
.Control
):
6177 This control allows the user to select a date. Unlike
6178 `wx.calendar.CalendarCtrl`, which is a relatively big control,
6179 `wx.DatePickerCtrl` is implemented as a small window showing the
6180 currently selected date. The control can be edited using the keyboard,
6181 and can also display a popup window for more user-friendly date
6182 selection, depending on the styles used and the platform.
6184 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6185 __repr__
= _swig_repr
6186 def __init__(self
, *args
, **kwargs
):
6188 __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6189 Point pos=DefaultPosition, Size size=DefaultSize,
6190 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6191 Validator validator=DefaultValidator,
6192 String name=DatePickerCtrlNameStr) -> DatePickerCtrl
6194 Create a new DatePickerCtrl.
6196 _controls_
.DatePickerCtrl_swiginit(self
,_controls_
.new_DatePickerCtrl(*args
, **kwargs
))
6197 self
._setOORInfo
(self
)
6199 def Create(*args
, **kwargs
):
6201 Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime,
6202 Point pos=DefaultPosition, Size size=DefaultSize,
6203 long style=wxDP_DEFAULT|wxDP_SHOWCENTURY,
6204 Validator validator=DefaultValidator,
6205 String name=DatePickerCtrlNameStr) -> bool
6207 Create the GUI parts of the DatePickerCtrl, for use in 2-phase
6210 return _controls_
.DatePickerCtrl_Create(*args
, **kwargs
)
6212 def SetValue(*args
, **kwargs
):
6214 SetValue(self, DateTime dt)
6216 Changes the current value of the control. The date should be valid and
6217 included in the currently selected range, if any.
6219 Calling this method does not result in a date change event.
6221 return _controls_
.DatePickerCtrl_SetValue(*args
, **kwargs
)
6223 def GetValue(*args
, **kwargs
):
6225 GetValue(self) -> DateTime
6227 Returns the currently selected date. If there is no selection or the
6228 selection is outside of the current range, an invalid `wx.DateTime`
6231 return _controls_
.DatePickerCtrl_GetValue(*args
, **kwargs
)
6233 def SetRange(*args
, **kwargs
):
6235 SetRange(self, DateTime dt1, DateTime dt2)
6237 Sets the valid range for the date selection. If dt1 is valid, it
6238 becomes the earliest date (inclusive) accepted by the control. If dt2
6239 is valid, it becomes the latest possible date.
6241 If the current value of the control is outside of the newly set range
6242 bounds, the behaviour is undefined.
6244 return _controls_
.DatePickerCtrl_SetRange(*args
, **kwargs
)
6246 def GetLowerLimit(*args
, **kwargs
):
6248 GetLowerLimit(self) -> DateTime
6250 Get the lower limit of the valid range for the date selection, if any.
6251 If there is no range or there is no lower limit, then the
6252 `wx.DateTime` value returned will be invalid.
6254 return _controls_
.DatePickerCtrl_GetLowerLimit(*args
, **kwargs
)
6256 def GetUpperLimit(*args
, **kwargs
):
6258 GetUpperLimit(self) -> DateTime
6260 Get the upper limit of the valid range for the date selection, if any.
6261 If there is no range or there is no upper limit, then the
6262 `wx.DateTime` value returned will be invalid.
6264 return _controls_
.DatePickerCtrl_GetUpperLimit(*args
, **kwargs
)
6266 LowerLimit
= property(GetLowerLimit
,doc
="See `GetLowerLimit`")
6267 UpperLimit
= property(GetUpperLimit
,doc
="See `GetUpperLimit`")
6268 Value
= property(GetValue
,SetValue
,doc
="See `GetValue` and `SetValue`")
6269 _controls_
.DatePickerCtrl_swigregister(DatePickerCtrl
)
6270 DatePickerCtrlNameStr
= cvar
.DatePickerCtrlNameStr
6272 def PreDatePickerCtrl(*args
, **kwargs
):
6274 PreDatePickerCtrl() -> DatePickerCtrl
6276 Precreate a DatePickerCtrl for use in 2-phase creation.
6278 val
= _controls_
.new_PreDatePickerCtrl(*args
, **kwargs
)
6281 HL_CONTEXTMENU
= _controls_
.HL_CONTEXTMENU
6282 HL_DEFAULT_STYLE
= _controls_
.HL_DEFAULT_STYLE
6283 #---------------------------------------------------------------------------
6285 class HyperlinkCtrl(_core
.Control
):
6287 A static text control that emulates a hyperlink. The link is displayed
6288 in an appropriate text style, derived from the control's normal font.
6289 When the mouse rolls over the link, the cursor changes to a hand and
6290 the link's color changes to the active color.
6292 Clicking on the link does not launch a web browser; instead, a
6293 wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link
6297 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6298 __repr__
= _swig_repr
6299 def __init__(self
, *args
, **kwargs
):
6301 __init__(self, Window parent, int id, String label, String url, Point pos=DefaultPosition,
6302 Size size=DefaultSize,
6303 long style=HL_DEFAULT_STYLE, String name=HyperlinkCtrlNameStr) -> HyperlinkCtrl
6305 A static text control that emulates a hyperlink. The link is displayed
6306 in an appropriate text style, derived from the control's normal font.
6307 When the mouse rolls over the link, the cursor changes to a hand and
6308 the link's color changes to the active color.
6310 Clicking on the link does not launch a web browser; instead, a
6311 wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link
6315 _controls_
.HyperlinkCtrl_swiginit(self
,_controls_
.new_HyperlinkCtrl(*args
, **kwargs
))
6316 self
._setOORInfo
(self
)
6318 def Create(*args
, **kwargs
):
6320 Create(self, Window parent, int id, String label, String url, Point pos=DefaultPosition,
6321 Size size=DefaultSize,
6322 long style=HL_DEFAULT_STYLE, String name=HyperlinkCtrlNameStr) -> bool
6324 return _controls_
.HyperlinkCtrl_Create(*args
, **kwargs
)
6326 def GetHoverColour(*args
, **kwargs
):
6327 """GetHoverColour(self) -> Colour"""
6328 return _controls_
.HyperlinkCtrl_GetHoverColour(*args
, **kwargs
)
6330 def SetHoverColour(*args
, **kwargs
):
6331 """SetHoverColour(self, Colour colour)"""
6332 return _controls_
.HyperlinkCtrl_SetHoverColour(*args
, **kwargs
)
6334 def GetNormalColour(*args
, **kwargs
):
6335 """GetNormalColour(self) -> Colour"""
6336 return _controls_
.HyperlinkCtrl_GetNormalColour(*args
, **kwargs
)
6338 def SetNormalColour(*args
, **kwargs
):
6339 """SetNormalColour(self, Colour colour)"""
6340 return _controls_
.HyperlinkCtrl_SetNormalColour(*args
, **kwargs
)
6342 def GetVisitedColour(*args
, **kwargs
):
6343 """GetVisitedColour(self) -> Colour"""
6344 return _controls_
.HyperlinkCtrl_GetVisitedColour(*args
, **kwargs
)
6346 def SetVisitedColour(*args
, **kwargs
):
6347 """SetVisitedColour(self, Colour colour)"""
6348 return _controls_
.HyperlinkCtrl_SetVisitedColour(*args
, **kwargs
)
6350 def GetURL(*args
, **kwargs
):
6351 """GetURL(self) -> String"""
6352 return _controls_
.HyperlinkCtrl_GetURL(*args
, **kwargs
)
6354 def SetURL(*args
, **kwargs
):
6355 """SetURL(self, String url)"""
6356 return _controls_
.HyperlinkCtrl_SetURL(*args
, **kwargs
)
6358 def SetVisited(*args
, **kwargs
):
6359 """SetVisited(self, bool visited=True)"""
6360 return _controls_
.HyperlinkCtrl_SetVisited(*args
, **kwargs
)
6362 def GetVisited(*args
, **kwargs
):
6363 """GetVisited(self) -> bool"""
6364 return _controls_
.HyperlinkCtrl_GetVisited(*args
, **kwargs
)
6366 _controls_
.HyperlinkCtrl_swigregister(HyperlinkCtrl
)
6367 HyperlinkCtrlNameStr
= cvar
.HyperlinkCtrlNameStr
6369 def PreHyperlinkCtrl(*args
, **kwargs
):
6371 PreHyperlinkCtrl() -> HyperlinkCtrl
6373 A static text control that emulates a hyperlink. The link is displayed
6374 in an appropriate text style, derived from the control's normal font.
6375 When the mouse rolls over the link, the cursor changes to a hand and
6376 the link's color changes to the active color.
6378 Clicking on the link does not launch a web browser; instead, a
6379 wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link
6383 val
= _controls_
.new_PreHyperlinkCtrl(*args
, **kwargs
)
6386 wxEVT_COMMAND_HYPERLINK
= _controls_
.wxEVT_COMMAND_HYPERLINK
6387 class HyperlinkEvent(_core
.CommandEvent
):
6388 """Proxy of C++ HyperlinkEvent class"""
6389 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6390 __repr__
= _swig_repr
6391 def __init__(self
, *args
, **kwargs
):
6392 """__init__(self, Object generator, int id, String url) -> HyperlinkEvent"""
6393 _controls_
.HyperlinkEvent_swiginit(self
,_controls_
.new_HyperlinkEvent(*args
, **kwargs
))
6394 def GetURL(*args
, **kwargs
):
6395 """GetURL(self) -> String"""
6396 return _controls_
.HyperlinkEvent_GetURL(*args
, **kwargs
)
6398 def SetURL(*args
, **kwargs
):
6399 """SetURL(self, String url)"""
6400 return _controls_
.HyperlinkEvent_SetURL(*args
, **kwargs
)
6402 _controls_
.HyperlinkEvent_swigregister(HyperlinkEvent
)
6404 EVT_HYPERLINK
= wx
.PyEventBinder( wxEVT_COMMAND_HYPERLINK
, 1 )
6406 #---------------------------------------------------------------------------
6408 PB_USE_TEXTCTRL
= _controls_
.PB_USE_TEXTCTRL
6409 class PickerBase(_core
.Control
):
6411 Base abstract class for all pickers which support an auxiliary text
6412 control. This class handles all positioning and sizing of the text
6413 control like a an horizontal `wx.BoxSizer` would do, with the text
6414 control on the left of the picker button and the proportion of the
6415 picker fixed to value 1.
6417 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6418 def __init__(self
): raise AttributeError, "No constructor defined"
6419 __repr__
= _swig_repr
6420 def CreateBase(*args
, **kwargs
):
6422 CreateBase(self, Window parent, int id, String text=wxEmptyString, Point pos=DefaultPosition,
6423 Size size=DefaultSize,
6424 long style=0, Validator validator=DefaultValidator,
6425 String name=wxButtonNameStr) -> bool
6427 return _controls_
.PickerBase_CreateBase(*args
, **kwargs
)
6429 def SetInternalMargin(*args
, **kwargs
):
6431 SetInternalMargin(self, int newmargin)
6433 Sets the margin (in pixels) between the picker and the text control.
6435 return _controls_
.PickerBase_SetInternalMargin(*args
, **kwargs
)
6437 def GetInternalMargin(*args
, **kwargs
):
6439 GetInternalMargin(self) -> int
6441 Returns the margin (in pixels) between the picker and the text
6444 return _controls_
.PickerBase_GetInternalMargin(*args
, **kwargs
)
6446 def SetTextCtrlProportion(*args
, **kwargs
):
6448 SetTextCtrlProportion(self, int prop)
6450 Sets the proportion between the text control and the picker button.
6451 This is used to set relative sizes of the text contorl and the picker.
6452 The value passed to this function must be >= 1.
6454 return _controls_
.PickerBase_SetTextCtrlProportion(*args
, **kwargs
)
6456 def GetTextCtrlProportion(*args
, **kwargs
):
6458 GetTextCtrlProportion(self) -> int
6460 Returns the proportion between the text control and the picker.
6462 return _controls_
.PickerBase_GetTextCtrlProportion(*args
, **kwargs
)
6464 def SetPickerCtrlProportion(*args
, **kwargs
):
6466 SetPickerCtrlProportion(self, int prop)
6468 Sets the proportion value of the picker.
6470 return _controls_
.PickerBase_SetPickerCtrlProportion(*args
, **kwargs
)
6472 def GetPickerCtrlProportion(*args
, **kwargs
):
6474 GetPickerCtrlProportion(self) -> int
6476 Gets the proportion value of the picker.
6478 return _controls_
.PickerBase_GetPickerCtrlProportion(*args
, **kwargs
)
6480 def IsTextCtrlGrowable(*args
, **kwargs
):
6481 """IsTextCtrlGrowable(self) -> bool"""
6482 return _controls_
.PickerBase_IsTextCtrlGrowable(*args
, **kwargs
)
6484 def SetTextCtrlGrowable(*args
, **kwargs
):
6485 """SetTextCtrlGrowable(self, bool grow=True)"""
6486 return _controls_
.PickerBase_SetTextCtrlGrowable(*args
, **kwargs
)
6488 def IsPickerCtrlGrowable(*args
, **kwargs
):
6489 """IsPickerCtrlGrowable(self) -> bool"""
6490 return _controls_
.PickerBase_IsPickerCtrlGrowable(*args
, **kwargs
)
6492 def SetPickerCtrlGrowable(*args
, **kwargs
):
6493 """SetPickerCtrlGrowable(self, bool grow=True)"""
6494 return _controls_
.PickerBase_SetPickerCtrlGrowable(*args
, **kwargs
)
6496 def HasTextCtrl(*args
, **kwargs
):
6498 HasTextCtrl(self) -> bool
6500 Returns true if this class has a valid text control (i.e. if the
6501 wx.PB_USE_TEXTCTRL style was given when creating this control).
6503 return _controls_
.PickerBase_HasTextCtrl(*args
, **kwargs
)
6505 def GetTextCtrl(*args
, **kwargs
):
6507 GetTextCtrl(self) -> TextCtrl
6509 Returns a pointer to the text control handled by this class or None if
6510 the wx.PB_USE_TEXTCTRL style was not specified when this control was
6513 Very important: the contents of the text control could be containing
6514 an invalid representation of the entity which can be chosen through
6515 the picker (e.g. the user entered an invalid colour syntax because of
6516 a typo). Thus you should never parse the content of the textctrl to
6517 get the user's input; rather use the derived-class getter
6518 (e.g. `wx.ColourPickerCtrl.GetColour`, `wx.FilePickerCtrl.GetPath`,
6521 return _controls_
.PickerBase_GetTextCtrl(*args
, **kwargs
)
6523 def GetPickerCtrl(*args
, **kwargs
):
6524 """GetPickerCtrl(self) -> Control"""
6525 return _controls_
.PickerBase_GetPickerCtrl(*args
, **kwargs
)
6527 _controls_
.PickerBase_swigregister(PickerBase
)
6529 #---------------------------------------------------------------------------
6531 CLRP_SHOW_LABEL
= _controls_
.CLRP_SHOW_LABEL
6532 CLRP_USE_TEXTCTRL
= _controls_
.CLRP_USE_TEXTCTRL
6533 CLRP_DEFAULT_STYLE
= _controls_
.CLRP_DEFAULT_STYLE
6534 class ColourPickerCtrl(PickerBase
):
6536 This control allows the user to select a colour. The generic
6537 implementation is a button which brings up a `wx.ColourDialog` when
6538 clicked. Native implementations may differ but this is usually a
6539 (small) widget which give access to the colour-chooser dialog.
6541 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6542 __repr__
= _swig_repr
6543 def __init__(self
, *args
, **kwargs
):
6545 __init__(self, Window parent, int id=-1, Colour col=*wxBLACK, Point pos=DefaultPosition,
6546 Size size=DefaultSize,
6547 long style=CLRP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6548 String name=ColourPickerCtrlNameStr) -> ColourPickerCtrl
6550 This control allows the user to select a colour. The generic
6551 implementation is a button which brings up a `wx.ColourDialog` when
6552 clicked. Native implementations may differ but this is usually a
6553 (small) widget which give access to the colour-chooser dialog.
6555 _controls_
.ColourPickerCtrl_swiginit(self
,_controls_
.new_ColourPickerCtrl(*args
, **kwargs
))
6556 self
._setOORInfo
(self
)
6558 def Create(*args
, **kwargs
):
6560 Create(self, Window parent, int id, Colour col=*wxBLACK, Point pos=DefaultPosition,
6561 Size size=DefaultSize, long style=CLRP_DEFAULT_STYLE,
6562 Validator validator=DefaultValidator,
6563 String name=ColourPickerCtrlNameStr) -> bool
6565 return _controls_
.ColourPickerCtrl_Create(*args
, **kwargs
)
6567 def GetColour(*args
, **kwargs
):
6569 GetColour(self) -> Colour
6571 Returns the currently selected colour.
6573 return _controls_
.ColourPickerCtrl_GetColour(*args
, **kwargs
)
6575 def SetColour(*args
, **kwargs
):
6577 SetColour(self, Colour col)
6579 Set the displayed colour.
6581 return _controls_
.ColourPickerCtrl_SetColour(*args
, **kwargs
)
6583 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
6584 _controls_
.ColourPickerCtrl_swigregister(ColourPickerCtrl
)
6585 ColourPickerCtrlNameStr
= cvar
.ColourPickerCtrlNameStr
6587 def PreColourPickerCtrl(*args
, **kwargs
):
6589 PreColourPickerCtrl() -> ColourPickerCtrl
6591 This control allows the user to select a colour. The generic
6592 implementation is a button which brings up a `wx.ColourDialog` when
6593 clicked. Native implementations may differ but this is usually a
6594 (small) widget which give access to the colour-chooser dialog.
6596 val
= _controls_
.new_PreColourPickerCtrl(*args
, **kwargs
)
6599 wxEVT_COMMAND_COLOURPICKER_CHANGED
= _controls_
.wxEVT_COMMAND_COLOURPICKER_CHANGED
6600 EVT_COLOURPICKER_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_COLOURPICKER_CHANGED
, 1 )
6602 class ColourPickerEvent(_core
.CommandEvent
):
6603 """Proxy of C++ ColourPickerEvent class"""
6604 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6605 __repr__
= _swig_repr
6606 def __init__(self
, *args
, **kwargs
):
6607 """__init__(self, Object generator, int id, Colour col) -> ColourPickerEvent"""
6608 _controls_
.ColourPickerEvent_swiginit(self
,_controls_
.new_ColourPickerEvent(*args
, **kwargs
))
6609 def GetColour(*args
, **kwargs
):
6610 """GetColour(self) -> Colour"""
6611 return _controls_
.ColourPickerEvent_GetColour(*args
, **kwargs
)
6613 def SetColour(*args
, **kwargs
):
6614 """SetColour(self, Colour c)"""
6615 return _controls_
.ColourPickerEvent_SetColour(*args
, **kwargs
)
6617 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
6618 _controls_
.ColourPickerEvent_swigregister(ColourPickerEvent
)
6620 #---------------------------------------------------------------------------
6622 FLP_OPEN
= _controls_
.FLP_OPEN
6623 FLP_SAVE
= _controls_
.FLP_SAVE
6624 FLP_OVERWRITE_PROMPT
= _controls_
.FLP_OVERWRITE_PROMPT
6625 FLP_FILE_MUST_EXIST
= _controls_
.FLP_FILE_MUST_EXIST
6626 FLP_CHANGE_DIR
= _controls_
.FLP_CHANGE_DIR
6627 DIRP_DIR_MUST_EXIST
= _controls_
.DIRP_DIR_MUST_EXIST
6628 DIRP_CHANGE_DIR
= _controls_
.DIRP_CHANGE_DIR
6629 FLP_USE_TEXTCTRL
= _controls_
.FLP_USE_TEXTCTRL
6630 FLP_DEFAULT_STYLE
= _controls_
.FLP_DEFAULT_STYLE
6631 DIRP_USE_TEXTCTRL
= _controls_
.DIRP_USE_TEXTCTRL
6632 DIRP_DEFAULT_STYLE
= _controls_
.DIRP_DEFAULT_STYLE
6633 class FilePickerCtrl(PickerBase
):
6634 """Proxy of C++ FilePickerCtrl class"""
6635 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6636 __repr__
= _swig_repr
6637 def __init__(self
, *args
, **kwargs
):
6639 __init__(self, Window parent, int id=-1, String path=EmptyString,
6640 String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
6641 Point pos=DefaultPosition,
6642 Size size=DefaultSize,
6643 long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6644 String name=FilePickerCtrlNameStr) -> FilePickerCtrl
6646 _controls_
.FilePickerCtrl_swiginit(self
,_controls_
.new_FilePickerCtrl(*args
, **kwargs
))
6647 self
._setOORInfo
(self
)
6649 def Create(*args
, **kwargs
):
6651 Create(self, Window parent, int id=-1, String path=EmptyString,
6652 String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
6653 Point pos=DefaultPosition,
6654 Size size=DefaultSize,
6655 long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6656 String name=FilePickerCtrlNameStr) -> bool
6658 return _controls_
.FilePickerCtrl_Create(*args
, **kwargs
)
6660 def GetPath(*args
, **kwargs
):
6661 """GetPath(self) -> String"""
6662 return _controls_
.FilePickerCtrl_GetPath(*args
, **kwargs
)
6664 def SetPath(*args
, **kwargs
):
6665 """SetPath(self, String str)"""
6666 return _controls_
.FilePickerCtrl_SetPath(*args
, **kwargs
)
6668 def CheckPath(*args
, **kwargs
):
6669 """CheckPath(self, String path) -> bool"""
6670 return _controls_
.FilePickerCtrl_CheckPath(*args
, **kwargs
)
6672 def GetTextCtrlValue(*args
, **kwargs
):
6673 """GetTextCtrlValue(self) -> String"""
6674 return _controls_
.FilePickerCtrl_GetTextCtrlValue(*args
, **kwargs
)
6676 _controls_
.FilePickerCtrl_swigregister(FilePickerCtrl
)
6677 FilePickerCtrlNameStr
= cvar
.FilePickerCtrlNameStr
6678 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
6679 DirPickerCtrlNameStr
= cvar
.DirPickerCtrlNameStr
6680 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
6681 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
6683 def PreFilePickerCtrl(*args
, **kwargs
):
6684 """PreFilePickerCtrl() -> FilePickerCtrl"""
6685 val
= _controls_
.new_PreFilePickerCtrl(*args
, **kwargs
)
6688 class DirPickerCtrl(PickerBase
):
6689 """Proxy of C++ DirPickerCtrl class"""
6690 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6691 __repr__
= _swig_repr
6692 def __init__(self
, *args
, **kwargs
):
6694 __init__(self, Window parent, int id=-1, String path=EmptyString,
6695 String message=DirSelectorPromptStr, Point pos=DefaultPosition,
6696 Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
6697 Validator validator=DefaultValidator,
6698 String name=DirPickerCtrlNameStr) -> DirPickerCtrl
6700 _controls_
.DirPickerCtrl_swiginit(self
,_controls_
.new_DirPickerCtrl(*args
, **kwargs
))
6701 self
._setOORInfo
(self
)
6703 def Create(*args
, **kwargs
):
6705 Create(self, Window parent, int id=-1, String path=EmptyString,
6706 String message=DirSelectorPromptStr, Point pos=DefaultPosition,
6707 Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
6708 Validator validator=DefaultValidator,
6709 String name=DirPickerCtrlNameStr) -> bool
6711 return _controls_
.DirPickerCtrl_Create(*args
, **kwargs
)
6713 def GetPath(*args
, **kwargs
):
6714 """GetPath(self) -> String"""
6715 return _controls_
.DirPickerCtrl_GetPath(*args
, **kwargs
)
6717 def SetPath(*args
, **kwargs
):
6718 """SetPath(self, String str)"""
6719 return _controls_
.DirPickerCtrl_SetPath(*args
, **kwargs
)
6721 def CheckPath(*args
, **kwargs
):
6722 """CheckPath(self, String path) -> bool"""
6723 return _controls_
.DirPickerCtrl_CheckPath(*args
, **kwargs
)
6725 def GetTextCtrlValue(*args
, **kwargs
):
6726 """GetTextCtrlValue(self) -> String"""
6727 return _controls_
.DirPickerCtrl_GetTextCtrlValue(*args
, **kwargs
)
6729 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
6730 TextCtrlValue
= property(GetTextCtrlValue
,doc
="See `GetTextCtrlValue`")
6731 _controls_
.DirPickerCtrl_swigregister(DirPickerCtrl
)
6733 def PreDirPickerCtrl(*args
, **kwargs
):
6734 """PreDirPickerCtrl() -> DirPickerCtrl"""
6735 val
= _controls_
.new_PreDirPickerCtrl(*args
, **kwargs
)
6738 wxEVT_COMMAND_FILEPICKER_CHANGED
= _controls_
.wxEVT_COMMAND_FILEPICKER_CHANGED
6739 wxEVT_COMMAND_DIRPICKER_CHANGED
= _controls_
.wxEVT_COMMAND_DIRPICKER_CHANGED
6740 EVT_FILEPICKER_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_FILEPICKER_CHANGED
, 1 )
6741 EVT_DIRPICKER_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_DIRPICKER_CHANGED
, 1 )
6743 class FileDirPickerEvent(_core
.CommandEvent
):
6744 """Proxy of C++ FileDirPickerEvent class"""
6745 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6746 __repr__
= _swig_repr
6747 def __init__(self
, *args
, **kwargs
):
6748 """__init__(self, EventType type, Object generator, int id, String path) -> FileDirPickerEvent"""
6749 _controls_
.FileDirPickerEvent_swiginit(self
,_controls_
.new_FileDirPickerEvent(*args
, **kwargs
))
6750 def GetPath(*args
, **kwargs
):
6751 """GetPath(self) -> String"""
6752 return _controls_
.FileDirPickerEvent_GetPath(*args
, **kwargs
)
6754 def SetPath(*args
, **kwargs
):
6755 """SetPath(self, String p)"""
6756 return _controls_
.FileDirPickerEvent_SetPath(*args
, **kwargs
)
6758 _controls_
.FileDirPickerEvent_swigregister(FileDirPickerEvent
)
6760 #---------------------------------------------------------------------------
6762 FNTP_FONTDESC_AS_LABEL
= _controls_
.FNTP_FONTDESC_AS_LABEL
6763 FNTP_USEFONT_FOR_LABEL
= _controls_
.FNTP_USEFONT_FOR_LABEL
6764 FNTP_USE_TEXTCTRL
= _controls_
.FNTP_USE_TEXTCTRL
6765 FNTP_DEFAULT_STYLE
= _controls_
.FNTP_DEFAULT_STYLE
6766 class FontPickerCtrl(PickerBase
):
6767 """Proxy of C++ FontPickerCtrl class"""
6768 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6769 __repr__
= _swig_repr
6770 def __init__(self
, *args
, **kwargs
):
6772 __init__(self, Window parent, int id=-1, Font initial=*wxNORMAL_FONT,
6773 Point pos=DefaultPosition, Size size=DefaultSize,
6774 long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6775 String name=FontPickerCtrlNameStr) -> FontPickerCtrl
6777 _controls_
.FontPickerCtrl_swiginit(self
,_controls_
.new_FontPickerCtrl(*args
, **kwargs
))
6778 self
._setOORInfo
(self
)
6780 def Create(*args
, **kwargs
):
6782 Create(self, Window parent, int id=-1, Font initial=*wxNORMAL_FONT,
6783 Point pos=DefaultPosition, Size size=DefaultSize,
6784 long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
6785 String name=FontPickerCtrlNameStr) -> bool
6787 return _controls_
.FontPickerCtrl_Create(*args
, **kwargs
)
6789 def GetSelectedFont(*args
, **kwargs
):
6790 """GetSelectedFont(self) -> Font"""
6791 return _controls_
.FontPickerCtrl_GetSelectedFont(*args
, **kwargs
)
6793 def SetSelectedFont(*args
, **kwargs
):
6794 """SetSelectedFont(self, Font f)"""
6795 return _controls_
.FontPickerCtrl_SetSelectedFont(*args
, **kwargs
)
6797 def SetMaxPointSize(*args
, **kwargs
):
6798 """SetMaxPointSize(self, unsigned int max)"""
6799 return _controls_
.FontPickerCtrl_SetMaxPointSize(*args
, **kwargs
)
6801 def GetMaxPointSize(*args
, **kwargs
):
6802 """GetMaxPointSize(self) -> unsigned int"""
6803 return _controls_
.FontPickerCtrl_GetMaxPointSize(*args
, **kwargs
)
6805 _controls_
.FontPickerCtrl_swigregister(FontPickerCtrl
)
6806 FontPickerCtrlNameStr
= cvar
.FontPickerCtrlNameStr
6808 def PreFontPickerCtrl(*args
, **kwargs
):
6809 """PreFontPickerCtrl() -> FontPickerCtrl"""
6810 val
= _controls_
.new_PreFontPickerCtrl(*args
, **kwargs
)
6813 wxEVT_COMMAND_FONTPICKER_CHANGED
= _controls_
.wxEVT_COMMAND_FONTPICKER_CHANGED
6814 EVT_FONTPICKER_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_FONTPICKER_CHANGED
, 1 )
6816 class FontPickerEvent(_core
.CommandEvent
):
6817 """Proxy of C++ FontPickerEvent class"""
6818 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
6819 __repr__
= _swig_repr
6820 def __init__(self
, *args
, **kwargs
):
6821 """__init__(self, Object generator, int id, Font f) -> FontPickerEvent"""
6822 _controls_
.FontPickerEvent_swiginit(self
,_controls_
.new_FontPickerEvent(*args
, **kwargs
))
6823 def GetFont(*args
, **kwargs
):
6824 """GetFont(self) -> Font"""
6825 return _controls_
.FontPickerEvent_GetFont(*args
, **kwargs
)
6827 def SetFont(*args
, **kwargs
):
6828 """SetFont(self, Font c)"""
6829 return _controls_
.FontPickerEvent_SetFont(*args
, **kwargs
)
6831 _controls_
.FontPickerEvent_swigregister(FontPickerEvent
)